From b2082953bf9d46a62a0293b0cbfd13afecf2c61c Mon Sep 17 00:00:00 2001 From: youjung-hong Date: Thu, 29 Mar 2018 13:12:58 +0900 Subject: [PATCH] 0.9.4 --- dist/tui-calendar.css | 2 +- dist/tui-calendar.js | 74 ++++++++++++------------------------ dist/tui-calendar.js.map | 2 +- dist/tui-calendar.min.css | 2 +- dist/tui-calendar.min.js | 14 +++---- dist/tui-calendar.min.js.map | 2 +- package.json | 2 +- 7 files changed, 36 insertions(+), 62 deletions(-) diff --git a/dist/tui-calendar.css b/dist/tui-calendar.css index d5f86024d..46c50ec2b 100644 --- a/dist/tui-calendar.css +++ b/dist/tui-calendar.css @@ -1,6 +1,6 @@ /*! * tui-calendar - * @version 0.9.3 | Thu Mar 29 2018 + * @version 0.9.4 | Thu Mar 29 2018 * @author NHNEnt FE Development Lab * @license undefined */ diff --git a/dist/tui-calendar.js b/dist/tui-calendar.js index cd7a7b14d..f7ad92359 100644 --- a/dist/tui-calendar.js +++ b/dist/tui-calendar.js @@ -1,6 +1,6 @@ /*! * tui-calendar - * @version 0.9.3 | Thu Mar 29 2018 + * @version 0.9.4 | Thu Mar 29 2018 * @author NHNEnt FE Development Lab * @license undefined */ @@ -8650,12 +8650,13 @@ return /******/ (function(modules) { // webpackBootstrap weekView.handler.move.allday = new AlldayMove(dragHandler, alldayView, baseController); weekView.handler.resize.allday = new AlldayResize(dragHandler, alldayView, baseController); - weekView.handler.click.allday.on('clickExpand', function() { + weekView.handler.click.allday.on('clickExpand', function(index) { alldayView.prevMaxHeight = alldayView.aboutMe.maxHeight; alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight(); alldayPanel.isHeightForcedSet = false; alldayView.collapsed = false; alldayView.aboutMe.forcedLayout = false; + alldayView.aboutMe.collapseBtnIndex = index; reqAnimFrame.requestAnimFrame(function() { weekView.render(); }); @@ -11246,6 +11247,7 @@ return /******/ (function(modules) { // webpackBootstrap if (this.viewType === 'toggle') { baseViewModel.viewType = this.viewType; baseViewModel.collapsed = this.collapsed ? 'collapsed' : ''; + baseViewModel.collapseBtnIndex = aboutMe.collapseBtnIndex; } container.innerHTML = tmpl(baseViewModel); @@ -11350,7 +11352,7 @@ return /******/ (function(modules) { // webpackBootstrap var visibleScheduleCount = this.aboutMe.visibleScheduleCount; var aboutMe = this.aboutMe; var exceedDate = {}; - var baseViewModel, panelHeight, maxHiddenScheduleCount; + var baseViewModel, panelHeight; if (this.viewType === 'toggle') { panelHeight = aboutMe.forcedLayout ? this.getViewBound().height : mmin(aboutMe.height, aboutMe.maxHeight); @@ -11366,13 +11368,6 @@ return /******/ (function(modules) { // webpackBootstrap matrices = this._excludeExceedSchedules(matrices, visibleScheduleCount, maxScheduleInDay); aboutMe.visibleScheduleCount = visibleScheduleCount; } else { - maxHiddenScheduleCount = maxScheduleInDay - aboutMe.visibleScheduleCount; - exceedDate = - this.getExceedDate( - mmin(maxScheduleInDay, aboutMe.maxExpandCount) - maxHiddenScheduleCount, - viewModel.schedulesInDateRange[aboutMe.name], - viewModel.range - ); visibleScheduleCount = mmax(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount)); } } @@ -11387,11 +11382,6 @@ return /******/ (function(modules) { // webpackBootstrap minHeight: this._getMinHeight(maxScheduleInDay), matrices: matrices, scheduleContainerTop: this.options.scheduleContainerTop, - minHiddenScheduleIndex: this._getCollapseBtnIndex(viewModel.range, - baseViewModel.dates, - maxHiddenScheduleCount, - exceedDate - ), maxScheduleInDay: maxScheduleInDay, floatingButtonTop: this._calculateFloatingBtnTop(visibleScheduleCount, maxScheduleInDay), panelName: aboutMe.name @@ -11400,29 +11390,6 @@ return /******/ (function(modules) { // webpackBootstrap return baseViewModel; }; - /** - * return weekday index to show collapse button - * @param {Array.} range - view model - * @param {Array.} dates - base view model - * @param {number} maxHiddenCount - maximum hidden count when panel is collapsed - * @param {array} exceedDate - overflowed schedule count in week - * @returns {number} weekday index - */ - WeekdayInWeek.prototype._getCollapseBtnIndex = function(range, dates, maxHiddenCount, exceedDate) { - var minHiddenScheduleCount = maxHiddenCount; - var btnIndex = range.length > 0 ? range.length - 1 : 0; - - util.forEach(dates, function(date, index) { - var ymd = date.ymd; - if (exceedDate[ymd] !== 0 && minHiddenScheduleCount >= exceedDate[ymd]) { - minHiddenScheduleCount = exceedDate[ymd]; - btnIndex = index; - } - }); - - return btnIndex; - }; - /** * Calculate absolute top position of floating button layer * @param {number} visibleScheduleCount - maximum (row) number of schedules that panel can show @@ -11763,8 +11730,8 @@ return /******/ (function(modules) { // webpackBootstrap return " \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Handlebars = require('handlebars-template-loader/runtime');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar config = require('../../config');\n\n/**\n * Get CSS syntax for element size\n * @param {number} value - size value to apply element\n * @param {string} postfix - postfix string ex) px, em, %\n * @param {string} prefix - property name ex) width, height\n * @returns {string} CSS syntax\n */\nfunction getElSize(value, postfix, prefix) {\n prefix = prefix || '';\n if (util.isNumber(value)) {\n return prefix + ':' + value + postfix;\n }\n\n return prefix + ':auto';\n}\n\n/**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\nfunction getElLeft(viewModel, grids) {\n return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n}\n\n/**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getElWidth(viewModel, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n var left;\n for (; i < viewModel.width; i += 1) {\n left = (viewModel.left + i) % length;\n left += parseInt((viewModel.left + i) / length, 10);\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nHandlebars.registerHelper({\n /**\n * Stamp supplied object\n *\n * Commonly use for rendering object's unique ID to rendered view\n * @param {object} obj - object to stamp\n * @returns {number} stamp value\n */\n 'stamp': function(obj) {\n return util.stamp(obj);\n },\n\n /**\n * Whether supplied object are equal?\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} result of operation\n */\n 'equal': function(a, b) {\n return a === b;\n },\n\n /**\n * OR\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'or': function(a, b) {\n return a || b;\n },\n\n /**\n * Compare object or apply logical operation by customizable oper parameter\n * @param {*} a - a\n * @param {string} oper - operator ex) '==', '<'\n * @param {*} b - b\n * @param {Handlebars} options - handlebar options\n * @returns {boolean} result of operation\n */\n 'fi': function(a, oper, b, options) {\n switch (oper) {\n case '==':\n return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n case '===':\n return (a === b) ? options.fn(this) : options.inverse(this);\n case '!==':\n return (a !== b) ? options.fn(this) : options.inverse(this);\n case '<':\n return (a < b) ? options.fn(this) : options.inverse(this);\n case '||':\n return (a || b) ? options.fn(this) : options.inverse(this);\n default:\n throw new Error('Not match operation');\n }\n },\n\n /**\n * Get hhmm formatted time str\n * @param {Date} date - date object\n * @returns {string} formatted value\n */\n 'hhmm': function(date) {\n return datetime.format(date, 'HH:mm');\n },\n\n /**\n * Get `width` stylesheet string\n * @param {number} width - width percentage\n * @returns {string} css style part\n */\n 'common-width': function(width) {\n return getElSize(width, '%', 'width');\n },\n\n /**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\n 'grid-left': function(viewModel, grids) {\n return getElLeft(viewModel, grids);\n },\n\n /**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\n 'grid-width': function(viewModel, grids) {\n return getElWidth(viewModel, grids);\n },\n\n /**\n * Use in time.hbs\n * @param {ScheduleViewModel} viewModel viewModel\n * @returns {string} element size css class\n */\n 'time-scheduleBlock': function(viewModel) {\n var top = getElSize(viewModel.top, 'px', 'top'),\n left = getElSize(viewModel.left, '%', 'left'),\n width = getElSize(viewModel.width, '%', 'width'),\n height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n var height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'holiday': function(day) {\n var cssClass = '';\n\n if (day === 0) {\n cssClass = config.classname('holiday-sun');\n }\n\n if (day === 6) {\n cssClass = config.classname('holiday-sat');\n }\n\n return cssClass;\n },\n\n /**\n * Add supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'add': function(a, b) {\n return a + b;\n },\n\n /**\n * Multiply supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'multiply': function(a, b) {\n return a * b;\n },\n\n /**\n * Divide supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'divide': function(a, b) {\n return a / b;\n },\n\n /**\n * Subtract supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'subtract': function(a, b) {\n return a - b;\n },\n\n /**\n * Get css prefix in global configuration\n * @returns {string} css prefix\n */\n 'CSS_PREFIX': function() {\n return config.cssPrefix;\n },\n\n /**********\n * Default schedule template\n **********/\n\n 'milestone-tmpl': function(model) {\n return ' ' +\n common.stripTags(model.title);\n },\n\n 'milestoneTitle-tmpl': function() {\n return '마일스톤';\n },\n\n 'task-tmpl': function(model) {\n return ' ' +\n common.stripTags(model.title);\n },\n\n 'taskTitle-tmpl': function() {\n return '업무';\n },\n\n 'alldayTitle-tmpl': function() {\n return '종일';\n },\n\n 'alldayCollapseBtnTitle-tmpl': function() {\n return '∧';\n },\n\n 'allday-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'time-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'monthMoreTitleDate-tmpl': function(date) {\n return date;\n },\n\n 'monthMoreClose-tmpl': function() {\n return 'close';\n },\n\n 'monthGridHeader-tmpl': function(model) {\n return '' + model.date + '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'monthGridFooter-tmpl': function() {\n return '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'weekDayname-tmpl': function(model) {\n return '' + model.date + ' ' + model.dayName;\n },\n\n 'monthDayname-tmpl': function(model) {\n return model.label;\n },\n\n 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '+' + hiddenSchedules;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/helper.js\n// module id = 5\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_6__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}\n// module id = 6\n// module chunks = 0","module.exports = require('handlebars/runtime');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars-template-loader/runtime/index.js\n// module id = 7\n// module chunks = 0","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime')['default'];\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/runtime.js\n// module id = 8\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _handlebarsBase = require('./handlebars/base');\n\nvar base = _interopRequireWildcard(_handlebarsBase);\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\n\nvar _handlebarsSafeString = require('./handlebars/safe-string');\n\nvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\nvar _handlebarsException = require('./handlebars/exception');\n\nvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\nvar _handlebarsUtils = require('./handlebars/utils');\n\nvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\nvar _handlebarsRuntime = require('./handlebars/runtime');\n\nvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\nvar _handlebarsNoConflict = require('./handlebars/no-conflict');\n\nvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nfunction create() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = _handlebarsSafeString2['default'];\n hb.Exception = _handlebarsException2['default'];\n hb.Utils = Utils;\n hb.escapeExpression = Utils.escapeExpression;\n\n hb.VM = runtime;\n hb.template = function (spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n}\n\nvar inst = create();\ninst.create = create;\n\n_handlebarsNoConflict2['default'](inst);\n\ninst['default'] = inst;\n\nexports['default'] = inst;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFv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V0dXJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars.runtime.js\n// module id = 9\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.HandlebarsEnvironment = HandlebarsEnvironment;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('./utils');\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _helpers = require('./helpers');\n\nvar _decorators = require('./decorators');\n\nvar _logger = require('./logger');\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar VERSION = '4.0.11';\nexports.VERSION = VERSION;\nvar COMPILER_REVISION = 7;\n\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '== 1.x.x',\n 5: '== 2.0.0-alpha.x',\n 6: '>= 2.0.0-beta.1',\n 7: '>= 4.0.0'\n};\n\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials, decorators) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n this.decorators = decorators || {};\n\n _helpers.registerDefaultHelpers(this);\n _decorators.registerDefaultDecorators(this);\n}\n\nHandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: _logger2['default'],\n log: _logger2['default'].log,\n\n registerHelper: function registerHelper(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple helpers');\n }\n _utils.extend(this.helpers, name);\n } else {\n this.helpers[name] = fn;\n }\n },\n unregisterHelper: function unregisterHelper(name) {\n delete this.helpers[name];\n },\n\n registerPartial: function registerPartial(name, partial) {\n if (_utils.toString.call(name) === objectType) {\n _utils.extend(this.partials, name);\n } else {\n if (typeof partial === 'undefined') {\n throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n }\n this.partials[name] = partial;\n }\n },\n unregisterPartial: function unregisterPartial(name) {\n delete this.partials[name];\n },\n\n registerDecorator: function registerDecorator(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple decorators');\n }\n _utils.extend(this.decorators, name);\n } else {\n this.decorators[name] = fn;\n }\n },\n unregisterDecorator: function unregisterDecorator(name) {\n delete this.decorators[name];\n }\n};\n\nvar log = _logger2['default'].log;\n\nexports.log = log;\nexports.createFrame = _utils.createFrame;\nexports.logger = _logger2['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQTRDLFNBQVM7O3lCQUMvQixhQUFhOzs7O3VCQUNFLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNuQyxVQUFVOzs7O0FBRXRCLElBQU0sT0FBTyxHQUFHLFFBQVEsQ0FBQzs7QUFDekIsSUFBTSxpQkFBaUIsR0FBRyxDQUFDLENBQUM7OztBQUU1QixJQUFNLGdCQUFnQixHQUFHO0FBQzlCLEdBQUMsRUFBRSxhQUFhO0FBQ2hCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxVQUFVO0FBQ2IsR0FBQyxFQUFFLGtCQUFrQjtBQ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lzdGVyIGEgcGFydGlhbCBjYWxsZWQgXCIke25hbWV9XCIgYXMgdW5kZWZpbmVkYCk7XG4gICAgICB9XG4gICAgICB0aGlzLnBhcnRpYWxzW25hbWVdID0gcGFydGlhbDtcbiAgICB9XG4gIH0sXG4gIHVucmVnaXN0ZXJQYXJ0aWFsOiBmdW5jdGlvbihuYW1lKSB7XG4gICAgZGVsZXRlIHRoaXMucGFydGlhbHNbbmFtZV07XG4gIH0sXG5cbiAgcmVnaXN0ZXJEZWNvcmF0b3I6IGZ1bmN0aW9uKG5hbWUsIGZuKSB7XG4gICAgaWYgKHRvU3RyaW5nLmNhbGwobmFtZSkgPT09IG9iamVjdFR5cGUpIHtcbiAgICAgIGlmIChmbikgeyB0aHJvdyBuZXcgRXhjZXB0aW9uKCdBcmcgbm90IHN1cHBvcnRlZCB3aXRoIG11bHRpcGxlIGRlY29yYXRvcnMnKTsgfVxuICAgICAgZXh0ZW5kKHRoaXMuZGVjb3JhdG9ycywgbmFtZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuZGVjb3JhdG9yc1tuYW1lXSA9IGZuO1xuICAgIH1cbiAgfSxcbiAgdW5yZWdpc3RlckRlY29yYXRvcjogZnVuY3Rpb24obmFtZSkge1xuICAgIGRlbGV0ZSB0aGlzLmRlY29yYXRvcnNbbmFtZV07XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHtjcmVhdGVGcmFtZSwgbG9nZ2VyfTtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/base.js\n// module id = 10\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.extend = extend;\nexports.indexOf = indexOf;\nexports.escapeExpression = escapeExpression;\nexports.isEmpty = isEmpty;\nexports.createFrame = createFrame;\nexports.blockParams = blockParams;\nexports.appendContextPath = appendContextPath;\nvar escape = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`',\n '=': '='\n};\n\nvar badChars = /[&<>\"'`=]/g,\n possible = /[&<>\"'`=]/;\n\nfunction escapeChar(chr) {\n return escape[chr];\n}\n\nfunction extend(obj /* , ...source */) {\n for (var i = 1; i < arguments.length; i++) {\n for (var key in arguments[i]) {\n if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n obj[key] = arguments[i][key];\n }\n }\n }\n\n return obj;\n}\n\nvar toString = Object.prototype.toString;\n\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n/* eslint-disable func-style */\nvar isFunction = function isFunction(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\n/* istanbul ignore next */\nif (isFunction(/x/)) {\n exports.isFunction = isFunction = function (value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nexports.isFunction = isFunction;\n\n/* eslint-enable func-style */\n\n/* istanbul ignore next */\nvar isArray = Array.isArray || function (value) {\n return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n};\n\nexports.isArray = isArray;\n// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\nfunction indexOf(array, value) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n}\n\nfunction escapeExpression(string) {\n if (typeof string !== 'string') {\n // don't escape SafeStrings, since they're already safe\n if (string && string.toHTML) {\n return string.toHTML();\n } else if (string == null) {\n return '';\n } else if (!string) {\n return string + '';\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = '' + string;\n }\n\n if (!possible.test(string)) {\n return string;\n }\n return string.replace(badChars, escapeChar);\n}\n\nfunction isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction createFrame(object) {\n var frame = extend({}, object);\n frame._parent = object;\n return frame;\n}\n\nfunction blockParams(params, ids) {\n params.path = ids;\n return params;\n}\n\nfunction appendContextPath(contextPath, id) {\n return (contextPath ? contextPath + '.' : '') + id;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQzs7QUFFRixJQUFNLFFBQVEsR0FBRyxZQUFZO0lBQ3ZCLFFBQVEsR0FBRyxXQUFXLENBQUM7O0FBRTdCLFNBQVMsVUFBVSxDQUFDLEdBQUcsRUFBRTtBQUN2QixTQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztDQUNwQjs7QUFFTSxTQUFTLE1BQU0sQ0FBQyxHQUFHLG9CQUFtQjtBQUMzQyxPQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUN6QyxTQUFLLElBQUksR0FBRyxJQUFJLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBRTtBQUM1QixVQUFJLE1BQU0sQ0FBQyxTQUFTLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLEVBQUUsR0FBRyxDQUFDLEVBQUU7QUFDM0QsV0FBRyxDQUFDLEdBQUcsQ0FBQyxH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n// module id = 11\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var loc = node && node.loc,\n line = undefined,\n column = undefined;\n if (loc) {\n line = loc.start.line;\n column = loc.start.column;\n\n message += ' - ' + line + ':' + column;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n /* istanbul ignore else */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, Exception);\n }\n\n try {\n if (loc) {\n this.lineNumber = line;\n\n // Work around issue under safari where we can't directly set the column value\n /* istanbul ignore next */\n if (Object.defineProperty) {\n Object.defineProperty(this, 'column', {\n value: column,\n enumerable: true\n });\n } else {\n this.column = column;\n }\n }\n } catch (nop) {\n /* Ignore if the browser is very particular */\n }\n}\n\nException.prototype = new Error();\n\nexports['default'] = Exception;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ0EsSUFBTSxVQUFVLEdBQUcsQ0FBQyxhQUFhLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxPQUFPLENBQUMsQ0FBQzs7QUFFbkcsU0FBUyxTQUFTLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRTtBQUNoQyxNQUFJLEdBQUcsR0FBRyxJQUFJLElBQUksSUFBSSxDQUFDLEdBQUc7TUFDdEIsSUFBSSxZQUFBO01BQ0osTUFBTSxZQUFBLENBQUM7QUFDWCxNQUFJ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uY2FwdHVyZVN0YWNrVHJhY2UodGhpcywgRXhjZXB0aW9uKTtcbiAgfVxuXG4gIHRyeSB7XG4gICAgaWYgKGxvYykge1xuICAgICAgdGhpcy5saW5lTnVtYmVyID0gbGluZTtcblxuICAgICAgLy8gV29yayBhcm91bmQgaXNzdWUgdW5kZXIgc2FmYXJpIHdoZXJlIHdlIGNhbid0IGRpcmVjdGx5IHNldCB0aGUgY29sdW1uIHZhbHVlXG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICAgICAgaWYgKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkge1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2NvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogY29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgIH1cbiAgICB9XG4gIH0gY2F0Y2ggKG5vcCkge1xuICAgIC8qIElnbm9yZSBpZiB0aGUgYnJvd3NlciBpcyB2ZXJ5IHBhcnRpY3VsYXIgKi9cbiAgfVxufVxuXG5FeGNlcHRpb24ucHJvdG90eXBlID0gbmV3IEVycm9yKCk7XG5cbmV4cG9ydCBkZWZhdWx0IEV4Y2VwdGlvbjtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/exception.js\n// module id = 12\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultHelpers = registerDefaultHelpers;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _helpersBlockHelperMissing = require('./helpers/block-helper-missing');\n\nvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\nvar _helpersEach = require('./helpers/each');\n\nvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\nvar _helpersHelperMissing = require('./helpers/helper-missing');\n\nvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\nvar _helpersIf = require('./helpers/if');\n\nvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\nvar _helpersLog = require('./helpers/log');\n\nvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\nvar _helpersLookup = require('./helpers/lookup');\n\nvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\nvar _helpersWith = require('./helpers/with');\n\nvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\nfunction registerDefaultHelpers(instance) {\n _helpersBlockHelperMissing2['default'](instance);\n _helpersEach2['default'](instance);\n _helpersHelperMissing2['default'](instance);\n _helpersIf2['default'](instance);\n _helpersLog2['default'](instance);\n _helpersLookup2['default'](instance);\n _helpersWith2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7eUNBQXVDLGdDQUFnQzs7OzsyQkFDOUMsZ0JBQWdCOzs7O29DQUNQLDBCQUEwQjs7Ozt5QkFDckMsY0FBYzs7OzswQkFDYixlQUFlOzs7OzZCQUNaLGtCQUFrQjs7OzsyQkFDcEIsZ0JBQWdCOzs7O0FBRWxDLFNBQVMsc0JBQXNCLENBQUMsUUFBUSxFQUFFO0FBQy9DLHlDQUEyQixRQUFRLENBQUMsQ0FBQztBQUNyQywyQkFBYSxRQUFRLENBQUMsQ0FBQztBQUN2QixvQ0FBc0IsUUFBUSxDQUFDLENBQUM7QUFDaEMseUJBQVcsUUFBUSxDQUFDLENBQUM7QUFDckIsMEJBQVksUUFBUSxDQUFDLENBQUM7QUFDdEIsNkJBQWUsUUFBUSxDQUFDLENBQUM7QUFDekIsMkJBQWEsUUFBUSxDQUFDLENBQUM7Q0FDeEIiLCJmaWxlIjoiaGVscGVycy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCByZWdpc3RlckJsb2NrSGVscGVyTWlzc2luZyBmcm9tICcuL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcnO1xuaW1wb3J0IHJlZ2lzdGVyRWFjaCBmcm9tICcuL2hlbHBlcnMvZWFjaCc7XG5pbXBvcnQgcmVnaXN0ZXJIZWxwZXJNaXNzaW5nIGZyb20gJy4vaGVscGVycy9oZWxwZXItbWlzc2luZyc7XG5pbXBvcnQgcmVnaXN0ZXJJZiBmcm9tICcuL2hlbHBlcnMvaWYnO1xuaW1wb3J0IHJlZ2lzdGVyTG9nIGZyb20gJy4vaGVscGVycy9sb2cnO1xuaW1wb3J0IHJlZ2lzdGVyTG9va3VwIGZyb20gJy4vaGVscGVycy9sb29rdXAnO1xuaW1wb3J0IHJlZ2lzdGVyV2l0aCBmcm9tICcuL2hlbHBlcnMvd2l0aCc7XG5cbmV4cG9ydCBmdW5jdGlvbiByZWdpc3RlckRlZmF1bHRIZWxwZXJzKGluc3RhbmNlKSB7XG4gIHJlZ2lzdGVyQmxvY2tIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJFYWNoKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJJZihpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyTG9nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb29rdXAoaW5zdGFuY2UpO1xuICByZWdpc3RlcldpdGgoaW5zdGFuY2UpO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers.js\n// module id = 13\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('blockHelperMissing', function (context, options) {\n var inverse = options.inverse,\n fn = options.fn;\n\n if (context === true) {\n return fn(this);\n } else if (context === false || context == null) {\n return inverse(this);\n } else if (_utils.isArray(context)) {\n if (context.length > 0) {\n if (options.ids) {\n options.ids = [options.name];\n }\n\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n if (options.data && options.ids) {\n var data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n options = { data: data };\n }\n\n return fn(context, options);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBc0QsVUFBVTs7cUJBRWpELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQ3pCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUN0QixNQUFNLElBQUksZUFBUSxPQUFPLENBQUMsRUFBRTtBQUMzQixVQUFJLE9BQU8sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO0FBQ3RCLFlBQUksT0FBTyxDQ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3B0aW9ucy5mbjtcblxuICAgIGlmIChjb250ZXh0ID09PSB0cnVlKSB7XG4gICAgICByZXR1cm4gZm4odGhpcyk7XG4gICAgfSBlbHNlIGlmIChjb250ZXh0ID09PSBmYWxzZSB8fCBjb250ZXh0ID09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgaWYgKGNvbnRleHQubGVuZ3RoID4gMCkge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCwgb3B0aW9ucy5uYW1lKTtcbiAgICAgICAgb3B0aW9ucyA9IHtkYXRhOiBkYXRhfTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js\n// module id = 14\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('each', function (context, options) {\n if (!options) {\n throw new _exception2['default']('Must pass iterator to #each');\n }\n\n var fn = options.fn,\n inverse = options.inverse,\n i = 0,\n ret = '',\n data = undefined,\n contextPath = undefined;\n\n if (options.data && options.ids) {\n contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n }\n\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n if (options.data) {\n data = _utils.createFrame(options.data);\n }\n\n function execIteration(field, index, last) {\n if (data) {\n data.key = field;\n data.index = index;\n data.first = index === 0;\n data.last = !!last;\n\n if (contextPath) {\n data.contextPath = contextPath + field;\n }\n }\n\n ret = ret + fn(context[field], {\n data: data,\n blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n });\n }\n\n if (context && typeof context === 'object') {\n if (_utils.isArray(context)) {\n for (var j = context.length; i < j; i++) {\n if (i in context) {\n execIteration(i, i, i === context.length - 1);\n }\n }\n } else {\n var priorKey = undefined;\n\n for (var key in context) {\n if (context.hasOwnProperty(key)) {\n // We're running the iterations one step out of sync so we can detect\n // the last iteration without have to scan the object twice and create\n // an itermediate keys array.\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1);\n }\n priorKey = key;\n i++;\n }\n }\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1, true);\n }\n }\n }\n\n if (i === 0) {\n ret = inverse(this);\n }\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQUErRSxVQUFVOzt5QkFDbkUsY0FBYzs7OztxQkFFckIsVUFBUyxR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gICBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBpZiAoaSBpbiBjb250ZXh0KSB7XG4gICAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvbnRleHQubGVuZ3RoIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsZXQgcHJpb3JLZXk7XG5cbiAgICAgICAgZm9yIChsZXQga2V5IGluIGNvbnRleHQpIHtcbiAgICAgICAgICBpZiAoY29udGV4dC5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgICAgICAvLyBXZSdyZSBydW5uaW5nIHRoZSBpdGVyYXRpb25zIG9uZSBzdGVwIG91dCBvZiBzeW5jIHNvIHdlIGNhbiBkZXRlY3RcbiAgICAgICAgICAgIC8vIHRoZSBsYXN0IGl0ZXJhdGlvbiB3aXRob3V0IGhhdmUgdG8gc2NhbiB0aGUgb2JqZWN0IHR3aWNlIGFuZCBjcmVhdGVcbiAgICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgICBpZiAocHJpb3JLZXkgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBwcmlvcktleSA9IGtleTtcbiAgICAgICAgICAgIGkrKztcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/each.js\n// module id = 15\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('helperMissing', function () /* [args, ]options */{\n if (arguments.length === 1) {\n // A missing field in a {{foo}} construct.\n return undefined;\n } else {\n // Someone is actually trying to call something, blow up.\n throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozt5QkFBc0IsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxlQUFlLEVBQUUsaUNBQWdDO0FBQ3ZFLFFBQUksU0FBUyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7O0FBRTFCLGFBQU8sU0FBUyxDQUFDO0tBQ2xCLE1BQU07O0FBRUwsWUFBTSwyQkFBYyxtQkFBbUIsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLENBQUM7S0FDdkY7R0FDRixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJoZWxwZXItbWlzc2luZy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBFeGNlcHRpb24gZnJvbSAnLi4vZXhjZXB0aW9uJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2hlbHBlck1pc3NpbmcnLCBmdW5jdGlvbigvKiBbYXJncywgXW9wdGlvbnMgKi8pIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgLy8gQSBtaXNzaW5nIGZpZWxkIGluIGEge3tmb299fSBjb25zdHJ1Y3QuXG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBTb21lb25lIGlzIGFjdHVhbGx5IHRyeWluZyB0byBjYWxsIHNvbWV0aGluZywgYmxvdyB1cC5cbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oJ01pc3NpbmcgaGVscGVyOiBcIicgKyBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdLm5hbWUgKyAnXCInKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/helper-missing.js\n// module id = 16\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('if', function (conditional, options) {\n if (_utils.isFunction(conditional)) {\n conditional = conditional.call(this);\n }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function (conditional, options) {\n return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.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KGNvbmRpdGlvbmFsLCBvcHRpb25zKSB7XG4gICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnNbJ2lmJ10uY2FsbCh0aGlzLCBjb25kaXRpb25hbCwge2ZuOiBvcHRpb25zLmludmVyc2UsIGludmVyc2U6IG9wdGlvbnMuZm4sIGhhc2g6IG9wdGlvbnMuaGFzaH0pO1xuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/if.js\n// module id = 17\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('log', function () /* message, options */{\n var args = [undefined],\n options = arguments[arguments.length - 1];\n for (var i = 0; i < arguments.length - 1; i++) {\n args.push(arguments[i]);\n }\n\n var level = 1;\n if (options.hash.level != null) {\n level = options.hash.level;\n } else if (options.data && options.data.level != null) {\n level = options.data.level;\n }\n args[0] = level;\n\n instance.log.apply(instance, args);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ2xCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM5QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN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BudWxsKSB7XG4gICAgICBsZXZlbCA9IG9wdGlvbnMuaGFzaC5sZXZlbDtcbiAgICB9IGVsc2UgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmRhdGEubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmRhdGEubGV2ZWw7XG4gICAgfVxuICAgIGFyZ3NbMF0gPSBsZXZlbDtcblxuICAgIGluc3RhbmNlLmxvZyguLi4gYXJncyk7XG4gIH0pO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/log.js\n// module id = 18\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('lookup', function (obj, field) {\n return obj && obj[field];\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFO0FBQ3JELFdBQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQztHQUMxQixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJsb29rdXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihpbnN0YW5jZSkge1xuICBpbnN0YW5jZS5yZWdpc3RlckhlbHBlcignbG9va3VwJywgZnVuY3Rpb24ob2JqLCBmaWVsZCkge1xuICAgIHJldHVybiBvYmogJiYgb2JqW2ZpZWxkXTtcbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/lookup.js\n// module id = 19\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('with', function (context, options) {\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n var fn = options.fn;\n\n if (!_utils.isEmpty(context)) {\n var data = options.data;\n if (options.data && options.ids) {\n data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n }\n\n return fn(context, {\n data: data,\n blockParams: _utils.blockParams([context], [data && data.contextPath])\n });\n } else {\n return options.inverse(this);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUErRSxVQUFVOztxQkFFMUUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3pELFFBQUksa0JBQVcsT0FBTyxDQUFDLEVBQUU7QUFBRSxhQUFPLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUFFOztBQUUxRCxRQUFJLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLENBQUMsZUFBUSxPQUFPLENBQUMsRUFBRTtBQUNyQixVQUFJLElBQUksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDO0FBQ3hCLFVBQUksT0FBTyxDQUFDLElBQUksSUFBSSxPQUFPLENBQUMsR0FBRyxFQUFFO0FBQy9CLFlBQUksR0FBRyxtQkFBWS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EgPSBjcmVhdGVGcmFtZShvcHRpb25zLmRhdGEpO1xuICAgICAgICBkYXRhLmNvbnRleHRQYXRoID0gYXBwZW5kQ29udGV4dFBhdGgob3B0aW9ucy5kYXRhLmNvbnRleHRQYXRoLCBvcHRpb25zLmlkc1swXSk7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBmbihjb250ZXh0LCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dF0sIFtkYXRhICYmIGRhdGEuY29udGV4dFBhdGhdKVxuICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmludmVyc2UodGhpcyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/with.js\n// module id = 20\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultDecorators = registerDefaultDecorators;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _decoratorsInline = require('./decorators/inline');\n\nvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\nfunction registerDefaultDecorators(instance) {\n _decoratorsInline2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/decorators.js\n// module id = 21\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerDecorator('inline', function (fn, props, container, options) {\n var ret = fn;\n if (!props.partials) {\n props.partials = {};\n ret = function (context, options) {\n // Create a new partials stack frame prior to exec.\n var original = container.partials;\n container.partials = _utils.extend({}, original, props.partials);\n var ret = fn(context, options);\n container.partials = original;\n return ret;\n };\n }\n\n props.partials[options.args[0]] = options.fn;\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXFCLFVBQVU7O3FCQUVoQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9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ucGFydGlhbHMgPSBleHRlbmQoe30sIG9yaWdpbmFsLCBwcm9wcy5wYXJ0aWFscyk7XG4gICAgICAgIGxldCByZXQgPSBmbihjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgICAgY29udGFpbmVyLnBhcnRpYWxzID0gb3JpZ2luYWw7XG4gICAgICAgIHJldHVybiByZXQ7XG4gICAgICB9O1xuICAgIH1cblxuICAgIHByb3BzLnBhcnRpYWxzW29wdGlvbnMuYXJnc1swXV0gPSBvcHRpb25zLmZuO1xuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/decorators/inline.js\n// module id = 22\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('./utils');\n\nvar logger = {\n methodMap: ['debug', 'info', 'warn', 'error'],\n level: 'info',\n\n // Maps a given level value to the `methodMap` indexes above.\n lookupLevel: function lookupLevel(level) {\n if (typeof level === 'string') {\n var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n if (levelMap >= 0) {\n level = levelMap;\n } else {\n level = parseInt(level, 10);\n }\n }\n\n return level;\n },\n\n // Can be overridden in the host environment\n log: function log(level) {\n level = logger.lookupLevel(level);\n\n if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n var method = logger.methodMap[level];\n if (!console[method]) {\n // eslint-disable-line no-console\n method = 'log';\n }\n\n for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n message[_key - 1] = arguments[_key];\n }\n\n console[method].apply(console, message); // eslint-disable-line no-console\n }\n }\n};\n\nexports['default'] = logger;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBp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AgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIGlmICghY29uc29sZVttZXRob2RdKSB7ICAgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgICAgIG1ldGhvZCA9ICdsb2cnO1xuICAgICAgfVxuICAgICAgY29uc29sZVttZXRob2RdKC4uLm1lc3NhZ2UpOyAgICAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGVcbiAgICB9XG4gIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IGxvZ2dlcjtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/logger.js\n// module id = 23\n// module chunks = 0","// Build out our basic SafeString type\n'use strict';\n\nexports.__esModule = true;\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n return '' + this.string;\n};\n\nexports['default'] = SafeString;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/safe-string.js\n// module id = 24\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.checkRevision = checkRevision;\nexports.template = template;\nexports.wrapProgram = wrapProgram;\nexports.resolvePartial = resolvePartial;\nexports.invokePartial = invokePartial;\nexports.noop = noop;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _utils = require('./utils');\n\nvar Utils = _interopRequireWildcard(_utils);\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _base = require('./base');\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = _base.COMPILER_REVISION;\n\n if (compilerRevision !== currentRevision) {\n if (compilerRevision < currentRevision) {\n var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n }\n }\n}\n\nfunction template(templateSpec, env) {\n /* istanbul ignore next */\n if (!env) {\n throw new _exception2['default']('No environment passed to template');\n }\n if (!templateSpec || !templateSpec.main) {\n throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n }\n\n templateSpec.main.decorator = templateSpec.main_d;\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as psuedo-supported APIs.\n env.VM.checkRevision(templateSpec.compiler);\n\n function invokePartialWrapper(partial, context, options) {\n if (options.hash) {\n context = Utils.extend({}, context, options.hash);\n if (options.ids) {\n options.ids[0] = true;\n }\n }\n\n partial = env.VM.resolvePartial.call(this, partial, context, options);\n var result = env.VM.invokePartial.call(this, partial, context, options);\n\n if (result == null && env.compile) {\n options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n result = options.partials[options.name](context, options);\n }\n if (result != null) {\n if (options.indent) {\n var lines = result.split('\\n');\n for (var i = 0, l = lines.length; i < l; i++) {\n if (!lines[i] && i + 1 === l) {\n break;\n }\n\n lines[i] = options.indent + lines[i];\n }\n result = lines.join('\\n');\n }\n return result;\n } else {\n throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n }\n }\n\n // Just add water\n var container = {\n strict: function strict(obj, name) {\n if (!(name in obj)) {\n throw new _exception2['default']('\"' + name + '\" not defined in ' + obj);\n }\n return obj[name];\n },\n lookup: function lookup(depths, name) {\n var len = depths.length;\n for (var i = 0; i < len; i++) {\n if (depths[i] && depths[i][name] != null) {\n return depths[i][name];\n }\n }\n },\n lambda: function lambda(current, context) {\n return typeof current === 'function' ? current.call(context) : current;\n },\n\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n\n fn: function fn(i) {\n var ret = templateSpec[i];\n ret.decorator = templateSpec[i + '_d'];\n return ret;\n },\n\n programs: [],\n program: function program(i, data, declaredBlockParams, blockParams, depths) {\n var programWrapper = this.programs[i],\n fn = this.fn(i);\n if (data || depths || blockParams || declaredBlockParams) {\n programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n }\n return programWrapper;\n },\n\n data: function data(value, depth) {\n while (value && depth--) {\n value = value._parent;\n }\n return value;\n },\n merge: function merge(param, common) {\n var obj = param || common;\n\n if (param && common && param !== common) {\n obj = Utils.extend({}, common, param);\n }\n\n return obj;\n },\n // An empty object to use as replacement for null-contexts\n nullContext: Object.seal({}),\n\n noop: env.VM.noop,\n compilerInfo: templateSpec.compiler\n };\n\n function ret(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var data = options.data;\n\n ret._setup(options);\n if (!options.partial && templateSpec.useData) {\n data = initData(context, data);\n }\n var depths = undefined,\n blockParams = templateSpec.useBlockParams ? [] : undefined;\n if (templateSpec.useDepths) {\n if (options.depths) {\n depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n } else {\n depths = [context];\n }\n }\n\n function main(context /*, options*/) {\n return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n }\n main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n return main(context, options);\n }\n ret.isTop = true;\n\n ret._setup = function (options) {\n if (!options.partial) {\n container.helpers = container.merge(options.helpers, env.helpers);\n\n if (templateSpec.usePartial) {\n container.partials = container.merge(options.partials, env.partials);\n }\n if (templateSpec.usePartial || templateSpec.useDecorators) {\n container.decorators = container.merge(options.decorators, env.decorators);\n }\n } else {\n container.helpers = options.helpers;\n container.partials = options.partials;\n container.decorators = options.decorators;\n }\n };\n\n ret._child = function (i, data, blockParams, depths) {\n if (templateSpec.useBlockParams && !blockParams) {\n throw new _exception2['default']('must pass block params');\n }\n if (templateSpec.useDepths && !depths) {\n throw new _exception2['default']('must pass parent depths');\n }\n\n return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n };\n return ret;\n}\n\nfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n function prog(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var currentDepths = depths;\n if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n currentDepths = [context].concat(depths);\n }\n\n return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n }\n\n prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\n prog.program = i;\n prog.depth = depths ? depths.length : 0;\n prog.blockParams = declaredBlockParams || 0;\n return prog;\n}\n\nfunction resolvePartial(partial, context, options) {\n if (!partial) {\n if (options.name === '@partial-block') {\n partial = options.data['partial-block'];\n } else {\n partial = options.partials[options.name];\n }\n } else if (!partial.call && !options.name) {\n // This is a dynamic partial that returned a string\n options.name = partial;\n partial = options.partials[partial];\n }\n return partial;\n}\n\nfunction invokePartial(partial, context, options) {\n // Use the current closure context to save the partial-block if this partial\n var currentPartialBlock = options.data && options.data['partial-block'];\n options.partial = true;\n if (options.ids) {\n options.data.contextPath = options.ids[0] || options.data.contextPath;\n }\n\n var partialBlock = undefined;\n if (options.fn && options.fn !== noop) {\n (function () {\n options.data = _base.createFrame(options.data);\n // Wrapper function to get access to currentPartialBlock from the closure\n var fn = options.fn;\n partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n // Restore the partial-block from the closure for the execution of the block\n // i.e. the part inside the block of the partial call.\n options.data = _base.createFrame(options.data);\n options.data['partial-block'] = currentPartialBlock;\n return fn(context, options);\n };\n if (fn.partials) {\n options.partials = Utils.extend({}, options.partials, fn.partials);\n }\n })();\n }\n\n if (partial === undefined && partialBlock) {\n partial = partialBlock;\n }\n\n if (partial === undefined) {\n throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n } else if (partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nfunction noop() {\n return '';\n}\n\nfunction initData(context, data) {\n if (!data || !('root' in data)) {\n data = data ? _base.createFrame(data) : {};\n data.root = context;\n }\n return data;\n}\n\nfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n if (fn.decorator) {\n var props = {};\n prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n Utils.extend(prog, props);\n }\n return prog;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBQzhCLFFBQVE7O0FBRWxFLFNBQVMsYUFBYSxDQUFDLFlBQVksRUFBRTtBQUMxQyxNQUFNLGdCQUFnQixHQUFHLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztNQUN2RCxlQUFlLDBCQUFvQixDQUFDOztBQUUxQyxNQUFJLGdCQUFnQixLQUFLLGVBQWUsRUFBRTtBQUN4QyxRQUFJLGdCQUFnQixHQUFHLGVBQWUsRUFBRTtBQUN0QyxVQUFNLGVBQWUsR0FBRyx1QkFBaUIsZUFBZSxDQUFDO1VBQ25ELGdCQUFnQixHQUFHLHVCQUFpQixnQkFBZ0IsQ0FBQyxDQUFDO0FBQzVELFlBQU0sMkJBQWMseUZBQXlGLEdBQ3ZHLHFEQUFxRCxHQUFHLGVBQWUsR0FBRyxtREFBbUQsR0FBRyxnQkFBZ0IsR0FBRyxJQUFJLENBQUMsQ0FBQztLQUNoSyxNQUFNOztBQUVMLFlBQU0sMkJBQWMsd0ZBQXdGLEd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GlvbignVGhlIHBhcnRpYWwgJyArIG9wdGlvbnMubmFtZSArICcgY291bGQgbm90IGJlIGZvdW5kJyk7XG4gIH0gZWxzZSBpZiAocGFydGlhbCBpbnN0YW5jZW9mIEZ1bmN0aW9uKSB7XG4gICAgcmV0dXJuIHBhcnRpYWwoY29udGV4dCwgb3B0aW9ucyk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIG5vb3AoKSB7IHJldHVybiAnJzsgfVxuXG5mdW5jdGlvbiBpbml0RGF0YShjb250ZXh0LCBkYXRhKSB7XG4gIGlmICghZGF0YSB8fCAhKCdyb290JyBpbiBkYXRhKSkge1xuICAgIGRhdGEgPSBkYXRhID8gY3JlYXRlRnJhbWUoZGF0YSkgOiB7fTtcbiAgICBkYXRhLnJvb3QgPSBjb250ZXh0O1xuICB9XG4gIHJldHVybiBkYXRhO1xufVxuXG5mdW5jdGlvbiBleGVjdXRlRGVjb3JhdG9ycyhmbiwgcHJvZywgY29udGFpbmVyLCBkZXB0aHMsIGRhdGEsIGJsb2NrUGFyYW1zKSB7XG4gIGlmIChmbi5kZWNvcmF0b3IpIHtcbiAgICBsZXQgcHJvcHMgPSB7fTtcbiAgICBwcm9nID0gZm4uZGVjb3JhdG9yKHByb2csIHByb3BzLCBjb250YWluZXIsIGRlcHRocyAmJiBkZXB0aHNbMF0sIGRhdGEsIGJsb2NrUGFyYW1zLCBkZXB0aHMpO1xuICAgIFV0aWxzLmV4dGVuZChwcm9nLCBwcm9wcyk7XG4gIH1cbiAgcmV0dXJuIHByb2c7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/runtime.js\n// module id = 25\n// module chunks = 0","/* global window */\n'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (Handlebars) {\n /* istanbul ignore next */\n var root = typeof global !== 'undefined' ? global : window,\n $Handlebars = root.Handlebars;\n /* istanbul ignore next */\n Handlebars.noConflict = function () {\n if (root.Handlebars === Handlebars) {\n root.Handlebars = $Handlebars;\n }\n return Handlebars;\n };\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O3FCQUNlLFVBQVMsVUFBVSxFQUFFOztBQUVsQyxNQUFJLElBQUksR0FBRyxPQUFPLE1BQU0sS0FBSyxXQUFXLEdBQUcsTUFBTSxHQUFHLE1BQU07TUFDdEQsV0FBVyxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUM7O0FBRWxDLFlBQVUsQ0FBQyxVQUFVLEdBQUcsWUFBVztBQUNqQyxRQUFJLElBQUksQ0FBQyxVQUFVLEtBQUssVUFBVSxFQUFFO0FBQ2xDLFVBQUksQ0FBQyxVQUFVLEdBQUcsV0FBVyxDQUFDO0tBQy9CO0FBQ0QsV0FBTyxVQUFVLENBQUM7R0FDbkIsQ0FBQztDQUNIIiwiZmlsZSI6Im5vLWNvbmZsaWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFsIHdpbmRvdyAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oSGFuZGxlYmFycykge1xuICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICBsZXQgcm9vdCA9IHR5cGVvZiBnbG9iYWwgIT09ICd1bmRlZmluZWQnID8gZ2xvYmFsIDogd2luZG93LFxuICAgICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/no-conflict.js\n// module id = 26\n// module chunks = 0","/**\n * @fileoverview datetime utility module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date,\n dw = require('../common/dw');\nvar util = require('tui-code-snippet');\n/* eslint-disable no-useless-escape */\nvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\nvar datetime, tokenFunc;\n\nvar memo = {\n millisecondsTo: {},\n millisecondsFrom: {}\n};\n\ntokenFunc = {\n /**\n * @param {TZDate} date date object.\n * @returns {string} YYYYMMDD\n */\n 'YYYYMMDD': function(date) {\n return [\n date.getFullYear(),\n datetime.leadingZero(date.getMonth() + 1, 2),\n datetime.leadingZero(date.getDate(), 2)\n ].join('');\n },\n /**\n * @param {TZDate} date date object\n * @returns {string} four digit year number\n */\n 'YYYY': function(date) {\n return String(date.getFullYear());\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit month number\n */\n 'MM': function(date) {\n return datetime.leadingZero(date.getMonth() + 1, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit date number\n */\n 'DD': function(date) {\n return datetime.leadingZero(date.getDate(), 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} HH:mm\n */\n 'HH:mm': function(date) {\n var hour = date.getHours(),\n minutes = date.getMinutes();\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n }\n};\n\ndatetime = {\n /**\n * The number of milliseconds one day.\n * @type {number}\n */\n MILLISECONDS_PER_DAY: 86400000,\n\n /**\n * The number of milliseconds one hour.\n * @type {number}\n */\n MILLISECONDS_PER_HOUR: 3600000,\n\n /**\n * The number of milliseconds one minutes.\n * @type {number}\n */\n MILLISECONDS_PER_MINUTES: 60000,\n\n /**\n * convert milliseconds\n * @param {string} type - type of value.\n * @param {number} value - value to convert.\n * @param {function} iteratee - iteratee function to use reduce.\n * @returns {number} converted value.\n */\n _convMilliseconds: function(type, value, iteratee) {\n var conv = [24, 60, 60, 1000],\n index = {\n day: 0,\n hour: 1,\n minutes: 2,\n seconds: 3\n };\n\n if (!(type in index) || global.isNaN(value)) {\n return false;\n }\n\n return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n },\n\n /**\n * Convert milliseconds value to other type\n * @param {type} type convert to type want to. support \"day\", \"hour\",\n * \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsTo: function(type, value) {\n var cache = memo.millisecondsTo,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m / v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert value to milliseconds\n * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsFrom: function(type, value) {\n var cache = memo.millisecondsFrom,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m * v;\n });\n\n return cache[key];\n },\n\n /**\n * Make date array from supplied paramters.\n * @param {TZDate} start Start date.\n * @param {TZDate} end End date.\n * @param {number} step The number of milliseconds to use increment.\n * @returns {array} Date array.\n */\n range: function(start, end, step) {\n var startTime = start.getTime();\n var endTime = end.getTime();\n var cursor = startTime;\n var date = dw(startTime);\n var result = [];\n\n while (cursor <= endTime && endTime > date.d.getTime()) {\n result.push(new TZDate(date.d));\n cursor = cursor + step;\n date.addDate(1);\n }\n\n return result;\n },\n\n /**\n * Clone supplied date.\n * @param {TZDate} date date object to clone.\n * @returns {TZDate} Cloned date object\n */\n clone: function(date) {\n return new TZDate(date.getTime());\n },\n\n /**\n * Compare two dates.\n *\n * when first date is latest then seconds then return -1.\n *\n * return +1 reverse, and return 0 is same.\n * @param {TZDate} d1 Date object to compare.\n * @param {TZDate} d2 Date object to compare.\n * @returns {number} result of compare\n */\n compare: function(d1, d2) {\n var _d1 = d1.getTime(),\n _d2 = d2.getTime();\n\n if (_d1 < _d2) {\n return -1;\n }\n if (_d1 > _d2) {\n return 1;\n }\n\n return 0;\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month?\n */\n isSameMonth: function(d1, d2) {\n return (d1.getFullYear() === d2.getFullYear() &&\n d1.getMonth() === d2.getMonth());\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month, date?\n */\n isSameDate: function(d1, d2) {\n var sameMonth = datetime.isSameMonth(d1, d2);\n\n return sameMonth && (d1.getDate() === d2.getDate());\n },\n\n /**\n * Check supplied parameter is valid date object.\n * @param {*} d Object to validate.\n * @returns {boolean} return true when parameter is valid date object.\n */\n isValid: function(d) {\n if (d instanceof TZDate) {\n return !window.isNaN(d.getTime());\n }\n\n return false;\n },\n\n /**\n * convert non local date to UTC date.\n * @param {TZDate} d Date to convert UTC.\n * @returns {TZDate} The UTC Date.\n */\n toUTC: function(d) {\n var l = d.getTime(),\n offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\n return new TZDate(l + offset);\n },\n\n /**\n * pad left zero characters.\n * @param {number} number number value to pad zero.\n * @param {number} length pad length to want.\n * @returns {string} padded string.\n */\n leadingZero: function(number, length) {\n var zero = '',\n i = 0;\n\n if (String(number).length > length) {\n return String(number);\n }\n\n for (; i < (length - 1); i += 1) {\n zero += '0';\n }\n\n return (zero + number).slice(length * -1);\n },\n\n /**\n * Convert date string to date object.\n *\n * Only listed below formats avaliable.\n *\n * - YYYYMMDD\n * - YYYY/MM/DD\n * - YYYY-MM-DD\n * - YYYY/MM/DD HH:mm:SS\n * - YYYY-MM-DD HH:mm:SS\n *\n * @param {string} str Formatted string.\n * @param {number} [fixMonth=-1] - number for fix month calculating.\n * @returns {(Date|boolean)} Converted Date object. when supplied str is not available then return false.\n */\n parse: function(str, fixMonth) {\n var separator,\n matches = str.match(dateFormatRx),\n ymd,\n hms;\n\n if (util.isUndefined(fixMonth)) {\n fixMonth = -1;\n }\n\n if (!matches) {\n return false;\n }\n\n if (str.length > 8) {\n // YYYY/MM/DD\n // YYYY-MM-DD\n // YYYY/MM/DD HH:mm:SS\n // YYYY-MM-DD HH:mm:SS\n separator = ~str.indexOf('/') ? '/' : '-';\n matches = matches.splice(1);\n\n ymd = matches[0].split(separator);\n hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n } else {\n // YYYYMMDD\n matches = matches[0];\n ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n hms = [0, 0, 0];\n }\n\n return new TZDate(\n Number(ymd[0]),\n Number(ymd[1]) + fixMonth,\n Number(ymd[2]),\n Number(hms[0]),\n Number(hms[1]),\n Number(hms[2])\n );\n },\n\n /**\n * Return date object from Date.\n * @param {TZDate} date date\n * @returns {object} Date object.\n */\n raw: function(date) {\n return {\n y: date.getFullYear(),\n M: date.getMonth(),\n d: date.getDate(),\n h: date.getHours(),\n m: date.getMinutes(),\n s: date.getSeconds(),\n ms: date.getMilliseconds()\n };\n },\n\n /**\n * Return 00:00:00 supplied date.\n * @param {TZDate} date date.\n * @returns {TZDate} start date.\n */\n start: function(date) {\n var d = new TZDate(date.getTime());\n d.setHours(0, 0, 0, 0);\n\n return d;\n },\n\n /**\n * Return 23:59:59 supplied date.\n * @param {TZDate} date date.\n * @returns {TZDate} end date.\n */\n end: function(date) {\n var d = new TZDate(date.getTime());\n d.setHours(23, 59, 59, 0);\n\n return d;\n },\n\n /**\n * Return formatted string as basis of supplied string.\n *\n * Supported Token Lists.\n *\n * - YYYY => 1988\n * - MM => 01 ~ 12\n * - DD => 01 ~ 31\n * - YYYYMMDD => 19880925\n * @param {TZDate} date String want to formatted.\n * @param {string} format format str.\n * @returns {string} Formatted date string.\n */\n format: function(date, format) {\n var result = format;\n util.forEachOwnProperties(tokenFunc, function(converter, token) {\n result = result.replace(token, converter(date));\n });\n\n return result;\n },\n\n /**\n * Get start date of specific month\n * @param {TZDate} date - date to get start date\n * @returns {TZDate} start date of supplied month\n */\n startDateOfMonth: function(date) {\n var startDate = new TZDate(Number(date));\n\n startDate.setDate(1);\n startDate.setHours(0, 0, 0, 0);\n\n return startDate;\n },\n\n /**\n * Get end date of specific month\n * @param {TZDate} date - date to get end date\n * @returns {TZDate} end date of supplied month\n */\n endDateOfMonth: function(date) {\n var endDate = datetime.startDateOfMonth(date);\n\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setDate(endDate.getDate() - 1);\n endDate.setHours(23, 59, 59);\n\n return endDate;\n },\n\n /**\n * Return 2-dimensional array month calendar\n *\n * dates that different month with given date are negative values\n * @param {TZDate} month - date want to calculate month calendar\n * @param {object} options - options\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n * @param {number} options.visibleWeeksCount visible weeks count\n * @param {boolean} options.workweek - only show work week\n * @param {function} [iteratee] - iteratee for customizing calendar object\n * @returns {Array.} calendar 2d array\n */\n arr2dCalendar: function(month, options, iteratee) {\n var weekArr,\n start, end,\n startIndex, endIndex,\n totalDate, afterDates,\n cursor, week,\n calendar = [],\n startDayOfWeek = options.startDayOfWeek,\n isAlways6Week = options.isAlways6Week,\n visibleWeeksCount = options.visibleWeeksCount,\n workweek = options.workweek;\n\n if (visibleWeeksCount) {\n start = new TZDate(month);\n end = dw(new TZDate(month));\n end.addDate(7 * (visibleWeeksCount - 1));\n end = end.d;\n } else {\n start = datetime.startDateOfMonth(month);\n end = datetime.endDateOfMonth(month);\n }\n\n // create day number array by startDayOfWeek number\n // 4 -> [4, 5, 6, 0, 1, 2, 3]\n // 2 -> [2, 3, 4, 5, 6, 0, 1]\n weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n startIndex = util.inArray(start.getDay(), weekArr);\n endIndex = util.inArray(end.getDay(), weekArr);\n // free dates after last date of this month\n afterDates = 7 - (endIndex + 1);\n\n if (visibleWeeksCount) {\n totalDate = 7 * visibleWeeksCount;\n } else {\n totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n }\n cursor = new TZDate(new TZDate(start).setDate(start.getDate() - startIndex));\n // iteratee all dates to render\n util.forEachArray(util.range(totalDate), function(i) {\n var date;\n\n if (!(i % 7)) {\n // group each date by week\n week = calendar[i / 7] = [];\n }\n\n date = new TZDate(cursor);\n date = iteratee ? iteratee(date) : date;\n if (!workweek || !datetime.isWeekend(date.getDay())) {\n week.push(date);\n }\n\n // add date\n cursor.setDate(cursor.getDate() + 1);\n });\n\n return calendar;\n },\n\n /**\n * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n *\n * @param {number} days - day length of week\n * @param {boolean} narrowWeekend - narrow weekend\n * @param {number} startDayOfWeek - start day of week\n * @param {boolean} workweek - only show work week\n * @returns {Array} day, left, width\n */\n getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n var limitDaysToApplyNarrowWeekend = 5;\n var uniformWidth = 100 / days;\n var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n var accumulatedWidth = 0;\n var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\n if (workweek) {\n dates = util.filter(dates, function(day) {\n return !datetime.isWeekend(day);\n });\n }\n\n narrowWeekend = workweek ? false : narrowWeekend;\n\n return util.map(dates, function(day) {\n var model;\n var width = narrowWeekend ? wideWidth : uniformWidth;\n if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n width = wideWidth / 2;\n }\n\n model = {\n day: day,\n width: width,\n left: accumulatedWidth\n };\n\n accumulatedWidth += width;\n\n return model;\n });\n },\n\n /**\n * Get that day is weekend\n * @param {number} day number\n * @returns {boolean} true if weekend or false\n */\n isWeekend: function(day) {\n return day === 0 || day === 6;\n }\n};\n\nmodule.exports = datetime;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/datetime.js\n// module id = 27\n// module chunks = 0","/**\n * @fileoverview timezone\n * @author NHN Ent. FE Development Lab \n */\n'use strict';\n\nvar MIN_TO_MS = 60 * 1000;\nvar customOffsetMs = getTimezoneOffset();\nvar timezoneOffsetCallback = null;\n\nvar getterMethods = [\n 'getDate',\n 'getDay',\n 'getFullYear',\n 'getHours',\n 'getMilliseconds',\n 'getMinutes',\n 'getMonth',\n 'getSeconds'\n];\n\nvar setterMethods = [\n 'setDate',\n 'setFullYear',\n 'setHours',\n 'setMilliseconds',\n 'setMinutes',\n 'setMonth',\n 'setSeconds'\n];\n\n/**\n * Get the timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n */\nfunction getTimezoneOffset(timestamp) {\n timestamp = timestamp || Date.now();\n\n return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n}\n\n/**\n * Get the custome timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n */\nfunction getCustomTimezoneOffset(timestamp) {\n if (timezoneOffsetCallback) {\n return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n }\n\n return customOffsetMs;\n}\n\n/**\n * Create a Date instance with multiple arguments\n * @param {Array} args - arguments\n * @returns {Date}\n */\nfunction createDateWithMultipleArgs(args) {\n var utc = Date.UTC.apply(null, args);\n\n return new Date(utc + getTimezoneOffset(utc));\n}\n\n/**\n * Create a Date instance with argument\n * @param {Date|TZDate|string|number} arg - arguments\n * @returns {Date}\n */\nfunction createDateWithSingleArg(arg) {\n var time;\n\n if (arg instanceof Date || arg instanceof TZDate) {\n time = arg.getTime();\n } else if ((typeof arg) === 'string') {\n time = Date.parse(arg);\n } else if ((typeof arg) === 'number') {\n time = arg;\n } else if (arg === null) {\n time = 0;\n } else {\n throw new Error('Invalid Type');\n }\n\n return new Date(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n}\n\n/**\n * Date Class\n */\nfunction TZDate() {\n var date;\n\n switch (arguments.length) {\n case 0:\n date = createDateWithSingleArg(Date.now());\n break;\n case 1:\n date = createDateWithSingleArg(arguments[0]);\n break;\n default:\n date = createDateWithMultipleArgs(arguments);\n }\n\n this._date = date;\n}\n\nTZDate.prototype.setTime = function(time) {\n return this._date.setTime(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n};\n\nTZDate.prototype.getTime = function() {\n var time = this._date.getTime();\n\n return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n};\n\nTZDate.prototype.valueOf = function() {\n return this.getTime();\n};\n\ngetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n return this._date[methodName].apply(this._date, arguments);\n };\n});\n\nsetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n this._date[methodName].apply(this._date, arguments);\n\n return this.getTime();\n };\n});\n\nmodule.exports = {\n Date: TZDate,\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffset: function(offset) {\n customOffsetMs = offset * MIN_TO_MS;\n },\n\n /**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n */\n setOffsetCallback: function(callback) {\n timezoneOffsetCallback = callback;\n },\n\n /**\n * (Use this method only for testing)\n * Reset system timezone and custom timezone\n */\n restoreOffset: function() {\n customOffsetMs = getTimezoneOffset();\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/timezone.js\n// module id = 28\n// module chunks = 0","/**\n * @fileoverview Wrapper module for easy calc date object\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\n\n/**\n * @constructor\n * @param {Date} date to wrapping DW class\n */\nfunction DW(date) {\n if (!(this instanceof DW)) {\n return new DW(date);\n }\n\n if (!(date instanceof TZDate)) {\n date = new TZDate(date);\n }\n\n /**\n * @type {Date}\n */\n this.d = date;\n}\n\n/**\n * Return d property when supplied object is DW. else return itself\n * @param {*} obj - object\n * @returns {Date} date\n */\nDW.prototype.safe = function(obj) {\n if (obj.constructor === DW) {\n return obj.d;\n }\n\n return obj;\n};\n\n/**\n * Clone DW object\n * @returns {DW} cloned dwrap object\n */\nDW.prototype.clone = function() {\n return new DW(new TZDate(Number(this.d)));\n};\n\n/**\n * Add days\n * @param {number} day - day to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addDate = function(day) {\n this.d.setDate(this.d.getDate() + day);\n\n return this;\n};\n\n/**\n * Add month. If month value is changed, date set to 1.\n * @param {number} m - month to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addMonth = function(m) {\n var prevMonth = this.d.getMonth();\n var prevYear = this.d.getFullYear();\n this.d.setMonth(prevMonth + m);\n\n // move to first day on the month because plus 1 month on '2017-01-31' means '2017-03-01'\n // Don't do it on different year(Because december + 1month is ok)\n if (this.d.getFullYear() === prevYear && this.d.getMonth() !== prevMonth) {\n this.d.setMonth(prevMonth + m, 1);\n }\n\n return this;\n};\n\n/**\n * Set hour, minutes, seconds, milliseconds\n * @param {number} h - hours\n * @param {number} m - minutes\n * @param {number} s - seconds\n * @param {number} ms - milliseconds\n * @returns {DW} wrapper object\n */\nDW.prototype.setHours = function(h, m, s, ms) {\n this.d.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * Whether date is between supplied dates?\n * @param {Date|DW} d1 - from date\n * @param {Date|DW} d2 - to date\n * @returns {boolean} is between?\n */\nDW.prototype.isBetween = function(d1, d2) {\n var safe = this.safe;\n\n return safe(d1) <= this.d && this.d <= safe(d2);\n};\n\nmodule.exports = DW;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/dw.js\n// module id = 29\n// module chunks = 0","/**\n * @fileoverview common/general utilities.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar aps = Array.prototype.slice;\n\nvar domutil = require('../common/domutil'),\n Collection = require('../common/collection');\n\n/**\n * Default schedule id getter for collection\n * @param {Schedule} schedule - schedule instance\n * @returns {string} schedule id\n */\nfunction scheduleIDGetter(schedule) {\n return schedule.cid();\n}\n\nmodule.exports = {\n /**\n * @param {...*} initItems - items to add newly created collection.\n * @returns {Collection} new collection for schedule models.\n */\n createScheduleCollection: function(initItems) { // eslint-disable-line\n var collection = new Collection(scheduleIDGetter);\n\n if (arguments.length) {\n collection.add.apply(collection, arguments);\n }\n\n return collection;\n },\n\n /**\n * Get ratio value.\n *\n * a : b = y : X;\n *\n * =\n *\n * X = (b * y) / a;\n * @param {number} a - a\n * @param {number} b - b\n * @param {number} y - y\n * @returns {number} ratio value\n */\n ratio: function(a, b, y) {\n // a : b = y : x;\n return (b * y) / a;\n },\n\n /**\n * Find nearest value from supplied params.\n * @param {number} value - value to find.\n * @param {array} nearest - nearest array.\n * @returns {number} nearest value\n */\n nearest: function(value, nearest) {\n var diff = util.map(nearest, function(v) {\n return Math.abs(value - v);\n }),\n nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\n return nearest[nearestIndex];\n },\n\n /**\n * pick value from object then return utility object to treat it.\n * @param {object} obj - object to search supplied path property.\n * @param {...string} paths - rest parameter that string value to search property in object.\n * @returns {object} pick object.\n */\n pick2: function(obj, paths) { // eslint-disable-line\n var result = util.pick.apply(null, arguments),\n pick;\n\n pick = {\n /**\n * @returns {*} picked value.\n */\n val: function() {\n return result;\n },\n\n /**\n * invoke supplied function in picked object.\n *\n * the callback context is set picked object.\n * @param {string|function} fn - function to invoke in picked object.\n * @returns {*} result of invoke.\n */\n then: function(fn) {\n var args;\n\n if (!result) {\n return undefined; //eslint-disable-line\n }\n\n args = aps.call(arguments, 1);\n\n if (util.isString(fn)) {\n return (util.pick(result, fn) || function() {}).apply(result, args);\n }\n\n return fn.call(result, result);\n }\n };\n\n return pick;\n },\n\n /**\n * Mixin method.\n *\n * (extend methods except property name 'mixin')\n * @param {object} from - mixin object.\n * @param {object} to - object to mixin.\n */\n mixin: function(from, to) {\n util.extend(to.prototype, from);\n },\n\n /**\n * Limit supplied value base on `minArr`, `maxArr`\n * @param {number} value - value\n * @param {array} minArr - min\n * @param {array} maxArr - max\n * @returns {number} limited value\n */\n limit: function(value, minArr, maxArr) {\n var v = Math.max.apply(null, [value].concat(minArr));\n v = Math.min.apply(null, [v].concat(maxArr));\n\n return v;\n },\n\n stripTags: function(str) {\n return str.replace(/<([^>]+)>/ig, '');\n },\n\n /**\n * Get first value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} first value in 2d array\n */\n firstIn2dArray: function(arr2d) {\n return util.pick(arr2d, '0', '0');\n },\n\n /**\n * Get last value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} last value in 2d array\n */\n lastIn2dArray: function(arr2d) {\n var lastRow = arr2d.length - 1,\n lastCol = arr2d[lastRow].length - 1;\n\n return util.pick(arr2d, lastRow, lastCol);\n },\n\n /**\n * Set 'title' attribute for all element that has exceeded content in\n * container\n * @param {string} selector - CSS selector {@see domutil#find}\n * @param {HTMLElement} container - container element\n */\n setAutoEllipsis: function(selector, container) {\n util.forEach(domutil.find(selector, container, true), function(el) {\n if (el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/common.js\n// module id = 30\n// module chunks = 0","/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n/**\n * @fileoverview Utility modules for manipulate DOM elements.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar domevent = require('./domevent');\nvar Collection = require('./collection');\nvar util = require('tui-code-snippet');\n\nvar posKey = '_pos',\n domutil;\n\nvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\n/**\n * Trim leading, trailing whitespace\n * @param {string} str - string to trim\n * @returns {string} trimmed string\n */\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n\ndomutil = {\n /**\n * Create DOM element and return it.\n * @param {string} tagName Tag name to append.\n * @param {HTMLElement} [container] HTML element will be parent to created element.\n * if not supplied, will use **document.body**\n * @param {string} [className] Design class names to appling created element.\n * @returns {HTMLElement} HTML element created.\n */\n appendHTMLElement: function(tagName, container, className) {\n var el;\n\n className = className || '';\n\n el = document.createElement(tagName);\n el.className = className;\n\n if (container) {\n container.appendChild(el);\n } else {\n document.body.appendChild(el);\n }\n\n return el;\n },\n\n /**\n * Remove element from parent node.\n * @param {HTMLElement} el - element to remove.\n */\n remove: function(el) {\n if (el && el.parentNode) {\n el.parentNode.removeChild(el);\n }\n },\n\n /**\n * Get element by id\n * @param {string} id element id attribute\n * @returns {HTMLElement} element\n */\n get: function(id) {\n return document.getElementById(id);\n },\n\n /**\n * Check supplied element is matched selector.\n * @param {HTMLElement} el - element to check\n * @param {string} selector - selector string to check\n * @returns {boolean} match?\n */\n _matcher: function(el, selector) {\n var cssClassSelector = /^\\./,\n idSelector = /^#/;\n\n if (cssClassSelector.test(selector)) {\n return domutil.hasClass(el, selector.replace('.', ''));\n }\n if (idSelector.test(selector)) {\n return el.id === selector.replace('#', '');\n }\n\n return el.nodeName.toLowerCase() === selector.toLowerCase();\n },\n\n /**\n * Find DOM element by specific selectors.\n * below three selector only supported.\n *\n * 1. css selector\n * 2. id selector\n * 3. nodeName selector\n * @param {string} selector selector\n * @param {(HTMLElement|string)} [root] You can assign root element to find\n * if not supplied, document.body will use.\n * @param {boolean|function} [multiple=false] - set true then return all\n * elements that meet condition, if set function then use it filter function.\n * @returns {HTMLElement} HTML element finded.\n */\n find: function(selector, root, multiple) {\n var result = [],\n found = false,\n isFirst = util.isUndefined(multiple) || multiple === false,\n isFilter = util.isFunction(multiple);\n\n if (util.isString(root)) {\n root = domutil.get(root);\n }\n\n root = root || window.document.body;\n\n /**\n * Function for recursive find specific node\n * @param {HTMLElement} el - element to search\n * @param {string} selector - selector\n */\n function recurse(el, selector) {\n var childNodes = el.childNodes,\n i = 0,\n len = childNodes.length,\n cursor;\n\n for (; i < len; i += 1) {\n cursor = childNodes[i];\n\n if (cursor.nodeName === '#text') {\n continue;\n }\n\n if (domutil._matcher(cursor, selector)) {\n if ((isFilter && multiple(cursor)) || !isFilter) {\n result.push(cursor);\n }\n\n if (isFirst) {\n found = true;\n break;\n }\n } else if (cursor.childNodes.length > 0) {\n recurse(cursor, selector);\n if (found) {\n break;\n }\n }\n }\n }\n\n recurse(root, selector);\n\n return isFirst ? (result[0] || null) : result;\n },\n\n /**\n * Find parent element recursively.\n * @param {HTMLElement} el - base element to start find.\n * @param {string} selector - selector string for find\n * @param {boolean} excludeEl - exclude the base element to find\n * @returns {HTMLElement} - element finded or null.\n */\n closest: function(el, selector, excludeEl) {\n var parent = el.parentNode;\n\n if (!excludeEl && domutil._matcher(el, selector)) {\n return el;\n }\n\n while (parent && parent !== window.document.body) {\n if (domutil._matcher(parent, selector)) {\n return parent;\n }\n\n parent = parent.parentNode;\n }\n\n return null;\n },\n\n /**\n * Return texts inside element.\n * @param {HTMLElement} el target element\n * @returns {string} text inside node\n */\n text: function(el) {\n var ret = '',\n i = 0,\n nodeType = el.nodeType;\n\n if (nodeType) {\n if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n // nodes that available contain other nodes\n if (typeof el.textContent === 'string') {\n return el.textContent;\n }\n\n for (el = el.firstChild; el; el = el.nextSibling) {\n ret += domutil.text(el);\n }\n } else if (nodeType === 3 || nodeType === 4) {\n // TEXT, CDATA SECTION\n return el.nodeValue;\n }\n } else {\n for (; el[i]; i += 1) {\n ret += domutil.text(el[i]);\n }\n }\n\n return ret;\n },\n\n /**\n * Set data attribute to target element\n * @param {HTMLElement} el - element to set data attribute\n * @param {string} key - key\n * @param {string|number} data - data value\n */\n setData: function(el, key, data) {\n if ('dataset' in el) {\n el.dataset[key] = data;\n\n return;\n }\n\n el.setAttribute('data-' + key, data);\n },\n\n /**\n * Get data value from data-attribute\n * @param {HTMLElement} el - target element\n * @param {string} key - key\n * @returns {string} value\n */\n getData: function(el, key) {\n if ('dataset' in el) {\n return el.dataset[key];\n }\n\n return el.getAttribute('data-' + key);\n },\n\n /**\n * Check element has specific design class name.\n * @param {HTMLElement} el target element\n * @param {string} name css class\n * @returns {boolean} return true when element has that css class name\n */\n hasClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n return el.classList.contains(name);\n }\n\n className = domutil.getClass(el);\n\n return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n },\n\n /**\n * Add design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n addClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n util.forEachArray(name.split(' '), function(value) {\n el.classList.add(value);\n });\n } else if (!domutil.hasClass(el, name)) {\n className = domutil.getClass(el);\n domutil.setClass(el, (className ? className + ' ' : '') + name);\n }\n },\n\n /**\n *\n * Overwrite design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n setClass: function(el, name) {\n if (util.isUndefined(el.className.baseVal)) {\n el.className = name;\n } else {\n el.className.baseVal = name;\n }\n },\n\n /**\n * Element에 cssClass속성을 제거하는 메서드\n * Remove specific design class from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name class name to remove\n */\n removeClass: function(el, name) {\n var removed = '';\n\n if (!util.isUndefined(el.classList)) {\n el.classList.remove(name);\n } else {\n removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n domutil.setClass(el, trim(removed));\n }\n },\n\n /**\n * Get HTML element's design classes.\n * @param {HTMLElement} el target element\n * @returns {string} element css class name\n */\n getClass: function(el) {\n if (!el || !el.className) {\n return '';\n }\n\n return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n },\n\n /**\n * Get specific CSS style value from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} style css attribute name\n * @returns {(string|null)} css style value\n */\n getStyle: function(el, style) {\n var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n css;\n\n if ((!value || value === 'auto') && document.defaultView) {\n css = document.defaultView.getComputedStyle(el, null);\n value = css ? css[style] : null;\n }\n\n return value === 'auto' ? null : value;\n },\n\n /**\n * get element's computed style values.\n *\n * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n * @param {HTMLElement} el - element want to get style.\n * @returns {object} virtual CSSStyleDeclaration object.\n */\n getComputedStyle: function(el) {\n var defaultView = document.defaultView;\n\n if (!defaultView || !defaultView.getComputedStyle) {\n return {\n getPropertyValue: function(prop) {\n /* eslint-disable no-useless-escape */\n var re = /(\\-([a-z]){1})/g;\n if (prop === 'float') {\n prop = 'styleFloat';\n }\n\n if (re.test(prop)) {\n prop = prop.replace(re, function() {\n return arguments[2].toUpperCase();\n });\n }\n\n return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n }\n };\n }\n\n return document.defaultView.getComputedStyle(el);\n },\n\n /**\n * Set position CSS style.\n * @param {HTMLElement} el target element\n * @param {number} [x=0] left pixel value.\n * @param {number} [y=0] top pixel value.\n */\n setPosition: function(el, x, y) {\n x = util.isUndefined(x) ? 0 : x;\n y = util.isUndefined(y) ? 0 : y;\n\n el[posKey] = [x, y];\n\n el.style.left = util.isNumber(x) ? (x + 'px') : x;\n el.style.top = util.isNumber(y) ? (y + 'px') : y;\n },\n\n /**\n * Set position CSS style with left, top, right, bottom\n * @param {HTMLElement} el target element\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\n setLTRB: function(el, ltrb) {\n var props = ['left', 'top', 'right', 'bottom'];\n var value;\n props.forEach(function(prop) {\n value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n });\n },\n\n /**\n * Get position from HTML element.\n * @param {HTMLElement} el target element\n * @param {boolean} [clear=false] clear cache before calculating position.\n * @returns {number[]} point\n */\n getPosition: function(el, clear) {\n var left,\n top,\n bound;\n\n if (clear) {\n el[posKey] = null;\n }\n\n if (el[posKey]) {\n return el[posKey];\n }\n\n left = 0;\n top = 0;\n\n if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n 'getBoundingClientRect' in el) {\n // 엘리먼트의 left또는 top이 'auto'일 때 수단\n bound = el.getBoundingClientRect();\n\n left = bound.left;\n top = bound.top;\n } else {\n left = parseFloat(el.style.left || 0);\n top = parseFloat(el.style.top || 0);\n }\n\n return [left, top];\n },\n\n /**\n * Return element's size\n * @param {HTMLElement} el target element\n * @returns {number[]} width, height\n */\n getSize: function(el) {\n var bound,\n width = domutil.getStyle(el, 'width'),\n height = domutil.getStyle(el, 'height');\n\n if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n util.isNull(width) || util.isNull(height)) &&\n 'getBoundingClientRect' in el) {\n bound = el.getBoundingClientRect();\n width = bound.width || el.offsetWidth;\n height = bound.height || el.offsetHeight;\n } else {\n width = parseFloat(width || 0);\n height = parseFloat(height || 0);\n }\n\n return [width, height];\n },\n\n /**\n * Fallback of getBoundingClientRect\n * @param {HTMLElement} el - element\n * @returns {object} rect\n */\n getBCRect: function(el) {\n var rect = el.getBoundingClientRect();\n\n rect = util.extend({\n width: el.offsetWidth,\n height: el.offsetHeight\n }, rect);\n\n return rect;\n },\n\n /**\n * Check specific CSS style is available.\n * @param {array} props property name to testing\n * @returns {(string|boolean)} return true when property is available\n * @example\n * var props = ['transform', '-webkit-transform'];\n * domutil.testProp(props); // 'transform'\n */\n testProp: function(props) {\n var style = document.documentElement.style,\n i = 0,\n len = props.length;\n\n for (; i < len; i += 1) {\n if (props[i] in style) {\n return props[i];\n }\n }\n\n return false;\n },\n\n /**\n * Get form data\n * @param {HTMLFormElement} formElement - form element to extract data\n * @returns {object} form data\n */\n getFormData: function(formElement) {\n var groupedByName = new Collection(function() {\n return this.length;\n }),\n noDisabledFilter = function(el) {\n return !el.disabled;\n },\n output = {};\n\n groupedByName.add.apply(\n groupedByName,\n domutil.find('input', formElement, noDisabledFilter)\n .concat(domutil.find('select', formElement, noDisabledFilter))\n .concat(domutil.find('textarea', formElement, noDisabledFilter))\n );\n\n groupedByName = groupedByName.groupBy(function(el) {\n return (el && el.getAttribute('name')) || '_other';\n });\n\n util.forEach(groupedByName, function(elements, name) {\n if (name === '_other') {\n return;\n }\n\n elements.each(function(el) {\n var nodeName = el.nodeName.toLowerCase(),\n type = el.type,\n result = [];\n\n if (type === 'radio') {\n result = [elements.find(function(el) {\n return el.checked;\n }).toArray().pop()];\n } else if (type === 'checkbox') {\n result = elements.find(function(el) {\n return el.checked;\n }).toArray();\n } else if (nodeName === 'select') {\n elements.find(function(el) {\n return !!el.childNodes.length;\n }).each(function(el) {\n result = result.concat(\n domutil.find('option', el, function(opt) {\n return opt.selected;\n })\n );\n });\n } else {\n result = elements.find(function(el) {\n return el.value !== '';\n }).toArray();\n }\n\n result = util.map(result, function(el) {\n return el.value;\n });\n\n if (!result.length) {\n result = '';\n } else if (result.length === 1) {\n result = result[0];\n }\n\n output[name] = result;\n });\n });\n\n return output;\n }\n};\n\n/*eslint-disable*/\nvar userSelectProperty = domutil.testProp([\n 'userSelect',\n 'WebkitUserSelect',\n 'OUserSelect',\n 'MozUserSelect',\n 'msUserSelect'\n]);\nvar supportSelectStart = 'onselectstart' in document;\nvar prevSelectStyle = '';\n/* eslint-enable*/\n\n/**\n * Disable browser's text selection behaviors.\n * @method\n */\ndomutil.disableTextSelection = (function() {\n if (supportSelectStart) {\n return function(dom) {\n domevent.on(dom, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function(dom) {\n var style = dom.style;\n prevSelectStyle = style[userSelectProperty];\n style[userSelectProperty] = 'none';\n };\n})();\n\n/**\n * Enable browser's text selection behaviors.\n * @method\n */\ndomutil.enableTextSelection = (function() {\n if (supportSelectStart) {\n return function() {\n domevent.off(window, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function() {\n document.documentElement.style[userSelectProperty] = prevSelectStyle;\n };\n})();\n\n/**\n * Disable browser's image drag behaviors.\n */\ndomutil.disableImageDrag = function() {\n domevent.on(window, 'dragstart', domevent.preventDefault);\n};\n\n/**\n * Enable browser's image drag behaviors.\n */\ndomutil.enableImageDrag = function() {\n domevent.off(window, 'dragstart', domevent.preventDefault);\n};\n\nmodule.exports = domutil;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/domutil.js\n// module id = 31\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Utility module for handling DOM events.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar browser = util.browser,\n eventKey = '_evt',\n DRAG = {\n START: ['touchstart', 'mousedown'],\n END: {\n mousedown: 'mouseup',\n touchstart: 'touchend',\n pointerdown: 'touchend',\n MSPointerDown: 'touchend'\n },\n MOVE: {\n mousedown: 'mousemove',\n touchstart: 'touchmove',\n pointerdown: 'touchmove',\n MSPointerDown: 'touchmove'\n }\n };\n\nvar domevent = {\n /**\n * Bind dom events.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n on: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._on(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._on(obj, type, handler, fn);\n });\n },\n\n /**\n * DOM event binding.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {String} type The name of events.\n * @param {*} fn handler function\n * @param {*} [context] context object for handler method.\n * @private\n */\n _on: function(obj, type, fn, context) {\n var id,\n handler,\n originHandler;\n\n id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\n if (obj[eventKey] && obj[eventKey][id]) {\n return;\n }\n\n handler = function(e) {\n fn.call(context || obj, e || window.event);\n };\n\n originHandler = handler;\n\n if ('addEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n handler = function(e) {\n e = e || window.event;\n if (!domevent._checkMouse(obj, e)) {\n return;\n }\n originHandler(e);\n };\n obj.addEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.addEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.addEventListener(type, handler, false);\n }\n } else if ('attachEvent' in obj) {\n obj.attachEvent('on' + type, handler);\n }\n\n obj[eventKey] = obj[eventKey] || {};\n obj[eventKey][id] = handler;\n },\n\n /**\n * Unbind DOM Event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n off: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._off(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._off(obj, type, handler, fn);\n });\n },\n\n /**\n * Unbind DOM event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {String} type The name of event to unbind.\n * @param {function()} fn Event handler that supplied when binding.\n * @param {*} context context object that supplied when binding.\n * @private\n */\n _off: function(obj, type, fn, context) {\n var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n handler = obj[eventKey] && obj[eventKey][id];\n\n if (!handler) {\n return;\n }\n\n if ('removeEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n obj.removeEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.removeEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.removeEventListener(type, handler, false);\n }\n } else if ('detachEvent' in obj) {\n try {\n obj.detachEvent('on' + type, handler);\n } catch (e) {} //eslint-disable-line\n }\n\n delete obj[eventKey][id];\n\n if (util.keys(obj[eventKey]).length) {\n return;\n }\n\n // throw exception when deleting host object's property in below IE8\n if (util.browser.msie && util.browser.version < 9) {\n obj[eventKey] = null;\n\n return;\n }\n\n delete obj[eventKey];\n },\n\n /**\n * Bind DOM event. this event will unbind after invokes.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n once: function(obj, types, fn, context) {\n var self = this;\n\n if (util.isObject(types)) {\n util.forEachOwnProperties(types, function(handler, type) {\n domevent.once(obj, type, handler, fn);\n });\n\n return;\n }\n\n /**\n * Handler for temporary usage for once implementation\n */\n function onceHandler() {\n fn.apply(context || obj, arguments);\n self._off(obj, types, onceHandler, context);\n }\n\n domevent.on(obj, types, onceHandler, context);\n },\n\n /**\n * Cancel event bubbling.\n * @param {Event} e Event object.\n */\n stopPropagation: function(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n } else {\n e.cancelBubble = true;\n }\n },\n\n /**\n * Cancel browser default actions.\n * @param {Event} e Event object.\n */\n preventDefault: function(e) {\n if (e.preventDefault) {\n e.preventDefault();\n } else {\n e.returnValue = false;\n }\n },\n\n /**\n * Syntatic sugar of stopPropagation and preventDefault\n * @param {Event} e Event object.\n */\n stop: function(e) {\n domevent.preventDefault(e);\n domevent.stopPropagation(e);\n },\n\n /**\n * Stop scroll events.\n * @param {HTMLElement} el HTML element to prevent scroll.\n */\n disableScrollPropagation: function(el) {\n domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n },\n\n /**\n * Stop all events related with click.\n * @param {HTMLElement} el HTML element to prevent all event related with click.\n */\n disableClickPropagation: function(el) {\n domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n },\n\n /**\n * Get mouse position from mouse event.\n *\n * If supplied relatveElement parameter then return relative position based on element.\n * @param {Event} mouseEvent Mouse event object\n * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n * @returns {number[]} mouse position.\n */\n getMousePosition: function(mouseEvent, relativeElement) {\n var rect;\n\n if (!relativeElement) {\n return [mouseEvent.clientX, mouseEvent.clientY];\n }\n\n rect = relativeElement.getBoundingClientRect();\n\n return [\n mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n mouseEvent.clientY - rect.top - relativeElement.clientTop\n ];\n },\n\n /**\n * Normalize mouse wheel event that different each browsers.\n * @param {MouseEvent} e Mouse wheel event.\n * @returns {Number} delta\n */\n getWheelDelta: function(e) {\n var delta = 0;\n\n if (e.wheelDelta) {\n delta = e.wheelDelta / 120;\n }\n\n if (e.detail) {\n delta = -e.detail / 3;\n }\n\n return delta;\n },\n\n /**\n * prevent firing mouseleave event when mouse entered child elements.\n * @param {HTMLElement} el HTML element\n * @param {MouseEvent} e Mouse event\n * @returns {Boolean} leave?\n * @private\n */\n _checkMouse: function(el, e) {\n var related = e.relatedTarget;\n\n if (!related) {\n return true;\n }\n\n try {\n while (related && (related !== el)) {\n related = related.parentNode;\n }\n } catch (err) {\n return false;\n }\n\n return (related !== el);\n },\n\n /**\n * Trigger specific events to html element.\n * @param {HTMLElement} obj HTMLElement\n * @param {string} type Event type name\n * @param {object} [eventData] Event data\n */\n trigger: function(obj, type, eventData) {\n var rMouseEvent = /(mouse|click)/;\n if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n eventData = domevent.mouseEvent(type);\n }\n\n if (obj.dispatchEvent) {\n obj.dispatchEvent(eventData);\n } else if (obj.fireEvent) {\n obj.fireEvent('on' + type, eventData);\n }\n },\n\n /**\n * Create virtual mouse event.\n *\n * Tested at\n *\n * - IE7 ~ IE11\n * - Chrome\n * - Firefox\n * - Safari\n * @param {string} type Event type\n * @param {object} [eventObj] Event data\n * @returns {MouseEvent} Virtual mouse event.\n */\n mouseEvent: function(type, eventObj) {\n var evt,\n e;\n\n e = util.extend({\n bubbles: true,\n cancelable: (type !== 'mousemove'),\n view: window,\n wheelDelta: 0,\n detail: 0,\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false,\n button: 0,\n relatedTarget: undefined // eslint-disable-line\n }, eventObj);\n\n // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n if (browser.msie && browser.version < 9) {\n delete e.wheelDelta;\n }\n\n if (typeof document.createEvent === 'function') {\n evt = document.createEvent('MouseEvents');\n evt.initMouseEvent(type,\n e.bubbles, e.cancelable, e.view, e.detail,\n e.screenX, e.screenY, e.clientX, e.clientY,\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, document.body.parentNode\n );\n } else if (document.createEventObject) {\n evt = document.createEventObject();\n\n util.forEach(e, function(value, propName) {\n evt[propName] = value;\n }, this);\n evt.button = {0: 1,\n 1: 4,\n 2: 2}[evt.button] || evt.button;\n }\n\n return evt;\n },\n\n /**\n * Normalize mouse event's button attributes.\n *\n * Can detect which button is clicked by this method.\n *\n * Meaning of return numbers\n *\n * - 0: primary mouse button\n * - 1: wheel button or center button\n * - 2: secondary mouse button\n * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n * @returns {number} - The value of meaning which button is clicked?\n */\n getMouseButton: function(mouseEvent) {\n var button,\n primary = '0,1,3,5,7',\n secondary = '2,6',\n wheel = '4';\n\n /* istanbul ignore else */\n if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n return mouseEvent.button;\n }\n\n button = String(mouseEvent.button);\n if (primary.indexOf(button) > -1) {\n return 0;\n }\n if (secondary.indexOf(button) > -1) {\n return 2;\n }\n if (~wheel.indexOf(button)) {\n return 1;\n }\n\n return -1;\n }\n};\n\nmodule.exports = domevent;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/domevent.js\n// module id = 32\n// module chunks = 0","/**\n * @fileoverview Common collections.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachProp = util.forEachOwnProperties,\n forEachArr = util.forEachArray,\n isFunc = util.isFunction,\n isObj = util.isObject;\n\nvar aps = Array.prototype.slice;\n\n/**\n * Common collection.\n *\n * It need function for get model's unique id.\n *\n * if the function is not supplied then it use default function {@link Collection#getItemID}\n * @constructor\n * @param {function} [getItemIDFn] function for get model's id.\n */\nfunction Collection(getItemIDFn) {\n /**\n * @type {object.}\n */\n this.items = {};\n\n /**\n * @type {number}\n */\n this.length = 0;\n\n if (isFunc(getItemIDFn)) {\n /**\n * @type {function}\n */\n this.getItemID = getItemIDFn;\n }\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Combind supplied function filters and condition.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.and = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 0;\n\n for (; i < cnt; i += 1) {\n if (!filters[i].call(null, item)) {\n return false;\n }\n }\n\n return true;\n };\n};\n\n/**\n * Combine multiple function filters with OR clause.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.or = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 1,\n result = filters[0].call(null, item);\n\n for (; i < cnt; i += 1) {\n result = (result || filters[i].call(null, item));\n }\n\n return result;\n };\n};\n\n/**\n * Merge several collections.\n *\n * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n * @param {...Collection} collections collection arguments to merge\n * @returns {Collection} merged collection.\n */\nCollection.merge = function(collections) { // eslint-disable-line\n var cols = aps.call(arguments),\n newItems = {},\n merged = new Collection(cols[0].getItemID),\n extend = util.extend;\n\n forEachArr(cols, function(col) {\n extend(newItems, col.items);\n });\n\n merged.items = newItems;\n merged.length = util.keys(merged.items).length;\n\n return merged;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * get model's unique id.\n * @param {object} item model instance.\n * @returns {number} model unique id.\n */\nCollection.prototype.getItemID = function(item) {\n return String(item._id);\n};\n\n/**\n * add models.\n * @param {...*} item models to add this collection.\n */\nCollection.prototype.add = function(item) {\n var self = this,\n id,\n ownItems;\n\n if (arguments.length > 1) {\n forEachArr(aps.call(arguments), function(o) {\n self.add(o);\n });\n\n return;\n }\n\n id = this.getItemID(item);\n ownItems = this.items;\n\n if (!ownItems[id]) {\n this.length += 1;\n }\n ownItems[id] = item;\n};\n\n/**\n * remove models.\n * @param {...(object|string|number)} id model instance or unique id to delete.\n * @returns {array} deleted model list.\n */\nCollection.prototype.remove = function(id) {\n var self = this,\n removed = [],\n ownItems,\n itemToRemove;\n\n if (!this.length) {\n return removed;\n }\n\n if (arguments.length > 1) {\n removed = util.map(aps.call(arguments), function(_id) {\n return self.remove(_id);\n });\n\n return removed;\n }\n\n ownItems = this.items;\n\n if (isObj(id)) {\n id = this.getItemID(id);\n }\n\n if (!ownItems[id]) {\n return removed;\n }\n\n this.length -= 1;\n itemToRemove = ownItems[id];\n delete ownItems[id];\n\n return itemToRemove;\n};\n\n/**\n * remove all models in collection.\n */\nCollection.prototype.clear = function() {\n this.items = {};\n this.length = 0;\n};\n\n/**\n * check collection has specific model.\n * @param {(object|string|number|function)} id model instance or id or filter function to check\n * @returns {boolean} is has model?\n */\nCollection.prototype.has = function(id) {\n var isFilter,\n has;\n\n if (!this.length) {\n return false;\n }\n\n isFilter = isFunc(id);\n has = false;\n\n if (isFilter) {\n this.each(function(item) {\n if (id(item) === true) {\n has = true;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n } else {\n id = isObj(id) ? this.getItemID(id) : id;\n has = util.isExisty(this.items[id]);\n }\n\n return has;\n};\n\n/**\n * invoke callback when model exist in collection.\n * @param {(string|number)} id model unique id.\n * @param {function} fn the callback.\n * @param {*} [context] callback context.\n */\nCollection.prototype.doWhenHas = function(id, fn, context) {\n var item = this.items[id];\n\n if (!util.isExisty(item)) {\n return;\n }\n\n fn.call(context || this, item);\n};\n\n/**\n * Search model. and return new collection.\n * @param {function} filter filter function.\n * @returns {Collection} new collection with filtered models.\n * @example\n * collection.find(function(item) {\n * return item.edited === true;\n * });\n *\n * function filter1(item) {\n * return item.edited === false;\n * }\n *\n * function filter2(item) {\n * return item.disabled === false;\n * }\n *\n * collection.find(Collection.and(filter1, filter2));\n *\n * collection.find(Collection.or(filter1, filter2));\n */\nCollection.prototype.find = function(filter) {\n var result = new Collection();\n\n if (this.hasOwnProperty('getItemID')) {\n result.getItemID = this.getItemID;\n }\n\n this.each(function(item) {\n if (filter(item) === true) {\n result.add(item);\n }\n });\n\n return result;\n};\n\n/**\n * Group element by specific key values.\n *\n * if key parameter is function then invoke it and use returned value.\n * @param {(string|number|function|array)} key key property or getter function.\n * if string[] supplied, create each collection before grouping.\n * @param {function} [groupFunc] - function that return each group's key\n * @returns {object.} grouped object\n * @example\n *\n * // pass `string`, `number`, `boolean` type value then group by property value.\n * collection.groupBy('gender'); // group by 'gender' property value.\n * collection.groupBy(50); // group by '50' property value.\n *\n * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n * collection.groupBy(function(item) {\n * if (item.score > 60) {\n * return 'pass';\n * }\n * return 'fail';\n * });\n *\n * // pass `array` with first arguments then create each collection before grouping.\n * collection.groupBy(['go', 'ruby', 'javascript']);\n * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n *\n * // can pass `function` with `array` then group each elements.\n * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n * if (item.isFast) {\n * return 'go';\n * }\n *\n * return item.name;\n * });\n */\nCollection.prototype.groupBy = function(key, groupFunc) {\n var result = {},\n collection,\n baseValue,\n keyIsFunc = isFunc(key),\n getItemIDFn = this.getItemID;\n\n if (util.isArray(key)) {\n util.forEachArray(key, function(k) {\n result[String(k)] = new Collection(getItemIDFn);\n });\n\n if (!groupFunc) {\n return result;\n }\n\n key = groupFunc;\n keyIsFunc = true;\n }\n\n this.each(function(item) {\n if (keyIsFunc) {\n baseValue = key(item);\n } else {\n baseValue = item[key];\n\n if (isFunc(baseValue)) {\n baseValue = baseValue.apply(item);\n }\n }\n\n collection = result[baseValue];\n\n if (!collection) {\n collection = result[baseValue] = new Collection(getItemIDFn);\n }\n\n collection.add(item);\n });\n\n return result;\n};\n\n/**\n * Return single item in collection.\n *\n * Returned item is inserted in this collection firstly.\n * @param {function} [filter] - function filter\n * @returns {object} item.\n */\nCollection.prototype.single = function(filter) {\n var result,\n useFilter = util.isFunction(filter);\n\n this.each(function(item) {\n if (!useFilter) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n if (filter(item)) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n }, this);\n\n return result;\n};\n\n/**\n * sort a basis of supplied compare function.\n * @param {function} compareFunction compareFunction\n * @returns {array} sorted array.\n */\nCollection.prototype.sort = function(compareFunction) {\n var arr = [];\n\n this.each(function(item) {\n arr.push(item);\n });\n\n if (isFunc(compareFunction)) {\n arr = arr.sort(compareFunction);\n }\n\n return arr;\n};\n\n/**\n * iterate each model element.\n *\n * when iteratee return false then break the loop.\n * @param {function} iteratee iteratee(item, index, items)\n * @param {*} [context] context\n */\nCollection.prototype.each = function(iteratee, context) {\n forEachProp(this.items, iteratee, context || this);\n};\n\n/**\n * return new array with collection items.\n * @returns {array} new array.\n */\nCollection.prototype.toArray = function() {\n if (!this.length) {\n return [];\n }\n\n return util.map(this.items, function(item) {\n return item;\n });\n};\n\nmodule.exports = Collection;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/collection.js\n// module id = 33\n// module chunks = 0","/**\n * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar cssPrefix = 'tui-full-calendar-',\n alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\nvar config = {\n throwError: function(msg) {\n throw new Error(msg);\n },\n\n cssPrefix: cssPrefix,\n\n classname: function(str) {\n str = str || '';\n\n if (str.charAt(0) === '.') {\n return '.' + config.cssPrefix + str.slice(1);\n }\n\n return config.cssPrefix + str;\n },\n\n allday: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n time: {\n getViewIDRegExp: timeGetViewID\n }\n};\n\nmodule.exports = config;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/config.js\n// module id = 34\n// module chunks = 0","/**\n * @fileoverview Factory module for control all other factory.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet'),\n Handlebars = require('handlebars-template-loader/runtime');\nvar dw = require('../common/dw'),\n datetime = require('../common/datetime'),\n Layout = require('../view/layout'),\n Drag = require('../handler/drag'),\n controllerFactory = require('./controller'),\n weekViewFactory = require('./weekView'),\n monthViewFactory = require('./monthView'),\n TZDate = require('../common/timezone').Date,\n config = require('../config'),\n timezone = require('../common/timezone');\n\nvar mmin = Math.min;\n\n/**\n * @typedef {object} Schedule\n * @property {string} id - unique schedule id depends on calendar id\n * @property {string} calendarId - unique calendar id\n * @property {string} title - schedule title\n * @property {string} start - start time\n * @property {string} end - end time\n * @property {boolean} isAllDay - all day schedule\n * @property {string} category - schedule type('milestone', 'task', allday', 'time')\n * @property {string} dueDateClass - task schedule type string\n * (any string value is ok and mandatory if category is 'task')\n * @property {boolean} isPending - in progress flag to do something like network job(The schedule will be transparent.)\n * @property {boolean} isFocused - focused schedule flag\n * @property {boolean} isVisible - schedule visibility flag\n * @property {boolean} isReadOnly - schedule read-only flag\n * @property {string} [color] - schedule text color\n * @property {string} [bgColor] - schedule background color\n * @property {string} [borderColor] - schedule left border color\n * @property {string} customStyle - schedule's custom css class\n * @property {any} raw - user data\n */\n\n/**\n * @typedef {object} RenderRange - rendered range\n * @property {Date} start - start date\n * @property {Date} end - end date\n */\n\n/**\n * @typedef {object} Options - calendar option object\n * @property {string} [cssPrefix] - CSS classname prefix\n * @property {string} [defaultView='week'] - default view of calendar\n * @property {string} [defaultDate=null] - default date to render calendar. if not supplied, use today.\n * @property {object} [calendarColor] - preset calendar colors\n * @property {string} [calendarColor.color] - calendar color\n * @property {string} [calendarColor.bgColor] - calendar background color\n * @property {string} [calendarColor.borderColor] - calendar left border color\n * @property {boolean} [calendarColor.render] - immediately apply colors when setCalendarColor called.\n * @property {boolean} [taskView=true] - show the milestone and task in weekly, daily view\n * @property {boolean} [scheduleView=true] - show the all day and time grid in weekly, daily view\n * @property {object} [template] - template option\n * @property {function} [template.milestoneTitle] - milestone title(at left column) template function\n * @property {function} [template.milestone] - milestone template function\n * @property {function} [template.taskTitle] - task title(at left column) template function\n * @property {function} [template.task] - task template function\n * @property {function} [template.alldayTitle] - allday title(at left column) template function\n * @property {function} [template.allday] - allday template function\n * @property {function} [template.time] - time template function\n * @property {function} [template.monthMoreTitleDate] - month more layer title template function\n * @property {function} [template.monthMoreClose] - month more layer close button template function\n * @property {function} [template.monthGridHeader] - month grid header(date, decorator, title) template function\n * @property {function} [template.monthGridFooter] - month grid footer(date, decorator, title) template function\n * @property {function} [template.monthGridHeaderExceed] - month grid header(exceed schedule count) template function\n * @property {function} [template.monthGridFooterExceed] - month grid footer(exceed schedule count) template function\n * @property {function} [template.weekDayname] - weekly dayname template function\n * @property {function} [template.monthDayname] - monthly dayname template function\n * @property {object} [week] - options for week view\n * @property {number} [week.startDayOfWeek=0] - start day of week\n * @property {Array.} [week.panelHeights] - each panel height px(Milestone, Task, Allday View Panel)\n * @property {Array.} [week.daynames] - day names in weekly and daily.\n * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {boolean} [week.narrowWeekend=false] - make weekend column narrow(1/2 width)\n * @property {boolean} [week.workweek=false] - show only 5 days except for weekend\n * @property {string} [week.alldayViewType='scroll'] - set view type of allday panel. ('scroll'|'toggle')\n * @property {object} [month] - options for month view\n * @property {Array.} [month.daynames] - day names in monthly.\n * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {number} [month.startDayOfWeek=0] - start day of week\n * @property {boolean} [month.narrowWeekend=false] - make weekend column narrow(1/2 width)\n * @property {boolean} [month.visibleWeeksCount=6] - visible week count in monthly(0 or null are same with 6)\n * @property {number} [month.visibleScheduleCount] - visible schedule count in monthly grid\n * @property {object} [month.moreLayerSize] - more layer size\n * @property {object} [month.moreLayerSize.width=null] - css width value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [month.moreLayerSize.height=null] - css height value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [month.grid] - grid's header and footer information\n * @property {object} [month.grid.header] - grid's header informatioin\n * @property {number} [month.grid.header.height=34] - grid's header height\n * @property {object} [month.grid.footer] - grid's footer informatioin\n * @property {number} [month.grid.footer.height=34] - grid's footer height\n * @property {Array.} [schedules] - array of Schedule data for add calendar after initialize.\n */\n\n/**\n * @typedef {class} CustomEvents\n * https://nhnent.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html\n */\n\n/**\n * @typedef {object} TimeCreationGuide - time creation guide instance to present selected time period\n * @property {HTMLElement} guideElement - guide element\n * @property {Object.} guideElements - map by key. It can be used in monthly view\n * @property {function} clearGuideElement - hide the creation guide\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var guide = event.guide;\n * // use guideEl$'s left, top to locate your schedule creation popup\n * var guideEl$ = guide.guideElement ?\n * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n *\n * // after that call this to hide the creation guide\n * guide.clearGuideElement();\n * });\n */\n\n/**\n * Calendar class\n * @constructor\n * @mixes CustomEvents\n * @param {HTMLElement|string} container - container element or selector id\n * @param {Options} options - calendar options\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * defaultView: 'week',\n * taskView: true,\n * scheduleView: true,\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'Milestone';\n * },\n * task: function(schedule) {\n * return '  #' + schedule.title;\n * },\n * taskTitle: function() {\n * return '';\n * },\n * allday: function(schedule) {\n * return schedule.title + ' ';\n * },\n * alldayTitle: function() {\n * return 'All Day';\n * },\n * time: function(schedule) {\n * return schedule.title + ' ' + schedule.start;\n * }\n * },\n * month: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * },\n * week: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * panelHeights: [80, 80, 120],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * }\n * });\n */\nfunction Calendar(container, options) {\n var opt;\n\n if (util.isString(container)) {\n container = document.querySelector(container);\n }\n\n /**\n * calendar options\n * @type {Options}\n */\n this.options = opt = util.extend({\n calendarColor: {},\n groupFunc: function(viewModel) {\n var model = viewModel.model;\n\n if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n return 'allday';\n }\n\n return model.category;\n },\n controller: null,\n defaultView: 'week',\n taskView: true,\n scheduleView: true,\n defaultDate: new TZDate(),\n template: util.extend({\n allday: null,\n time: null\n }, util.pick(options, 'template') || {}),\n week: util.extend({}, util.pick(options, 'week') || {}),\n month: util.extend({}, util.pick(options, 'month') || {}),\n schedules: []\n }, options);\n\n this.options.week = util.extend({\n startDayOfWeek: 0,\n workweek: false\n }, util.pick(this.options, 'week') || {});\n\n this.options.month = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible) &&\n (schedule.category === 'allday' || schedule.category === 'time');\n }\n }, util.pick(options, 'month') || {});\n\n /**\n * Calendar color map\n * @type {object}\n * @private\n */\n this.calendarColor = opt.calendarColor;\n\n /**\n * @type {HTMLElement}\n * @private\n */\n this.container = container;\n\n /**\n * Current rendered date\n * @type {Date}\n * @readonly\n */\n this.renderDate = opt.defaultDate;\n\n /**\n * start and end date of weekly, monthly\n * @type {RenderRange}\n * @readonly\n */\n this.renderRange = {\n start: null,\n end: null\n };\n\n /**\n * base controller\n * @type {Base}\n * @private\n */\n this.controller = opt.controller || this.createController();\n\n /**\n * layout view (layout manager)\n * @type {Layout}\n * @private\n */\n this.layout = new Layout(container);\n\n /**\n * global drag handler\n * @type {Drag}\n * @private\n */\n this.dragHandler = new Drag({distance: 10}, this.layout.container);\n\n /**\n * current rendered view name. ('day', 'week', 'month')\n * @type {string}\n * @default 'week'\n * @readonly\n */\n this.viewName = opt.defaultView;\n\n /**\n * previous rendered view name\n * @type {string}\n * @private\n */\n this.prevViewName = this.viewName;\n\n /**\n * Refresh method. it can be ref different functions for each view modes.\n * @type {function}\n * @private\n */\n this.refreshMethod = null;\n\n /**\n * Scroll to now. It can be called for 'week', 'day' view modes.\n * @type {function}\n * @private\n */\n this.scrollToNowMethod = null;\n\n this.initialize();\n}\n\n/**\n * Create controller instance\n * @returns {Base} controller instance\n * @private\n */\nCalendar.prototype.createController = function() {\n return controllerFactory(this.options);\n};\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Week} week view instance\n * @private\n */\nCalendar.prototype.createWeekView = function(controller, container, dragHandler, options) {\n return weekViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n};\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Month} month view instance\n * @private\n */\nCalendar.prototype.createMonthView = function(controller, container, dragHandler, options) {\n return monthViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n};\n\n/**\n * destroy calendar instance.\n */\nCalendar.prototype.destroy = function() {\n this.dragHandler.destroy();\n this.controller.off();\n this.layout.clear();\n this.layout.destroy();\n\n util.forEach(this.options.template, function(func, name) {\n if (func) {\n Handlebars.unregisterHelper(name + '-tmpl');\n }\n });\n\n this.options = this.renderDate = this.controller =\n this.layout = this.dragHandler = this.viewName = this.prevViewName =\n this.refreshMethod = this.scrollToNowMethod = null;\n};\n\n/**\n * Initialize calendar\n * @private\n */\nCalendar.prototype.initialize = function() {\n var controller = this.controller,\n viewName = this.viewName,\n opt = this.options;\n\n this.layout.controller = controller;\n\n if (opt.schedules && opt.schedules.length) {\n this.createSchedules(opt.schedules, true);\n }\n\n util.forEach(opt.template, function(func, name) {\n if (func) {\n Handlebars.registerHelper(name + '-tmpl', func);\n }\n });\n\n this.toggleView(viewName, true);\n};\n\n/**********\n * CRUD Methods\n **********/\n\n/**\n * Create schedules and render calendar.\n * @param {Array.} schedules - schedule data list\n * @param {boolean} [silent=false] - no auto render after creation when set true\n * @example\n * calendar.createSchedules([\n * {\n * id: '1',\n * calendarId: '1',\n * title: 'my schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T22:30:00+09:00',\n * end: '2018-01-19T02:30:00+09:00'\n * },\n * {\n * id: '2',\n * calendarId: '1',\n * title: 'second schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T17:30:00+09:00',\n * end: '2018-01-19T17:31:00+09:00'\n * }\n * ]);\n */\nCalendar.prototype.createSchedules = function(schedules, silent) {\n var calColor = this.calendarColor;\n\n util.forEach(schedules, function(obj) {\n var color = calColor[obj.calendarId];\n\n if (color) {\n obj.color = color.color;\n obj.bgColor = color.bgColor;\n obj.borderColor = color.borderColor;\n }\n });\n\n this.controller.createSchedules(schedules, silent);\n\n if (!silent) {\n this.render();\n }\n};\n\n/**\n * Get schedule by schedule id and calendar id.\n * @param {string} id - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {Schedule} schedule object\n * @example\n * var schedule = calendar.getSchedule(scheduleId, calendarId);\n * console.log(schedule.title);\n */\nCalendar.prototype.getSchedule = function(id, calendarId) {\n return this.controller.schedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n};\n\n/**\n * Update the schedule\n * @param {string} id - ID of schedule to update\n * @param {string} calendarId - calendarId of schedule to update\n * @param {Schedule} scheduleData - schedule data to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var startTime = event.start;\n * var endTime = event.end;\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * start: startTime,\n * end: endTime\n * });\n * });\n */\nCalendar.prototype.updateSchedule = function(id, calendarId, scheduleData) {\n var ctrl = this.controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n\n if (schedule) {\n ctrl.updateSchedule(schedule, scheduleData);\n this.render();\n }\n};\n\n/**\n * Delete schedule.\n * @fires Calendar#beforeDeleteSchedule\n * @param {string} id - ID of schedule to delete\n * @param {string} calendarId - calendarId of schedule to delete\n */\nCalendar.prototype.deleteSchedule = function(id, calendarId) {\n var ctrl = this.controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n\n if (!schedule) {\n return;\n }\n\n /**\n * Fire this event when delete a schedule.\n * @event Calendar#beforeDeleteSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to delete\n * @example\n * calendar.on('beforeDeleteSchedule', function() {\n * alert('The schedule is removed.');\n * });\n */\n this.fire('beforeDeleteSchedule', {\n schedule: schedule\n });\n\n ctrl.deleteSchedule(schedule);\n this.render();\n};\n\n/**********\n * Private Methods\n **********/\n\n/**\n * Set child view's options recursively\n * @param {View} view - parent view\n * @param {function} func - option manipulate function\n * @private\n */\nCalendar.prototype.setOptionRecurseively = function(view, func) {\n view.recursive(function(childView) {\n var opt = childView.options;\n\n if (!opt) {\n return;\n }\n\n func(opt);\n });\n};\n\n/**\n * @param {string|Date} date - date to show in calendar\n * @param {number} [startDayOfWeek=0] - start day of week\n * @param {boolean} [workweek=false] - only show work week\n * @returns {array} render range\n * @private\n */\nCalendar.prototype.getWeekDayRange = function(date, startDayOfWeek, workweek) {\n var day, start, end, range,\n msFrom = datetime.millisecondsFrom;\n\n startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n date = util.isDate(date) ? date : new TZDate(date);\n day = date.getDay();\n\n // calculate default render range first.\n start = new TZDate(\n Number(date) -\n msFrom('day', day) +\n msFrom('day', startDayOfWeek)\n );\n\n end = new TZDate(Number(start) + msFrom('day', 6));\n\n if (day < startDayOfWeek) {\n start = new TZDate(Number(start) - msFrom('day', 7));\n end = new TZDate(Number(end) - msFrom('day', 7));\n }\n\n if (workweek) {\n range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n );\n\n range = util.filter(range, function(weekday) {\n return !datetime.isWeekend(weekday.getDay());\n });\n\n start = range[0];\n end = range[range.length - 1];\n }\n\n return [start, end];\n};\n\n/**\n * Toggle schedules visibility by calendar ID\n * @param {string} calendarId - calendar id value\n * @param {boolean} toHide - set true to hide schedules\n * @param {boolean} render - set true then render after change visible property each models\n * @private\n */\nCalendar.prototype._toggleSchedulesByCalendarID = function(calendarId, toHide, render) {\n var ownSchedules = this.controller.schedules;\n\n calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\n ownSchedules.each(function(schedule) {\n if (~util.inArray(schedule.calendarId, calendarId)) {\n schedule.set('isVisible', !toHide);\n }\n });\n\n if (render) {\n this.render();\n }\n};\n\n/**********\n * General Methods\n **********/\n\n/**\n * Render the calendar.\n * @example\n * var silent = true;\n * calendar.clear();\n * calendar.createSchedules(schedules, silent);\n * calendar.render();\n */\nCalendar.prototype.render = function() {\n this.layout.render();\n};\n\n/**\n * Delete all schedules and clear view.\n * @example\n * calendar.clear();\n * calendar.createSchedules(schedules, true);\n * calendar.render();\n */\nCalendar.prototype.clear = function() {\n this.controller.clearSchedules();\n this.render();\n};\n\n/**\n * Scroll to now in daily, weekly view\n * @example\n * function onNewSchedules(schedules) {\n * calendar.createSchedules(schedules);\n * if (calendar.viewName !== 'month') {\n * calendar.scrollToNow();\n * }\n * }\n */\nCalendar.prototype.scrollToNow = function() {\n if (this.scrollToNowMethod) {\n this.scrollToNowMethod();\n }\n};\n\n/**\n * Refresh the calendar layout.\n * @example\n * window.addEventListener('resize', function() {\n * calendar.refresh();\n * });\n */\nCalendar.prototype.refresh = function() {\n if (this.refreshMethod) {\n this.refreshMethod();\n }\n\n this.render();\n};\n\n/**\n * Refresh child views\n * @param {string} [viewName] - the name of view to render. if not supplied then refresh all.\n * @private\n */\nCalendar.prototype.refreshChildView = function(viewName) {\n if (!viewName) {\n this.render();\n\n return;\n }\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n this.layout.children.items[viewName].render();\n};\n\n/**\n * Move to today.\n * @example\n * function onClickTodayBtn() {\n * calendar.today();\n * }\n */\nCalendar.prototype.today = function() {\n this.renderDate = new TZDate();\n\n this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n this.move();\n this.render();\n};\n\n/**\n * Move the calendar amount of offset value\n * @param {number} offset - offset value.\n * @private\n * @example\n * // move previous week when \"week\" view.\n * // move previous month when \"month\" view.\n * calendar.move(-1);\n */\nCalendar.prototype.move = function(offset) {\n var renderDate = dw(this.renderDate),\n viewName = this.viewName,\n view = this.getCurrentView(),\n recursiveSet = this.setOptionRecurseively,\n startDate, endDate, tempDate,\n startDayOfWeek, visibleWeeksCount, workweek, datetimeOptions;\n\n offset = util.isExisty(offset) ? offset : 0;\n\n if (viewName === 'month') {\n startDayOfWeek = util.pick(this.options, 'month', 'startDayOfWeek') || 0;\n visibleWeeksCount = mmin(util.pick(this.options, 'month', 'visibleWeeksCount') || 0, 6);\n workweek = util.pick(this.options, 'month', 'workweek') || false;\n\n if (visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n\n renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\n recursiveSet(view, function(opt) {\n opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM-DD');\n });\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: true,\n workweek: workweek\n };\n\n renderDate.addMonth(offset);\n tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\n recursiveSet(view, function(opt) {\n opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM');\n });\n }\n\n startDate = tempDate[0][0];\n endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n } else if (viewName === 'week') {\n renderDate.addDate(offset * 7);\n startDayOfWeek = util.pick(this.options, 'week', 'startDayOfWeek') || 0;\n workweek = util.pick(this.options, 'week', 'workweek') || false;\n tempDate = this.getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\n startDate = tempDate[0];\n endDate = tempDate[1];\n\n recursiveSet(view, function(opt) {\n opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n });\n } else if (viewName === 'day') {\n renderDate.addDate(offset);\n startDate = endDate = renderDate.d;\n\n recursiveSet(view, function(opt) {\n opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n });\n }\n\n this.renderDate = renderDate.d;\n this.renderRange = {\n start: startDate,\n end: endDate\n };\n};\n\n/**\n * Move to specific date\n * @param {(Date|string)} date - date to move\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.viewName === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.toggleView('day', true);\n * }\n * });\n */\nCalendar.prototype.setDate = function(date) {\n if (util.isString(date)) {\n date = datetime.parse(date);\n }\n\n this.renderDate = new TZDate(Number(date));\n this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n this.move(0);\n this.render();\n};\n\n/**\n * Move the calendar forward a day, a week, a month\n * @example\n * function moveToNextOrPrevRange(val) {\n calendar.clear();\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.next = function() {\n this.move(1);\n this.render();\n};\n\n/**\n * Move the calendar backward a day, a week, a month\n * @example\n * function moveToNextOrPrevRange(val) {\n calendar.clear();\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.prev = function() {\n this.move(-1);\n this.render();\n};\n\n/**\n * Return current rendered view.\n * @returns {View} current view instance\n * @private\n */\nCalendar.prototype.getCurrentView = function() {\n var viewName = this.viewName;\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n return util.pick(this.layout.children.items, viewName);\n};\n\n/**\n * Change calendar's schedule color with option\n * @param {string} calendarId - calendar ID\n * @param {object} option - color data object\n * @param {string} option.color - text color of schedule element\n * @param {string} option.bgColor - bg color of schedule element\n * @param {string} option.borderColor - border color of schedule element\n * @param {boolean} [option.render=true] - set false then does not auto render.\n * @example\n * calendar.setCalendarColor('1', {\n * color: '#e8e8e8',\n * bgColor: '#585858',\n * render: false\n * });\n * calendar.setCalendarColor('2', {\n * color: '#282828',\n * bgColor: '#dc9656',\n * render: false\n * });\n * calendar.setCalendarColor('3', {\n * color: '#a16946',\n * bgColor: '#ab4642',\n * render: true\n * });\n */\nCalendar.prototype.setCalendarColor = function(calendarId, option) {\n var calColor = this.calendarColor,\n ownSchedules = this.controller.schedules,\n ownColor = calColor[calendarId];\n\n if (!util.isObject(option)) {\n config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n }\n\n ownColor = calColor[calendarId] = util.extend({\n color: '#000',\n bgColor: '#a1b56c',\n borderColor: '#a1b56c',\n render: true\n }, option);\n\n ownSchedules.each(function(model) {\n if (model.calendarId !== calendarId) {\n return;\n }\n\n model.color = ownColor.color;\n model.bgColor = ownColor.bgColor;\n model.borderColor = ownColor.borderColor;\n });\n\n if (ownColor.render) {\n this.render();\n }\n};\n\n/**\n * Show schedules visibility by calendar ID\n * @param {string|string[]} calendarId - calendar id value\n * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n * @private\n */\nCalendar.prototype.showSchedulesByCalendarID = function(calendarId, render) {\n render = util.isExisty(render) ? render : true;\n this._toggleSchedulesByCalendarID(calendarId, false, render);\n};\n\n/**\n * Hide schedules visibility by calendar ID\n * @param {string|string[]} calendarId - calendar id value\n * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n * @private\n */\nCalendar.prototype.hideSchedulesByCalendarID = function(calendarId, render) {\n render = util.isExisty(render) ? render : true;\n this._toggleSchedulesByCalendarID(calendarId, true, render);\n};\n\n/**********\n * Custom Events\n **********/\n\n/**\n * 각 뷰의 클릭 핸들러와 사용자 클릭 이벤트 핸들러를 잇기 위한 브릿지 개념의 이벤트 핸들러\n * @fires Calendar#clickSchedule\n * @param {object} clickScheduleData - 'clickSchedule' 핸들러의 이벤트 데이터\n * @private\n */\nCalendar.prototype._onClick = function(clickScheduleData) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent\n * @example\n * calendar.on('clickSchedule', function(event) {\n * var schedule = event.schedule;\n *\n * if (lastClickSchedule) {\n * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n * isFocused: false\n * });\n * }\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * isFocused: true\n * });\n *\n * lastClickSchedule = schedule;\n * // open detail view\n * });\n */\n this.fire('clickSchedule', clickScheduleData);\n};\n\n/**\n * dayname 클릭 이벤트 핸들러\n * @fires Calendar#clickDayname\n * @param {object} clickScheduleData - 'clickDayname' 핸들러의 이벤트 데이터\n * @private\n */\nCalendar.prototype._onClickDayname = function(clickScheduleData) {\n /**\n * Fire this event when click a day name in weekly.\n * @event Calendar#clickDayname\n * @type {object}\n * @property {string} date - date string by format 'YYYY-MM-DD'\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.viewName === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.toggleView('day', true);\n * }\n * });\n */\n this.fire('clickDayname', clickScheduleData);\n};\n\n/**\n * @fires {Calendar#beforeCreateSchedule}\n * @param {object} createScheduleData - select schedule data from allday, time\n * @private\n */\nCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n /**\n * Fire this event when select time period in daily, weekly, monthly.\n * @event Calendar#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - allday schedule\n * @property {Date} start - selected start time\n * @property {Date} end - selected end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name like 'click', 'dblclick'\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var startTime = event.start;\n * var endTime = event.end;\n * var isAllDay = event.isAllDay;\n * var guide = event.guide;\n * var triggerEventName = event.triggerEventName;\n * var schedule;\n *\n * if (triggerEventName === 'click') {\n * // open writing simple schedule popup\n * schedule = {...};\n * } else if (triggerEventName === 'dblclick') {\n * // open writing detail schedule popup\n * schedule = {...};\n * }\n *\n * calendar.createSchedules([schedule]);\n * });\n */\n this.fire('beforeCreateSchedule', createScheduleData);\n};\n\n/**\n * @fires Calendar#beforeUpdateSchedule\n * @param {object} updateScheduleData - update schedule data\n * @private\n */\nCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n /**\n * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n * @event Calendar#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var startTime = event.start;\n * var endTime = event.end;\n *\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * start: startTime,\n * end: endTime\n * });\n * });\n */\n this.fire('beforeUpdateSchedule', updateScheduleData);\n};\n\n/**\n * @fires Calendar#resizePanel\n * @param {object} resizeScheduleData - resize schedule data object\n * @private\n */\nCalendar.prototype._onResizePanel = function(resizeScheduleData) {\n /**\n * Fire this event when resize view panels(milestone, task, allday).\n * @event Calendar#resizePanel\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n * @example\n * calendar.on('resizePanel', function(layoutData) {\n * console.log(layoutData);\n * // do something to resize your UI if necessary.\n * });\n */\n this.fire('resizePanel', resizeScheduleData);\n};\n\n/**\n * 캘린더 팩토리 클래스와 주뷰, 월뷰의 이벤트 연결을 토글한다\n * @param {boolean} isAttach - true면 이벤트 연결함.\n * @param {Week|Month} view - 주뷰 또는 월뷰\n * @private\n */\nCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n var self = this,\n handler = view.handler,\n isMonthView = view.viewName === 'month',\n method = isAttach ? 'on' : 'off';\n\n util.forEach(handler.click, function(clickHandler) {\n clickHandler[method]('clickSchedule', self._onClick, self);\n });\n\n util.forEach(handler.dayname, function(clickHandler) {\n clickHandler[method]('clickDayname', self._onClickDayname, self);\n });\n\n util.forEach(handler.creation, function(creationHandler) {\n creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n });\n\n util.forEach(handler.move, function(moveHandler) {\n moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n util.forEach(handler.resize, function(resizeHandler) {\n resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n if (!isMonthView) {\n view.vLayout[method]('resize', self._onResizePanel, self);\n }\n};\n\n/**\n * Toggle current view\n * @param {string} newViewName - new view name to render\n * @param {boolean} force - force render despite of current view and new view are equal\n * @example\n * // daily view\n * calendar.toggleView('day', true);\n *\n * // weekly view\n * calendar.toggleView('week', true);\n *\n * // monthly view(default 6 weeks view)\n * calendar.options.month.visibleWeeksCount = 6; // or null\n * calendar.toggleView('month', true);\n *\n * // 2 weeks monthly view\n * calendar.options.month.visibleWeeksCount = 2;\n * calendar.toggleView('month', true);\n *\n * // 3 weeks monthly view\n * calendar.options.month.visibleWeeksCount = 3;\n * calendar.toggleView('month', true);\n *\n * // narrow weekend\n * calendar.options.month.narrowWeekend = true;\n * calendar.options.week.narrowWeekend = true;\n * calendar.toggleView(calendar.viewName, true);\n *\n * // change start day of week(from monday)\n * calendar.options.month.startDayOfWeek = 1;\n * calendar.options.week.startDayOfWeek = 1;\n * calendar.toggleView(calendar.viewName, true);\n */\nCalendar.prototype.toggleView = function(newViewName, force) {\n var self = this,\n layout = this.layout,\n controller = this.controller,\n dragHandler = this.dragHandler,\n options = this.options,\n viewName = this.viewName,\n created;\n\n if (!force && viewName === newViewName) {\n return;\n }\n\n this._setViewName(newViewName);\n\n // convert day to week\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n if (newViewName === 'day') {\n newViewName = 'week';\n }\n layout.children.doWhenHas(viewName, function(view) {\n self._toggleViewSchedule(false, view);\n });\n\n layout.clear();\n\n if (newViewName === 'month') {\n created = this.createMonthView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n } else if (newViewName === 'week' || newViewName === 'day') {\n created = this.createWeekView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n }\n\n layout.addChild(created.view);\n\n layout.children.doWhenHas(newViewName, function(view) {\n self._toggleViewSchedule(true, view);\n });\n\n this.refreshMethod = created.refresh;\n this.scrollToNowMethod = created.scrollToNow;\n\n this.move();\n this.render();\n};\n\n/**\n * Toggle task view('Milestone', 'Task') panel\n * @param {boolean} enabled - use task view\n * @example\n * // There is no milestone, task, so hide those view panel\n * calendar.toggleTaskView(false);\n *\n * // There are some milestone, task, so show those view panel.\n * calendar.toggleTaskView(true);\n */\nCalendar.prototype.toggleTaskView = function(enabled) {\n var viewName = this.viewName,\n options = this.options;\n\n options.taskView = enabled;\n\n this.toggleView(viewName, true);\n};\n\n/**\n * Toggle schedule view('AllDay', TimeGrid') panel\n * @param {boolean} enabled - use task view\n * @example\n * // hide those view panel to show only 'Milestone', 'Task'\n * calendar.toggleScheduleView(false);\n *\n * // show those view panel.\n * calendar.toggleScheduleView(true);\n */\nCalendar.prototype.toggleScheduleView = function(enabled) {\n var viewName = this.viewName,\n options = this.options;\n\n options.scheduleView = enabled;\n\n this.toggleView(viewName, true);\n};\n\n/**\n * Set current view name\n * @param {string} viewName - new view name to render\n * @private\n */\nCalendar.prototype._setViewName = function(viewName) {\n this.prevViewName = this.viewName;\n this.viewName = viewName;\n};\n\n/**\n * Get schedule by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {HTMLElement} schedule element if found or null\n * @example\n * var element = calendar.getElement(scheduleId, calendarId);\n * console.log(element);\n */\nCalendar.prototype.getElement = function(scheduleId, calendarId) {\n var schedule = this.getSchedule(scheduleId, calendarId);\n if (schedule) {\n return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n }\n\n return null;\n};\n\n/**\n * Set timezone offset\n * @param {number} offset - offset (min)\n * @static\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n */\nCalendar.setTimezoneOffset = function(offset) {\n timezone.setOffset(offset);\n};\n\n/**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n * @static\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n * });\n */\nCalendar.setTimezoneOffsetCallback = function(callback) {\n timezone.setOffsetCallback(callback);\n};\n\nutil.CustomEvents.mixin(Calendar);\n\nmodule.exports = Calendar;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/calendar.js\n// module id = 35\n// module chunks = 0","/**\n * @fileoverview Layout view. wrap all view containers at outside.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\nvar View = require('./view');\n\n/**\n * Layout view for toggle each child view. It will controlled via navigation UI.\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container Container element to use layout view.\n */\nfunction Layout(container) {\n container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * @type {Collection} Child view collection.\n */\n this.children = new Collection(function(childView) {\n return childView.viewName;\n });\n /* eslint-enable*/\n}\n\nutil.inherit(Layout, View);\n\n/**\n * Clear child views.\n */\nLayout.prototype.clear = function() {\n this.children.each(function(childView) {\n childView.destroy();\n });\n\n this.children.clear();\n this.container.innerHTML = '';\n};\n\n/**\n * Remove child view.\n * @override\n * @param {(string|View)} viewName - name of view or instance.\n */\nLayout.prototype.removeChild = function(viewName) {\n this.children.remove(viewName);\n};\n\n/**\n * Toggle child views.\n * @param {string} viewName - Name of view.\n */\nLayout.prototype.toggleChildView = function(viewName) {\n var container,\n prefix = ['add', 'remove'],\n flag;\n\n this.children.each(function(childView) {\n container = childView.container;\n flag = Number(childView.viewName === viewName);\n domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n });\n};\n\nmodule.exports = Layout;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/layout.js\n// module id = 36\n// module chunks = 0","/**\n * @fileoverview The base class of views.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\n\n/**\n * Base class of views.\n *\n * All views create own container element inside supplied container element.\n * @constructor\n * @param {HTMLElement} container Default container element for view.\n * you can use this element for this.container syntax.\n */\nfunction View(container) {\n var id = util.stamp(this);\n\n if (util.isUndefined(container)) {\n container = domutil.appendHTMLElement('div');\n }\n\n domutil.addClass(container, this.cssprefix(id));\n\n /**\n * unique id\n * @type {number}\n */\n this.id = id;\n\n /**\n * base element of view.\n * @type {HTMLDIVElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * child views.\n * @type {Collection}\n */\n this.children = new Collection(function(view) {\n return util.stamp(view);\n });\n /* eslint-enable*/\n\n /**\n * parent view instance.\n * @type {View}\n */\n this.parent = null;\n}\n\n/**\n * CSS classname prefix\n * @type {string}\n */\nView.prototype.cssPrefix = 'tui-view-';\n\n/**\n * Add child views.\n * @param {View} view The view instance to add.\n * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n */\nView.prototype.addChild = function(view, fn) {\n if (fn) {\n fn.call(view, this);\n }\n // add parent view\n view.parent = this;\n\n this.children.add(view);\n};\n\n/**\n * Remove added child view.\n * @param {(number|View)} id View id or instance itself to remove.\n * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n */\nView.prototype.removeChild = function(id, fn) {\n var view = util.isNumber(id) ? this.children.items[id] : id;\n\n id = util.stamp(view);\n\n if (fn) {\n fn.call(view, this);\n }\n\n this.children.remove(id);\n};\n\n/**\n * Render view recursively.\n */\nView.prototype.render = function() {\n this.children.each(function(childView) {\n childView.render();\n });\n};\n\n/**\n * Invoke function recursively.\n * @param {function} fn - function to invoke child view recursively\n * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n */\nView.prototype.recursive = function(fn, skipThis) {\n if (!util.isFunction(fn)) {\n return;\n }\n\n if (!skipThis) {\n fn(this);\n }\n\n this.children.each(function(childView) {\n childView.recursive(fn);\n });\n};\n\n/**\n * Resize view recursively to parent.\n */\nView.prototype.resize = function() {\n var args = Array.prototype.slice.call(arguments),\n parent = this.parent;\n\n while (parent) {\n if (util.isFunction(parent._onResize)) {\n parent._onResize.apply(parent, args);\n }\n\n parent = parent.parent;\n }\n};\n\n/**\n * Invoking method before destroying.\n */\nView.prototype._beforeDestroy = function() {};\n\n/**\n * Clear properties\n */\nView.prototype._destroy = function() {\n this._beforeDestroy();\n this.children.clear();\n this.container.innerHTML = '';\n\n this.id = this.parent = this.children = this.container = null;\n};\n\n/*eslint-disable*/\n/**\n * Destroy child view recursively.\n */\nView.prototype.destroy = function(isChildView) {\n this.children.each(function(childView) {\n childView.destroy(true);\n childView._destroy();\n });\n\n if (isChildView) {\n return;\n }\n\n this._destroy();\n};\n/* eslint-enable*/\n\n/**\n * Calculate view's container element bound.\n * @returns {object} The bound of container element.\n */\nView.prototype.getViewBound = function() {\n var container = this.container,\n position = domutil.getPosition(container),\n size = domutil.getSize(container);\n\n return {\n x: position[0],\n y: position[1],\n width: size[0],\n height: size[1]\n };\n};\n\n/**\n * Return view default CSS prefix\n * @param {string} [className] - if supplied then return prefix added class name\n * @returns {string} CSS prefix value\n */\nView.prototype.cssprefix = function(className) {\n return this.cssPrefix + (className || '');\n};\n\nutil.CustomEvents.mixin(View);\n\nmodule.exports = View;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/view.js\n// module id = 37\n// module chunks = 0","/**\n * @fileoverview Drag handler for calendar.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar domevent = require('../common/domevent');\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {object} options - options for drag handler\n * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n * @param {HTMLElement} container element to watching drag interaction.\n */\nfunction Drag(options, container) {\n domevent.on(container, 'mousedown', this._onMouseDown, this);\n\n this.options = util.extend({\n distance: 10,\n exclude: null\n }, options);\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * Flag for represent current dragging session has been cancelled for exclude option.\n * @type {boolean}\n */\n this._cancelled = false;\n\n /**\n * @type {boolean}\n */\n this._isMoved = false;\n\n /**\n * dragging distance in pixel between mousedown and firing dragStart events\n * @type {number}\n */\n this._distance = 0;\n\n /**\n * @type {boolean}\n */\n this._dragStartFired = false;\n\n /**\n * @type {object}\n */\n this._dragStartEventData = null;\n}\n\n/**\n * Destroy method.\n */\nDrag.prototype.destroy = function() {\n domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n this._isMoved = null;\n this.container = null;\n};\n\n/**\n * Clear cache data for single dragging session.\n */\nDrag.prototype._clearData = function() {\n this._cancelled = false;\n this._distance = 0;\n this._isMoved = false;\n this._dragStartFired = false;\n this._dragStartEventData = null;\n};\n\n/**\n * Toggle events for mouse dragging.\n * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n */\nDrag.prototype._toggleDragEvent = function(toBind) {\n var container = this.container,\n domMethod,\n method;\n\n if (toBind) {\n domMethod = 'on';\n method = 'disable';\n } else {\n domMethod = 'off';\n method = 'enable';\n }\n\n domutil[method + 'TextSelection'](container);\n domutil[method + 'ImageDrag'](container);\n domevent[domMethod](global.document, {\n mousemove: this._onMouseMove,\n mouseup: this._onMouseUp\n }, this);\n};\n\n/**\n * Normalize mouse event object.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {object} normalized mouse event data.\n */\nDrag.prototype._getEventData = function(mouseEvent) {\n return {\n target: mouseEvent.target || mouseEvent.srcElement,\n originEvent: mouseEvent\n };\n};\n\n/**\n * MouseDown DOM event handler.\n * @param {MouseEvent} mouseDownEvent MouseDown event object.\n */\nDrag.prototype._onMouseDown = function(mouseDownEvent) {\n var opt = this.options,\n target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n if (opt.exclude && opt.exclude(target)) {\n this._cancelled = true;\n\n return;\n }\n\n this._clearData();\n this._dragStartEventData = this._getEventData(mouseDownEvent);\n\n this._toggleDragEvent(true);\n};\n\n/**\n * MouseMove DOM event handler.\n * @emits Drag#drag\n * @emits Drag#dragStart\n * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n */\nDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n var distance;\n\n if (this._cancelled) {\n this._clearData();\n\n return;\n }\n\n distance = this.options.distance;\n // prevent automatic scrolling.\n domevent.preventDefault(mouseMoveEvent);\n\n if (this._distance < distance) {\n this._distance += 1;\n\n return;\n }\n this._isMoved = true;\n\n if (!this._dragStartFired) {\n this._dragStartFired = true;\n\n /**\n * Drag start events. cancelable.\n * @event Drag#dragStart\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n if (!this.invoke('dragStart', this._dragStartEventData)) {\n this._toggleDragEvent(false);\n this._clearData();\n\n return;\n }\n }\n\n /**\n * CalEvents while dragging.\n * @event Drag#drag\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('drag', this._getEventData(mouseMoveEvent));\n};\n\n/**\n * MouseUp DOM event handler.\n * @param {MouseEvent} mouseUpEvent MouseUp event object.\n * @emits Drag#dragEnd\n * @emits Drag#click\n */\nDrag.prototype._onMouseUp = function(mouseUpEvent) {\n if (this._cancelled) {\n return;\n }\n\n this._toggleDragEvent(false);\n\n // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n if (this._isMoved) {\n this._isMoved = false;\n /**\n * Drag end events.\n * @event Drag#dragEnd\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('dragEnd', this._getEventData(mouseUpEvent));\n } else {\n /**\n * Click events.\n * @event Drag#click\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('click', this._getEventData(mouseUpEvent));\n }\n\n this._clearData();\n};\n\nutil.CustomEvents.mixin(Drag);\n\nmodule.exports = Drag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/drag.js\n// module id = 38\n// module chunks = 0","/**\n * @fileoverview Controller factory module.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Base = require('../controller/base'),\n Core = require('../controller/viewMixin/core'),\n Week = require('../controller/viewMixin/week'),\n Month = require('../controller/viewMixin/month'),\n datetime = require('../common/datetime');\n\n/**\n * Mixin object. create object property to target and mix to that\n * @param {object} from - source object\n * @param {object} to - target object\n * @param {string} propertyName - property name\n */\nfunction mixin(from, to, propertyName) {\n var obj = to[propertyName] = {};\n\n util.forEach(from, function(method, methodName) {\n obj[methodName] = util.bind(method, to);\n });\n}\n\n/**\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @returns {Base} The controller instance.\n */\nmodule.exports = function(options) {\n var controller = new Base(options),\n originQuery;\n\n mixin(Core, controller, 'Core');\n mixin(Week, controller, 'Week');\n mixin(Month, controller, 'Month');\n\n /**********\n * Override Week#findByDateRange for support schedules that category is 'miles\n * tone', 'task'.\n **********/\n\n originQuery = controller.Week.findByDateRange;\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @override\n * @param {Date} start - start date to find schedules\n * @param {Date} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @returns {object} view model data\n */\n function findByDateRange(start, end, andFilters) {\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ymdRange = util.map(dateRange, function(d) {\n return datetime.format(d, 'YYYY-MM-DD');\n }),\n viewModels;\n\n andFilters = andFilters || [];\n viewModels = originQuery(start, end, andFilters);\n\n util.forEach(viewModels, function(coll, key, obj) {\n var groupedByYMD;\n\n // Change view model\n if (key === 'milestone') {\n groupedByYMD = coll.groupBy(ymdRange, function(viewModel) {\n return datetime.format(viewModel.model.end, 'YYYY-MM-DD');\n });\n\n obj[key] = groupedByYMD;\n }\n });\n\n return viewModels;\n }\n\n controller.Week.findByDateRange = findByDateRange;\n\n return controller;\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/controller.js\n// module id = 39\n// module chunks = 0","/**\n * @fileoverview Base calendar controller\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Schedule = require('../model/schedule');\nvar ScheduleViewModel = require('../model/viewModel/scheduleViewModel');\nvar datetime = require('../common/datetime');\nvar common = require('../common/common');\n\n/**\n * @constructor\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @mixes util.CustomEvents\n */\nfunction Base(options) {\n options = options || {};\n\n /**\n * function for group each schedule models.\n * @type {function}\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {string} group key\n */\n this.groupFunc = options.groupFunc || function(viewModel) {\n if (viewModel.model.isAllDay) {\n return 'allday';\n }\n\n return 'time';\n };\n\n /**\n * schedules collection.\n * @type {Collection}\n */\n this.schedules = common.createScheduleCollection();\n\n /**\n * Matrix for multidate schedules.\n * @type {object.}\n */\n this.dateMatrix = {};\n}\n\n/**\n * Calculate contain dates in schedule.\n * @private\n * @param {Schedule} schedule The instance of schedule.\n * @returns {array} contain dates.\n */\nBase.prototype._getContainDatesInSchedule = function(schedule) {\n var range = datetime.range(\n datetime.start(schedule.getStarts()),\n datetime.end(schedule.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n );\n\n return range;\n};\n\n/**********\n * CRUD\n **********/\n\n/**\n * Create an schedule instance from raw data.\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {object} options Data object to create schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that created.\n */\nBase.prototype.createSchedule = function(options, silent) {\n var schedule,\n scheduleData = {\n data: options\n };\n\n /**\n * @event Base#beforeCreateSchedule\n * @type {Calendar~Schedule[]}\n */\n if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n return null;\n }\n\n schedule = this.addSchedule(Schedule.create(options));\n\n if (!silent) {\n /**\n * @event Base#createdSchedule\n * @type {Schedule}\n */\n this.fire('createdSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n * @param {boolean} [silent=false] - set true then don't fire events.\n * @returns {Schedule[]} The instance list of Schedule that created.\n */\nBase.prototype.createSchedules = function(dataList, silent) {\n var self = this;\n\n return util.map(dataList, function(data) {\n return self.createSchedule(data, silent);\n });\n};\n\n/**\n * Update an schedule.\n * @emits Base#updateSchedule\n * @param {Schedule} schedule - schedule instance to update\n * @param {object} options updated object data.\n * @returns {Schedule} updated schedule instance\n */\nBase.prototype.updateSchedule = function(schedule, options) {\n var start = options.start || schedule.start;\n var end = options.end || schedule.end;\n\n options = options || {};\n\n if (options.title) {\n schedule.set('title', options.title);\n }\n\n if (options.isAllDay) {\n schedule.set('isAllDay', options.isAllDay);\n }\n\n if (options.start || options.end) {\n if (schedule.isAllDay) {\n schedule.setAllDayPeriod(start, end);\n } else {\n schedule.setTimePeriod(start, end);\n }\n }\n\n if (options.color) {\n schedule.set('color', options.color);\n }\n\n if (options.bgColor) {\n schedule.set('bgColor', options.bgColor);\n }\n\n if (options.borderColor) {\n schedule.set('borderColor', options.borderColor);\n }\n\n if (options.origin) {\n schedule.set('origin', options.origin);\n }\n\n if (!util.isUndefined(options.isPending)) {\n schedule.set('isPending', options.isPending);\n }\n\n if (!util.isUndefined(options.isFocused)) {\n schedule.set('isFocused', options.isFocused);\n }\n\n this._removeFromMatrix(schedule);\n this._addToMatrix(schedule);\n\n /**\n * @event Base#updateSchedule\n */\n this.fire('updateSchedule');\n\n return schedule;\n};\n\n/**\n * Delete schedule instance from controller.\n * @param {Schedule} schedule - schedule instance to delete\n * @returns {Schedule} deleted model instance.\n */\nBase.prototype.deleteSchedule = function(schedule) {\n this._removeFromMatrix(schedule);\n this.schedules.remove(schedule);\n\n return schedule;\n};\n\n/**\n * Set date matrix to supplied schedule instance.\n * @param {Schedule} schedule - instance of schedule.\n */\nBase.prototype._addToMatrix = function(schedule) {\n var ownMatrix = this.dateMatrix;\n var containDates = this._getContainDatesInSchedule(schedule);\n\n util.forEach(containDates, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\n matrix.push(util.stamp(schedule));\n });\n};\n\n/**\n * Remove schedule's id from matrix.\n * @param {Schedule} schedule - instance of schedule\n */\nBase.prototype._removeFromMatrix = function(schedule) {\n var modelID = util.stamp(schedule);\n\n util.forEach(this.dateMatrix, function(matrix) {\n var index = util.inArray(modelID, matrix);\n\n if (~index) {\n matrix.splice(index, 1);\n }\n }, this);\n};\n\n/**\n * Add an schedule instance.\n * @emits Base#addedSchedule\n * @param {Schedule} schedule The instance of Schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that added.\n */\nBase.prototype.addSchedule = function(schedule, silent) {\n this.schedules.add(schedule);\n this._addToMatrix(schedule);\n\n if (!silent) {\n /**\n * @event Base#addedSchedule\n * @type {object}\n */\n this.fire('addedSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * split schedule model by ymd.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @param {Collection} scheduleCollection - collection of schedule model.\n * @returns {object.} splitted schedule model collections.\n */\nBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownMatrix = this.dateMatrix,\n result = {};\n\n util.forEachArray(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd],\n collection;\n\n collection = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n util.forEachArray(matrix, function(id) {\n scheduleCollection.doWhenHas(id, function(schedule) {\n collection.add(schedule);\n });\n });\n }\n });\n\n return result;\n};\n\n/**\n * Return schedules in supplied date range.\n *\n * available only YMD.\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @returns {object.} schedule collection grouped by dates.\n */\nBase.prototype.findByDateRange = function(start, end) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownSchedules = this.schedules.items,\n ownMatrix = this.dateMatrix,\n dformat = datetime.format,\n result = {},\n matrix,\n ymd,\n viewModels;\n\n util.forEachArray(range, function(date) {\n ymd = dformat(date, 'YYYYMMDD');\n matrix = ownMatrix[ymd];\n viewModels = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n return ScheduleViewModel.create(ownSchedules[id]);\n }));\n }\n });\n\n return result;\n};\n\nBase.prototype.clearSchedules = function() {\n this.dateMatrix = {};\n this.schedules.clear();\n /**\n * for inner view when clear schedules\n * @event Base#clearSchedules\n * @type {Schedule}\n */\n this.fire('clearSchedules');\n};\n\n// mixin\nutil.CustomEvents.mixin(Base);\n\nmodule.exports = Base;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/base.js\n// module id = 40\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Model of schedule.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar TZDate = require('../common/timezone').Date;\nvar datetime = require('../common/datetime');\nvar dirty = require('../common/dirty');\nvar model = require('../common/model');\n\n/**\n * 일정 카테고리\n * @readonly\n * @enum {string}\n */\nvar SCHEDULE_CATEGORY = {\n /** 마일스톤 */\n MILESTONE: 'milestone',\n\n /** 업무 */\n TASK: 'task',\n\n /** 종일일정 */\n ALLDAY: 'allday',\n\n /** 시간별 일정 */\n TIME: 'time'\n};\n\n/**\n * The model of calendar schedules.\n * @constructor\n * @mixes dirty\n * @mixes model\n */\nfunction Schedule() {\n /**\n * `Optional` unique id for various use.\n * @type {string}\n */\n this.id = '';\n\n /**\n * title for schedule.\n * @type {string}\n */\n this.title = '';\n\n /**\n * is schedule is all day schedule?\n * @type {boolean}\n */\n this.isAllDay = false;\n\n /**\n * schedule start\n * @type {TZDate}\n */\n this.start = null;\n\n /**\n * schedule end\n * @type {TZDate}\n */\n this.end = null;\n\n /**\n * schedule text color\n * @type {string}\n */\n this.color = '#000';\n\n /**\n * schedule block visibility\n * @type {boolean}\n */\n this.isVisible = true;\n\n /**\n * schedule background color\n * @type {string}\n */\n this.bgColor = '#a1b56c';\n\n /**\n * schedule left border color\n * @type {string}\n */\n this.borderColor = '#000';\n\n /**\n * 캘린더 ID\n * @type {string}\n */\n this.calendarId = '';\n\n /**\n * 일정 카테고리 (마일스톤, 업무, 종일일정, 시간별일정)\n * @type {string}\n */\n this.category = '';\n\n /**\n * 업무 일정의 경우 구분 (출근전, 점심전, 퇴근전)\n * @type {string}\n */\n this.dueDateClass = '';\n\n /**\n * 커스텀 스타일\n * @type {string}\n */\n this.customStyle = '';\n\n /**\n * in progress flag to do something\n * @type {boolean}\n */\n this.isPending = false;\n\n /**\n * focused schedule flag\n * @type {boolean}\n */\n this.isFocused = false;\n\n /**\n * read-only schedule flag\n * @type {boolean}\n */\n this.isReadOnly = false;\n\n /**\n * 렌더링과 관계 없는 별도 데이터 저장 공간.\n * @type {object}\n */\n this.raw = null;\n\n // initialize model id\n util.stamp(this);\n}\n\n/**********\n * static props\n **********/\n\nSchedule.schema = {\n required: ['title'],\n dateRange: ['start', 'end']\n};\n\n/**\n * create schedule model from json(object) data.\n * @param {object} data object for model.\n * @returns {Schedule} Schedule model instance.\n */\nSchedule.create = function(data) {\n var inst = new Schedule();\n inst.init(data);\n\n return inst;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Initialize schedule instance.\n * @param {object} options options.\n */\nSchedule.prototype.init = function(options) {\n options = util.extend({}, options);\n if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n options.isAllDay = true;\n }\n\n this.id = options.id || '';\n this.title = options.title || '';\n this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\n this.color = options.color || this.color;\n this.bgColor = options.bgColor || this.bgColor;\n this.borderColor = options.borderColor || this.borderColor;\n this.calendarId = options.calendarId || '';\n this.category = options.category || '';\n this.dueDateClass = options.dueDateClass || '';\n this.customStyle = options.customStyle || '';\n this.isPending = options.isPending || false;\n this.isFocused = options.isFocused || false;\n this.isReadOnly = options.isReadOnly || false;\n\n if (this.isAllDay) {\n this.setAllDayPeriod(options.start, options.end);\n } else {\n this.setTimePeriod(options.start, options.end);\n }\n\n if (options.category === SCHEDULE_CATEGORY.MILESTONE ||\n options.category === SCHEDULE_CATEGORY.TASK) {\n this.start = new TZDate(this.end);\n }\n\n this.raw = options.raw || null;\n};\n\nSchedule.prototype.setAllDayPeriod = function(start, end) {\n // 종일일정인 경우 문자열의 날짜정보만 사용한다.\n if (util.isString(start)) {\n start = datetime.parse(start.substring(0, 10));\n }\n if (util.isString(end)) {\n end = datetime.parse(end.substring(0, 10));\n }\n\n this.start = start;\n this.start.setHours(0, 0, 0);\n this.end = end || new TZDate(this.start);\n this.end.setHours(23, 59, 59);\n};\n\nSchedule.prototype.setTimePeriod = function(start, end) {\n this.start = new TZDate(start || Date.now());\n this.end = new TZDate(end || this.start);\n\n if (!end) {\n this.end.setMinutes(this.end.getMinutes() + 30);\n }\n};\n\n/**\n * @returns {Date} render start date.\n */\nSchedule.prototype.getStarts = function() {\n return this.start;\n};\n\n/**\n * @returns {Date} render end date.\n */\nSchedule.prototype.getEnds = function() {\n return this.end;\n};\n\n/**\n * @returns {number} instance unique id.\n */\nSchedule.prototype.cid = function() {\n return util.stamp(this);\n};\n\n/**\n * Check two schedule are equals (means title, isAllDay, start, end are same)\n * @param {Schedule} schedule Schedule model instance to compare.\n * @returns {boolean} Return false when not same.\n */\nSchedule.prototype.equals = function(schedule) {\n if (this.id !== schedule.id) {\n return false;\n }\n\n if (this.title !== schedule.title) {\n return false;\n }\n\n if (this.isAllDay !== schedule.isAllDay) {\n return false;\n }\n\n if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n return false;\n }\n\n if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n return false;\n }\n\n if (this.color !== schedule.color) {\n return false;\n }\n\n if (this.bgColor !== schedule.bgColor) {\n return false;\n }\n\n if (this.borderColor !== schedule.borderColor) {\n return false;\n }\n\n return true;\n};\n\n/**\n * return duration between start and end.\n * @returns {Date} duration (UTC)\n */\nSchedule.prototype.duration = function() {\n var start = this.getStarts(),\n end = this.getEnds(),\n duration;\n\n if (this.isAllDay) {\n duration = new TZDate(datetime.end(end) - datetime.start(start));\n } else {\n duration = new TZDate(end - start);\n }\n\n return duration;\n};\n\n/**\n * Returns true if the given Schedule coincides with the same time as the\n * calling Schedule.\n * @param {Schedule} schedule The other schedule to compare with this Schedule.\n * @returns {boolean} If the other schedule occurs within the same time as the first object.\n */\nSchedule.prototype.collidesWith = function(schedule) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = schedule.getStarts(),\n end = schedule.getEnds();\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodel.mixin(Schedule.prototype);\ndirty.mixin(Schedule.prototype);\n\nmodule.exports = Schedule;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/model/schedule.js\n// module id = 41\n// module chunks = 0","/**\n * @fileoverview Dirty flagging module for objects.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar common = require('tui-code-snippet');\nvar existy = common.isExisty,\n pick = common.pick,\n isFunc = common.isFunction;\n\n/**\n * Mixin module for dirty flagging on specific objects.\n * @mixin\n * @example\n * var obj = { hello: 'good', test: '123' };\n * dirty.mixin(obj);\n *\n * obj.set('hello', 'world');\n * obj.isDirty(); // true\n * obj.isPropChanged('hello'); // true\n * obj.isPropChanged('test'); // false\n * obj.dirty(false);\n *\n * obj.isDirty(); // false\n * obj.isPropChanged('hello'); // false\n */\nvar dirty = {\n /**\n * Set property value with dirty flagging.\n * @param {string} propName Property name.\n * @param {*} value Proprty value.\n */\n set: function(propName, value) {\n var originValue = this[propName];\n\n if (originValue === value) {\n return;\n }\n\n this[propName] = value;\n\n if (!this._changed) {\n /**\n * Save changed properties.\n * @memberof dirty\n * @name _changed\n * @type {Object}\n */\n this._changed = {};\n }\n\n this._changed[propName] = true;\n\n /**\n * Dirty flag\n * @type {Boolean}\n * @name _dirty\n * @memberof dirty\n */\n this._dirty = true;\n },\n\n /**\n * Check dirty flag.\n * @returns {boolean} Property is changed.\n */\n isDirty: function() {\n return !!this._dirty;\n },\n\n /**\n * Set dirty flag manually.\n * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n */\n dirty: function(toDirty) {\n toDirty = existy(toDirty) ? toDirty : true;\n\n /* istanbul ignore else */\n if (!toDirty) {\n this._changed = {};\n }\n\n this._dirty = toDirty;\n },\n\n /**\n * Delete property safety.\n * @param {String} propName The name of property.\n */\n deleteProp: function(propName) {\n delete this[propName];\n\n if (this._changed) {\n delete this._changed[propName];\n }\n },\n\n /**\n * Check the changes with specific property.\n * @param {String} propName The name of property you want.\n * @returns {boolean} Is property changed?\n */\n isPropChanged: function(propName) {\n if (!this._changed) {\n return false;\n }\n\n return this._changed[propName] === true;\n },\n\n /**\n * Mixin to specific objects.\n * @param {Object} target The object to mix this module.\n * @memberof module:util/dirty\n * @example\n * function Animal() {}\n * dirty.mixin(Animal.prototype);\n */\n mixin: function(target) {\n var methodFilterR = /(^_|mixin|wrap)/;\n\n common.forEachOwnProperties(dirty, function(o, k) {\n if (!methodFilterR.test(k)) {\n target[k] = dirty[k];\n }\n });\n },\n\n /**\n * Wrapper method for dirty flagging.\n *\n * This method invoke after invoked specific method that added by you.\n *\n * The method want to add are must exist before add.\n * @param {object} target Target object to method wrap.\n * @param {(string|object)} methodName\n * Method name to wrap or methodName: flag objects.\n * @param {boolean} [flag=true]\n * this will used to flagging by dirty flagger after invoke the methods added by you.\n * @memberof module:util/dirty\n * @example\n * function Animal(name) {\n * this.name = name;\n * }\n * Animal.prototype.growl = jasmine.createSpy('growl');\n * Animal.prototype.test = function() {\n * return this.name;\n * };\n *\n * dirty.mixin(Animal.prototype);\n * // single\n * dirty.wrap(Animal.prototype, 'growl', true);\n * // multiple\n * dirty.wrap(Animap.prototype, {\n * growl: true,\n * test: false\n * });\n *\n */\n wrap: function(target, methodName, flag) {\n var wrap = dirty.wrap,\n fn;\n\n if (common.isObject(methodName)) {\n common.forEachOwnProperties(methodName, function(_flag, _name) {\n wrap(target, _name, _flag);\n });\n\n return;\n }\n\n flag = existy(flag) ? flag : true;\n\n if (!target._wrapper) {\n /**\n * @param {function} _fn Original method to wrap.\n * @param {boolean} flagToSet The boolean value to using dirty flagging.\n * @returns {*} The result value of original method.\n * @name _wrapper\n * @memberof dirty\n */\n target._wrapper = function(_fn, flagToSet) {\n return function() {\n var args = Array.prototype.slice.call(arguments);\n var result = _fn.apply(this, args); // eslint-disable-line\n this._dirty = flagToSet; // eslint-disable-line\n\n return result;\n };\n };\n }\n\n if (existy(pick(target, methodName)) &&\n isFunc(target[methodName]) &&\n !existy(pick(target, methodName, '_wrapped'))) {\n fn = target[methodName];\n target[methodName] = target._wrapper(fn, flag);\n target[methodName]._wrapped = true;\n }\n }\n};\n\nmodule.exports = dirty;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/dirty.js\n// module id = 42\n// module chunks = 0","/**\n * @fileoverview Mixin module for models.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\nvar util = require('tui-code-snippet');\nvar spaceRx = /^\\s*|\\s*$/g,\n model;\n\nvar datetime = require('../common/datetime');\n\n/**\n * Mixin module for models.\n * @mixin\n */\nmodel = {\n /**\n * string trim\n * @param {string} str string to trim\n * @returns {string} trimed string\n */\n trim: function(str) {\n return str.replace(spaceRx, '');\n },\n /**\n * The collections of validator functions.\n */\n validators: {\n /**\n * check all of supplied fields(property) is not undefined or empty string.\n * @param {object} instance model instance.\n * @param {string[]} fields property names to check.\n * @returns {boolean} return true when supplied fields are not undefined or empty string.\n */\n required: function(instance, fields) {\n var valid = true,\n isValid = function(obj) {\n return !util.isUndefined(obj) && model.trim(obj) !== '';\n };\n\n util.forEach(fields, function(fieldName) {\n valid = isValid(instance[fieldName]);\n\n return valid;\n });\n\n return valid;\n },\n\n /**\n * check supplied fields are valid dates and valid date ranges.\n * @param {object} instance model instance.\n * @param {Date[]} fields array of date range (start, end)\n * @returns {boolean} is valid date range?\n */\n dateRange: function(instance, fields) {\n var start, end;\n\n if (!util.isExisty(instance) || fields.length !== 2) {\n return true;\n }\n\n start = new TZDate(instance[fields[0]]);\n end = new TZDate(instance[fields[1]]);\n\n if (!datetime.isValid(start) || !datetime.isValid(end)) {\n return false;\n }\n\n if (datetime.compare(start, end) === 1) {\n return false;\n }\n\n return true;\n }\n },\n\n /**\n * Check validate for model instance.\n *\n * The validate are works on a basis of constructor's \"schema\" property.\n *\n * You can customize validators add some method to model#validators.\n * @returns {Boolean} model is valid?\n */\n isValid: function() {\n var self = this,\n schema = this.constructor.schema,\n validators = model.validators,\n validator,\n valid = true;\n\n if (!schema) {\n return true;\n }\n\n util.forEach(schema, function(values, validatorName) {\n validator = validators[validatorName];\n\n if (validator) {\n valid = validator(self, values);\n\n return valid; // returning false can stop this loop\n }\n\n return true;\n });\n\n return valid;\n },\n\n /**\n * Make data object form instance.\n *\n * It return object fill with all owned properties but exclude functions.\n * @returns {object} Data object\n */\n parameterize: function() {\n var param = {},\n isFunc = util.isFunction;\n\n util.forEach(this, function(value, propName) {\n if (!isFunc(value)) {\n param[propName] = value;\n }\n });\n\n return param;\n },\n\n /**\n * Mixin model module to supplied target.\n * @param {Object} target The object of want to mixed.\n * @example\n * function Man() {\n * this.name = 'john';\n * }\n * model.mixin(Man.prototype);\n */\n mixin: function(target) {\n util.forEach(model, function(method, name) {\n if (name !== 'mixin') {\n target[name] = method;\n }\n });\n }\n};\n\nmodule.exports = model;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/model.js\n// module id = 43\n// module chunks = 0","/**\n * @fileoverview Model for views\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Schedule ViewModel\n * @constructor\n * @param {Schedule} schedule Schedule instance.\n */\nfunction ScheduleViewModel(schedule) {\n /**\n * The model of schedule.\n * @type {Schedule}\n */\n this.model = schedule;\n\n /**\n * @type {number}\n */\n this.top = 0;\n\n /**\n * @type {number}\n */\n this.left = 0;\n\n /**\n * @type {number}\n */\n this.width = 0;\n\n /**\n * @type {number}\n */\n this.height = 0;\n\n /**\n * Represent schedule has collide with other schedules when rendering.\n * @type {boolean}\n */\n this.hasCollide = false;\n\n /**\n * Extra space at rigth side of this schedule.\n * @type {number}\n */\n this.extraSpace = 0;\n\n /**\n * represent this schedule block is not visible after rendered.\n *\n * in month view, some viewmodel in date need to hide when already rendered before dates.\n *\n * set true then it just shows empty space.\n * @type {boolean}\n */\n this.hidden = false;\n\n /**\n * whether the schedule includes multiple dates\n */\n this.hasMultiDates = false;\n\n /**\n * represent render start date used at rendering.\n *\n * if set null then use model's 'start' property.\n * @type {TZDate}\n */\n this.renderStarts = null;\n\n /**\n * whether the actual start-date is before the render-start-date\n * @type {boolean}\n */\n this.exceedLeft = false;\n\n /**\n * represent render end date used at rendering.\n *\n * if set null then use model's 'end' property.\n * @type {TZDate}\n */\n this.renderEnds = null;\n\n /**\n * whether the actual end-date is after the render-end-date\n * @type {boolean}\n */\n this.exceedRight = false;\n}\n\n/**********\n * static props\n **********/\n\n/**\n * ScheduleViewModel factory method.\n * @param {Schedule} schedule Schedule instance.\n * @returns {ScheduleViewModel} ScheduleViewModel instance.\n */\nScheduleViewModel.create = function(schedule) {\n return new ScheduleViewModel(schedule);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderStarts is not set. return model's start property.\n * @override\n * @returns {Date} render start date.\n */\nScheduleViewModel.prototype.getStarts = function() {\n if (this.renderStarts) {\n return this.renderStarts;\n }\n\n return this.model.start;\n};\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderEnds is not set. return model's end property.\n * @override\n * @returns {Date} render end date.\n */\nScheduleViewModel.prototype.getEnds = function() {\n if (this.renderEnds) {\n return this.renderEnds;\n }\n\n return this.model.end;\n};\n\n/**\n * @returns {number} unique number for model.\n */\nScheduleViewModel.prototype.cid = function() {\n return util.stamp(this.model);\n};\n\n/**\n * Shadowing valueOf method for schedule sorting.\n * @returns {Schedule} The model of schedule.\n */\nScheduleViewModel.prototype.valueOf = function() {\n return this.model;\n};\n\n/**\n * Link duration method\n * @returns {number} Schedule#duration result.\n */\nScheduleViewModel.prototype.duration = function() {\n return this.model.duration();\n};\n\n/**\n * Link collidesWith method\n * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n * @returns {boolean} Schedule#collidesWith result.\n */\nScheduleViewModel.prototype.collidesWith = function(viewModel) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = viewModel.getStarts(),\n end = viewModel.getEnds();\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodule.exports = ScheduleViewModel;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/model/viewModel/scheduleViewModel.js\n// module id = 44\n// module chunks = 0","/**\n * @fileoverview Core methods for schedule block placing\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachArr = util.forEachArray,\n aps = Array.prototype.slice;\n\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar Collection = require('../../common/collection');\nvar ScheduleViewModel = require('../../model/viewModel/scheduleViewModel');\n\nvar Core = {\n /**\n * Calculate collision group.\n * @param {array} viewModels List of viewmodels.\n * @returns {array} Collision Group.\n */\n getCollisionGroup: function(viewModels) {\n var collisionGroups = [],\n foundPrevCollisionSchedule = false,\n previousScheduleList;\n\n if (!viewModels.length) {\n return collisionGroups;\n }\n\n collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n forEachArr(viewModels.slice(1), function(schedule, index) {\n foundPrevCollisionSchedule = false;\n previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\n forEachArr(previousScheduleList, function(previous) {\n if (schedule.collidesWith(previous)) {\n // 이전 일정들과 겹치는 경우 겹치는 일정의 Collision Group을\n // 찾아 이 일정을 추가한다\n foundPrevCollisionSchedule = true;\n\n forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n // 겹치는 이전 일정을 찾은 경우 그 일정이 속한\n // Collision Group에 이 일정을 포함시킨다.\n group.push(util.stamp(schedule.valueOf()));\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n if (!foundPrevCollisionSchedule) {\n // 이 일정은 이전일정과 겹치지 않는 일정이므로\n // 새 Collision Group을 구성한다.\n collisionGroups.push([util.stamp(schedule.valueOf())]);\n }\n });\n\n return collisionGroups;\n },\n\n /**\n * Get row length by column index in 2d matrix.\n * @param {array[]} arr2d Matrix\n * @param {number} col Column index.\n * @returns {number} Last row number in column.\n */\n getLastRowInColumn: function(arr2d, col) {\n var row = arr2d.length;\n\n while (row > 0) {\n row -= 1;\n if (!util.isUndefined(arr2d[row][col])) {\n return row;\n }\n }\n\n return false;\n },\n\n /**\n * Calculate matrix for appointment block element placing.\n * @param {Collection} collection model collection.\n * @param {array[]} collisionGroups Collision groups for schedule set.\n * @returns {array} matrices\n */\n getMatrices: function(collection, collisionGroups) {\n var result = [],\n getLastRowInColumn = Core.getLastRowInColumn;\n\n forEachArr(collisionGroups, function(group) {\n var matrix = [[]];\n\n forEachArr(group, function(scheduleID) {\n var schedule = collection.items[scheduleID],\n col = 0,\n found = false,\n nextRow,\n lastRowInColumn;\n\n while (!found) {\n lastRowInColumn = getLastRowInColumn(matrix, col);\n\n if (lastRowInColumn === false) {\n matrix[0].push(schedule);\n found = true;\n } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n nextRow = lastRowInColumn + 1;\n if (util.isUndefined(matrix[nextRow])) {\n matrix[nextRow] = [];\n }\n matrix[nextRow][col] = schedule;\n found = true;\n }\n\n col += 1;\n }\n });\n\n result.push(matrix);\n });\n\n return result;\n },\n\n /**\n * Filter that get schedule model in supplied date ranges.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @returns {function} schedule filter function\n */\n getScheduleInDateRangeFilter: function(start, end) {\n return function(model) {\n var ownStarts = model.getStarts(),\n ownEnds = model.getEnds();\n\n // shorthand condition of\n //\n // (ownStarts >= start && ownEnds <= end) ||\n // (ownStarts < start && ownEnds >= start) ||\n // (ownEnds > end && ownStarts <= end)\n return !(ownEnds < start || ownStarts > end);\n };\n },\n\n /**\n * Position each view model for placing into container\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {array} matrices - matrices from controller\n * @param {function} [iteratee] - iteratee function invoke each view models\n */\n positionViewModels: function(start, end, matrices, iteratee) {\n var ymdListToRender;\n\n ymdListToRender = util.map(\n datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n function(date) {\n return datetime.format(date, 'YYYYMMDD');\n }\n );\n\n forEachArr(matrices, function(matrix) {\n forEachArr(matrix, function(column) {\n forEachArr(column, function(viewModel, index) {\n var ymd, dateLength;\n\n if (!viewModel) {\n return;\n }\n\n ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n dateLength = datetime.range(\n datetime.start(viewModel.getStarts()),\n datetime.end(viewModel.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n ).length;\n\n viewModel.top = index;\n viewModel.left = util.inArray(ymd, ymdListToRender);\n viewModel.width = dateLength;\n\n if (iteratee) {\n iteratee(viewModel);\n }\n });\n });\n });\n },\n\n /**\n * Limit start, end date each view model for render properly\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n * model collection or ScheduleViewModel\n * @returns {ScheduleViewModel} return view model when third parameter is\n * view model\n */\n limitRenderRange: function(start, end, viewModelColl) {\n /**\n * Limit render range for view models\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {ScheduleViewModel} view model that limited render range\n */\n function limit(viewModel) {\n if (viewModel.getStarts() < start) {\n viewModel.exceedLeft = true;\n viewModel.renderStarts = new TZDate(start.getTime());\n }\n\n if (viewModel.getEnds() > end) {\n viewModel.exceedRight = true;\n viewModel.renderEnds = new TZDate(end.getTime());\n }\n\n return viewModel;\n }\n\n if (viewModelColl.constructor === Collection) {\n viewModelColl.each(limit);\n\n return null;\n }\n\n return limit(viewModelColl);\n },\n\n /**\n * Convert schedule model collection to view model collection.\n * @param {Collection} modelColl - collection of schedule model\n * @returns {Collection} collection of schedule view model\n */\n convertToViewModel: function(modelColl) {\n var viewModelColl;\n\n viewModelColl = new Collection(function(viewModel) {\n return viewModel.cid();\n });\n\n modelColl.each(function(model) {\n viewModelColl.add(ScheduleViewModel.create(model));\n });\n\n return viewModelColl;\n }\n};\n\nmodule.exports = Core;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/core.js\n// module id = 45\n// module chunks = 0","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Controller mixin modules for day views.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar Collection = require('../../common/collection');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\n\n/**\n * @mixin Base.Week\n */\nvar Week = {\n /**********\n * TIME GRID VIEW\n **********/\n\n /**\n * Make array with start and end times on schedules.\n * @this Base.Week\n * @param {array[]} matrix - matrix from controller.\n * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n */\n generateTimeArrayInRow: function(matrix) {\n var row,\n col,\n schedule,\n map = [],\n cursor = [],\n maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n return col.length;\n }));\n\n for (col = 1; col < maxColLen; col += 1) {\n row = 0;\n schedule = util.pick(matrix, row, col);\n\n while (schedule) {\n cursor.push([schedule.getStarts().getTime(), schedule.getEnds().getTime()]);\n\n row += 1;\n schedule = util.pick(matrix, row, col);\n }\n\n map.push(cursor);\n cursor = [];\n }\n\n return map;\n },\n\n /**\n * Get collision information from list\n * @this Base\n * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n * @param {number} start - schedule start time that want to detect collisions.\n * @param {number} end - schedule end time that want to detect collisions.\n * @returns {boolean} target has collide in supplied array?\n */\n hasCollide: function(arr, start, end) {\n var startStart,\n startEnd,\n endStart,\n endEnd,\n getFunc = function(index) {\n return function(block) {\n return block[index];\n };\n },\n abs = Math.abs,\n compare = array.compare.num.asc,\n hasCollide;\n\n if (!arr.length) {\n return false;\n }\n\n startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\n return hasCollide;\n },\n\n /**\n * Initialize values to viewmodels for detect real collision at rendering phase.\n * @this Base\n * @param {array[]} matrices - Matrix data.\n */\n getCollides: function(matrices) {\n util.forEachArray(matrices, function(matrix) {\n var binaryMap,\n maxRowLength;\n\n binaryMap = Week.generateTimeArrayInRow(matrix);\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n util.forEachArray(matrix, function(row) {\n util.forEachArray(row, function(viewModel, col) {\n var startTime,\n endTime,\n hasCollide,\n i;\n\n if (!viewModel) {\n return;\n }\n\n startTime = viewModel.getStarts().getTime() + 1;\n endTime = viewModel.getEnds().getTime() - 1;\n\n for (i = (col + 1); i < maxRowLength; i += 1) {\n hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\n if (hasCollide) {\n viewModel.hasCollide = true;\n break;\n }\n\n viewModel.extraSpace += 1;\n }\n });\n });\n });\n },\n\n /**\n * create view model for time view part\n * @this Base\n * @param {Date} start - start date.\n * @param {Date} end - end date.\n * @param {Collection} time - view model collection.\n * @returns {object} view model for time part.\n */\n getViewModelForTimeView: function(start, end, time) {\n var self = this,\n ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n result = {};\n\n util.forEach(ymdSplitted, function(collection, ymd) {\n var viewModels = collection.sort(array.compare.schedule.asc),\n collisionGroups,\n matrices;\n\n collisionGroups = self.Core.getCollisionGroup(viewModels);\n matrices = self.Core.getMatrices(collection, collisionGroups);\n self.Week.getCollides(matrices);\n\n result[ymd] = matrices;\n });\n\n return result;\n },\n\n /**********\n * ALLDAY VIEW\n **********/\n\n /**\n * Set hasMultiDates flag to true and set date ranges for rendering\n * @this Base\n * @param {Collection} vColl - view model collection\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n viewModel.hasMultiDates = true;\n viewModel.renderStarts = datetime.start(model.getStarts());\n viewModel.renderEnds = datetime.end(model.getEnds());\n });\n },\n\n /**\n * create view model for allday view part\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n * @returns {object} allday viewModel.\n */\n getViewModelForAlldayView: function(start, end, viewModelColl) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n viewModels,\n collisionGroups,\n matrices;\n\n if (!viewModelColl || !viewModelColl.length) {\n return [];\n }\n\n ctrlWeek._addMultiDatesInfo(viewModelColl);\n ctrlCore.limitRenderRange(start, end, viewModelColl);\n\n viewModels = viewModelColl.sort(array.compare.schedule.asc);\n collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\n matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n ctrlCore.positionViewModels(start, end, matrices);\n\n return matrices;\n },\n\n /**********\n * READ\n **********/\n\n /**\n * Populate schedules in date range.\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @returns {object} schedules grouped by dates.\n */\n findByDateRange: function(start, end, andFilters) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n modelColl,\n group;\n\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n modelColl = this.schedules.find(filter);\n modelColl = ctrlCore.convertToViewModel(modelColl);\n\n group = modelColl.groupBy(['task', 'allday', 'time'], this.groupFunc);\n group.task = ctrlWeek.getViewModelForAlldayView(start, end, group.task);\n group.allday = ctrlWeek.getViewModelForAlldayView(start, end, group.allday);\n group.time = ctrlWeek.getViewModelForTimeView(start, end, group.time);\n\n return group;\n }\n};\n\nmodule.exports = Week;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/week.js\n// module id = 46\n// module chunks = 0","/**\n * @fileoverview Utility module for array sort, binary search.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../common/datetime');\n\n/**\n * A module for sorting array.\n * @module array\n */\n\n/**********\n * Search\n **********/\n\n/**\n * search item index using binary search algorithm.\n *\n * the array must be sorted.\n * @param {array} arr array to search.\n * @param {(string|number|boolean)} search value to search.\n * @param {function} [fn] iteratee for retrieve each element's value to search.\n * @param {function} [compare] compare function for specific sort status. default is string ascending.\n * @returns {number} The number of item index searched. return negative number when no exist that item.\n * It can use insert index after Math.abs()\n * @example\n *\n * var arr = [1, 3, 7, 11, 15, 23];\n *\n * function sortNumber(a, b) {\n * return a - b;\n * }\n *\n * bsearch(arr, 15, null, sortNumber); // 4\n * bsearch(arr, 21, null, sortNumber); // -5\n *\n * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n * // [1, 2, 7, 11, 15, 21, 23]\n */\nfunction bsearch(arr, search, fn, compare) {\n var minIndex = 0,\n maxIndex = arr.length - 1,\n currentIndex,\n value,\n comp;\n\n compare = compare || stringASC;\n\n while (minIndex <= maxIndex) {\n currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n comp = compare(value, search);\n\n if (comp < 0) {\n minIndex = currentIndex + 1;\n } else if (comp > 0) {\n maxIndex = currentIndex - 1;\n } else {\n return currentIndex;\n }\n }\n\n return ~maxIndex;\n}\n\n/**********\n * Compare Functions\n **********/\n\n/**\n * compare function for array sort.\n *\n * sort array by ascending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanASC(a, b) {\n if (a !== b) {\n return a ? -1 : 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by descending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanDESC(a, b) {\n if (a !== b) {\n return a ? 1 : -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number ascending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberASC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return a - b;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number descending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberDESC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return b - a;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * Compare schedule models for sort.\n *\n * 1. all day schedule first.\n * 2. early start.\n * 3. longest duration.\n * 4. early created.\n * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n * @returns {number} Result of comparison.\n */\nfunction scheduleASC(a, b) {\n var durationA, durationB;\n var allDayCompare, startsCompare;\n var modelA = a.valueOf();\n var modelB = b.valueOf();\n\n allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\n if (allDayCompare) {\n return allDayCompare;\n }\n\n startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\n if (startsCompare) {\n return startsCompare;\n }\n\n durationA = a.duration().getTime();\n durationB = b.duration().getTime();\n\n if (durationA < durationB) {\n return 1;\n }\n if (durationA > durationB) {\n return -1;\n }\n\n return util.stamp(modelA) - util.stamp(modelB);\n}\n\nmodule.exports = {\n bsearch: bsearch,\n compare: {\n schedule: {\n asc: scheduleASC\n },\n bool: {\n asc: booleanASC,\n desc: booleanDESC\n },\n num: {\n asc: numberASC,\n desc: numberDESC\n },\n str: {\n asc: stringASC,\n desc: stringDESC,\n ascIgnoreCase: stringASCIgnoreCase,\n descIgnoreCase: stringDESCIgnoreCase\n }\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/array.js\n// module id = 47\n// module chunks = 0","/**\n * @fileoverview Controller mixin for Month View\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar array = require('../../common/array'),\n datetime = require('../../common/datetime'),\n Collection = require('../../common/collection');\nvar mmax = Math.max;\n\nvar Month = {\n /**\n * Filter function for find time schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is time schedule?\n */\n _onlyTimeFilter: function(viewModel) {\n return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n },\n\n /**\n * Filter function for find allday schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is allday schedule?\n */\n _onlyAlldayFilter: function(viewModel) {\n return viewModel.model.isAllDay || viewModel.hasMultiDates;\n },\n\n /**\n * Weight top value +1 for month view render\n * @param {ScheduleViewModel} viewModel - schedule view model\n */\n _weightTopValue: function(viewModel) {\n viewModel.top = viewModel.top || 0;\n viewModel.top += 1;\n },\n\n /**\n * Adjust render range to render properly.\n *\n * Limit start, end for each allday schedules and expand start, end for\n * each time schedules\n * @this Base\n * @param {Date} start - render start date\n * @param {Date} end - render end date\n * @param {Collection} vColl - view model collection\n * property.\n */\n _adjustRenderRange: function(start, end, vColl) {\n var ctrlCore = this.Core;\n\n vColl.each(function(viewModel) {\n if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n ctrlCore.limitRenderRange(start, end, viewModel);\n }\n });\n },\n\n /**\n * Get max top index value for allday schedules in specific date (YMD)\n * @this Base\n * @param {string} ymd - yyyymmdd formatted value\n * @param {Collection} vAlldayColl - collection of allday schedules\n * @returns {number} max top index value in date\n */\n _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n var dateMatrix = this.dateMatrix,\n topIndexesInDate = [];\n util.forEach(dateMatrix[ymd], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topIndexesInDate.push(viewModel.top);\n });\n });\n\n if (topIndexesInDate.length > 0) {\n return mmax.apply(null, topIndexesInDate);\n }\n\n return 0;\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _adjustTimeTopIndex: function(vColl) {\n var ctrlMonth = this.Month;\n var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var maxIndexInYMD = {};\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\n if (util.isUndefined(alldayMaxTopInYMD)) {\n alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n }\n maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n (alldayMaxTopInYMD + 1);\n });\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _stackTimeFromTop: function(vColl) {\n var ctrlMonth = this.Month;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var indiceInYMD = {};\n var dateMatrix = this.dateMatrix;\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var topArrayInYMD = indiceInYMD[scheduleYMD];\n var maxTopInYMD;\n var i;\n\n if (util.isUndefined(topArrayInYMD)) {\n topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n util.forEach(dateMatrix[scheduleYMD], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topArrayInYMD.push(viewModel.top);\n });\n });\n }\n\n if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n for (i = 1; i <= maxTopInYMD; i += 1) {\n timeViewModel.top = i;\n if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n break;\n }\n }\n }\n topArrayInYMD.push(timeViewModel.top);\n });\n },\n\n /**\n * Convert multi-date time schedule to all-day schedule\n * @this Base\n * @param {Collection} vColl - view model collection\n * property.\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n var start = model.getStarts();\n var end = model.getEnds();\n\n viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\n if (!model.isAllDay && viewModel.hasMultiDates) {\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.end(end);\n }\n });\n },\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @param {Date} start - start date to find schedules\n * @param {Date} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n * @returns {object} view model data\n */\n findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n var ctrlCore = this.Core,\n ctrlMonth = this.Month,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n coll, vColl, vList,\n collisionGroup,\n matrices;\n\n alldayFirstMode = alldayFirstMode || false;\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n coll = this.schedules.find(filter);\n vColl = ctrlCore.convertToViewModel(coll);\n ctrlMonth._addMultiDatesInfo(vColl);\n ctrlMonth._adjustRenderRange(start, end, vColl);\n vList = vColl.sort(array.compare.schedule.asc);\n\n collisionGroup = ctrlCore.getCollisionGroup(vList);\n matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n if (alldayFirstMode) {\n ctrlMonth._adjustTimeTopIndex(vColl);\n } else {\n ctrlMonth._stackTimeFromTop(vColl);\n }\n\n return matrices;\n }\n};\n\nmodule.exports = Month;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/month.js\n// module id = 48\n// module chunks = 0","/**\n * @fileoverview Factory module for WeekView\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar VLayout = require('../common/vlayout');\nvar reqAnimFrame = require('../common/reqAnimFrame');\n// Parent views\nvar Week = require('../view/week/week');\n\n// Sub views\nvar DayName = require('../view/week/dayname');\nvar TimeGrid = require('../view/week/timeGrid');\nvar Allday = require('../view/week/allday');\nvar Milestone = require('../view/week/milestone');\nvar TaskView = require('../view/week/taskview');\n\n// Handlers\nvar AlldayClick = require('../handler/allday/click');\nvar AlldayCreation = require('../handler/allday/creation');\nvar AlldayMove = require('../handler/allday/move');\nvar AlldayResize = require('../handler/allday/resize');\nvar DayNameClick = require('../handler/time/clickDayname');\nvar TimeClick = require('../handler/time/click');\nvar TimeCreation = require('../handler/time/creation');\nvar TimeMove = require('../handler/time/move');\nvar TimeResize = require('../handler/time/resize');\nvar MilestoneClick = require('../handler/milestone/click');\n\nvar DEFAULT_VIEW_SEQUENCE = ['Milestone', 'Task', 'AllDay', 'TimeGrid'];\nvar DEFAULT_VIEWS = {\n 'Milestone': {\n minHeight: 20,\n height: 80,\n maxHeight: 80,\n show: true\n },\n 'Task': {\n minHeight: 40,\n height: 120,\n maxHeight: 120,\n show: true\n },\n 'AllDay': {\n minHeight: 20,\n height: 80,\n maxHeight: 80,\n show: true,\n maxExpandCount: 10\n },\n 'TimeGrid': {\n autoHeight: true,\n show: true\n }\n};\n\n/* eslint-disable complexity*/\nmodule.exports = function(baseController, layoutContainer, dragHandler, options) {\n var viewSequence = options.week.viewSequence || DEFAULT_VIEW_SEQUENCE,\n views = options.week.views || DEFAULT_VIEWS,\n panels = [],\n isAllDayPanelFirstRender = true;\n var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout,\n milestoneView, taskView, alldayView, timeGridView, alldayPanel;\n\n weekView = new Week(null, options.week, layoutContainer);\n weekView.handler = {\n click: {},\n dayname: {},\n creation: {},\n move: {},\n resize: {}\n };\n\n // Change visibilities\n util.forEach(views, function(value, key) {\n if (key === 'Milestone' || key === 'Task') {\n value.show = options.taskView;\n } else if (key === 'AllDay' || key === 'TimeGrid') {\n value.show = options.scheduleView;\n }\n });\n\n // Make panels by view sequence and visibilities\n util.forEach(viewSequence, function(name) {\n var view = views[name];\n if (view.show) {\n if (panels.length) {\n panels.push({\n isSplitter: true\n });\n }\n panels.push(util.extend({\n name: name\n }, view));\n }\n });\n\n if (panels.length) {\n panels[panels.length - 1].autoHeight = true;\n panels[panels.length - 1].maxHeight = null;\n }\n\n dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\n /**********\n * 일자표기 (상단 일월화수...)\n **********/\n dayNameView = new DayName(options.week, dayNameContainer);\n weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n weekView.addChild(dayNameView);\n\n /**********\n * 수직 레이아웃 모듈 초기화\n **********/\n vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\n vLayout = new VLayout({\n panels: panels,\n panelHeights: options.week.panelHeights || []\n }, vLayoutContainer);\n\n weekView.vLayout = vLayout;\n\n if (util.pick(views, 'Milestone').show) {\n /**********\n * 마일스톤\n **********/\n milestoneView = new Milestone(options.week, vLayout.getPanelByName('Milestone').container);\n milestoneView.on('afterRender', function(viewModel) {\n vLayout.getPanelByName('Milestone').setHeight(null, viewModel.height);\n });\n weekView.addChild(milestoneView);\n weekView.handler.click.milestone = new MilestoneClick(dragHandler, milestoneView, baseController);\n }\n\n if (util.pick(views, 'Task').show) {\n /**********\n * 업무\n **********/\n taskView = new TaskView(options.week, vLayout.getPanelByName('Task').container);\n taskView.on('afterRender', function() {\n vLayout.getPanelByName('Task').setHeight(null, taskView.contentHeight);\n });\n weekView.addChild(taskView);\n weekView.handler.click.task = new AlldayClick(dragHandler, taskView, baseController);\n weekView.handler.move.task = new AlldayMove(dragHandler, taskView, baseController);\n }\n\n if (util.pick(views, 'AllDay').show) {\n /**********\n * 종일일정\n **********/\n alldayPanel = vLayout.getPanelByName('AllDay');\n alldayView = new Allday(options.week, alldayPanel.container, alldayPanel.options);\n alldayView.on('afterRender', function() {\n if (alldayView.viewType === 'toggle' && !alldayView.collapsed) {\n alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n }\n if (isAllDayPanelFirstRender) {\n alldayPanel.setHeight(null, alldayView.options.height);\n isAllDayPanelFirstRender = false;\n } else {\n alldayPanel.setHeight(null, alldayView.contentHeight);\n }\n });\n\n weekView.addChild(alldayView);\n weekView.handler.click.allday = new AlldayClick(dragHandler, alldayView, baseController);\n weekView.handler.creation.allday = new AlldayCreation(dragHandler, alldayView, baseController);\n weekView.handler.move.allday = new AlldayMove(dragHandler, alldayView, baseController);\n weekView.handler.resize.allday = new AlldayResize(dragHandler, alldayView, baseController);\n\n weekView.handler.click.allday.on('clickExpand', function() {\n alldayView.prevMaxHeight = alldayView.aboutMe.maxHeight;\n alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n alldayPanel.isHeightForcedSet = false;\n alldayView.collapsed = false;\n alldayView.aboutMe.forcedLayout = false;\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n weekView.handler.click.allday.on('clickCollapse', function() {\n var newHeight = alldayView.prevMaxHeight;\n delete alldayView.prevMaxHeight;\n alldayPanel.options.maxHeight = newHeight;\n alldayPanel.setHeight(null, newHeight);\n alldayView.collapsed = true;\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n alldayPanel.on('resize', function() {\n alldayView.aboutMe.forcedLayout = true;\n weekView.render();\n });\n }\n\n if (util.pick(views, 'TimeGrid').show) {\n /**********\n * 시간별 일정\n **********/\n timeGridView = new TimeGrid(options.week, vLayout.getPanelByName('TimeGrid').container);\n weekView.addChild(timeGridView);\n weekView.handler.click.time = new TimeClick(dragHandler, timeGridView, baseController);\n weekView.handler.creation.time = new TimeCreation(dragHandler, timeGridView, baseController);\n weekView.handler.move.time = new TimeMove(dragHandler, timeGridView, baseController);\n weekView.handler.resize.time = new TimeResize(dragHandler, timeGridView, baseController);\n }\n\n weekView.on('afterRender', function() {\n vLayout.refresh();\n });\n\n // add controller\n weekView.controller = baseController.Week;\n\n // add destroy\n weekView._beforeDestroy = function() {\n util.forEach(weekView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n weekView.off();\n };\n\n return {\n view: weekView,\n refresh: function() {\n var weekViewHeight = weekView.getViewBound().height,\n daynameViewHeight = domutil.getBCRect(\n dayNameView.container\n ).height;\n\n vLayout.container.style.height =\n weekViewHeight - daynameViewHeight + 'px';\n vLayout.refresh();\n },\n scrollToNow: function() {\n if (timeGridView) {\n timeGridView.scrollToNow();\n }\n }\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/weekView.js\n// module id = 49\n// module chunks = 0","/**\n * @fileoverview Layout module that supplied split height, resize height features.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n domevent = require('./domevent'),\n View = require('../view/view'),\n VPanel = require('./vpanel'),\n Drag = require('../handler/drag');\n\nvar mAbs = Math.abs;\n\n/**\n * @typedef PanelOptions\n * @type {object}\n * @property {number} [minHeight=0] - minimum height of panel\n * @property {number} [height=0] - current panel height\n * @property {boolean} [splitter=false] - is this panel uses splitter?\n * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n * @property {string} [className=''] - className string for add created element\n */\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VLayout module\n * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n * @param {number[]} [options.panelHeights] - panel height list\n * @param {HTMLElement} container - container element\n */\nfunction VLayout(options, container) {\n var opt, tempHeights;\n\n if (!(this instanceof VLayout)) {\n return new VLayout(options, container);\n }\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('vlayout-container'));\n\n /**\n * @type {object}\n */\n opt = this.options = util.extend({\n panels: [],\n panelHeights: []\n }, options);\n\n /**\n * @type {VPanel[]}\n */\n this.panels = [];\n\n /**\n * @type {Drag}\n */\n this._drag = new Drag({\n distance: 10,\n exclude: function(target) {\n return !domutil.hasClass(target, config.classname('splitter'));\n }\n }, container);\n\n this._drag.on({\n dragStart: this._onDragStart,\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @type {object}\n */\n this._dragData = null;\n\n if (opt.panels.length) {\n if (opt.panelHeights.length) {\n tempHeights = opt.panelHeights.slice();\n util.forEach(opt.panels, function(panelOpt) {\n if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n panelOpt.height = tempHeights.shift();\n }\n });\n }\n\n this.addPanels(opt.panels, this.container);\n }\n\n this.refresh();\n}\n\nutil.inherit(VLayout, View);\n\n/**\n * Get current panels height in layout\n * @returns {number[]} height of panels with `autoHeight` false\n */\nVLayout.prototype.getLayoutData = function() {\n var heightList = [];\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n heightList.push(panel.getHeight());\n });\n\n return heightList;\n};\n\n/**\n * Set panels height in layout\n * @param {number[]} heightList of panels with `autoHeight` false\n */\nVLayout.prototype.setLayoutData = function(heightList) {\n if (!heightList.length) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n panel.setHeight(null, heightList.shift());\n });\n\n this.refresh();\n};\n\n/**\n * Get next panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} next panel\n */\nVLayout.prototype.nextPanel = function(panel) {\n return this.panels[panel.index + 1];\n};\n\n/**\n * Get previous panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} previous panel\n */\nVLayout.prototype.prevPanel = function(panel) {\n return this.panels[panel.index - 1];\n};\n\n/**\n * Initialize resizing guide element\n * @param {HTMLElement} element - element to use guide element after cloned\n * @param {number} top - top pixel value for guide element\n * @returns {HTMLElement} cloned element == guide element\n */\nVLayout.prototype._initializeGuideElement = function(element, top) {\n var cloned = element.cloneNode(true);\n\n domutil.addClass(cloned, config.classname('splitter-guide'));\n this._refreshGuideElement(cloned, top);\n this.container.appendChild(cloned);\n\n return cloned;\n};\n\n/**\n * Refresh guide element position\n * @param {HTMLElement} element - guide element\n * @param {number} top - top pixel value for guide element\n */\nVLayout.prototype._refreshGuideElement = function(element, top) {\n element.style.top = top + 'px';\n};\n\n/**\n * Clear guide element position\n * @param {HTMLElement} element - guide element\n */\nVLayout.prototype._clearGuideElement = function(element) {\n domutil.remove(element);\n};\n\n/**\n * Resize overall panels size\n * @param {VPanel} splPanel - splitter panel instance\n * @param {number} startY - dragstart Y position\n * @param {number} mouseY - dragend Y position\n */\nVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n var diffY = startY - mouseY,\n resizedHeight = mAbs(diffY),\n resizeMap = [],\n toDown = mouseY > startY,\n backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n cursor, resizeInfo;\n\n cursor = this[backwardMethod](splPanel);\n resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n\n for (cursor = this[forwardMethod](cursor);\n util.isExisty(cursor);\n cursor = this[forwardMethod](cursor)) {\n if (cursor.isSplitter()) {\n continue;\n }\n\n resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n resizedHeight -= resizeInfo[1];\n }\n\n util.forEach(resizeMap, function(pair) {\n pair[0].setHeight(null, pair[1], true);\n pair[0].fire('resize');\n });\n};\n\n/**\n * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n * @param {VPanel} splPanel - splitter panel instance\n * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n */\nVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n var upper = 0,\n below = 0,\n cursor,\n func = function(panel) {\n if (panel.isSplitter()) {\n return panel.getHeight();\n }\n\n return panel.options.minHeight;\n };\n\n for (cursor = this.prevPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.prevPanel(cursor)) {\n upper += func(cursor);\n }\n\n for (cursor = this.nextPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.nextPanel(cursor)) {\n below += func(cursor);\n }\n\n return [upper, below];\n};\n\n/**********\n * Drag Handlers\n **********/\n\n/**\n * Drag start schedule handler\n * @param {object} e - drag start schedule data\n */\nVLayout.prototype._onDragStart = function(e) {\n var oEvent = e.originEvent,\n target = e.target,\n splIndex = domutil.getData(target, 'panelIndex'),\n splPanel = this.panels[splIndex],\n splHeight = splPanel.getHeight(),\n splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n guideElement = this._initializeGuideElement(target, mouseY);\n\n splPanel.addClass(config.classname('splitter-focused'));\n\n this._dragData = {\n splPanel: splPanel,\n splOffsetY: splOffsetY,\n guideElement: guideElement,\n startY: mouseY - splOffsetY,\n minY: 0,\n maxY: this.getViewBound().height - splHeight\n };\n\n if (!util.browser.msie) {\n domutil.addClass(document.body, config.classname('resizing'));\n }\n};\n\n/**\n * Drag schedule handler\n * @param {object} e - drag schedule data\n */\nVLayout.prototype._onDrag = function(e) {\n var dragData = this._dragData,\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\n this._refreshGuideElement(dragData.guideElement, mouseY);\n};\n\n/**\n * Drag end schedule handler\n * @fires VLayout#resize\n * @param {object} e - dragend schedule data\n */\nVLayout.prototype._onDragEnd = function(e) {\n var dragData = this._dragData,\n asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n mouseY = common.limit(\n mouseY - dragData.splOffsetY,\n [dragData.minY + asideMinMax[0]],\n [dragData.maxY - asideMinMax[1]]\n );\n\n this._resize(dragData.splPanel, dragData.startY, mouseY);\n\n /**\n * @event VLayout#resize\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n */\n this.fire('resize', {\n layoutData: this.getLayoutData()\n });\n\n this._dragData = null;\n this._clearGuideElement(dragData.guideElement);\n dragData.splPanel.removeClass(config.classname('splitter-focused'));\n domutil.removeClass(document.body, config.classname('resizing'));\n};\n\n/**********\n * Methods\n **********/\n\n/**\n * refresh each panels\n */\nVLayout.prototype.refresh = function() {\n var panelToFillHeight = [];\n var layoutHeight = this.getViewBound().height;\n var usedHeight = 0;\n var remainHeight;\n\n if (!layoutHeight) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.options.autoHeight) {\n panelToFillHeight.push(panel);\n } else {\n usedHeight += panel.getHeight();\n }\n });\n\n remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\n util.forEach(panelToFillHeight, function(panel) {\n panel.setHeight(null, remainHeight);\n });\n};\n\n/**\n * add panel\n * @param {PanelOptions} options - options for panel\n * @param {container} [container] - container element\n */\nVLayout.prototype.addPanel = function(options, container) {\n var element = document.createElement('div'),\n panels = this.panels,\n index = panels.length;\n\n options = util.extend({\n index: index\n }, options);\n\n panels.push(new VPanel(options, element));\n\n container.appendChild(element);\n};\n\n/**\n * Add multiple panel\n * @param {PanelOptions[]} options - panel options list\n * @param {HTMLElement} container - container element\n */\nVLayout.prototype.addPanels = function(options, container) {\n var self = this,\n frag = document.createDocumentFragment();\n\n util.forEach(options, function(option) {\n self.addPanel(option, frag);\n });\n\n container.appendChild(frag);\n};\n\n/**\n * Get a panel by name\n * @param {string} name - panel's name\n * @returns {VPanel}\n */\nVLayout.prototype.getPanelByName = function(name) {\n var found;\n util.forEach(this.panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n};\n\nmodule.exports = VLayout;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/vlayout.js\n// module id = 50\n// module chunks = 0","/**\n * @fileoverview Panel class for VLayout module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VPanel\n * @param {number} options.index - index of panel in vlayout\n * @param {number} [options.minHeight=0] - minimum height of panel\n * @param {number} [options.height] - initial height of panel\n * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n * @param {string} [options.className] - additional class name to add element\n * @param {HTMLElement} container - container element\n */\nfunction VPanel(options, container) {\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n index: 0,\n name: '0',\n minHeight: 0,\n maxHeight: null,\n height: null,\n isSplitter: false,\n autoHeight: false,\n className: ''\n }, options);\n\n /**\n * @type {number}\n */\n this.index = this.options.index;\n\n /**\n * @type {string}\n */\n this.name = this.options.name || String(this.index);\n\n this.isHeightForcedSet = false;\n\n this._initPanel(this.options, container);\n}\n\nutil.inherit(VPanel, View);\n\n/**\n * whether this panel is splitter?\n * @returns {boolean} panel is splitter?\n */\nVPanel.prototype.isSplitter = function() {\n return this.options.isSplitter;\n};\n\n/**\n * set height of html element\n * @param {HTMLElement} [container] - container element\n * @param {number} newHeight - height\n * @param {boolean} force - whether ignore max-length\n */\nVPanel.prototype.setHeight = function(container, newHeight, force) {\n var maxHeight = this.options.maxHeight;\n var minHeight = this.options.minHeight;\n var autoHeight = this.options.autoHeight;\n container = container || this.container;\n\n // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n if (!force && this.isHeightForcedSet && !autoHeight) {\n return;\n }\n\n if (force) {\n this.isHeightForcedSet = true;\n } else if (maxHeight) {\n newHeight = Math.min(newHeight, maxHeight);\n }\n newHeight = Math.max(minHeight, newHeight);\n\n container.style.height = newHeight + 'px';\n};\n\n/**\n * Calculate new height of panel and remains by supplied height growth\n * @param {number} growth - growth value\n * @returns {number[]} newHeight, remainHeight\n */\nVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n var height = this.getHeight(),\n newHeight = height + growth,\n resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\n return [resizeTo, height - resizeTo];\n};\n\n/**\n * get outer height of panel element\n * @returns {number} outer height of panel element\n */\nVPanel.prototype.getHeight = function() {\n return domutil.getSize(this.container)[1];\n};\n\n/**\n * add design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.addClass = function(className) {\n domutil.addClass(this.container, className);\n};\n\n/**\n * remove design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.removeClass = function(className) {\n domutil.removeClass(this.container, className);\n};\n\n/**\n * initialize panel element\n * @param {PanelOptions} options - options for panel\n * @param {HTMLDivElement} container - panel element\n */\nVPanel.prototype._initPanel = function(options, container) {\n var height;\n\n domutil.setData(container, 'panelIndex', options.index);\n\n if (options.isSplitter) {\n domutil.addClass(container, config.classname('splitter'));\n\n return;\n }\n\n if (options.className) {\n domutil.addClass(container, options.className);\n }\n\n if (options.autoHeight) {\n domutil.setData(container, 'autoHeight', true);\n } else {\n height = common.limit(options.height || 0,\n [options.minHeight],\n [options.maxHeight || options.height]\n );\n\n options.height = height;\n this.setHeight(container, height);\n }\n};\n\nmodule.exports = VPanel;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/vpanel.js\n// module id = 51\n// module chunks = 0","/**\n * @fileoverview RequestAnimFrame\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar requestFn,\n cancelFn;\n\n/**\n * Get name with vendor prefix\n * @param {string} name - name to prepend prefix\n * @returns {string} vendor prefixed name\n */\nfunction getPrefixed(name) {\n return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n}\n\nrequestFn = global.requestAnimationFrame ||\n getPrefixed('RequestAnimationFrame') ||\n function(fn, context) {\n fn.call(context);\n };\n\ncancelFn = global.cancelAnimationFrame ||\n getPrefixed('CancelAnimationFrame') ||\n getPrefixed('CancelRequestAnimationFrame') ||\n function() {};\n\n/**\n * @module module:reqAnimFrame\n */\n\nmodule.exports = {\n /**\n * Shim of requestAnimationFrame\n * @param {function} fn callback function\n * @param {*} context context for callback\n * @returns {number} Unique id\n */\n requestAnimFrame: function(fn, context) {\n return requestFn.call(global, util.bind(fn, context));\n },\n\n /**\n * Shim of cancelAnimationFrame\n * @param {number} id requestAnimationFrame id\n */\n cancelAnimFrame: function(id) {\n if (!id) {\n return;\n }\n\n cancelFn.call(global, id);\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/reqAnimFrame.js\n// module id = 52\n// module chunks = 0","/**\n * @fileoverview View of days UI.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\n\n/**\n * FullCalendar 에서는 날짜 정보만 사용(YYYY-MM-DD) 하고,\n * SplitTimeCalendar 에서는 타임존 정보까지 포함된 문자열을 사용하기 때문에 분기처리함.\n * @param {String} dateString - date string\n * @returns {TZDate}\n */\nfunction parseRangeDateString(dateString) {\n if (dateString.length === 10) {\n return datetime.parse(dateString);\n }\n\n return new TZDate(dateString);\n}\n\n/**\n * @constructor\n * @param {Base.Week} controller The controller mixin part.\n * @param {object} options View options\n * @param {string} [options.renderStartDate] Start date of render.\n * if not supplied then use -3d from today. YYYY-MM-DD format.\n * @param {string} [options.renderEndDate] End date of render.\n * if not supplied then use +3d from today. YYYY-MM-DD format.\n * @param {string} [options.cssPrefix] - CSS classname prefix\n * @param {HTMLElement} container The element to use container for this view.\n * @extends {View}\n */\nfunction Week(controller, options, container) {\n var range;\n\n container = domutil.appendHTMLElement('div', container);\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('week-container'));\n\n range = this._getRenderDateRange(new TZDate());\n\n /**\n * @type {object} Options for view.\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /**\n * Week controller mixin.\n * @type {Base.Week}\n */\n this.controller = controller;\n}\n\nutil.inherit(Week, View);\n\n/**********\n * Override props\n **********/\n\n/**\n * Render each child view with schedules in ranges.\n * @fires Week#afterRender\n * @override\n */\nWeek.prototype.render = function() {\n var options = this.options,\n scheduleFilter = options.scheduleFilter,\n narrowWeekend = options.narrowWeekend,\n startDayOfWeek = options.startDayOfWeek,\n workweek = options.workweek;\n var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\n renderStartDate = parseRangeDateString(options.renderStartDate);\n renderEndDate = parseRangeDateString(options.renderEndDate);\n\n range = datetime.range(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n datetime.MILLISECONDS_PER_DAY\n );\n\n if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n range = util.filter(range, function(date) {\n return !datetime.isWeekend(date.getDay());\n });\n\n renderStartDate = range[0];\n renderEndDate = range[range.length - 1];\n }\n\n schedulesInDateRange = this.controller.findByDateRange(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n scheduleFilter\n );\n\n grids = datetime.getGridLeftAndWidth(\n range.length,\n narrowWeekend,\n startDayOfWeek,\n workweek\n );\n\n viewModel = {\n schedulesInDateRange: schedulesInDateRange,\n renderStartDate: renderStartDate,\n renderEndDate: renderEndDate,\n grids: grids,\n range: range\n };\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n });\n\n /**\n * @event Week#afterRender\n */\n this.fire('afterRender');\n};\n\n/**********\n * Prototype props\n **********/\n\nWeek.prototype.viewName = 'week';\n\n/**\n * Calculate default render date range from supplied date.\n * @param {Date} baseDate base date.\n * @returns {object} date range.\n */\nWeek.prototype._getRenderDateRange = function(baseDate) {\n var base = datetime.start(baseDate),\n start = new TZDate(Number(base)),\n end = new TZDate(Number(base));\n\n start.setDate(start.getDate() - 3);\n end.setDate(end.getDate() + 3);\n\n return {\n start: start,\n end: end\n };\n};\n\nutil.CustomEvents.mixin(Week);\n\nmodule.exports = Week;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/week.js\n// module id = 53\n// module chunks = 0","/**\n * @fileoverview View for rendering daynames\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar daynameTmpl = require('../template/week/daynames.hbs');\n\n/**\n * @constructor\n * @param {object} options - options for dayname view\n * @param {HTMLElement} container Container element to use.\n * @extends {View}\n */\nfunction DayName(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('dayname-container')\n );\n\n this.options = util.extend({\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n }, options);\n\n View.call(this, container);\n}\n\nutil.inherit(DayName, View);\n\n/**\n * Get default viewmodels.\n * @param {Date} start The date of start render\n * @param {Date} end The end of end render\n * @param {object} grids grid data(width, left, day)\n * @returns {array} viewmodel.\n */\nDayName.prototype._getBaseViewModel = function(start, end, grids) {\n var daynames = this.options.daynames,\n viewModel;\n\n viewModel = util.map(datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ), function(d, i) {\n var day = d.getDay();\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: datetime.isSameDate(d, new TZDate()),\n date: d.getDate(),\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n renderDate: datetime.format(d, 'YYYY-MM-DD')\n };\n });\n\n return viewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel View model from parent (WeekView)\n */\nDayName.prototype.render = function(viewModel) {\n var _viewModel = this._getBaseViewModel(\n viewModel.renderStartDate,\n viewModel.renderEndDate,\n viewModel.grids\n );\n\n this.container.innerHTML = daynameTmpl(_viewModel);\n};\n\nmodule.exports = DayName;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/dayname.js\n// module id = 54\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\\n \\n \"\n + ((stack1 = (helpers[\"weekDayname-tmpl\"] || (depth0 && depth0[\"weekDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"
\\n\"\n + ((stack1 = helpers.each.call(alias1,depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
\\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/daynames.hbs\n// module id = 55\n// module chunks = 0","/**\n * @fileoverview View for rendered schedules by times.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar View = require('../view');\nvar Time = require('./time');\nvar AutoScroll = require('../../common/autoScroll');\nvar mainTmpl = require('../template/week/timeGrid.hbs');\n\nvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\nvar SIXTY_SECONDS = 60;\n\n/**\n * start~end 까지의 시간 레이블 목록을 반환한다.\n * 현재 시간과 가까운 레이블의 경우 hidden:true로 설정한다.\n * @param {number} start - 시작시간\n * @param {number} end - 끝시간\n * @param {boolean} hasHourMarker - 현재 시간이 표시되는지 여부\n * @returns {Array.}\n */\nfunction getHoursLabels(start, end, hasHourMarker) {\n var now = new TZDate();\n var nowMinutes = now.getMinutes();\n var nowHours = now.getHours();\n var hoursRange = util.range(start, end);\n var nowAroundHours = null;\n\n if (hasHourMarker) {\n if (nowMinutes < 20) {\n nowAroundHours = nowHours;\n } else if (nowMinutes > 40) {\n nowAroundHours = nowHours + 1;\n }\n }\n\n return hoursRange.map(function(hours) {\n return {\n hours: hours,\n hidden: nowAroundHours === hours\n };\n });\n}\n/**\n * @constructor\n * @extends {View}\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n * @param {number} [options.hourStart=0] You can change view's start hours.\n * @param {number} [options.hourEnd=0] You can change view's end hours.\n * @param {HTMLElement} container Container element.\n */\nfunction TimeGrid(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('timegrid-container')\n );\n\n View.call(this, container);\n\n if (!util.browser.safari) {\n /**\n * @type {AutoScroll}\n */\n this._autoScroll = new AutoScroll(container);\n }\n\n /**\n * Time view options.\n * @type {object}\n */\n this.options = util.extend({\n renderStartDate: '',\n renderEndDate: '',\n hourStart: 0,\n hourEnd: 24\n }, options);\n\n /**\n * Interval id for hourmarker animation.\n * @type {number}\n */\n this.intervalID = 0;\n\n /**\n * timer id for hourmarker initial state\n * @type {number}\n */\n this.timerID = 0;\n\n /**\n * @type {boolean}\n */\n this._scrolled = false;\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n this.attachEvent();\n}\n\nutil.inherit(TimeGrid, View);\n\n/**********\n * Prototype props\n **********/\n\n/**\n * @type {string}\n */\nTimeGrid.prototype.viewName = 'timegrid';\n\n/**\n * Destroy view.\n * @override\n */\nTimeGrid.prototype._beforeDestroy = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n\n if (this._autoScroll) {\n this._autoScroll.destroy();\n }\n\n this._autoScroll = this.hourmarker = this.intervalID = this.timerID = this._cacheParentViewModel = null;\n};\n\n/**\n * @param {Date} [time] - date object to convert pixel in grids.\n * use **Date.now()** when not supplied.\n * @returns {number} The pixel value represent current time in grids.\n */\nTimeGrid.prototype._getTopPercentByTime = function(time) {\n var opt = this.options,\n raw = datetime.raw(time || new TZDate()),\n hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n datetime.millisecondsFrom('minutes', raw.m) +\n datetime.millisecondsFrom('seconds', raw.s) +\n raw.ms,\n topPercent;\n\n topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\n return common.limit(topPercent, [0], [100]);\n};\n\n/**\n * Get Hourmarker viewmodel.\n * @param {Date} now - now\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel of hourmarker.\n */\nTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n var todaymarkerLeft = -1,\n viewModel;\n\n now = now || new TZDate();\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(now, date)) {\n todaymarkerLeft = grids[index] ? grids[index].left : 0;\n }\n });\n\n viewModel = {\n currentHours: now.getHours(),\n hourmarkerTop: this._getTopPercentByTime(now),\n hourmarkerText: datetime.format(now, 'HH:mm'),\n todaymarkerLeft: todaymarkerLeft\n };\n\n return viewModel;\n};\n\n/**\n * Get base viewModel.\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getBaseViewModel = function(grids, range) {\n var opt = this.options;\n var viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range);\n viewModel.hoursLabels = getHoursLabels(opt.hourStart, opt.hourEnd, viewModel.todaymarkerLeft >= 0);\n\n return viewModel;\n};\n\n/**\n * Reconcilation child views and render.\n * @param {object} viewModels Viewmodel\n * @param {object} grids grid information(width, left, day)\n * @param {HTMLElement} container Container element for each time view.\n */\nTimeGrid.prototype._renderChildren = function(viewModels, grids, container) {\n var self = this,\n options = this.options,\n childOption,\n child,\n isToday,\n today = datetime.format(new TZDate(), 'YYYYMMDD'),\n i = 0;\n\n // clear contents\n container.innerHTML = '';\n this.children.clear();\n\n // reconcilation of child views\n util.forEach(viewModels, function(schedules, ymd) {\n isToday = ymd === today;\n\n childOption = {\n index: i,\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n ymd: ymd,\n isToday: isToday,\n isPending: options.isPending,\n isFocused: options.isFocused,\n hourStart: options.hourStart,\n hourEnd: options.hourEnd\n };\n\n child = new Time(\n childOption,\n domutil.appendHTMLElement('div', container, config.classname('time-date'))\n );\n child.render(ymd, schedules);\n\n self.addChild(child);\n\n i += 1;\n });\n};\n\n/**\n * @override\n * @param {object} viewModel ViewModel list from Week view.\n */\nTimeGrid.prototype.render = function(viewModel) {\n var timeViewModel = viewModel.schedulesInDateRange.time,\n container = this.container,\n grids = viewModel.grids,\n range = viewModel.range,\n baseViewModel = this._getBaseViewModel(grids, range),\n scheduleLen = util.keys(timeViewModel).length;\n\n this._cacheParentViewModel = viewModel;\n\n if (!scheduleLen) {\n return;\n }\n\n baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\n container.innerHTML = mainTmpl(baseViewModel);\n\n /**********\n * Render children\n **********/\n this._renderChildren(\n timeViewModel,\n grids,\n domutil.find(config.classname('.timegrid-schedules-container'), container)\n );\n\n this._hourLabels = domutil.find('ul', container);\n\n /**********\n * Render hourmarker\n **********/\n this.hourmarker = domutil.find(config.classname('.timegrid-hourmarker'), container);\n\n if (!this._scrolled) {\n this._scrolled = true;\n this.scrollToNow();\n }\n};\n\n/**\n * Refresh hourmarker element.\n */\nTimeGrid.prototype.refreshHourmarker = function() {\n var hourmarker = this.hourmarker,\n grids = this._cacheParentViewModel ? this._cacheParentViewModel.grids : null,\n range = this._cacheParentViewModel ? this._cacheParentViewModel.range : null,\n viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range),\n todaymarker,\n hourmarkerText;\n\n if (!hourmarker || !viewModel) {\n return;\n }\n\n todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n hourmarkerText = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n\n reqAnimFrame.requestAnimFrame(function() {\n hourmarker.style.display = 'block';\n hourmarker.style.top = viewModel.hourmarkerTop + '%';\n todaymarker.style.display = (viewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n hourmarkerText.innerHTML = viewModel.hourmarkerText;\n });\n};\n\n/**\n * Attach events\n */\nTimeGrid.prototype.attachEvent = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n this.intervalID = this.timerID = null;\n\n this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n};\n\n/**\n * Scroll time grid to current hourmarker.\n */\nTimeGrid.prototype.scrollToNow = function() {\n var self = this,\n container = this.container;\n var offsetTop,\n viewBound,\n scrollTop,\n scrollAmount,\n scrollBy,\n scrollFn;\n\n if (!self.hourmarker) {\n return;\n }\n\n offsetTop = this.hourmarker.offsetTop;\n viewBound = this.getViewBound();\n scrollTop = offsetTop;\n scrollAmount = viewBound.height / 4;\n scrollBy = 10;\n\n scrollFn = function() {\n if (scrollTop > offsetTop - scrollAmount) {\n scrollTop -= scrollBy;\n container.scrollTop = scrollTop;\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n } else {\n container.scrollTop = offsetTop - scrollAmount;\n }\n };\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n};\n\n/**********\n * Schedule handlers\n **********/\n\n/**\n * Interval tick handler\n */\nTimeGrid.prototype.onTick = function() {\n if (this.timerID) {\n clearTimeout(this.timerID);\n this.timerID = null;\n }\n\n if (!this.intervalID) {\n this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n }\n this.refreshHourmarker();\n};\n\nmodule.exports = TimeGrid;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/timeGrid.js\n// module id = 56\n// module chunks = 0","/**\n * @fileoverview View of time.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\nvar timeTmpl = require('../template/week/time.hbs');\n\nvar forEachArr = util.forEachArray;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options Options\n * @param {number} options.index Date index in week view.\n * @param {number} options.width Date element width (percent)\n * @param {string} options.ymd YYYMMDD string for this view\n * @param {boolean} options.isToday when set true then assign today design class to container.\n * @param {number} options.hourStart Can limit of render hour start.\n * @param {number} options.hourEnd Can limit of render hour end.\n * @param {HTMLElement} container Element to use container for this view.\n */\nfunction Time(options, container) {\n View.call(this, container);\n\n this.options = util.extend({\n index: 0,\n width: 0,\n ymd: '',\n isToday: false,\n pending: false,\n hourStart: 0,\n hourEnd: 24,\n defaultMarginBottom: 2,\n minHeight: 18.5\n }, options);\n\n this.timeTmpl = timeTmpl;\n container.style.width = options.width + '%';\n container.style.left = options.left + '%';\n\n if (this.options.isToday) {\n domutil.addClass(this.container, config.classname('today'));\n }\n}\n\nutil.inherit(Time, View);\n\n/**\n * Convert YYYYMMDD formatted string date to Date.\n * @param {string} str formatted string.\n * @returns {Date} start of date.\n */\nTime.prototype._parseDateGroup = function(str) {\n var y = parseInt(str.substr(0, 4), 10),\n m = parseInt(str.substr(4, 2), 10),\n d = parseInt(str.substr(6, 2), 10);\n\n return new TZDate(y, m - 1, d);\n};\n\n/**\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n * @param {number} options.baseHeight - pixel value related with baseMS options.\n * @param {number[]} options.baseLeft - left position percents for each columns.\n * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n * @param {number} options.columnIndex - the number index of schedule blocks.\n * it represent rendering index from left sides in view.\n * @returns {object} bound object for supplied view model.\n */\nTime.prototype.getScheduleViewBound = function(viewModel, options) {\n var baseMS = options.baseMS;\n var baseHeight = options.baseHeight;\n var cropped = false;\n var offsetStart, width, height, top;\n var isReadOnly = util.pick(viewModel, 'model', 'isReadOnly') || false;\n\n offsetStart = viewModel.valueOf().start - options.todayStart;\n\n // containerHeight : milliseconds in day = x : schedule's milliseconds\n top = (baseHeight * offsetStart) / baseMS;\n height = (baseHeight * viewModel.duration()) / baseMS;\n width = options.baseWidth * (viewModel.extraSpace + 1);\n\n // set width auto when has no collisions.\n if (!viewModel.hasCollide) {\n width = null;\n }\n\n if (height + top > baseHeight) {\n height = baseHeight - top;\n cropped = true;\n }\n\n if (isReadOnly) {\n cropped = true;\n }\n\n return {\n top: top,\n left: options.baseLeft[options.columnIndex],\n width: width,\n height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n cropped: cropped\n };\n};\n\n/**\n * Set viewmodels for rendering.\n * @param {string} ymd The date of schedules. YYYYMMDD format.\n * @param {array} matrices The matrices for schedule placing.\n */\nTime.prototype._getBaseViewModel = function(ymd, matrices) {\n var self = this,\n options = this.options,\n hourStart = options.hourStart,\n hourEnd = options.hourEnd,\n containerHeight,\n todayStart,\n baseMS;\n\n /**\n * Calculate each schedule element bounds relative with rendered hour milliseconds and\n * wrap each schedule model to viewmodels.\n */\n containerHeight = this.getViewBound().height;\n todayStart = this._parseDateGroup(ymd);\n todayStart.setHours(hourStart);\n baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\n forEachArr(matrices, function(matrix) {\n var maxRowLength,\n widthPercent,\n leftPercents,\n i;\n\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n widthPercent = 100 / maxRowLength;\n\n leftPercents = [];\n for (i = 0; i < maxRowLength; i += 1) {\n leftPercents[i] = widthPercent * i;\n }\n\n forEachArr(matrix, function(row) {\n forEachArr(row, function(viewModel, col) {\n var viewBound;\n\n if (!viewModel) {\n return;\n }\n\n viewBound = self.getScheduleViewBound(viewModel, {\n todayStart: todayStart,\n baseMS: baseMS,\n baseLeft: leftPercents,\n baseWidth: widthPercent,\n baseHeight: containerHeight,\n columnIndex: col\n });\n\n util.extend(viewModel, viewBound);\n });\n });\n });\n};\n\n/**\n * @returns {Date} - Date of this view.\n */\nTime.prototype.getDate = function() {\n return this._parseDateGroup(this.options.ymd);\n};\n\n/**\n * @override\n * @param {string} ymd The date of schedules. YYYYMMDD format\n * @param {array} matrices Matrices for placing schedules\n */\nTime.prototype.render = function(ymd, matrices) {\n this._getBaseViewModel(ymd, matrices);\n this.container.innerHTML = this.timeTmpl({\n matrices: matrices\n });\n};\n\nmodule.exports = Time;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/time.js\n// module id = 57\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
\\n
\"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"
\\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"time-date-schedule-block-pending\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"time-schedule-focused \";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
 
\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"
\\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
\\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/time.hbs\n// module id = 58\n// module chunks = 0","/**\n * @fileoverview Add autoscroll feature to elements that prevented text selection.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domevent = require('../common/domevent');\nvar domutil = require('../common/domutil');\nvar Point = require('../common/point');\n\nvar SCROLL_INTERVAL = 30;\nvar SCROLL_MAX = 15;\nvar SCROLL_CLICK_INCREASED = 2; // IE에서 스크롤 바 클릭 시 실제 UI pixel 보다 넓게 잡히는 현상 offset.\n\n/**\n * Add autoscroll feature to elements that prevented text selection.\n * @constructor\n * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n */\nfunction AutoScroll(container) {\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * @type {AutoScroll.DIRECTION}\n */\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n /**\n * @type {number}\n */\n this._offset = 0;\n\n /**\n * interval to scrolling\n * @type {number}\n */\n this._intervalID = 0;\n\n domevent.on(container, {\n 'mousedown': this._onMouseDown\n }, this);\n}\n\n/**\n * @enum\n */\nAutoScroll.DIRECTION = {\n INSIDE: 0,\n TOP: 1,\n RIGHT: 2,\n BOTTOM: 3,\n LEFT: 4\n};\n\n/**\n * Instance destroy method.\n */\nAutoScroll.prototype.destroy = function() {\n domevent.off(this.container, {\n 'mousedown': this._onMouseDown,\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n\n window.clearInterval(this._intervalID);\n this._intervalID = this._direction = this.container = null;\n};\n\n/**\n * Normalize ClientRect and calculate each position of edges.\n * @param {ClientRect} clientRect - ClientRect object of element.\n * @returns {object} edges.\n */\nAutoScroll.prototype._getEdgePositions = function(clientRect) {\n return {\n top: clientRect.top,\n right: clientRect.left + clientRect.width,\n bottom: clientRect.bottom,\n left: clientRect.left\n };\n};\n\n/**\n * Get element real size (\"real size\" -> size without scrollbar)\n * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n * @returns {number[]} real size [width, height]\n */\nAutoScroll.prototype.getRealSize = function(el) {\n var computed = domutil.getComputedStyle(el),\n border,\n padding;\n\n border = parseFloat(computed.getPropertyValue('border-top-width')) +\n parseFloat(computed.getPropertyValue('border-bottom-width'));\n padding = parseFloat(computed.getPropertyValue('padding-top')) +\n parseFloat(computed.getPropertyValue('padding-bottom'));\n\n return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n};\n\n/**\n * Check supplied element has scrollbar.\n * @param {HTMLElement} el - element want to know has scrollbar.\n * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n */\nAutoScroll.prototype.hasScrollbar = function(el) {\n var realSize = this.getRealSize(el);\n\n return [\n el.offsetWidth > Math.ceil(realSize[0]),\n el.offsetHeight > Math.ceil(realSize[1])\n ];\n};\n\n/**\n * @param {HTMLElement} el - element want to know.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {boolean} mouse pointer is on the scrollbar?\n */\nAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n var realSize = this.getRealSize(el),\n pos = domevent.getMousePosition(mouseEvent, el),\n mouseInScrollbar = false;\n\n mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\n return mouseInScrollbar;\n};\n\n/**\n * MouseDown event handler\n * @param {MouseEvent} mouseDownEvent - mouse down event\n */\nAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n return;\n }\n\n window.clearInterval(this._intervalID);\n this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\n domevent.on(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * MouseMove event handler\n * @param {MouseEvent} mouseEvent - mouse move event object.\n */\nAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n pos = Point.n(domevent.getMousePosition(mouseEvent));\n\n if (pos.y >= edge.top && pos.y <= edge.bottom &&\n pos.x >= edge.left && pos.x <= edge.right) {\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n return;\n }\n\n if (pos.y < edge.top) {\n this._direction = AutoScroll.DIRECTION.TOP;\n this._offset = edge.top - pos.y;\n\n return;\n }\n\n if (pos.y > edge.bottom) {\n this._direction = AutoScroll.DIRECTION.BOTTOM;\n this._offset = pos.y - edge.bottom;\n\n return;\n }\n\n if (pos.x < edge.left) {\n this._direction = AutoScroll.DIRECTION.LEFT;\n this._offset = edge.left - pos.x;\n\n return;\n }\n\n this._direction = AutoScroll.DIRECTION.RIGHT;\n this._offset = pos.x - edge.right;\n};\n\n/**\n * MouseUp event handler.\n */\nAutoScroll.prototype._onMouseUp = function() {\n window.clearInterval(this._intervalID);\n this._intervalID = 0;\n this._direction = AutoScroll.DIRECTION.INSIDE;\n this._offset = 0;\n\n domevent.off(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * Interval tick event handler\n */\nAutoScroll.prototype._onTick = function() {\n var direction = this._direction,\n container,\n factor;\n\n if (!direction) {\n return;\n }\n\n container = this.container;\n factor = Math.min(this._offset, SCROLL_MAX);\n\n switch (direction) {\n case AutoScroll.DIRECTION.TOP:\n container.scrollTop -= factor;\n break;\n case AutoScroll.DIRECTION.RIGHT:\n container.scrollLeft += factor;\n break;\n case AutoScroll.DIRECTION.BOTTOM:\n container.scrollTop += factor;\n break;\n default:\n container.scrollLeft -= factor;\n break;\n }\n};\n\nmodule.exports = AutoScroll;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/autoScroll.js\n// module id = 59\n// module chunks = 0","/**\n * @fileoverview\n * Class for represent two dimensional x, y coordinates.\n *\n * It suppliy a group of functions for manipulate coordinates.\n * @author NHN Ent. FE Development Team \n * @example\n * var p = point(10, 10);\n * var r1 = p.add(Point(5, 5));\n * console.log(p.toString()) // \"Point(10, 10)\"\n * console.log(r1.toString()) // \"Point(15, 15)\"\n *\n * var p2 = new Point(10, 10);\n * p2._add(point(5, 5));\n * console.log(p2.toString()) // \"Point(15, 15)\"\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Class for represent two dimentional x, y coordinates.\n * @constructor\n * @param {number} x The number of X coordinates.\n * @param {number} y The number of Y coordinates.\n * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n * @example\n * var t = new Point(13, 5);\n */\nfunction Point(x, y, useRound) {\n /**\n * @type {number}\n */\n this.x = (useRound ? Math.round(x) : x);\n\n /**\n * @type {number}\n */\n this.y = (useRound ? Math.round(y) : y);\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Calculate point ratio.\n * @param {Point} point The instance of point.\n * @param {number} factor From factor\n * @param {number} toFactor To factor\n * @returns {Point} Point instance calculated.\n */\nPoint.getRatio = function(point, factor, toFactor) {\n if (factor === toFactor) {\n return point.clone();\n }\n\n return point.multiplyBy(toFactor)._divideBy(factor);\n};\n\n/**\n * Syntatic sugar of new Point()\n * @param {(Point|number|number[])} x X coordinate value.\n * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n * @param {boolean} [useRound] Set true then round initial coordinate values.\n * @returns {Point} The instance of point.\n * @example\n * var p1 = point(10, 15);\n * var p2 = point([10, 15]);\n */\nPoint.n = function(x, y, useRound) {\n if (x instanceof Point) {\n return x;\n }\n\n if (util.isArray(x)) {\n return new Point(x[0], x[1], y);\n }\n\n return new Point(x, y, useRound);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Clone points\n * @returns {Point} The point instance cloned.\n */\nPoint.prototype.clone = function() {\n return new Point(this.x, this.y);\n};\n\n/**\n * Add points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.add = function(point) {\n return this.clone()._add(Point.n(point));\n};\n\n/**\n * Add self points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._add = function(point) {\n this.x += point.x;\n this.y += point.y;\n\n return this;\n};\n\n/**\n * Subtract points.\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.subtract = function(point) {\n return this.clone()._subtract(Point.n(point));\n};\n\n/**\n * Subtract points. (manipulate self)\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._subtract = function(point) {\n this.x -= point.x;\n this.y -= point.y;\n\n return this;\n};\n\n/**\n * Divide points.\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.divideBy = function(num) {\n return this.clone()._divideBy(num);\n};\n\n/**\n * Divide points. (manipulate self)\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._divideBy = function(num) {\n this.x /= num;\n this.y /= num;\n\n return this;\n};\n\n/**\n * Multiply coordinates.\n * @param {number} num Thyen number to multiply\n * @returns {Point} Point calculated.\n */\nPoint.prototype.multiplyBy = function(num) {\n return this.clone()._multiplyBy(num);\n};\n\n/**\n * Multiply self coordinates.\n * @param {number} num The number to multiply.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._multiplyBy = function(num) {\n this.x *= num;\n this.y *= num;\n\n return this;\n};\n\n/**\n * Round coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.round = function() {\n return this.clone()._round();\n};\n\n/**\n * Round self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._round = function() {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n\n return this;\n};\n\n/**\n * Reverse values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.reverse = function() {\n return this.clone()._reverse();\n};\n\n/**\n * Reverse self values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._reverse = function() {\n this.x *= -1;\n this.y *= -1;\n\n return this;\n};\n\n/**\n * Floor coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.floor = function() {\n return this.clone()._floor();\n};\n\n/**\n * Floor self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._floor = function() {\n this.x = Math.floor(this.x);\n this.y = Math.floor(this.y);\n\n return this;\n};\n\n/**\n * Ceil coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.ceil = function() {\n return this.clone()._ceil();\n};\n\n/**\n * Ceil self coodinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._ceil = function() {\n this.x = Math.ceil(this.x);\n this.y = Math.ceil(this.y);\n\n return this;\n};\n\n/**\n * Rotate point.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype.rotate = function(deg, center, cos, sin) {\n return this.clone()._rotate(deg, center, cos, sin);\n};\n\n/**\n * Rotate self.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype._rotate = function(deg, center, cos, sin) {\n var rad = deg * (Math.PI / 180),\n x,\n y;\n\n cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\n this._subtract(center);\n\n x = this.x;\n y = this.y;\n\n this.x = (x * cos) - (y * sin);\n this.y = (x * sin) + (y * cos);\n\n this._add(center);\n\n return this;\n};\n\n/**\n * Calculate distance between two points.\n * @param {Point} point Point instance.\n * @returns {number} The number of distance between two points.\n */\nPoint.prototype.distanceTo = function(point) {\n var x,\n y;\n\n point = Point.n(point);\n\n x = point.x - this.x;\n y = point.y - this.y;\n\n return Math.sqrt((x * x) + (y * y));\n};\n\n/**\n * Check point equals.\n * @param {Point} point Point instance to compare\n * @returns {boolean} equality\n */\nPoint.prototype.equals = function(point) {\n point = Point.n(point);\n\n return point.x === this.x && point.y === this.y;\n};\n\n/**\n * Return formatted string. 'Point(x, y)'\n * @returns {string} string\n */\nPoint.prototype.toString = function() {\n return 'Point(' + this.x + ', ' + this.y + ')';\n};\n\n/**\n * Return coodinates to array. [x, y]\n * @returns {number[]} coordinate array.\n */\nPoint.prototype.toArray = function() {\n return [this.x, this.y];\n};\n\nmodule.exports = Point;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/point.js\n// module id = 60\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\\n \"\n + alias4(((helper = (helper = helpers.hours || (depth0 != null ? depth0.hours : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hours\",\"hash\":{},\"data\":data}) : helper)))\n + \"\\n
\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\\n
\\n
\"\n + alias4(((helper = (helper = helpers.hourmarkerText || (depth0 != null ? depth0.hourmarkerText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hourmarkerText\",\"hash\":{},\"data\":data}) : helper)))\n + \"
\\n
\\n
today
\\n
\\n
\\n
\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
\\n
\\n
\\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
\\n
\\n
\\n
\\n\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.showHourMarker : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
\\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/timeGrid.hbs\n// module id = 61\n// module chunks = 0","/**\n * @fileoverview View of allday schedule container inside of Week view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n View = require('../view'),\n WeekdayInWeek = require('./weekdayInWeek'),\n tmpl = require('../template/week/allday.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n * @param {number} [options.height=60] - minimum height of schedule container element.\n * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n * @param {HTMLElement} container Container element.\n * @param {object} aboutMe allday panel name and height\n */\nfunction Allday(options, container, aboutMe) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('allday-container')\n );\n\n /**\n * rendering options.\n * @type {object}\n */\n this.options = util.extend({\n title: 'All-day',\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: 18,\n scheduleGutter: 2,\n scheduleContainerTop: 1,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange.allday;\n }\n }, options);\n\n /**\n * height of content\n */\n this.contentHeight = 0;\n\n this.viewType = options.alldayViewType || 'scroll';\n this.collapsed = (this.viewType === 'toggle');\n this.aboutMe = util.extend(\n aboutMe, {\n name: 'allday'\n }\n );\n\n this.maxScheduleInDay = 0;\n\n View.call(this, container);\n}\n\nutil.inherit(Allday, View);\n\n/**\n * create month week view model for render allday schedules in top of week views.\n * @override\n * @param {object} viewModel - viewModel from parent views.\n */\nAllday.prototype.render = function(viewModel) {\n var container = this.container;\n var scheduleContainerTop = this.options.scheduleContainerTop;\n var self = this;\n var weekdayView;\n\n container.innerHTML = tmpl(this.options);\n\n this.children.clear();\n\n weekdayView = new WeekdayInWeek(\n this.options,\n domutil.find(config.classname('.weekday-container'), container),\n this.aboutMe\n );\n weekdayView.collapsed = this.collapsed;\n weekdayView.on('afterRender', function(weekdayViewModel) {\n self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n self.maxScheduleInDay = weekdayViewModel.maxScheduleInDay;\n });\n\n this.addChild(weekdayView);\n\n this.children.each(function(childView) {\n childView.collapsed = this.collapsed;\n childView.render(viewModel);\n }, this);\n\n this.fire('afterRender', viewModel);\n};\n\nAllday.prototype.getExpandMaxHeight = function() {\n var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n var maxExpandCount = this.aboutMe.maxExpandCount;\n\n if (this.maxScheduleInDay > maxExpandCount) {\n return scheduleHeight * (maxExpandCount + 0.5);\n }\n\n return scheduleHeight * maxExpandCount;\n};\n\nmodule.exports = Allday;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/allday.js\n// module id = 62\n// module chunks = 0","/**\n * @fileoverview Weekday view for week\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Weekday = require('../weekday'),\n tmpl = require('./weekdayInWeek.hbs'),\n datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar config = require('../../config');\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.containerHeight=40] - minimum height of schedule\n * container element.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n * @param {object} [aboutMe] - parent container info\n * @param {string} [aboutMe.name] - panel name ['Milestone'|'Task'|'AllDay'|'TimeGrid']\n * @param {boolean} [aboutMe.forcedLayout] - force layout height by dragging\n */\nfunction WeekdayInWeek(options, container, aboutMe) {\n Weekday.call(this, options, container);\n this.aboutMe = aboutMe || {};\n}\n\nutil.inherit(WeekdayInWeek, Weekday);\n\n/**\n * Render Weekday view\n * @override\n */\nWeekdayInWeek.prototype.render = function(viewModel) {\n var opt = this.options,\n container = this.container,\n aboutMe = this.aboutMe,\n name = aboutMe.name;\n var baseViewModel;\n\n this.viewType = opt[name + 'ViewType'] || '';\n\n baseViewModel = this.getBaseViewModel(viewModel);\n\n if (this.viewType === 'toggle') {\n baseViewModel.viewType = this.viewType;\n baseViewModel.collapsed = this.collapsed ? 'collapsed' : '';\n }\n\n container.innerHTML = tmpl(baseViewModel);\n\n util.forEach(domutil.find(config.classname('.weekday-exceed-in-week'), container, true), function(el) {\n el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n });\n\n util.forEach(domutil.find(config.classname('.weekday-collapse-btn'), container, true), function(el) {\n el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n });\n\n this.fire('afterRender', baseViewModel);\n};\n\n/**\n * returns maximum schedule count in day\n * @param {array} matrices - The matrices for schedule placing.\n * @returns {number} maximum schedule count in day\n */\nWeekdayInWeek.prototype._getMaxScheduleInDay = function(matrices) {\n return mmax.apply(\n null,\n util.map(matrices, function(matrix) {\n return Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n })\n );\n};\n\n/**\n * returns minimum height for container.\n * @param {number} maxScheduleInDay - max schedule blocks in one day\n * @returns {number}\n */\nWeekdayInWeek.prototype._getMinHeight = function(maxScheduleInDay) {\n var opt = this.options;\n var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\n if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n contentHeight += opt.containerBottomGutter;\n }\n\n return contentHeight;\n};\n\n/**\n * make and update data of exceed date\n * @param {object} exceedDate - data to have exceed date in a week\n * @param {TZDate} renderStarts - start date of a week\n * @param {TZDate} renderEnds - end date of a week\n */\nWeekdayInWeek.prototype._updateExceedDate = function(exceedDate, renderStarts, renderEnds) {\n var date = datetime.clone(renderStarts);\n var day;\n\n for (; date <= renderEnds; date.setDate(date.getDate() + 1)) {\n day = datetime.format(date, 'YYYYMMDD');\n if (!exceedDate[day]) {\n exceedDate[day] = 1;\n } else {\n exceedDate[day] += 1;\n }\n }\n};\n\n/**\n * Exclude overflow schedules from matrices\n * @param {array} matrices - The matrices for schedule placing.\n * @param {number} visibleScheduleCount - maximum visible count on panel\n * @param {number} maxScheduleInDay - maximum number of schedules in day\n * @returns {array} - The matrices for schedule placing except overflowed schedules.\n */\nWeekdayInWeek.prototype._excludeExceedSchedules = function(matrices, visibleScheduleCount, maxScheduleInDay) {\n if (visibleScheduleCount >= maxScheduleInDay) {\n return matrices;\n }\n\n return matrices.map(function(matrix) {\n return matrix.map(function(row) {\n if (row.length > visibleScheduleCount) {\n return row.filter(function(item) {\n return item.top < visibleScheduleCount;\n }, this);\n }\n\n return row;\n }, this);\n }, this);\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInWeek.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var matrices = opt.getViewModelFunc(viewModel);\n var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n var visibleScheduleCount = this.aboutMe.visibleScheduleCount;\n var aboutMe = this.aboutMe;\n var exceedDate = {};\n var baseViewModel, panelHeight, maxHiddenScheduleCount;\n\n if (this.viewType === 'toggle') {\n panelHeight = aboutMe.forcedLayout ? this.getViewBound().height : mmin(aboutMe.height, aboutMe.maxHeight);\n visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n if (this.collapsed) {\n visibleScheduleCount = mmin(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n exceedDate =\n this.getExceedDate(visibleScheduleCount,\n viewModel.schedulesInDateRange[aboutMe.name],\n viewModel.range,\n maxScheduleInDay\n );\n matrices = this._excludeExceedSchedules(matrices, visibleScheduleCount, maxScheduleInDay);\n aboutMe.visibleScheduleCount = visibleScheduleCount;\n } else {\n maxHiddenScheduleCount = maxScheduleInDay - aboutMe.visibleScheduleCount;\n exceedDate =\n this.getExceedDate(\n mmin(maxScheduleInDay, aboutMe.maxExpandCount) - maxHiddenScheduleCount,\n viewModel.schedulesInDateRange[aboutMe.name],\n viewModel.range\n );\n visibleScheduleCount = mmax(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n }\n }\n\n viewModel = util.extend({\n exceedDate: exceedDate || {}\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n minHeight: this._getMinHeight(maxScheduleInDay),\n matrices: matrices,\n scheduleContainerTop: this.options.scheduleContainerTop,\n minHiddenScheduleIndex: this._getCollapseBtnIndex(viewModel.range,\n baseViewModel.dates,\n maxHiddenScheduleCount,\n exceedDate\n ),\n maxScheduleInDay: maxScheduleInDay,\n floatingButtonTop: this._calculateFloatingBtnTop(visibleScheduleCount, maxScheduleInDay),\n panelName: aboutMe.name\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * return weekday index to show collapse button\n * @param {Array.} range - view model\n * @param {Array.} dates - base view model\n * @param {number} maxHiddenCount - maximum hidden count when panel is collapsed\n * @param {array} exceedDate - overflowed schedule count in week\n * @returns {number} weekday index\n */\nWeekdayInWeek.prototype._getCollapseBtnIndex = function(range, dates, maxHiddenCount, exceedDate) {\n var minHiddenScheduleCount = maxHiddenCount;\n var btnIndex = range.length > 0 ? range.length - 1 : 0;\n\n util.forEach(dates, function(date, index) {\n var ymd = date.ymd;\n if (exceedDate[ymd] !== 0 && minHiddenScheduleCount >= exceedDate[ymd]) {\n minHiddenScheduleCount = exceedDate[ymd];\n btnIndex = index;\n }\n });\n\n return btnIndex;\n};\n\n/**\n * Calculate absolute top position of floating button layer\n * @param {number} visibleScheduleCount - maximum (row) number of schedules that panel can show\n * @param {number} maxScheduleInDay - maximum number of schedules in day\n * @returns {number} absolute top position of floating buttons in weekday panel\n */\nWeekdayInWeek.prototype._calculateFloatingBtnTop = function(visibleScheduleCount, maxScheduleInDay) {\n var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n\n if (!this.collapsed && maxScheduleInDay > this.aboutMe.maxExpandCount) {\n return (visibleScheduleCount - 0.5) * scheduleHeight;\n }\n\n return (visibleScheduleCount - 1) * scheduleHeight;\n};\n\nmodule.exports = WeekdayInWeek;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/weekdayInWeek.js\n// module id = 63\n// module chunks = 0","/**\n * @fileoverview Weekday view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n datetime = require('../common/datetime'),\n TZDate = require('../common/timezone').Date,\n View = require('./view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - view options.\n * @param {number} [options.containerHeight=40] - minimum height of schedule\n * container element.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction Weekday(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('weekday')\n );\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n containerHeight: 40,\n containerBottomGutter: 8,\n scheduleHeight: 18,\n scheduleGutter: 2,\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n View.call(this, container);\n}\n\nutil.inherit(Weekday, View);\n\n/**\n * Get render date range\n * @returns {Date[]} rendered date range\n */\nWeekday.prototype.getRenderDateRange = function() {\n return this._cacheParentViewModel.range;\n};\n\n/**\n * Get render date grids information\n * @returns {Date[]} rendered date grids information\n */\nWeekday.prototype.getRenderDateGrids = function() {\n return this._cacheParentViewModel.grids;\n};\n\n/**\n * Get default view model.\n * @param {object} viewModel parent's view model\n * @returns {object} viewModel to rendering.\n */\nWeekday.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var range = viewModel.range;\n var today = datetime.format(new TZDate(), 'YYYYMMDD');\n var gridWidth = (100 / range.length);\n var grids = viewModel.grids;\n var exceedDate = viewModel.exceedDate || {};\n\n this._cacheParentViewModel = viewModel;\n\n return {\n width: gridWidth,\n scheduleHeight: opt.scheduleHeight,\n scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n scheduleBlockGutter: opt.scheduleGutter,\n dates: util.map(range, function(date, index) {\n var day = date.getDay();\n var ymd = datetime.format(date, 'YYYYMMDD');\n\n return {\n date: datetime.format(date, 'YYYY-MM-DD'),\n month: date.getMonth() + 1,\n day: day,\n isToday: ymd === today,\n ymd: ymd,\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0\n };\n })\n };\n};\n\n/* eslint max-nested-callbacks: 0 */\n/**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\nWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n var exceedDate = this._initExceedDate(range);\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n};\n\n/**\n * Initiate exceed date information\n * @param {Array.} range - date range of one week\n * @returns {Object} - initiated exceed date\n */\nWeekday.prototype._initExceedDate = function(range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n return exceedDate;\n};\n\nmodule.exports = Weekday;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/weekday.js\n// module id = 64\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda;\n\n return \"\\n
\\n
\\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"task\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.program(20, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(22, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
\\n
\\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-left\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-right\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-schedule-focused \";\n},\"14\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"16\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\n return \" \"\n + ((stack1 = (helpers[\"task-tmpl\"] || (depth0 && depth0[\"task-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"task-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.viewType : depth0),\"===\",\"toggle\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(25, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"25\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && data.root)) && stack1.collapsed),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(27, data, 0),\"inverse\":container.program(30, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"28\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + alias4((helpers[\"weekGridFooterExceed-tmpl\"] || (depth0 && depth0[\"weekGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data}))\n + \"\\n\";\n},\"30\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),\"===\",((stack1 = (data && data.root)) && stack1.minHiddenScheduleIndex),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(31, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"31\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\"\n + ((stack1 = ((helper = (helper = helpers[\"alldayCollapseBtnTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayCollapseBtnTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayCollapseBtnTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"
\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
\\n
\\n
\\n \\n
\\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,(depth0 != null ? depth0.panelName : depth0),\"===\",\"allday\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
\\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/weekdayInWeek.hbs\n// module id = 65\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\\n \"\n + ((stack1 = ((helper = (helper = helpers[\"alldayTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
\\n
\\n
\\n
\\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/allday.hbs\n// module id = 66\n// module chunks = 0","/**\n * @fileoverview 마일스톤 뷰\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../../view/view');\nvar tmpl = require('../template/week//milestone.hbs');\n\n// item height + gutter (defined in css)\nvar ITEM_HEIGHT = 17;\n\n// list padding-top (defined in css)\nvar LIST_PADDING_TOP = 1;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n * @param {number} [options.minHeight=52] - min-height of milestone view\n * @param {number} [options.lineHeight=12] - line height of milestone view\n * @param {HTMLElement} container - container element\n */\nfunction Milestone(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('milestone-container')\n );\n\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n renderStartDate: '',\n renderEndDate: ''\n }, options);\n}\n\nutil.inherit(Milestone, View);\n\n/**\n * Get base viewmodel for task view\n * @param {object} [viewModel] - view model from parent view\n * @returns {object} view model for task view\n */\nMilestone.prototype._getBaseViewModel = function(viewModel) {\n var schedules = {},\n range = viewModel.range,\n height,\n today = datetime.format(new TZDate(), 'YYYY-MM-DD'),\n viewModelSchedules = util.pick(viewModel.schedulesInDateRange, 'milestone'),\n grids = viewModel.grids,\n i = 0;\n\n // 일정이 없는 경우라도 빈 객체를 생성\n util.forEach(range, function(d) {\n schedules[datetime.format(d, 'YYYY-MM-DD')] = {length: 0};\n });\n\n util.extend(schedules, viewModelSchedules);\n\n util.forEach(schedules, function(schedule, key) {\n schedule.isToday = (key === today);\n schedule.left = grids[i] ? grids[i].left : 0;\n schedule.width = grids[i] ? grids[i].width : 0;\n i += 1;\n });\n\n height = LIST_PADDING_TOP;\n height += Math.max.apply(null, util.map(schedules, function(coll) {\n return coll.length;\n })) * ITEM_HEIGHT;\n\n return {\n schedules: schedules,\n height: height\n };\n};\n\n/**\n * 마일스톤 뷰 렌더링\n * @override\n */\nMilestone.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this._getBaseViewModel(viewModel);\n\n container.style.minHeight = this.options.minHeight + 'px';\n container.innerHTML = tmpl(baseViewModel);\n\n util.forEach(domutil.find('li', container, true), function(el) {\n if (el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n\n this.fire('afterRender', baseViewModel);\n};\n\nmodule.exports = Milestone;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/milestone.js\n// module id = 67\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
\\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.items : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
\\n
\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing;\n\n return \"
  • \\n \"\n + ((stack1 = (helpers[\"milestone-tmpl\"] || (depth0 && depth0[\"milestone-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"milestone-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
  • \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"milestoneTitle-tmpl\"] || (depth0 != null ? depth0[\"milestoneTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"milestoneTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/milestone.hbs\n// module id = 68\n// module chunks = 0","/**\n * @fileoverview Task view for upper area of Week view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n View = require('../view'),\n WeekdayInWeek = require('./weekdayInWeek'),\n tmpl = require('../template/week/taskview.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for TaskView\n * @param {string} options.renderStartDate - start date of this view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of this view's render date. YYYY-MM-DD\n * @param {number} [options.height=60] - minimum height of schedule container element.\n * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n \n * @param {HTMLElement} container - container element\n */\nfunction TaskView(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('task-container')\n );\n\n /**\n * rendering options.\n * @type {object}\n */\n this.options = util.extend({\n title: 'task',\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: 18,\n scheduleGutter: 2,\n scheduleContainerTop: 1,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange.task;\n }\n }, options);\n\n /**\n * height of content\n */\n this.contentHeight = 0;\n\n View.call(this, container);\n}\n\nutil.inherit(TaskView, View);\n\n/**\n * 업무 뷰 렌더링\n * @override\n */\nTaskView.prototype.render = function(viewModel) {\n var container = this.container;\n var scheduleContainerTop = this.options.scheduleContainerTop;\n var self = this;\n var weekdayView;\n\n container.innerHTML = tmpl(this.options);\n\n this.children.clear();\n\n weekdayView = new WeekdayInWeek(\n this.options,\n domutil.find(config.classname('.weekday-container'), container)\n );\n weekdayView.on('afterRender', function(weekdayViewModel) {\n self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n });\n\n this.addChild(weekdayView);\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n });\n\n this.fire('afterRender', viewModel);\n};\n\nmodule.exports = TaskView;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/taskview.js\n// module id = 69\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"taskTitle-tmpl\"] || (depth0 != null ? depth0[\"taskTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"taskTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/taskview.hbs\n// module id = 70\n// module chunks = 0","/**\n * @fileoverview Click handle module for allday schedules\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar AlldayMove = require('./move');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayClick(dragHandler, alldayView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy handler module\n */\nAlldayClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.alldayView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nAlldayClick.prototype.checkExpectCondition = AlldayMove.prototype.checkExpectedCondition;\n\n/**\n * Click event handler\n * @param {object} clickEvent - click event data\n * @emits AlldayClick#clickSchedule\n */\nAlldayClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n scheduleCollection = this.baseController.schedules,\n collapseElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-collapse-btn')\n );\n var blockElement, moreElement, scheduleElement;\n\n if (collapseElement) {\n self.fire('clickCollapse');\n\n return;\n }\n\n if (!timeView) {\n return;\n }\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-week')\n );\n\n if (moreElement) {\n self.fire('clickExpand');\n\n return;\n }\n\n scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n if (scheduleElement) {\n blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(AlldayClick);\n\nmodule.exports = AlldayClick;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/click.js\n// module id = 71\n// module chunks = 0","/**\n * @fileoverview Move handler for Allday view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar AlldayCore = require('./core');\nvar AlldayMoveGuide = require('./moveGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayMove(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * Temporary variable for dragstart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {AlldayMoveGuide}\n */\n this.guide = new AlldayMoveGuide(this);\n}\n\nAlldayMove.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.alldayView = this.baseController =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayMove.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n parentView,\n matches;\n\n if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n parentView = domutil.closest(target, config.classname('.weekday'));\n\n if (!parentView) {\n return false;\n }\n\n cssClass = domutil.getClass(parentView);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler method.\n * @emits AlldayMove#alldayMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n */\nAlldayMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.baseController,\n excludeTarget = true,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n if (!scheduleBlockElement) {\n return;\n }\n\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event AlldayMove#alldayMoveDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('alldayMoveDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayMove#alldayMoveDrag\n * @param {object} dragEventData - Drag#drag event handler eventdata.\n */\nAlldayMove.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @schedule AlldayMove#alldayMoveDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayMoveDrag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule model to base controller.\n * @fires AlldayMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from AlldayMove handler module.\n */\nAlldayMove.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newStarts = new TZDate(schedule.start.getTime()),\n newEnds = new TZDate(schedule.end.getTime());\n\n newStarts = new TZDate(newStarts.setDate(newStarts.getDate() + dateOffset));\n newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n\n /**\n * @event AlldayMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayMove#alldayMoveDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nAlldayMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event AlldayMove#alldayMoveDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayMoveDragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayMove#alldayMoveClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayMove.prototype._onClick = function(clickEventData) {\n /**\n * @event AlldayMove#alldayMoveClick\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'alldayMoveClick', true);\n};\n\ncommon.mixin(AlldayCore, AlldayMove);\nutil.CustomEvents.mixin(AlldayMove);\n\nmodule.exports = AlldayMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/move.js\n// module id = 72\n// module chunks = 0","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Base mixin object for handler/allday\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\n\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @mixin Allday.Core\n */\nvar alldayCore = {\n /**\n * @param {Allday} alldayView - view instance of allday.\n * @param {MouseEvent} mouseEvent - mouse schedule object.\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleData: function(alldayView, mouseEvent) {\n var weekdayView = alldayView.children.single(),\n container,\n datesInRange,\n containerWidth,\n mousePos,\n dragStartXIndex,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n container = weekdayView.container;\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n containerWidth = domutil.getSize(container)[0];\n mousePos = domevent.getMousePosition(mouseEvent, container);\n dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\n /**\n * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n * @returns {object} schedule data.\n */\n return function(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, container),\n mouseX = pos[0],\n xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: alldayView,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: mouseEvent.type,\n grids: grids,\n range: range\n };\n };\n }\n};\n\n/**\n * Get the left index\n * @param {Array} grids - grid size information\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\nfunction getX(grids, left) {\n var i = 0;\n var length = grids.length;\n var grid;\n if (left < 0) {\n left = 0;\n }\n\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n}\n\nmodule.exports = alldayCore;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/core.js\n// module id = 73\n// module chunks = 0","/**\n * @fileoverview Effect module for Allday.Move\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * Class for Allday.Move dragging effect.\n * @constructor\n * @param {AlldayMove} alldayMove - instance of AlldayMove.\n */\nfunction AlldayMoveGuide(alldayMove) {\n /**\n * @type {AlldayMove}\n */\n this.alldayMove = alldayMove;\n\n /**\n * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {number}\n */\n this._dragStartXIndex = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n alldayMove.on({\n 'alldayMoveDragstart': this._onDragStart,\n 'alldayMoveDrag': this._onDrag,\n 'alldayMoveDragend': this._clearGuideElement,\n 'alldayMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.alldayMove.off(this);\n this.alldayMove = this.scheduleContainer = this._dragStartXIndex =\n this.elements = this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nAlldayMoveGuide.prototype._clearGuideElement = function() {\n this._showOriginScheduleBlocks();\n\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nAlldayMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n var scheduleBlocks = domutil.find(\n config.classname('.weekday-schedule-block'),\n this.alldayMove.alldayView.container,\n true\n );\n\n this.elements = util.filter(scheduleBlocks, function(schedule) {\n return domutil.getData(schedule, 'id') === modelID;\n });\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nAlldayMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * @param {Schedule} model - model\n * @param {HTMLElement} parent - parent element\n * Highlight element blocks\n */\nAlldayMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\n util.forEach(elements, function(el) {\n el.style.margin = '0';\n\n if (!model.isFocused) {\n el.style.backgroundColor = el.style.color;\n el.style.borderLeftColor = el.style.color;\n el.style.color = '#ffffff';\n }\n });\n};\n\n/**\n * Refresh guide element.\n * @param {number} leftPercent - left percent of guide element.\n * @param {number} widthPercent - width percent of guide element.\n * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n * @param {boolean} isExceededRight - schedule end is later then render end date?\n */\nAlldayMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n\n if (isExceededLeft) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n }\n\n if (isExceededRight) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n }\n });\n};\n\n/**\n * Get schedule block information from schedule data.\n *\n * For example, there is single schedule has 10 length. but render range in view is 5 then\n * rendered block must be cut out to render properly. in this case, this method return\n * how many block are cut before rendering.\n *\n * 이벤트 데이터에서 이벤트 블록 엘리먼트 렌더링에 대한 필요 정보를 추출한다.\n *\n * ex) 렌더링 된 블록의 길이는 5지만 실제 이 이벤트는 10의 길이를 가지고 있을 때\n * 좌 우로 몇 만큼 잘려있는지에 관한 정보를 반환함.\n * @param {object} dragStartEventData - schedule data from Allday.Move handler.\n * @returns {function} function that return schedule block information.\n */\nAlldayMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n datesInRange = dragStartEventData.datesInRange,\n range = dragStartEventData.range,\n baseWidthPercent = (100 / datesInRange),\n originScheduleStarts = datetime.start(model.start),\n originScheduleEnds = datetime.end(model.end),\n renderStartDate = datetime.start(range[0]),\n renderEndDate = datetime.end(range[range.length - 1]),\n fromLeft = (new TZDate(originScheduleStarts.getTime() -\n renderStartDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0,\n fromRight = (new TZDate(originScheduleEnds.getTime() -\n renderEndDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0;\n\n return function(indexOffset) {\n return {\n baseWidthPercent: baseWidthPercent,\n fromLeft: fromLeft + indexOffset,\n fromRight: fromRight + indexOffset\n };\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var alldayViewContainer = this.alldayMove.alldayView.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n domutil.addClass(guideElement, config.classname('allday-guide-move'));\n scheduleContainer.appendChild(guideElement);\n\n this._dragStartXIndex = dragStartEventData.xIndex;\n this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\n this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nAlldayMoveGuide.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStartXIndex = this._dragStartXIndex,\n datesInRange = dragEventData.datesInRange,\n grids = dragEventData.grids,\n scheduleData,\n isExceededLeft,\n isExceededRight,\n originLength,\n leftIndex,\n size,\n newLeft,\n newWidth;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n isExceededLeft = scheduleData.fromLeft < 0;\n isExceededRight = scheduleData.fromRight > 0;\n\n leftIndex = Math.max(0, scheduleData.fromLeft);\n originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\n newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\n this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n};\n\n/**\n * Get schedule width based on grids\n * @param {number} left - left index\n * @param {number} size - schedule width\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getScheduleBlockWidth(left, size, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n for (; i < size; i += 1) {\n left = (left + i) % length;\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nmodule.exports = AlldayMoveGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/moveGuide.js\n// module id = 74\n// module chunks = 0","/**\n * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar alldayCore = require('./core');\nvar AlldayCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CutomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayCreation(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {AlldayCreationGuide}\n */\n this.guide = new AlldayCreationGuide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(alldayView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destroy method\n */\nAlldayCreation.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (this.alldayView && this.alldayView.container) {\n domevent.off(this.alldayView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.alldayView = this.baseController = this.getScheduleDataFunc = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target).trim();\n var isAllDay = domutil.closest(target, config.classname('.allday-container'));\n var excludeTarget = true;\n var matches, schedulesElement;\n\n if (!isAllDay) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n ) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n return false;\n }\n\n schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n return false;\n }\n\n target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {AlldayCreation#beforeCreateSchedule}\n * @param {object} scheduleData - schedule data from AlldayCreation module.\n */\nAlldayCreation.prototype._createSchedule = function(scheduleData) {\n var dateRange = scheduleData.range,\n startXIndex = scheduleData.dragStartXIndex,\n xIndex = scheduleData.xIndex,\n start, end;\n\n // when inverse start, end then change it.\n if (xIndex < startXIndex) {\n startXIndex = xIndex + startXIndex;\n xIndex = startXIndex - xIndex;\n startXIndex = startXIndex - xIndex;\n }\n\n start = new TZDate(dateRange[startXIndex].getTime());\n end = datetime.end(dateRange[xIndex]);\n\n /**\n * @event {AlldayCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: true,\n start: start,\n end: end,\n guide: this.guide,\n triggerEventName: scheduleData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler method.\n * @emits AlldayCreation#alldayCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n */\nAlldayCreation.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n\n scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\n /**\n * @event AlldayCreation#alldayCreationDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayCreationDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayCreation#alldayCreationDrag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nAlldayCreation.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\n /**\n * @event AlldayCreation#alldayCreationDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayCreationDrag', scheduleData);\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayCreation#alldayCreationDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n */\nAlldayCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n var scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\n this._createSchedule(scheduleData);\n\n /**\n * @event AlldayCreation#alldayCreationDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayCreationDragend', scheduleData);\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayCreation#alldayCreationClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData.originEvent);\n scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('alldayCreationClick', scheduleData);\n self._createSchedule(scheduleData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Dblclick event handler method.\n * @emits AlldayCreation#alldayCreationClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayCreation.prototype._onDblClick = function(clickEventData) {\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData);\n scheduleData = getScheduleDataFunc(clickEventData);\n\n this.fire('alldayCreationClick', scheduleData);\n\n this._createSchedule(scheduleData);\n\n this._requestOnClick = false;\n};\n\ncommon.mixin(alldayCore, AlldayCreation);\nutil.CustomEvents.mixin(AlldayCreation);\n\nmodule.exports = AlldayCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/creation.js\n// module id = 75\n// module chunks = 0","/**\n * @fileoverview Guide element for Allday.Creation\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for Allday.Creation dragging effect.\n * @constructor\n * @param {AlldayCreation} alldayCreation - instance of AlldayCreation.\n */\nfunction AlldayCreationGuide(alldayCreation) {\n /**\n * @type {AlldayCreation}\n */\n this.alldayCreation = alldayCreation;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = document.createElement('div');\n\n this.initializeGuideElement();\n\n alldayCreation.on({\n alldayCreationDragstart: this._createGuideElement,\n alldayCreationDrag: this._onDrag,\n alldayCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.alldayCreation.off(this);\n this.alldayCreation = this.scheduleContainer = this.guideElement = null;\n};\n\n/**\n * initialize guide element's default style.\n */\nAlldayCreationGuide.prototype.initializeGuideElement = function() {\n domutil.addClass(this.guideElement, config.classname('allday-guide-creation-block'));\n};\n\n/**\n * Drag event handler\n * @param {object} scheduleData - schedule data from Allday.Creation handler.\n */\nAlldayCreationGuide.prototype._onDrag = function(scheduleData) {\n this._refreshGuideElement(scheduleData, true);\n};\n\n/**\n * Get element width based on narrowWeekend\n * @param {number} dragStartIndex - grid start index\n * @param {number} dragEndIndex - grid end index\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nAlldayCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n var width = 0;\n var i = dragStartIndex;\n for (; i <= dragEndIndex; i += 1) {\n width += grids[i] ? grids[i].width : 0;\n }\n\n return width;\n};\n\n/**\n * Refresh guide element.\n * @param {object} scheduleData - schedule data from Allday.Creation handler.\n * @param {boolean} defer - If set to true, set style in the next frame\n */\nAlldayCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n var guideElement = this.guideElement,\n data = scheduleData,\n dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n leftPercent,\n widthPercent;\n\n leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\n /** eslint-disable require-jsdoc */\n function setStyle() {\n guideElement.style.display = 'block';\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n }\n\n if (defer) {\n reqAnimFrame.requestAnimFrame(setStyle);\n } else {\n setStyle();\n }\n};\n\n/**\n * Clear guide element.\n */\nAlldayCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement;\n\n domutil.remove(guideElement);\n\n guideElement.style.display = 'none';\n guideElement.style.left = '';\n guideElement.style.width = '';\n};\n\n/**\n * Create guide element\n * @param {object} dragStartEventData - schedule data object of Allday.Creation.\n */\nAlldayCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var alldayCreation = this.alldayCreation,\n alldayView = alldayCreation.alldayView,\n alldayContainerElement = alldayView.container,\n scheduleContainer = domutil.find(config.classname('.weekday-grid'), alldayContainerElement);\n\n scheduleContainer.appendChild(this.guideElement);\n this._refreshGuideElement(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - event data object of Allday.Creation.\n */\nAlldayCreationGuide.prototype._onDrag = function(dragEventData) {\n this._refreshGuideElement(dragEventData);\n};\n\nmodule.exports = AlldayCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/creationGuide.js\n// module id = 76\n// module chunks = 0","/**\n * @fileoverview Resize handler module for Allday view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar AlldayCore = require('./core');\nvar AlldayResizeGuide = require('./resizeGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayResize(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * Temporary variable for dragStart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {AlldayResizeGuide}\n */\n this.guide = new AlldayResizeGuide(this);\n}\n\n/**\n * Destroy method\n */\nAlldayResize.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.alldayView = this.baseController =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayResize.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n target = domutil.closest(target, config.classname('.weekday'));\n\n if (!target) {\n return false;\n }\n\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler.\n * @emits AlldayResize#alldayResizeDragstart\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.baseController,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event AlldayResize#alldayResizeDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('alldayResizeDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayResize#alldayResizeDrag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nAlldayResize.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @event AlldayResize#alldayResizeDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayResizeDrag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule instance to base controller.\n * @fires AlldayResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from AlldayResize handler.\n */\nAlldayResize.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newEnds = new TZDate(schedule.end.getTime());\n\n newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n newEnds = new TZDate(Math.max(datetime.end(schedule.start).getTime(), newEnds.getTime()));\n\n /**\n * @event AlldayResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {date} start - start time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayResize#alldayResizeDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nAlldayResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event AlldayResize#alldayResizeDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayResizeDragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayResize#alldayResizeClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayResize.prototype._onClick = function(clickEventData) {\n /**\n * @event AlldayResize#alldayResizeClick\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'alldayResizeClick', true);\n};\n\ncommon.mixin(AlldayCore, AlldayResize);\nutil.CustomEvents.mixin(AlldayResize);\n\nmodule.exports = AlldayResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/resize.js\n// module id = 77\n// module chunks = 0","/**\n * @fileoverview Resize Guide module.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @param {AlldayResize} alldayResize - instance of AlldayResize\n */\nfunction AlldayResizeGuide(alldayResize) {\n /**\n * @type {AlldayResize}\n */\n this.alldayResize = alldayResize;\n\n /**\n * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n alldayResize.on({\n 'alldayResizeDragstart': this._onDragStart,\n 'alldayResizeDrag': this._onDrag,\n 'alldayResizeDragend': this._clearGuideElement,\n 'alldayResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.alldayResize.off(this);\n this.alldayResize = this.scheduleContainer = this.getScheduleDataFunc =\n this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nAlldayResizeGuide.prototype._clearGuideElement = function() {\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} newWidth - new width percentage value to resize guide element.\n */\nAlldayResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.width = newWidth + '%';\n });\n};\n\n/**\n * Return function that calculate guide element's new width percentage value.\n * @param {object} dragStartEventData - dragstart schedule data.\n * @returns {function} return function that calculate guide element new width percentage.\n */\nAlldayResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n viewOptions = this.alldayResize.alldayView.options,\n fromLeft = (new TZDate(\n model.start.getTime() - datetime.parse(viewOptions.renderStartDate)\n )) / datetime.MILLISECONDS_PER_DAY | 0,\n grids = dragStartEventData.grids;\n\n return function(xIndex) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\n for (; i < length; i += 1) {\n if (i > fromLeft && i <= xIndex) {\n width += grids[i] ? grids[i].width : 0;\n }\n }\n\n return width;\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var alldayViewContainer = this.alldayResize.alldayView.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n domutil.addClass(guideElement, config.classname('allday-guide-move'));\n scheduleContainer.appendChild(guideElement);\n\n this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nAlldayResizeGuide.prototype._onDrag = function(dragEventData) {\n var func = this.getScheduleDataFunc;\n\n if (!func) {\n return;\n }\n\n this.refreshGuideElement(func(dragEventData.xIndex));\n};\n\nmodule.exports = AlldayResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/resizeGuide.js\n// module id = 78\n// module chunks = 0","/**\n * @fileoverview Dayname click event hander module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayName} [dayNameView] - DayName view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction DayNameClick(dragHandler, dayNameView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayName}\n */\n this.dayNameView = dayNameView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayNameClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dayNameView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayNameClick.prototype.checkExpectCondition = function(target) {\n var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\n if (!container) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits DayNameClick#clickDayname\n */\nDayNameClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n daynameView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.dayname'));\n\n if (!daynameView || !blockElement) {\n return;\n }\n\n /**\n * @events DayNameClick#clickDayname\n * @type {object}\n * @property {string} date - click date\n */\n self.fire('clickDayname', {\n date: domutil.getData(blockElement, 'date')\n });\n};\n\nutil.CustomEvents.mixin(DayNameClick);\n\nmodule.exports = DayNameClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/clickDayname.js\n// module id = 79\n// module chunks = 0","/**\n * @fileoverview Allday event click event hander module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeClick(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.timeGridView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nTimeClick.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits TimeClick#clickEvent\n */\nTimeClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n schedulesCollection = this.baseController.schedules;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events TimeClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(TimeClick);\n\nmodule.exports = TimeClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/click.js\n// module id = 80\n// module chunks = 0","/**\n * @fileoverview Handling creation events from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar TimeCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeCreation(dragHandler, timeGridView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * TimeGrid view instance.\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {TimeCreationGuide}\n */\n this.guide = new TimeCreationGuide(this);\n\n /**\n * Temporary function for single drag session's calc.\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * Temporary function for drag start data cache.\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destroy method\n */\nTimeCreation.prototype.destroy = function() {\n var timeGridView = this.timeGridView;\n\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (timeGridView && timeGridView.container) {\n domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this.guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n */\nTimeCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n target = target.parentNode;\n cssClass = domutil.getClass(target);\n }\n\n matches = cssClass.match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, matches[1]);\n};\n\n/**\n * Drag#dragStart event handler.\n * @emits TimeCreation#timeCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n eventData;\n\n if (!result) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @event TimeCreation#timeCreationDragstart\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeCreation#timeCreationDrag\n * @param {object} dragEventData - event data from Drag#drag.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n eventData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n eventData = getScheduleDataFunc(dragEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDrag\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDrag', eventData);\n};\n\n/**\n * @fires TimeCreation#beforeCreateSchedule\n * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n * or TimeCreation#timeCreationClick\n */\nTimeCreation.prototype._createSchedule = function(eventData) {\n var relatedView = eventData.relatedView,\n createRange = eventData.createRange,\n nearestGridTimeY = eventData.nearestGridTimeY,\n baseDate,\n dateStart,\n dateEnd,\n start,\n end;\n\n if (!createRange) {\n createRange = [\n nearestGridTimeY,\n nearestGridTimeY + datetime.millisecondsFrom('minutes', 30)\n ];\n }\n\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.end(baseDate);\n start = Math.max(dateStart.getTime(), createRange[0]);\n end = Math.min(dateEnd.getTime(), createRange[1]);\n\n /**\n * @event TimeCreation#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: false,\n start: new TZDate(start),\n end: new TZDate(end),\n guide: this.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeCreation#timeCreationDragend\n * @param {object} dragEndEventData - event data from Drag#dragend\n */\nTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n var self = this,\n dragStart = this._dragStart;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * Function for manipulate event data before firing event\n * @param {object} eventData - event data\n */\n function reviseFunc(eventData) {\n var range = [\n dragStart.nearestGridTimeY,\n eventData.nearestGridTimeY\n ].sort(array.compare.num.asc);\n range[1] += datetime.millisecondsFrom('hour', 0.5);\n\n eventData.createRange = range;\n\n self._createSchedule(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDragend\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {number[]} createRange - milliseconds range between drag start and end to create.\n */\n this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Drag#click event handler\n * @emits TimeCreation#timeCreationClick\n * @param {object} clickEventData - event data from Drag#click.\n */\nTimeCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var condResult, getScheduleDataFunc, eventData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n condResult = this.checkExpectedCondition(clickEventData.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('timeCreationClick', eventData);\n self._createSchedule(eventData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Dblclick event handler\n * @param {MouseEvent} e - Native MouseEvent\n */\nTimeCreation.prototype._onDblClick = function(e) {\n var condResult, getScheduleDataFunc, eventData;\n\n condResult = this.checkExpectedCondition(e.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(e);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n\n this._requestOnClick = false;\n};\n\ntimeCore.mixin(TimeCreation);\nutil.CustomEvents.mixin(TimeCreation);\n\nmodule.exports = TimeCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/creation.js\n// module id = 81\n// module chunks = 0","/**\n * @fileoverview Module for Time.Creation effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar TZDate = require('../../common/timezone').Date;\nvar MIN30 = (datetime.MILLISECONDS_PER_MINUTES * 30);\n\n/**\n * Class for Time.Creation dragging effect.\n * @constructor\n * @param {TimeCreation} timeCreation - instance of TimeCreation.\n */\nfunction TimeCreationGuide(timeCreation) {\n /**\n * Guide element for creation effect.\n * @type {HTMLElement}\n */\n this.guideElement = global.document.createElement('div');\n\n /**\n * @type {HTMLDivElement}\n */\n this.guideTimeElement = domutil.appendHTMLElement(\n 'span',\n this.guideElement,\n config.classname('time-guide-creation-label')\n );\n\n domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\n /**\n * @type {TimeCreation}\n */\n this.timeCreation = timeCreation;\n\n /**\n * @type {array}\n */\n this._styleUnit = null;\n\n /**\n * @type {array}\n */\n this._styleStart = null;\n\n /**\n * @type {function}\n */\n this._styleFunc = null;\n\n timeCreation.on({\n timeCreationDragstart: this._createGuideElement,\n timeCreationDrag: this._onDrag,\n timeCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method.\n */\nTimeCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.timeCreation.off(this);\n this.timeCreation = this._styleUnit = this._styleStart =\n this._styleFunc = this.guideElement = this.guideTimeElement = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement,\n timeElement = this.guideTimeElement;\n\n domutil.remove(guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.display = 'none';\n guideElement.style.top = '';\n guideElement.style.height = '';\n timeElement.innerHTML = '';\n });\n};\n\n/**\n * Refresh guide element\n * @param {number} top - The number of guide element's style top\n * @param {number} height - The number of guide element's style height\n * @param {Date} start - start time of schedule to create\n * @param {Date} end - end time of schedule to create\n * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n */\nTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n var guideElement = this.guideElement;\n var timeElement = this.guideTimeElement;\n\n guideElement.style.top = top + 'px';\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n\n timeElement.innerHTML = datetime.format(new TZDate(start), 'HH:mm') +\n ' - ' + datetime.format(new TZDate(end), 'HH:mm');\n\n if (bottomLabel) {\n domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n } else {\n domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n }\n};\n\n/**\n * Get unit data of calculating new style of guide element by user interaction\n * @param {Time} relatedView - time view instance related with schedule\n * @returns {array} unit data.\n */\nTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n var viewOpt = relatedView.options,\n viewHeight = relatedView.getViewBound().height,\n hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n todayStart = datetime.parse(viewOpt.ymd),\n todayEnd = datetime.end(todayStart);\n\n todayStart.setHours(0, 0, 0, 0);\n todayStart.setHours(viewOpt.hourStart);\n\n // [0] height of view\n // [1] hour length of view\n // [2] start time of view\n // [3] end time of view\n // [4] height of view for one hour\n return [\n viewHeight,\n hourLength,\n Number(todayStart),\n Number(todayEnd),\n viewHeight / hourLength\n ];\n};\n\n/**\n * Applying limitation to supplied data and return it.\n * @param {number} top - top pixel of guide element\n * @param {number} height - height pixel of guide element\n * @param {number} start - relative time value of dragstart point\n * @param {number} end - relative time value of dragend point\n * @returns {array} limited style data\n */\nTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n var unitData = this._styleUnit;\n\n top = common.limit(top, [0], [unitData[0]]);\n height = common.limit(top + height, [0], [unitData[0]]) - top;\n start = common.limit(start, [unitData[2]], [unitData[3]]);\n end = common.limit(end, [unitData[2]], [unitData[3]]);\n\n return [top, height, start, end];\n};\n\n/**\n * Get function to calculate guide element UI data from supplied units\n * @param {number} viewHeight - total height of view's container element\n * @param {number} hourLength - hour length that rendered in time view\n * @param {number} todayStart - time for view's start date\n * @returns {function} UI data calculator function\n */\nTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n var todayEnd = Number(datetime.end(new TZDate(Number(todayStart))));\n\n /**\n * Get top, time value from schedule dat\n * @param {object} scheduleData - schedule data object\n * @returns {number[]} top, time\n */\n function getStyleData(scheduleData) {\n var gridY = scheduleData.nearestGridY,\n gridTimeY = scheduleData.nearestGridTimeY,\n top, time;\n\n top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n time = common.limit(gridTimeY, [todayStart], [todayEnd]);\n\n return [top, time];\n }\n\n return getStyleData;\n};\n\n/**\n * DragStart event handler\n * @param {object} dragStartEventData - dragStart schedule data.\n */\nTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var relatedView = dragStartEventData.relatedView,\n unitData, styleFunc, styleData, result;\n\n unitData = this._styleUnit = this._getUnitData(relatedView);\n styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n styleData = this._styleStart = styleFunc(dragStartEventData);\n\n result = this._limitStyleData(\n styleData[0],\n (unitData[4] / 2),\n styleData[1],\n (styleData[1] + MIN30)\n );\n\n this._refreshGuideElement.apply(this, result);\n\n relatedView.container.appendChild(this.guideElement);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEventData - drag schedule data.\n */\nTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n var styleFunc = this._styleFunc,\n unitData = this._styleUnit,\n startStyle = this._styleStart,\n refreshGuideElement = this._refreshGuideElement.bind(this),\n heightOfHalfHour,\n endStyle,\n result;\n\n if (!styleFunc || !unitData || !startStyle) {\n return;\n }\n\n heightOfHalfHour = (unitData[4] / 2);\n endStyle = styleFunc(dragEventData);\n\n if (endStyle[0] > startStyle[0]) {\n result = this._limitStyleData(\n startStyle[0],\n (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n startStyle[1],\n (endStyle[1] + MIN30)\n );\n } else {\n result = this._limitStyleData(\n endStyle[0],\n (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n endStyle[1],\n (startStyle[1] + MIN30)\n );\n result.push(true);\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n refreshGuideElement.apply(null, result);\n });\n};\n\nmodule.exports = TimeCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/creationGuide.js\n// module id = 82\n// module chunks = 0","/**\n * @fileoverview Core methods for dragging actions\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar domevent = require('../../common/domevent');\nvar Point = require('../../common/point');\n\n/**\n * @mixin Time.Core\n */\nvar timeCore = {\n /**\n * Get Y index ratio(hour) in time grids by supplied parameters.\n * @param {number} baseMil - base milliseconds number for supplied height.\n * @param {number} height - container element height.\n * @param {number} y - Y coordinate to calculate hour ratio.\n * @returns {number} hour index ratio value.\n */\n _calcGridYIndex: function(baseMil, height, y) {\n // get ratio from right expression > point.y : x = session.height : baseMil\n // and convert milliseconds value to hours.\n var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n floored = result | 0,\n nearest = common.nearest(result - floored, [0, 1]);\n\n return floored + (nearest ? 0.5 : 0);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleData: function(timeView) {\n var self = this,\n container = timeView.container,\n options = timeView.options,\n viewHeight = timeView.getViewBound().height,\n viewTime = Number(timeView.getDate()),\n hourLength = options.hourEnd - options.hourStart,\n baseMil = datetime.millisecondsFrom('hour', hourLength);\n\n /**\n * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n * @param {object} [extend] - object to extend event data before return.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(mouseEvent, extend) {\n var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n gridY = common.ratio(viewHeight, hourLength, mouseY),\n timeY = viewTime + datetime.millisecondsFrom('hour', gridY),\n nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n nearestGridTimeY = viewTime + datetime.millisecondsFrom('hour', nearestGridY + options.hourStart);\n\n return util.extend({\n target: mouseEvent.target || mouseEvent.srcElement,\n relatedView: timeView,\n originEvent: mouseEvent,\n mouseY: mouseY,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n triggerEvent: mouseEvent.type\n }, extend);\n }, this);\n },\n\n /**\n * Mixin method.\n * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n */\n mixin: function(obj) {\n var proto = obj.prototype;\n util.forEach(timeCore, function(method, methodName) {\n if (methodName === 'mixin') {\n return;\n }\n\n proto[methodName] = method;\n });\n }\n};\n\nmodule.exports = timeCore;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/core.js\n// module id = 83\n// module chunks = 0","/**\n * @fileoverview Handling move schedules from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeMoveGuide = require('./moveGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeMove(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeMoveGuide}\n */\n this._guide = new TimeMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method.\n */\nTimeMove.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {boolean|object} - return object when satiate condition.\n */\nTimeMove.prototype.checkExpectCondition = function(target) {\n if (!domutil.closest(target, config.classname('.time-schedule'))) {\n return false;\n }\n\n return this._getTimeView(target);\n};\n\n/**\n * Get Time view container from supplied element.\n * @param {HTMLElement} target - element to find time view container.\n * @returns {object|boolean} - return time view instance when finded.\n */\nTimeMove.prototype._getTimeView = function(target) {\n var container = domutil.closest(target, config.classname('.time-date')),\n matches;\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeMove#timeMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart schedule data.\n */\nTimeMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData,\n ctrl = this.baseController,\n targetModelID,\n targetModel;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n targetModel = ctrl.schedules.items[targetModelID];\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n model: targetModel\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeMove#timeMoveDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} model - model instance\n */\n this.fire('timeMoveDragstart', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveDrag\n * @param {MouseEvent} dragEventData - mousemove event object\n * @param {string} [overrideEventName] - name of emitting event to override.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n timeView = this._getTimeView(dragEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n if (!timeView || !getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n currentView: timeView,\n targetModelID: dragStart.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeMove#timeMoveDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n */\nTimeMove.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n dateDiff = 0,\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n currentView = scheduleData.currentView,\n scheduleDuration,\n dateStart,\n dateEnd,\n newStarts,\n newEnds,\n baseDate;\n\n if (!schedule || !currentView) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.end(baseDate);\n newStarts = new TZDate(schedule.getStarts().getTime() + timeDiff);\n newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n scheduleDuration = schedule.duration();\n\n if (currentView) {\n dateDiff = currentView.getDate() - relatedView.getDate();\n }\n\n if (newStarts < dateStart) {\n newStarts = new TZDate(dateStart.getTime());\n newEnds = new TZDate(newStarts.getTime() + scheduleDuration.getTime());\n } else if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd.getTime());\n newStarts = new TZDate(newEnds.getTime() - scheduleDuration.getTime());\n }\n\n newStarts = new TZDate(newStarts.getTime() + dateDiff);\n newEnds = new TZDate(newEnds.getTime() + dateDiff);\n\n /**\n * @event TimeMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * @emits TimeMove#timeMoveDragend\n * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n */\nTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n currentView = this._getTimeView(dragEndEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n currentView: currentView,\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeMove#timeMoveDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeMoveDragend', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveClick\n * @param {MouseEvent} clickEventData - click mouse event object.\n */\nTimeMove.prototype._onClick = function(clickEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n /**\n * @event TimeMove#timeMoveClick\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeMoveClick', scheduleData);\n};\n\ntimeCore.mixin(TimeMove);\nutil.CustomEvents.mixin(TimeMove);\n\nmodule.exports = TimeMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/move.js\n// module id = 84\n// module chunks = 0","/**\n * @fileoverview Module for Time.Move effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar FloatingLayer = require('../../common/floatingLayer');\nvar tmpl = require('../../view/template/week/timeMoveGuide.hbs');\nvar TZDate = require('../../common/timezone').Date;\nvar Schedule = require('../../model/schedule');\n\n/**\n * Class for Time.Move effect.\n * @constructor\n * @param {TimeMove} timeMove - The instance of TimeMove.\n */\nfunction TimeMoveGuide(timeMove) {\n /**\n * @type {FloatingLayer}\n */\n this._guideLayer = null;\n\n /**\n * @Type {Schedule}\n */\n this._model = null;\n\n /**\n * @type {object}\n */\n this._lastDrag = null;\n\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeMove}\n */\n this.timeMove = timeMove;\n\n /**\n * @type {HTMLElement}\n */\n this._container = null;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n timeMove.on({\n 'timeMoveDragstart': this._onDragStart,\n 'timeMoveDrag': this._onDrag,\n 'timeMoveDragend': this._clearGuideElement,\n 'timeMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeMove.off(this);\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n this._getTopFunc = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeMoveGuide.prototype._clearGuideElement = function() {\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n\n this._showOriginScheduleBlocks();\n\n this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.addClass(this.guideElement, className);\n }\n};\n\n/**\n * Show element blocks\n */\nTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.removeClass(this.guideElement, className);\n }\n};\n\nTimeMoveGuide.prototype._getHighlightColorModel = function(model) {\n return {\n bgColor: model.color\n };\n};\n\n/**\n * Refresh guide element\n * @param {string} top - guide element's style top.\n * @param {Schedule} model - updated model\n */\nTimeMoveGuide.prototype._refreshGuideElement = function(top, model) {\n var self = this;\n\n reqAnimFrame.requestAnimFrame(function() {\n if (!self._guideLayer) {\n return;\n }\n self._guideLayer.setPosition(0, top);\n self._guideLayer.setContent(tmpl({model: model}));\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var guideElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n );\n\n if (!guideElement) {\n return;\n }\n\n this._startTopPixel = parseFloat(guideElement.style.top);\n this._startGridY = dragStartEventData.nearestGridY;\n this.guideElement = guideElement;\n this._container = dragStartEventData.relatedView.container;\n\n this._model = util.extend(\n Schedule.create(dragStartEventData.model),\n dragStartEventData.model,\n this._getHighlightColorModel(dragStartEventData.model)\n );\n this._lastDrag = dragStartEventData;\n\n this._resetGuideLayer();\n this._hideOriginScheduleBlocks();\n};\n\n/**\n * TimeMove#timeMoveDrag event handler\n * @param {object} dragEventData - drag event data\n */\nTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.currentView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n guideHeight = parseFloat(this.guideElement.style.height),\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n timeDiff = dragEventData.nearestGridTimeY - this._lastDrag.nearestGridTimeY,\n bottomLimit,\n top;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n if (this._container !== timeView.container) {\n this._container = timeView.container;\n this._resetGuideLayer();\n }\n\n top = this._startTopPixel + gridYOffsetPixel;\n bottomLimit = viewHeight - guideHeight;\n\n top = Math.max(top, 0);\n top = Math.min(top, bottomLimit);\n\n // update time\n this._model.start = new TZDate(this._model.getStarts().getTime() + timeDiff);\n this._model.end = new TZDate(this._model.getEnds().getTime() + timeDiff);\n this._lastDrag = dragEventData;\n\n this._refreshGuideElement(top, this._model);\n};\n\nTimeMoveGuide.prototype._resetGuideLayer = function() {\n if (this._guideLayer) {\n this._guideLayer.destroy();\n this._guideLayer = null;\n }\n this._guideLayer = new FloatingLayer(null, this._container);\n this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n this._guideLayer.setPosition(0, this.guideElement.style.top);\n this._guideLayer.setContent(tmpl({model: this._model}));\n this._guideLayer.show();\n};\n\nmodule.exports = TimeMoveGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/moveGuide.js\n// module id = 85\n// module chunks = 0","/**\n * @fileoverview Floating layer module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for floating layer module\n * @param {HTMLElement} container - parent continer for floating layer\n */\nfunction FloatingLayer(options, container) {\n var sibling = container[FloatingLayer.PROP_KEY],\n layerContainer;\n\n if (!sibling) {\n sibling = container[FloatingLayer.PROP_KEY] = [];\n }\n\n sibling.push(this);\n\n /**\n * @type {Collection}\n */\n this.sibling = sibling;\n\n /**\n * @type {number}\n */\n this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\n layerContainer = document.createElement('div');\n layerContainer.style.display = 'none';\n layerContainer.style.position = 'absolute';\n domutil.addClass(layerContainer, config.classname('floating-layer'));\n container.appendChild(layerContainer);\n\n View.call(this, layerContainer);\n\n /**\n * @type {HTMLElement}\n */\n this.parent = container;\n}\n\nutil.inherit(FloatingLayer, View);\n\n/**\n * @const\n */\nFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\n/**\n * @const\n */\nFloatingLayer.INIT_ZINDEX = 999;\n\n/**\n * Destroy floating layer instance. if there no instnace in parent container\n *\n * remove instance cache property in container element\n */\nFloatingLayer.prototype.destroy = function() {\n var parent = this.parent,\n sibling = this.sibling,\n i = 0, cnt = sibling.length;\n\n for (; i < cnt; i += 1) {\n if (sibling[i] === this) {\n sibling.splice(i, 1);\n break;\n }\n }\n\n if (!sibling.length) {\n try {\n delete parent[FloatingLayer.PROP_KEY];\n } catch (e) {\n parent[FloatingLayer.PROP_KEY] = null;\n }\n\n parent.style.position = '';\n }\n\n domutil.remove(this.container);\n\n this.sibling = null;\n\n View.prototype.destroy.call(this);\n};\n\n/**\n * @returns {boolean} whether layer is visible?\n */\nFloatingLayer.prototype.isVisible = function() {\n return this.container.style.display !== 'none';\n};\n\n/**\n * Set layer position\n * @param {number} x - x coordinate of layer\n * @param {number} y - y coordinate of layer\n */\nFloatingLayer.prototype.setPosition = function(x, y) {\n domutil.setPosition(this.container, x, y);\n};\n\n/**\n * Set layer left, top, right, bottom position\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\nFloatingLayer.prototype.setLTRB = function(ltrb) {\n domutil.setLTRB(this.container, ltrb);\n};\n\n/**\n * Set layer size\n * @param {number|string} w - layer width\n * @param {number|string} h - layer height\n */\nFloatingLayer.prototype.setSize = function(w, h) {\n var container = this.container;\n\n w = util.isNumber(w) ? w + 'px' : w;\n h = util.isNumber(h) ? h + 'px' : h;\n\n container.style.width = w;\n container.style.height = h;\n};\n\n/**\n * Set layer content\n * @param {string} html - html string\n */\nFloatingLayer.prototype.setContent = function(html) {\n this.container.innerHTML = html;\n};\n\n/**\n * Get largest z-index from sibling layers\n * @returns {number} largest z-index value\n */\nFloatingLayer.prototype.getLargestZIndex = function() {\n var zIndexes = util.map(this.sibling, function(layer) {\n return layer.zIndex;\n });\n\n return Math.max.apply(null, zIndexes);\n};\n\n/**\n * Set focus to layer\n */\nFloatingLayer.prototype.focus = function() {\n var zIndexForShow = this.getLargestZIndex() + 1;\n this.container.style.zIndex = this.zIndex = zIndexForShow;\n};\n\n/**\n * Show layer\n */\nFloatingLayer.prototype.show = function() {\n this.focus();\n this.container.style.display = 'block';\n};\n\n/**\n * Hide layer\n */\nFloatingLayer.prototype.hide = function() {\n this.container.style.display = 'none';\n};\n\nmodule.exports = FloatingLayer;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/floatingLayer.js\n// module id = 86\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
     
    \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/timeMoveGuide.hbs\n// module id = 87\n// module chunks = 0","/**\n * @fileoverview Handling resize schedules from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeResizeGuide = require('./resizeGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeResize(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeResizeGuide}\n */\n this._guide = new TimeResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method\n */\nTimeResize.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * @param {HTMLElement} target - element to check condition.\n * @returns {object|boolean} - return time view instance or false\n */\nTimeResize.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n return false;\n }\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeResize#timeResizeDragstart\n * @param {object} dragStartEventData - event data of Drag#dragstart\n */\nTimeResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: domutil.getData(blockElement, 'id')\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeResizeDragstart', scheduleData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeResize#timeResizeDrag\n * @param {object} dragEventData - event data of Drag#drag custom event.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n startScheduleData = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !startScheduleData) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n targetModelID: startScheduleData.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeResize#timeResizeDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n */\nTimeResize.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n dateEnd,\n newEnds,\n baseDate;\n\n if (!schedule) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\n baseDate = new TZDate(relatedView.getDate());\n dateEnd = datetime.end(baseDate);\n newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n\n if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd.getTime());\n }\n\n if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n newEnds = new TZDate(schedule.getStarts().getTime() + datetime.millisecondsFrom('minutes', 30));\n }\n\n /**\n * @event TimeResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeResize#timeResizeDragend\n * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n */\nTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeResize#timeResizeDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeResizeDragend', scheduleData);\n\n this._getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * @emits TimeResize#timeResizeClick\n */\nTimeResize.prototype._onClick = function() {\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeClick\n */\n this.fire('timeResizeClick');\n};\n\ntimeCore.mixin(TimeResize);\nutil.CustomEvents.mixin(TimeResize);\n\nmodule.exports = TimeResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/resize.js\n// module id = 88\n// module chunks = 0","/**\n * @fileoverview Module for Time.Resize effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\n\n/**\n * Class for Time.Resize effect.\n * @constructor\n * @param {TimeResize} timeResize - the instance of TimeResize handler.\n */\nfunction TimeResizeGuide(timeResize) {\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeResize}\n */\n this.timeResize = timeResize;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {HTMLElement}\n */\n this._originScheduleElement = null;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n /**\n * @type {number}\n */\n this._startHeightPixel = 0;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n timeResize.on({\n 'timeResizeDragstart': this._onDragStart,\n 'timeResizeDrag': this._onDrag,\n 'timeResizeDragend': this._clearGuideElement,\n 'timeResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeResize.off(this);\n this.guideElement = this.timeResize = this._getTopFunc =\n this._originScheduleElement = this._startHeightPixel =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeResizeGuide.prototype._clearGuideElement = function() {\n var guideElement = this.guideElement,\n originElement = this._originScheduleElement;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing'));\n }\n\n if (originElement) {\n originElement.style.display = 'block';\n }\n\n domutil.remove(guideElement);\n\n this.guideElement = this._getTopFunc = this._originScheduleElement =\n this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Refresh guide element\n * @param {string} height - guide element's style height.\n */\nTimeResizeGuide.prototype._refreshGuideElement = function(height) {\n var guideElement = this.guideElement;\n\n if (!guideElement) {\n return;\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var originElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n ),\n guideElement;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing'));\n }\n\n if (!originElement) {\n return;\n }\n\n this._startGridY = dragStartEventData.nearestGridY;\n this._startHeightPixel = parseFloat(originElement.style.height);\n this._startTopPixel = parseFloat(originElement.style.top);\n\n this._originScheduleElement = originElement;\n guideElement = this.guideElement = originElement.cloneNode(true);\n domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\n originElement.style.display = 'none';\n dragStartEventData.relatedView.container.appendChild(guideElement);\n};\n\n/**\n * @param {object} dragEventData - event data from Drag#drag.\n */\nTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.relatedView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n guideElement = this.guideElement,\n guideTop = parseFloat(guideElement.style.top),\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n // hourLength : viewHeight = gridYOffset : X;\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n minHeight,\n maxHeight,\n height;\n\n height = (this._startHeightPixel + gridYOffsetPixel);\n // at least large than 30min from schedule start time.\n minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n minHeight -= this._startTopPixel;\n // smaller than 24h\n maxHeight = viewHeight - guideTop;\n\n height = Math.max(height, minHeight);\n height = Math.min(height, maxHeight);\n\n this._refreshGuideElement(height);\n};\n\nmodule.exports = TimeResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/resizeGuide.js\n// module id = 89\n// module chunks = 0","/**\n * @fileoverview 마일스톤 항목 클릭 이벤트 핸들러 모듈\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * 마일스톤 클릭 이벤트 핸들러 모듈\n * @constructor\n * @implelements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} dragHandler - dragHandler instance\n * @param {Milestone} milestoneView - milstone view instance\n * @param {Base} baseController - baseController instance\n */\nfunction MilestoneClick(dragHandler, milestoneView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Milestone}\n */\n this.milestoneView = milestoneView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy\n */\nMilestoneClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dragHandler = this.milestoneView = this.baseController = null;\n};\n\n/**\n * @param {HTMLElement} target - check reponsibility to this handler module supplied element\n * @returns {boolean|string} return false when handler has no responsibility for supplied element.\n * otherwise, return schedule model id that related with target element.\n */\nMilestoneClick.prototype.checkExpectedCondition = function(target) {\n target = domutil.closest(target, config.classname('.milestone-item'));\n\n if (!target) {\n return false;\n }\n\n return domutil.getData(target, 'id');\n};\n\n/**\n * @emits MilestoneClick#clickSchedule\n * @param {object} clickEvent - click event object\n */\nMilestoneClick.prototype._onClick = function(clickEvent) {\n var self = this,\n modelID = this.checkExpectedCondition(clickEvent.target);\n\n if (!modelID) {\n return;\n }\n\n this.baseController.schedules.doWhenHas(modelID, function(schedule) {\n /**\n * @events MilestoneClick#clickEvent\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(MilestoneClick);\n\nmodule.exports = MilestoneClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/milestone/click.js\n// module id = 90\n// module chunks = 0","/**\n * @fileoverview Month view factory module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n array = require('../common/array'),\n datetime = require('../common/datetime'),\n domutil = require('../common/domutil'),\n Month = require('../view/month/month'),\n MonthClick = require('../handler/month/click'),\n MonthCreation = require('../handler/month/creation'),\n MonthResize = require('../handler/month/resize'),\n MonthMove = require('../handler/month/move'),\n More = require('../view/month/more');\n\n/**\n * Get the view model for more layer\n * @param {TZDate} date - date has more schedules\n * @param {HTMLElement} target - target element\n * @param {Collection} schedules - schedule collection\n * @returns {object} view model\n */\nfunction getViewModelForMoreLayer(date, target, schedules) {\n schedules.each(function(schedule) {\n var model = schedule.model;\n schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n });\n\n return {\n target: target,\n date: datetime.format(date, 'YYYY.MM.DD'),\n schedules: schedules.sort(array.compare.schedule.asc)\n };\n}\n\n/**\n * @param {Base} baseController - controller instance\n * @param {HTMLElement} layoutContainer - container element for month view\n * @param {Drag} dragHandler - drag handler instance\n * @param {object} options - options\n * @returns {object} view instance and refresh method\n */\nfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n var monthViewContainer, monthView, moreView;\n var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n\n monthViewContainer = domutil.appendHTMLElement(\n 'div', layoutContainer, config.classname('month'));\n\n monthView = new Month(options.month, monthViewContainer, baseController.Month);\n moreView = new More(options.month, layoutContainer);\n\n // handlers\n clickHandler = new MonthClick(dragHandler, monthView, baseController);\n creationHandler = new MonthCreation(dragHandler, monthView, baseController);\n resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n moveHandler = new MonthMove(dragHandler, monthView, baseController);\n\n clearSchedulesHandler = function() {\n if (moreView) {\n moreView.hide();\n }\n };\n\n onUpdateSchedule = function() {\n if (moreView) {\n moreView.refresh();\n }\n };\n\n // binding +n click schedule\n clickHandler.on('clickMore', function(clickMoreSchedule) {\n var date = clickMoreSchedule.date,\n target = clickMoreSchedule.target,\n schedules = util.pick(baseController.findByDateRange(\n datetime.start(date),\n datetime.end(date)\n ), clickMoreSchedule.ymd);\n\n schedules.items = util.filter(schedules.items, function(item) {\n return options.month.scheduleFilter(item.model);\n });\n\n if (schedules && schedules.length) {\n moreView.render(getViewModelForMoreLayer(date, target, schedules));\n }\n });\n\n // binding clear schedules\n baseController.on('clearSchedules', clearSchedulesHandler);\n\n // bind update schedule event\n baseController.on('updateSchedule', onUpdateSchedule);\n\n moveHandler.on('monthMoveStart_from_morelayer', function() {\n moreView.hide();\n });\n\n monthView.handler = {\n click: {\n 'default': clickHandler\n },\n creation: {\n 'default': creationHandler\n },\n resize: {\n 'default': resizeHandler\n },\n move: {\n 'default': moveHandler\n }\n };\n\n monthView._beforeDestroy = function() {\n moreView.destroy();\n baseController.off('clearSchedules', clearSchedulesHandler);\n baseController.off('updateSchedule', onUpdateSchedule);\n\n util.forEach(monthView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n };\n\n // add controller\n monthView.controller = baseController.Month;\n\n return {\n view: monthView,\n refresh: function() {\n monthView.vLayout.refresh();\n }\n };\n}\n\nmodule.exports = createMonthView;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/monthView.js\n// module id = 91\n// module chunks = 0","/**\n * @fileoverview Month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('./month.hbs'),\n View = require('../view'),\n VLayout = require('../..//common/vlayout'),\n WeekdayInMonth = require('./weekdayInMonth');\nvar mmin = Math.min;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {function} [options.scheduleFilter] - schedule filter\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {string} [options.renderMonth='2015-12'] - render month\n * @param {string[]} [options.daynames] - daynames to use upside of month view\n * @param {HTMLElement} container - container element\n * @param {Base.Month} controller - controller instance\n */\nfunction Month(options, container, controller) {\n View.call(this, container);\n\n /**\n * @type {Base.Month}\n */\n this.controller = controller;\n\n /**\n * @type {VLayout}\n */\n this.vLayout = new VLayout({\n panels: [\n {height: 42},\n {autoHeight: true}\n ]\n }, container);\n\n /**\n * @type {string}\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n startDayOfWeek: 0,\n renderMonth: '2018-01',\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n narrowWeekend: false,\n visibleWeeksCount: null,\n grid: {\n header: {\n height: 34\n },\n footer: {\n height: 34\n }\n }\n }, options);\n\n this.options.grid.header = util.extend({\n height: 34\n }, util.pick(options, 'grid', 'header'));\n this.options.grid.footer = util.extend({\n height: 34\n }, util.pick(options, 'grid', 'footer'));\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = datetime.getGridLeftAndWidth(\n this.options.daynames.length,\n this.options.narrowWeekend,\n this.options.startDayOfWeek);\n}\n\nutil.inherit(Month, View);\n\n/**\n * Name of view. for managing subview at layout view\n * @type {string}\n */\nMonth.prototype.viewName = 'month';\n\n/**\n * Get calendar array by supplied date\n * @param {string} renderMonthStr - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n * @returns {array.} calendar array\n */\nMonth.prototype._getMonthCalendar = function(renderMonthStr) {\n var date = datetime.parse(renderMonthStr) || datetime.parse(renderMonthStr + '-01');\n var startDayOfWeek = this.options.startDayOfWeek || 0;\n var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n var workweek = this.options.workweek || false;\n var datetimeOptions, calendar;\n\n if (this.options.visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: true,\n workweek: workweek\n };\n }\n\n calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\n return calendar;\n};\n\n/**\n * Create children view (week) and add children\n * @param {HTMLElement} container - container element to render weeks\n * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n */\nMonth.prototype._renderChildren = function(container, calendar) {\n var self = this;\n var weekCount = calendar.length;\n var heightPercent = 100 / weekCount;\n var opt = this.options;\n var renderMonth = opt.renderMonth;\n var narrowWeekend = opt.narrowWeekend;\n var startDayOfWeek = opt.startDayOfWeek;\n var visibleWeeksCount = opt.visibleWeeksCount;\n var visibleScheduleCount = opt.visibleScheduleCount;\n var gridOption = opt.grid;\n\n container.innerHTML = '';\n this.children.clear();\n\n util.forEach(calendar, function(weekArr) {\n var start = new TZDate(Number(weekArr[0])),\n end = new TZDate(Number(weekArr[weekArr.length - 1])),\n weekdayViewContainer,\n weekdayView;\n\n weekdayViewContainer = domutil.appendHTMLElement(\n 'div', container, config.classname('month-week-item'));\n\n weekdayView = new WeekdayInMonth({\n renderMonth: renderMonth,\n heightPercent: heightPercent,\n renderStartDate: datetime.format(start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(end, 'YYYY-MM-DD'),\n narrowWeekend: narrowWeekend,\n startDayOfWeek: startDayOfWeek,\n visibleWeeksCount: visibleWeeksCount,\n visibleScheduleCount: visibleScheduleCount,\n grid: gridOption\n }, weekdayViewContainer);\n\n self.addChild(weekdayView);\n });\n};\n\n/**\n * Render month view\n * @override\n */\nMonth.prototype.render = function() {\n var opt = this.options,\n vLayout = this.vLayout,\n controller = this.controller,\n daynames = opt.daynames,\n workweek = opt.workweek,\n calendar = this._getMonthCalendar(opt.renderMonth),\n scheduleFilter = opt.scheduleFilter,\n grids,\n daynameViewModel,\n baseViewModel;\n\n grids = this.grids = datetime.getGridLeftAndWidth(\n opt.daynames.length,\n opt.narrowWeekend,\n opt.startDayOfWeek\n );\n\n daynameViewModel = util.map(\n util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n function(day, index) {\n return {\n day: day,\n label: daynames[day],\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0\n };\n }\n );\n\n if (workweek) {\n grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\n daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n return !datetime.isWeekend(daynameModel.day);\n });\n\n util.forEach(daynameViewModel, function(daynameModel, index) {\n daynameModel.width = grids[index] ? grids[index].width : 0;\n daynameModel.left = grids[index] ? grids[index].left : 0;\n });\n }\n\n baseViewModel = {\n daynames: daynameViewModel\n };\n\n vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\n this._renderChildren(vLayout.panels[1].container, calendar);\n\n this.children.each(function(childView) {\n var start = datetime.parse(childView.options.renderStartDate);\n var end = datetime.parse(childView.options.renderEndDate);\n var eventsInDateRange = controller.findByDateRange(\n datetime.start(start),\n datetime.end(end),\n scheduleFilter\n );\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY);\n var viewModel = {\n eventsInDateRange: eventsInDateRange,\n range: dateRange.slice(0, grids.length),\n grids: grids\n };\n\n childView.render(viewModel);\n });\n};\n\nmodule.exports = Month;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/month.js\n// module id = 92\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"monthDayname-tmpl\"] || (depth0 && depth0[\"monthDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.daynames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/month.hbs\n// module id = 93\n// module chunks = 0","/**\n * @fileoverview Monthday in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common.js'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n Weekday = require('../weekday'),\n baseTmpl = require('./weekdayInMonth.hbs'),\n scheduleTmpl = require('./weekdayInMonthSchedule.hbs');\nvar mfloor = Math.floor,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction WeekdayInMonth(options, container) {\n Weekday.call(this, options, container);\n container.style.height = options.heightPercent + '%';\n}\n\nutil.inherit(WeekdayInMonth, Weekday);\n\n/**\n * Get schedule container element's bound properly by override\n *\n * View#getViewBound.\n * @override\n */\nWeekdayInMonth.prototype.getViewBound = function() {\n var bound = View.prototype.getViewBound.call(this);\n\n return bound;\n};\n\n/**\n * Get limit index of schedule block in current view\n * @returns {number} limit index\n */\nWeekdayInMonth.prototype._getRenderLimitIndex = function() {\n var opt = this.options;\n var containerHeight = this.getViewBound().height;\n var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n var visibleScheduleCount = opt.visibleScheduleCount || 0;\n var count;\n\n containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\n count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\n if (!visibleScheduleCount) {\n visibleScheduleCount = count;\n }\n\n return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n renderLimitIdx = this._getRenderLimitIndex(),\n exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range);\n var baseViewModel;\n\n viewModel = util.extend({\n exceedDate: exceedDate\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n matrices: viewModel.eventsInDateRange,\n gridHeaderHeight: gridHeaderHeight,\n gridFooterHeight: gridFooterHeight,\n renderLimitIdx: renderLimitIdx + 1\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainer,\n contentStr = '';\n\n if (!this.options.visibleWeeksCount) {\n setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth);\n }\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n scheduleContainer = domutil.find(\n config.classname('.weekday-schedules'),\n container\n );\n\n if (!scheduleContainer) {\n return;\n }\n\n contentStr += scheduleTmpl(baseViewModel);\n\n scheduleContainer.innerHTML = contentStr;\n\n common.setAutoEllipsis(\n config.classname('.weekday-schedule-title'),\n container\n );\n};\n\nWeekdayInMonth.prototype._beforeDestroy = function() {\n};\n\n/**\n * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n * @param {Array} dates - 날짜정보 배열\n * @param {string} renderMonthStr - 현재 렌더링중인 월 (YYYYMM)\n */\nfunction setIsOtherMonthFlag(dates, renderMonthStr) {\n var renderMonth = Number(renderMonthStr.substring(5));\n\n util.forEach(dates, function(dateObj) {\n dateObj.isOtherMonth = dateObj.month !== renderMonth;\n });\n}\n\nmodule.exports = WeekdayInMonth;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonth.js\n// module id = 94\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridHeader-tmpl\"] || (depth0 && depth0[\"monthGridHeader-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridFooter-tmpl\"] || (depth0 && depth0[\"monthGridFooter-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"near-month-day\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"extra-date\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridHeaderExceed-tmpl\"] || (depth0 && depth0[\"monthGridHeaderExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridFooterExceed-tmpl\"] || (depth0 && depth0[\"monthGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonth.hbs\n// module id = 95\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.top : depth0),\"<\",((stack1 = (data && data.root)) && stack1.renderLimitIdx),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\";\n\n return \"
    \\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(19, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-left\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-right\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers.unless.call(alias3,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-schedule-focused \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonthSchedule.hbs\n// module id = 96\n// module chunks = 0","/**\n * @fileoverview Click handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Month} [monthView] - Month view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction MonthClick(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.monthView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * @fires MonthClick#clickMore\n * @param {object} clickEvent - click event object\n */\nMonthClick.prototype._onClick = function(clickEvent) {\n var self = this,\n moreElement,\n scheduleCollection = this.baseController.schedules,\n blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-month')\n );\n\n if (moreElement) {\n self.fire('clickMore', {\n date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n target: moreElement,\n ymd: domutil.getData(moreElement, 'ymd')\n });\n }\n\n if (blockElement) {\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(MonthClick);\n\nmodule.exports = MonthClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/click.js\n// module id = 97\n// module chunks = 0","/**\n * @fileoverview Creation handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar array = require('../../common/array');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar getMousePosDate = require('./core');\nvar Guide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthCreation(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * Cache for dragging session\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthCreationGuide}\n */\n this.guide = new Guide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destructor\n */\nMonthCreation.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.guide.destroy();\n\n if (this.monthView && this.monthView.container) {\n domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.monthView = this.baseController =\n this.getScheduleData = this._cache = this.guide = null;\n};\n\n/**\n * Fire before create schedule\n * @fires {MonthCreation#beforeCreateSchedule}\n * @param {object} eventData - cache data from single dragging session\n */\nMonthCreation.prototype._createSchedule = function(eventData) {\n /**\n * @event {MonthCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: eventData.isAllDay,\n start: eventData.start,\n end: eventData.end,\n guide: this.guide.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {object} dragStartEvent - dragStart event data\n */\nMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n var eventData;\n\n if (!isElementWeekdayGrid(dragStartEvent.target)) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosDate(this.monthView);\n\n eventData = this.getScheduleData(dragStartEvent.originEvent);\n\n this._cache = {\n start: new TZDate(Number(eventData.date))\n };\n\n /**\n * @event {MonthCreation#monthCreationDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragstart', eventData);\n};\n\n/**\n * Drag event handler\n * @fires {MonthCreation#monthCreationDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthCreation.prototype._onDrag = function(dragEvent) {\n var eventData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEvent.originEvent);\n\n if (!eventData) {\n return;\n }\n\n /**\n * @event {MonthCreation#monthCreationDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDrag', eventData);\n};\n\n/**\n * DragEnd event handler\n * @fires {MonthCreation#monthCreationDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var eventData;\n var times;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (eventData) {\n cache.end = new TZDate(Number(eventData.date));\n cache.isAllDay = true;\n\n times = [\n Number(cache.start),\n Number(cache.end)\n ].sort(array.compare.num.asc);\n\n cache.start = new TZDate(times[0]);\n cache.end = datetime.end(new TZDate(times[1]));\n\n this._createSchedule(cache);\n }\n\n /**\n * @event {MonthCreation#monthCreationDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragend', eventData);\n\n this.getScheduleData = this._cache = null;\n};\n\n/**\n * Dblclick event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onDblClick = function(e) {\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e);\n\n this.fire('monthCreationClick', eventData);\n\n range = this._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\n this._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n\n this._requestOnClick = false;\n};\n\n/**\n * Click event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onClick = function(e) {\n var self = this;\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('monthCreationClick', eventData);\n\n range = self._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\n self._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Adjust time to our o'clock\n * @param {TZDate} start - start time\n * @param {TZDate} end - end time\n * @returns {Object} start and end\n */\nMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n var now = new TZDate();\n var hours = now.getHours();\n var minutes = now.getMinutes();\n\n // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n if (minutes <= 30) {\n minutes = 0;\n } else {\n minutes = 30;\n }\n start.setHours(hours, minutes, 0, 0);\n end.setHours(hours + 1, minutes, 0, 0);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * Returns whether the given element is Weekday-Schedule.\n * @param {HTMLElement} el - target element\n * @returns {boolean}\n */\nfunction isElementWeekdayGrid(el) {\n return domutil.closest(el, config.classname('.weekday-grid'))\n && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n}\n\nutil.CustomEvents.mixin(MonthCreation);\n\nmodule.exports = MonthCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/creation.js\n// module id = 98\n// module chunks = 0","/**\n * @fileoverview Module for calculate date by month view and mouse event object\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent');\nvar mfloor = Math.floor;\n\n/**\n * Get high order function that can calc date in mouse point\n * @param {Month} monthView - month view\n * @returns {function} function return event data by mouse event object\n */\nfunction getMousePosDate(monthView) {\n var weekColl = monthView.children,\n weeks = weekColl.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n }),\n weekCount = weekColl.length,\n days = weekColl.single().getRenderDateRange(),\n dayCount = days.length,\n relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n size = domutil.getSize(relativeContainer),\n grids = monthView.grids;\n\n /**\n * Get the left index\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\n function getX(left) {\n var i = 0;\n var length = grids.length;\n var grid;\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n }\n\n /**\n * Get date related with mouse event object\n * @param {object} mouseEvent - click event data\n * @returns {object} data related with mouse event\n */\n function getDate(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n x = getX(common.ratio(size[0], 100, pos[0])),\n y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n weekdayView, date;\n\n weekdayView = util.pick(weeks, y);\n\n if (!weekdayView) {\n return null;\n }\n\n date = util.pick(weekdayView.getRenderDateRange(), x);\n\n if (!date) {\n return null;\n }\n\n return {\n x: x,\n y: y,\n sizeX: dayCount,\n sizeY: weekCount,\n date: date,\n weekdayView: weekdayView,\n triggerEvent: mouseEvent.type\n };\n }\n\n return getDate;\n}\n\nmodule.exports = getMousePosDate;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/core.js\n// module id = 99\n// module chunks = 0","/**\n * @fileoverview Creation guide module for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthCreation} monthCreation - instance of MonthCreation\n */\nfunction MonthCreationGuide(monthCreation) {\n /**\n * @type {MonthCreation}\n */\n this.monthCreation = monthCreation;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthCreation.on({\n monthCreationDragstart: this._createGuideElement,\n monthCreationDrag: this._onDrag,\n monthCreationDragend: this._onDragEnd,\n monthCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthCreationGuide.prototype.destroy = function() {\n this.monthCreation.off(this);\n\n if (this.guide) {\n this.guide.destroy();\n }\n\n this.guide = this.monthCreation = null;\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n var options = {\n isCreationMode: true,\n height: '100%',\n top: 0\n };\n\n this.guide = new MonthGuide(options, this.monthCreation.monthView);\n this.guide.start(dragStartEvent);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthCreationGuide.prototype._onDragEnd = function() {\n // Do nothing. 사용자가 직접 destroy 호출\n this.guide = null;\n};\n\nmodule.exports = MonthCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/creationGuide.js\n// module id = 100\n// module chunks = 0","/**\n * @fileoverview Guide element controller for creation, resize in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n dw = require('../../common/dw'),\n tmpl = require('./guide.hbs');\nvar mmax = Math.max,\n mmin = Math.min,\n mabs = Math.abs,\n mfloor = Math.floor;\n\n/**\n * @constructor\n * @param {object} [options] - options\n * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n * guide element?\n * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n * @param {Month} monthView - Month view instance\n */\nfunction MonthGuide(options, monthView) {\n var self = this;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n top: 0,\n height: '20px',\n bgColor: '#f7ca88',\n label: '새 일정',\n isResizeMode: false,\n isCreationMode: false\n }, options);\n\n /**\n * @type {Month}\n */\n this.view = monthView;\n\n /**\n * @type {WeekdayInMonth[]}\n */\n this.weeks = monthView.children.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n });\n\n /**\n * @type {number}\n */\n this.days = monthView.children.single().getRenderDateRange().length;\n\n /**\n * @type {function}\n */\n this.ratio = util.bind(function(value) {\n return common.ratio(self.days, 100, value);\n });\n\n /**\n * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n * start lower than this coordinate.\n * @type {number[]}\n */\n this.startCoord = [0, 0];\n\n /**\n * @type {Object.}\n */\n this.guideElements = {};\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = monthView.grids;\n}\n\n/**\n * Destructor\n */\nMonthGuide.prototype.destroy = function() {\n this.clear();\n\n this.options = this.view = this.weeks = this.days =\n this.ratio = this.startCoord = this.guideElements = null;\n};\n\nMonthGuide.prototype.clearGuideElement = function() {\n this.destroy();\n};\n\n/**\n * Get ratio value in week.\n * @param {number} value - value for calc ratio in week\n * @returns {number} percent value\n */\nMonthGuide.prototype._getRatioValueInWeek = function(value) {\n var grid = this.grids[value] || {left: 100};\n\n return grid.left;\n};\n\n/**\n * Create guide element\n * @returns {HTMLElement} guide element\n */\nMonthGuide.prototype._createGuideElement = function() {\n var guide = document.createElement('div');\n\n guide.innerHTML = tmpl(this.options);\n\n return guide.firstChild;\n};\n\n/**\n * Get guide element. if not exist then create one\n * @param {number} y - y coordinate\n * @returns {?HTMLElement} guide element\n */\nMonthGuide.prototype._getGuideElement = function(y) {\n var guideElements = this.guideElements,\n guide = guideElements[y],\n weekdayView = this.weeks[y],\n container;\n\n if (!weekdayView) {\n return null;\n }\n\n if (!guide) {\n guide = this._createGuideElement();\n container = weekdayView.container;\n container.appendChild(guide);\n guideElements[y] = guide;\n }\n\n return guide;\n};\n\n/**\n * Get coordinate by supplied date in month\n * @param {Date} date - date to find coordinate\n * @returns {number[]} coordinate (x, y)\n */\nMonthGuide.prototype._getCoordByDate = function(date) {\n var weeks = this.weeks,\n days = this.days,\n getIdxFromDiff = function(d1, d2) {\n return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n },\n monthStart = datetime.parse(weeks[0].options.renderStartDate),\n isBefore = date < monthStart,\n dateDW = dw(date),\n startDW = dw(monthStart),\n endDW = startDW.clone().addDate(isBefore ? -days : days),\n x = getIdxFromDiff(dateDW.d, startDW.d),\n y = 0;\n\n while (!dateDW.isBetween(startDW, endDW)) {\n startDW.addDate(isBefore ? -days : days);\n endDW = startDW.clone().addDate(days);\n x = getIdxFromDiff(dateDW.d, startDW.d);\n y += (isBefore ? -1 : 1);\n }\n\n return [x, y];\n};\n\n/**\n * Get limited coordinate by supplied coodinates\n * @param {number[]} coord - coordinate need to limit\n * @param {number[]} [min] - minimum limitaion of coordinate\n * @param {number[]} [max] - maximum limitation of coordinate\n * @returns {number[]} limited coordiate\n */\nMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n var toIndex = 1,\n x = coord[0],\n y = coord[1],\n result;\n\n min = min || [0, 0];\n max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\n if (y < min[1]) {\n result = min.slice(0);\n } else if (y > max[1]) {\n result = max.slice(0);\n } else {\n x = mmax(min[0], x);\n x = mmin(max[0], x);\n result = [x, y];\n }\n\n return result;\n};\n\n/**\n * Prepare guide element modification\n * @param {object} dragStartEvent - dragStart schedule data from *guide\n */\nMonthGuide.prototype.start = function(dragStartEvent) {\n var opt = this.options,\n target = dragStartEvent.target,\n model = dragStartEvent.model,\n x = dragStartEvent.x,\n y = dragStartEvent.y,\n temp;\n\n if (opt.isResizeMode) {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n\n util.extend(this.options, {\n top: parseInt(target.style.top, 10) + 'px',\n height: parseInt(target.style.height, 10) + 'px',\n bgColor: model.bgColor,\n borderColor: model.borderColor,\n label: model.title\n });\n }\n\n this.startCoord = [x, y];\n this.update(x, y);\n};\n\n/**\n * Data for update several guide elements\n * @typedef UpdateIndication\n * @type {object}\n * @property {HTMLElement} guide - guide element\n * @property {number} left - left style value\n * @property {number} width - width style value\n * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n */\n\n/**\n * Modify HTML element that uses for guide element\n * @param {UpdateIndication[]} inds - indication of update severel guide element\n */\nMonthGuide.prototype._updateGuides = function(inds) {\n util.forEach(inds, function(ind) {\n var guide = ind.guide,\n exceedLClass = config.classname('month-exceed-left'),\n exceedRClass = config.classname('month-exceed-right');\n\n guide.style.display = 'block';\n guide.style.left = ind.left + '%';\n guide.style.width = ind.width + '%';\n\n if (ind.exceedL) {\n domutil.addClass(guide, exceedLClass);\n } else {\n domutil.removeClass(guide, exceedLClass);\n }\n\n if (ind.exceedR) {\n domutil.addClass(guide, exceedRClass);\n } else {\n domutil.removeClass(guide, exceedRClass);\n }\n });\n};\n\n/**\n * Get guide element indicate for origin week\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n var left = mmin(startCoord[0], mouseCoord[0]),\n right = mmax(startCoord[0], mouseCoord[0]) + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = startCoord[0];\n right = this.days;\n exceedR = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n left = 0;\n right = startCoord[0] + 1;\n exceedL = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for week related with mouse position\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n var left = mouseCoord[0],\n right = mouseCoord[0] + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = 0;\n exceedL = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n right = this.days;\n exceedR = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for contained weeks\n * @returns {object} indicate\n */\nMonthGuide.prototype._getContainIndicate = function() {\n return {\n left: 0,\n width: 100,\n exceedL: true,\n exceedR: true\n };\n};\n\n/**\n * Remove several guide element that supplied by parameter\n * @param {number[]} yCoords - array of y coordinate to remove guide element\n */\nMonthGuide.prototype._removeGuideElements = function(yCoords) {\n var guides = this.guideElements;\n\n util.forEach(yCoords, function(y) {\n domutil.remove(guides[y]);\n delete guides[y];\n });\n};\n\n/**\n * Get excluded numbers in range\n * @param {number[]} range - the range. value must be sequencial.\n * @param {number[]} numbers - numbers to check\n * @returns {number[]} excluded numbers\n */\nMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n var min = mmin.apply(null, range),\n max = mmax.apply(null, range),\n excludes = [];\n\n util.forEach(numbers, function(num) {\n num = parseInt(num, 10);\n if (num < min || num > max) {\n excludes.push(num);\n }\n });\n\n return excludes;\n};\n\n/**\n * Update guide elements by coordinate in month grid from mousemove event\n * @param {number} x - x coordinate\n * @param {number} y - y coordinate\n */\nMonthGuide.prototype.update = function(x, y) {\n var self = this,\n startCoord = this.startCoord,\n mouseCoord = [x, y],\n limitedCoord = this.options.isResizeMode ?\n this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n renderedYIndex = util.keys(this.guideElements),\n yCoordsToUpdate = util.range(\n mmin(startCoord[1], limitedCoord[1]),\n mmax(startCoord[1], limitedCoord[1]) + 1\n ),\n yCoordsToRemove = this._getExcludesInRange(\n yCoordsToUpdate,\n renderedYIndex\n ),\n renderIndication = {};\n\n this._removeGuideElements(yCoordsToRemove);\n\n util.forEach(yCoordsToUpdate, function(guideYCoord) {\n var guide = self._getGuideElement(guideYCoord),\n indicate;\n\n if (!guide) {\n return;\n }\n\n if (guideYCoord === startCoord[1]) {\n indicate = self._getOriginIndicate(startCoord, limitedCoord);\n } else if (guideYCoord === mouseCoord[1]) {\n indicate = self._getMouseIndicate(startCoord, mouseCoord);\n } else {\n indicate = self._getContainIndicate();\n }\n\n renderIndication[guideYCoord] = util.extend({\n guide: guide\n }, indicate);\n });\n\n this._updateGuides(renderIndication);\n};\n\n/**\n * Clear all guide elements\n */\nMonthGuide.prototype.clear = function() {\n util.forEach(this.guideElements, function(element) {\n domutil.remove(element);\n });\n\n this.guideElements = {};\n};\n\nmodule.exports = MonthGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/guide.js\n// module id = 101\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \"\n + alias4(((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"label\",\"hash\":{},\"data\":data}) : helper)))\n + \"
    \\n
     
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isCreationMode : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/guide.hbs\n// module id = 102\n// module chunks = 0","/**\n * @fileoverview Module for resize schedule in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n getMousePosData = require('./core'),\n MonthResizeGuide = require('./resizeGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthResize(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthResizeGuide}\n */\n this.guide = new MonthResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthResize.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Fire event for update model\n * @fires {MonthResize#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthResize.prototype._updateSchedule = function(scheduleCache) {\n // 일정의 시작 일자를 변경할 순 없음.\n // 종료시간만 변경 가능.\n var newEnd = datetime.end(new TZDate(Number(scheduleCache.end))),\n schedule = scheduleCache.schedule;\n\n /**\n * @event MonthResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: new TZDate(Number(schedule.getStarts())),\n end: newEnd\n });\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthResize#monthResizeDragstart}\n * @param {object} dragStartEvent - drag start event data\n */\nMonthResize.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID, schedule,\n scheduleData;\n\n if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return;\n }\n\n target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\n if (!target) {\n return;\n }\n\n modelID = domutil.getData(target, 'id');\n schedule = this.baseController.schedules.items[modelID];\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.target = target;\n scheduleData.model = schedule;\n\n this._cache = {\n schedule: schedule,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthCreation#monthResizeDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthResizeDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthResize.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEvent.originEvent);\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthResize#monthResizeDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDrag', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(Number(scheduleData.date));\n this._updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthResizeDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthResize);\n\nmodule.exports = MonthResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/resize.js\n// module id = 103\n// module chunks = 0","/**\n * @fileoverview Module for modification of guide element in schedule resize\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthResize} monthResize - month/resize module instance\n */\nfunction MonthResizeGuide(monthResize) {\n /**\n * @type {MonthResize}\n */\n this.monthResize = monthResize;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthResize.on({\n monthResizeDragstart: this._onDragStart,\n monthResizeDrag: this._onDrag,\n monthResizeDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthResizeGuide.prototype.destroy = function() {\n this.monthResize.off(this);\n this.guide.destroy();\n\n this.guide = this.monthResize = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthResize.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n el.style.display = 'none';\n });\n};\n\n/**\n * Show element blocks\n */\nMonthResizeGuide.prototype._showScheduleBlocks = function() {\n util.forEach(this.elements, function(el) {\n el.style.display = 'block';\n });\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthResize\n */\nMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n this.guide = new MonthGuide({\n isResizeMode: true\n }, this.monthResize.monthView);\n\n this._hideScheduleBlocks(dragStartEvent.model.cid());\n\n this.guide.start(dragStartEvent);\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - event data from MonthCreation\n */\nMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthResizeGuide.prototype._onDragEnd = function() {\n this._showScheduleBlocks();\n\n this.guide.destroy();\n this.elements = this.guide = null;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\nmodule.exports = MonthResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/resizeGuide.js\n// module id = 104\n// module chunks = 0","/**\n * @fileoverview Move handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n getMousePosData = require('./core'),\n MonthMoveGuide = require('./moveGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthMove(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthMoveGuide}\n */\n this.guide = new MonthMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthMove.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Update target schedule\n * @fires {MonthMove#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthMove.prototype.updateSchedule = function(scheduleCache) {\n var schedule = scheduleCache.model;\n var duration = schedule.duration().getTime();\n var startDateRaw = datetime.raw(schedule.start);\n var dragEndTime = Number(scheduleCache.end);\n var newStartDate = new TZDate(dragEndTime);\n\n newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\n /**\n * @event MonthMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStartDate,\n end: new TZDate(newStartDate.getTime() + duration)\n });\n};\n\n/**\n * Get schedule block to clone for month guide effect\n * @param {HTMLElement} target - target element that related with drag schedule\n * @returns {HTMLElement} element to create guide effect\n */\nMonthMove.prototype.getMonthScheduleBlock = function(target) {\n var blockSelector = config.classname('.weekday-schedule-block');\n\n return domutil.closest(target, blockSelector);\n};\n\n/**\n * Get schedule block from more layer\n * @param {HTMLElement} target - element to check\n * @returns {HTMLElement} schedule element\n */\nMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n var className = config.classname('.month-more-schedule');\n\n return domutil.closest(target, className);\n};\n\n/**\n * Check handler has permission to handle fired schedule\n * @fires {MonthMove#monthMoveStart_from_morelayer}\n * @param {HTMLElement} target - target element of fired schedule\n * @returns {(string|null)} model instance ID related with schedule. if handle\n * has not permission to handle the schedule then return null.\n */\nMonthMove.prototype.hasPermissionToHandle = function(target) {\n var modelID = null;\n var blockElement;\n\n if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return null;\n }\n\n blockElement = this.getMonthScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n } else {\n blockElement = this.getMoreLayerScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n /**\n * Fire for notificate that the drag schedule start at more layer view.\n * @event {MonthMove#monthMoveStart_from_morelayer}\n */\n this.fire('monthMoveStart_from_morelayer');\n }\n }\n\n return modelID;\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthMove#monthMoveDragstart}\n * @param {object} dragStartEvent - drag start schedule data\n */\nMonthMove.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID = this.hasPermissionToHandle(target),\n model,\n scheduleData;\n\n if (!modelID) {\n return;\n }\n\n model = this.baseController.schedules.items[modelID];\n\n if (model.isReadOnly) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.originEvent = dragStartEvent.originEvent;\n scheduleData.target = this.getMonthScheduleBlock(target);\n scheduleData.model = model;\n\n this._cache = {\n model: model,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthMove#monthMoveDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthMoveDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthMove#monthMoveDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthMove.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = util.extend({\n originEvent: dragEvent.originEvent\n }, this.getScheduleData(dragEvent.originEvent));\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthMove#monthMoveDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDrag', scheduleData);\n};\n\n/**\n * Event handler for Drag#dragEnd\n * @fires {MonthMove#monthMoveDragend}\n * @param {object} dragEndEvent - dragend event data\n */\nMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(Number(scheduleData.date));\n this.updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthMoveDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthMove);\n\nmodule.exports = MonthMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/move.js\n// module id = 105\n// module chunks = 0","/**\n * @fileoverview Module for modification of guide element for move in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent'),\n FloatingLayer = require('../../common/floatingLayer'),\n tmpl = require('./moveGuide.hbs'),\n Schedule = require('../../model/schedule');\n\n/**\n * @constructor\n * @param {MonthMove} monthMove - month/move module instance\n */\nfunction MonthMoveGuide(monthMove) {\n /**\n * @type {MonthMove}\n */\n this.monthMove = monthMove;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = null;\n\n monthMove.on({\n monthMoveDragstart: this._onDragStart,\n monthMoveDrag: this._onDrag,\n monthMoveDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthMoveGuide.prototype.destroy = function() {\n this.monthMove.off(this);\n this._clearGridBgColor();\n\n if (this.layer) {\n this.layer.destroy();\n }\n\n if (this.element) {\n domutil.remove(this.element);\n }\n\n this.monthMove = this.elements = this.layer = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthMove.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\nMonthMoveGuide.prototype._getHighlightColorModel = function(model) {\n return {\n bgColor: model.color\n };\n};\n\n/**\n * Clear background color for filled grid element.\n */\nMonthMoveGuide.prototype._clearGridBgColor = function() {\n var selector = config.classname('.weekday-filled'),\n className = config.classname('weekday-filled'),\n beforeGridElement = domutil.find(selector,\n this.monthMove.monthView.container);\n\n if (beforeGridElement) {\n domutil.removeClass(beforeGridElement, className);\n }\n};\n\n/**\n * Fill background color of date grids relatied with model updates.\n * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n */\nMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n className = config.classname('weekday-filled'),\n targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\n this._clearGridBgColor();\n\n if (!gridElements || !gridElements[targetIndex]) {\n return;\n }\n\n domutil.addClass(gridElements[targetIndex], className);\n};\n\n/**\n * Handler for MonthMove#dragStart\n * @param {object} dragStartEvent - dragStart schedule data object\n */\nMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n var monthView = this.monthMove.monthView,\n firstWeekdayView = monthView.children.single(),\n weekdayOptions = firstWeekdayView.options,\n widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n container = monthView.container,\n mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n model = dragStartEvent.model,\n layer = new FloatingLayer(null, container);\n\n this._hideOriginScheduleBlocks(model.cid());\n\n this.layer = layer;\n layer.setSize(widthPercent + '%', height);\n layer.setPosition(mousePos[0], mousePos[1]);\n layer.setContent(tmpl({\n model: util.extend(\n Schedule.create(model),\n model,\n this._getHighlightColorModel(model)\n )\n }));\n layer.show();\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n};\n\n/**\n * Handler for MonthMove#drag\n * @param {object} dragEvent - drag event data object\n */\nMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n var container = this.monthMove.monthView.container,\n mousePos = domevent.getMousePosition(\n dragEvent.originEvent,\n container\n );\n\n this._updateGridBgColor(dragEvent);\n\n if (!this.layer) {\n return;\n }\n\n this.layer.setPosition(mousePos[0], mousePos[1]);\n};\n\n/**\n * Handler for MonthMove#dragEnd\n */\nMonthMoveGuide.prototype._onDragEnd = function() {\n this._showOriginScheduleBlocks();\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._clearGridBgColor();\n this.layer.destroy();\n this.layer = null;\n};\n\nmodule.exports = MonthMoveGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/moveGuide.js\n// module id = 106\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-left:3px solid \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/moveGuide.hbs\n// module id = 107\n// module chunks = 0","/**\n * @fileoverview Floating layer for displaying schedule in specific date\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar OUT_PADDING = 5;\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n FloatingLayer = require('../../common/floatingLayer'),\n common = require('../../common/common'),\n tmpl = require('./more.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {object} [options.moreLayerSize] - more layer size\n * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {HTMLElement} container = container element\n */\nfunction More(options, container) {\n View.call(this, container);\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n moreLayerSize: {\n width: null,\n height: null\n }\n }, options);\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(More, View);\n\n/**\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nMore.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n var className = config.classname('month-more-close');\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Mousedown event handler for hiding more layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nMore.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n moreLayer = domutil.closest(target, config.classname('.month-more'));\n\n if (moreLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Get new position for more layer by +n element itself\n * @param {HTMLElement} target - parent grid-line element of +n element\n * @param {HTMLElement} weekItem - weekItem container element\n * @returns {number[]} new position of more layer\n */\nMore.prototype._getRenderPosition = function(target, weekItem) {\n var pos = domevent.getMousePosition({\n clientX: domutil.getPosition(target)[0],\n clientY: domutil.getPosition(weekItem)[1]\n }, this.container);\n var containerSize = domutil.getSize(this.container);\n var left = pos[0] - OUT_PADDING;\n var top = pos[1] - OUT_PADDING;\n\n left = common.ratio(containerSize[0], 100, left) + '%';\n top = common.ratio(containerSize[1], 100, top) + '%';\n\n return [left, top];\n};\n\n/**\n * @override\n */\nMore.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nMore.prototype.render = function(viewModel) {\n var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n var layer = this.layer;\n var self = this;\n var pos = this._getRenderPosition(target, weekItem);\n var height = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n var width = target.offsetWidth + (OUT_PADDING * 2);\n var optMoreLayerSize = this.options.moreLayerSize;\n this._viewModel = viewModel;\n\n if (optMoreLayerSize.width) {\n width = optMoreLayerSize.width;\n }\n\n if (optMoreLayerSize.height) {\n height = optMoreLayerSize.height;\n }\n\n layer.setContent(tmpl(viewModel));\n if (weekItem.parentElement.lastElementChild === weekItem) {\n layer.setLTRB({\n left: pos[0],\n bottom: 0\n });\n layer.setSize(width, '');\n } else {\n layer.setPosition(pos[0], pos[1]);\n layer.setSize(width, height);\n }\n\n layer.show();\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Hide layer\n */\nMore.prototype.hide = function() {\n this.layer.hide();\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nMore.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(tmpl(this._viewModel));\n }\n};\n\nmodule.exports = More;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/more.js\n// module id = 108\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \"\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n return \"\\n background: #ffffff\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n \";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"14\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthMoreTitleDate-tmpl\"] || (depth0 && depth0[\"monthMoreTitleDate-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.date : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/more.hbs\n// module id = 109\n// module chunks = 0"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 2a519fee5829da391ae5","webpack:///./src/index.js","webpack:///./src/css/main.styl","webpack:///./src/js/view/template/helper.js","webpack:///external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}","webpack:///./~/handlebars-template-loader/runtime/index.js","webpack:///./~/handlebars/runtime.js","webpack:///./~/handlebars/dist/cjs/handlebars.runtime.js","webpack:///./~/handlebars/dist/cjs/handlebars/base.js","webpack:///./~/handlebars/dist/cjs/handlebars/utils.js","webpack:///./~/handlebars/dist/cjs/handlebars/exception.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/each.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/helper-missing.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/if.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/log.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/lookup.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/with.js","webpack:///./~/handlebars/dist/cjs/handlebars/decorators.js","webpack:///./~/handlebars/dist/cjs/handlebars/decorators/inline.js","webpack:///./~/handlebars/dist/cjs/handlebars/logger.js","webpack:///./~/handlebars/dist/cjs/handlebars/safe-string.js","webpack:///./~/handlebars/dist/cjs/handlebars/runtime.js","webpack:///./~/handlebars/dist/cjs/handlebars/no-conflict.js","webpack:///./src/js/common/datetime.js","webpack:///./src/js/common/timezone.js","webpack:///./src/js/common/dw.js","webpack:///./src/js/common/common.js","webpack:///./src/js/common/domutil.js","webpack:///./src/js/common/domevent.js","webpack:///./src/js/common/collection.js","webpack:///./src/js/config.js","webpack:///./src/js/factory/calendar.js","webpack:///./src/js/view/layout.js","webpack:///./src/js/view/view.js","webpack:///./src/js/handler/drag.js","webpack:///./src/js/factory/controller.js","webpack:///./src/js/controller/base.js","webpack:///./src/js/model/schedule.js","webpack:///./src/js/common/dirty.js","webpack:///./src/js/common/model.js","webpack:///./src/js/model/viewModel/scheduleViewModel.js","webpack:///./src/js/controller/viewMixin/core.js","webpack:///./src/js/controller/viewMixin/week.js","webpack:///./src/js/common/array.js","webpack:///./src/js/controller/viewMixin/month.js","webpack:///./src/js/factory/weekView.js","webpack:///./src/js/common/vlayout.js","webpack:///./src/js/common/vpanel.js","webpack:///./src/js/common/reqAnimFrame.js","webpack:///./src/js/view/week/week.js","webpack:///./src/js/view/week/dayname.js","webpack:///./src/js/view/template/week/daynames.hbs","webpack:///./src/js/view/week/timeGrid.js","webpack:///./src/js/view/week/time.js","webpack:///./src/js/view/template/week/time.hbs","webpack:///./src/js/common/autoScroll.js","webpack:///./src/js/common/point.js","webpack:///./src/js/view/template/week/timeGrid.hbs","webpack:///./src/js/view/week/allday.js","webpack:///./src/js/view/week/weekdayInWeek.js","webpack:///./src/js/view/weekday.js","webpack:///./src/js/view/week/weekdayInWeek.hbs","webpack:///./src/js/view/template/week/allday.hbs","webpack:///./src/js/view/week/milestone.js","webpack:///./src/js/view/template/week/milestone.hbs","webpack:///./src/js/view/week/taskview.js","webpack:///./src/js/view/template/week/taskview.hbs","webpack:///./src/js/handler/allday/click.js","webpack:///./src/js/handler/allday/move.js","webpack:///./src/js/handler/allday/core.js","webpack:///./src/js/handler/allday/moveGuide.js","webpack:///./src/js/handler/allday/creation.js","webpack:///./src/js/handler/allday/creationGuide.js","webpack:///./src/js/handler/allday/resize.js","webpack:///./src/js/handler/allday/resizeGuide.js","webpack:///./src/js/handler/time/clickDayname.js","webpack:///./src/js/handler/time/click.js","webpack:///./src/js/handler/time/creation.js","webpack:///./src/js/handler/time/creationGuide.js","webpack:///./src/js/handler/time/core.js","webpack:///./src/js/handler/time/move.js","webpack:///./src/js/handler/time/moveGuide.js","webpack:///./src/js/common/floatingLayer.js","webpack:///./src/js/view/template/week/timeMoveGuide.hbs","webpack:///./src/js/handler/time/resize.js","webpack:///./src/js/handler/time/resizeGuide.js","webpack:///./src/js/handler/milestone/click.js","webpack:///./src/js/factory/monthView.js","webpack:///./src/js/view/month/month.js","webpack:///./src/js/view/month/month.hbs","webpack:///./src/js/view/month/weekdayInMonth.js","webpack:///./src/js/view/month/weekdayInMonth.hbs","webpack:///./src/js/view/month/weekdayInMonthSchedule.hbs","webpack:///./src/js/handler/month/click.js","webpack:///./src/js/handler/month/creation.js","webpack:///./src/js/handler/month/core.js","webpack:///./src/js/handler/month/creationGuide.js","webpack:///./src/js/handler/month/guide.js","webpack:///./src/js/handler/month/guide.hbs","webpack:///./src/js/handler/month/resize.js","webpack:///./src/js/handler/month/resizeGuide.js","webpack:///./src/js/handler/month/move.js","webpack:///./src/js/handler/month/moveGuide.js","webpack:///./src/js/handler/month/moveGuide.hbs","webpack:///./src/js/view/month/more.js","webpack:///./src/js/view/month/more.hbs"],"names":[],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;ACtCA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;;;;;;ACVA,0C;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,MAAM;AACjB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,MAAM;AACjB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,WAAU,qBAAqB;AAC/B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB,gBAAe,WAAW;AAC1B,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,4EAA2E;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,KAAK;AACpB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,kBAAkB;AACjC,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA,kDAAiD;AACjD,MAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA,kDAAiD;AACjD,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AAC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A;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,IAAG;AACH;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,4CAA2C,cAAc;;;;;;;ACvGzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,aAAY;AACZ,aAAY;AACZ,eAAc;AACd,eAAc;AACd,eAAc;AACd,eAAc;AACd;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,kBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,sCAAqC,SAAS;AAC9C;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAG;AACH;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA,wBAAuB;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,4CAA2C,cAAc;;;;;;;AC3HzD;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA,oBAAmB,yBAAyB;AAC5C;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;;AAEA;AACA;AACA,4CAA2C,cAAc;;;;;;;ACrDzD;;AAEA;AACA;AACA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,cAAc;;;;;;;AC7CzD;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,QAAO;AACP;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,oBAAmB;AACnB;;AAEA;AACA;AACA,IAAG;AACH;;AAEA;AACA,4CAA2C,cAAc;;;;;;;ACtCzD;;AAEA;AACA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA,qCAAoC,OAAO;AAC3C;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,IAAG;AACH;;AAEA;AACA,4CAA2C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ACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,4FAA2F,aAAa;AACxG;AACA;;AAEA,+CAA8C;AAC9C;AACA;AACA;;AAEA;AACA;AACA,4CAA2C,cAAc;;;;;;;AC9CzD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,4CAA2C,cAAc;;;;;;;ACdzD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,uCAAsC,uCAAuC,kBAAkB;;AAE/F;;AAEA,wCAAuC,6BAA6B,YAAY,EAAE,OAAO,iBAAiB,mBAAmB,uBAAuB,4EAA4E,EAAE,EAAE,yBAAyB,eAAe,EAAE;;AAE9Q;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,gCAA+B;AAC/B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CAAyC,OAAO;AAChD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,sBAAqB,SAAS;AAC9B;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA,8BAA6B;AAC7B;;AAEA;AACA,MAAK;AACL;AACA,gCAA+B;;AAE/B;AACA;AACA;;AAEA;AACA,2EAA0E;;AAE1E;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2EAA0E;;AAE1E;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,IAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+EAA8E;;AAE9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA0C;AAC1C;AACA,MAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,cAAc;;;;;;;AClTzD;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4CAA2C,cAAc;;;;;;;;ACnBzD;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAAyB,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE;AACzE;;AAEA;AACA,uBAAsB;AACtB;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,SAAS;AACxB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,KAAK;AACpB;AACA,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,EAAE;AACjB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,eAAc,kBAAkB;AAChC;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,eAAe;AAChC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB,gBAAe,SAAS;AACxB,kBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa;AACb;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACpiBA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,cAAa;AACb;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,0BAA0B;AACrC,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;;AAEA;AACA;AACA,EAAC;;AAED;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,SAAS;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnKA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,YAAW,EAAE;AACb,cAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa,GAAG;AAChB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,GAAG;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,GAAG;AAChB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,GAAG;AAChB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,QAAQ;AACnB,YAAW,QAAQ;AACnB,cAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACxGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,KAAK;AACpB,kBAAiB,WAAW;AAC5B;AACA,oDAAmD;AACnD;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,cAAa;AACb;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,UAAU;AACzB,kBAAiB,OAAO;AACxB;AACA,kCAAiC;AACjC;AACA;;AAEA;AACA;AACA,0BAAyB,EAAE;AAC3B;AACA;AACA;AACA,cAAa;;AAEb;AACA;AACA;AACA;AACA,wBAAuB,gBAAgB;AACvC,0BAAyB,EAAE;AAC3B;AACA;AACA;;AAEA;AACA,sCAAqC;AACrC;;AAEA;;AAEA;AACA,mEAAkE;AAClE;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,MAAM;AACrB,gBAAe,MAAM;AACrB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,cAAc;AAC7B,kBAAiB,EAAE;AACnB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,cAAc;AAC7B,kBAAiB,EAAE;AACnB;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,OAAO,0BAA0B;AAChD,gBAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;;;;;;;ACjLA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,YAAY;AAC3B;AACA,gBAAe,OAAO;AACtB,kBAAiB,YAAY;AAC7B;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,YAAY;AAC7B;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,qBAAqB;AACpC;AACA,gBAAe,iBAAiB;AAChC;AACA,kBAAiB,YAAY;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,oBAAmB,YAAY;AAC/B,oBAAmB,OAAO;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA,mBAAkB,SAAS;AAC3B;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,gBAAe,QAAQ;AACvB,kBAAiB,YAAY;AAC7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,yCAAwC,IAAI;AAC5C;AACA;AACA,cAAa;AACb;AACA;AACA;AACA,UAAS;AACT,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,gBAAe,cAAc;AAC7B;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa;AACb,UAAS;AACT;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,kBAAiB,cAAc;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAe,YAAY;AAC3B,kBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0CAAyC,EAAE;AAC3C;AACA;AACA;;AAEA;AACA;AACA;AACA,0BAAyB;AACzB;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,QAAQ;AACvB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,kBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,iBAAiB;AAClC;AACA;AACA,gCAA+B;AAC/B;AACA;AACA;AACA;AACA;;AAEA,eAAc,SAAS;AACvB;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,gBAAgB;AAC/B,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,cAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,sBAAqB;AACrB,kBAAiB;AACjB;AACA;AACA,sBAAqB;AACrB,kBAAiB;AACjB;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA,8BAA6B;AAC7B;AACA,sBAAqB;AACrB,kBAAiB;AACjB;AACA;AACA,sBAAqB;AACrB;;AAEA;AACA;AACA,kBAAiB;;AAEjB;AACA;AACA,kBAAiB;AACjB;AACA;;AAEA;AACA,cAAa;AACb,UAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,EAAC;;AAED;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACtoBA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,gBAAgB;AAC/B,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA,cAAa;;AAEb;AACA;;AAEA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,gBAAgB;AAC/B,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;AACA,cAAa;;AAEb;AACA;;AAEA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,gBAAe,WAAW;AAC1B,gBAAe,EAAE;AACjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA,cAAa,aAAa;AAC1B;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,gBAAgB;AAC/B,gBAAe,EAAE;AACjB,gBAAe,EAAE;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,MAAM;AACrB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,gBAAe,YAAY;AAC3B,kBAAiB,SAAS;AAC1B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,WAAW;AAC1B,kBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,WAAW;AAC1B,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,YAAY;AAC3B,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,WAAW;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA,cAAa;AACb,2BAA0B;AAC1B;AACA,sBAAqB;AACrB;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;AClbA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,kEAAiE;AACjE;AACA,YAAW,SAAS;AACpB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,eAAc,SAAS;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,eAAc,SAAS;AACvB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,cAAc;AACzB,cAAa,WAAW;AACxB;AACA,2CAA0C;AAC1C;AACA,sBAAqB;AACrB;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;;AAET;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,0BAA0B;AACrC,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;;AAET;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,gCAAgC;AAC3C,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA6B;AAC7B;;AAEA;AACA,UAAS;AACT,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,gBAAgB;AAC3B,YAAW,SAAS;AACpB,YAAW,EAAE;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,cAAa,WAAW;AACxB;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,+BAA+B;AAC1C;AACA,YAAW,SAAS;AACpB,cAAa,4BAA4B;AACzC;AACA;AACA;AACA,iCAAgC;AAChC,2BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA,oBAAmB;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,SAAS;AACpB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,0BAAyB;AACzB;AACA;AACA;;AAEA,0BAAyB;AACzB;;AAEA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,cAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA,M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;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA,0BAAyB;AACzB;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS,sCAAsC;AAC/C,6BAA4B,kCAAkC;AAC9D,8BAA6B,mCAAmC;AAChE;AACA,MAAK;;AAEL;AACA;AACA;AACA,MAAK,uCAAuC;;AAE5C;AACA;AACA;AACA;AACA;AACA,MAAK,mCAAmC;;AAExC;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA,kCAAiC,aAAa;;AAE9C;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,YAAY;AACvB,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,cAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,YAAY;AACvB,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,iBAAiB;AAC5B,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR,KAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;AACL;;AAEA;AACA,YAAW,YAAY;AACvB,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA,4CAA2C;AAC3C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sCAAqC;AACrC;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa;AACb,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa;AACb;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,cAAc;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA,sCAAqC;AACrC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB,aAAY,OAAO;AACnB,aAAY,OAAO;AACnB,aAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA;AACA;AACA;;AAEA;AACA,qEAAoE,2BAA2B;AAC/F;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,gBAAgB;AAC3B,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,gBAAgB;AAC3B,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B,mBAAkB,WAAW;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAgB;AAChB;AACA;AACA;AACA,aAAY;AACZ;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd,mBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;;AAEA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd,mBAAkB,QAAQ;AAC1B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB,mBAAkB,kBAAkB;AACpC,mBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA2B;AAC3B,aAAY;AACZ;AACA,4BAA2B;AAC3B;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAY;AACZ,SAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,YAAW,QAAQ;AACnB,YAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,YAAY;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA,KAAI;AACJ;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;AC9xCA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa;AACb,YAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc,WAAW;AACzB;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,cAAc;AACzB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;;;;;;;;AC3EA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,WAAU;AACV;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,cAAc;AACzB,YAAW,SAAS;AACpB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;ACxMA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB,YAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,WAAW;AACtB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,mBAAkB;AAClB,uBAAsB,YAAY;AAClC,uBAAsB,WAAW;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,eAAc;AACd,mBAAkB,YAAY;AAC9B,mBAAkB,WAAW;AAC7B;AACA;AACA;;AAEA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAkB;AAClB,uBAAsB,YAAY;AAClC,uBAAsB,WAAW;AACjC;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,mBAAkB;AAClB,uBAAsB,YAAY;AAClC,uBAAsB,WAAW;AACjC;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;;;;;;;AC3OA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA,YAAW,OAAO;AAClB,YAAW,SAAS,uDAAuD;AAC3E,cAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,KAAK;AACpB,gBAAe,WAAW;AAC1B,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAiB;;AAEjB;AACA;AACA,UAAS;;AAET;AACA;;AAEA;;AAEA;AACA;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,SAAS,uDAAuD;AAC3E;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,gBAAe,kBAAkB;AACjC,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,oBAAoB;AAC/B,YAAW,QAAQ;AACnB,cAAa,WAAW;AACxB;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,cAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,QAAQ;AACnB,cAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,KAAK;AAChB,YAAW,WAAW;AACtB,cAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,kBAAiB;AACjB,cAAa;AACb;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,KAAK;AAChB,cAAa,4BAA4B;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa;AACb;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AC9UA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA,6BAA4B;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,cAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA,cAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;AClVA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA,kBAAiB;AACjB,+BAA8B;AAC9B,8BAA6B;AAC7B;AACA;AACA,kBAAiB;AACjB,+BAA8B;AAC9B;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,EAAE;AACjB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,uBAAsB;AACtB;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,QAAQ;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,gBAAgB;AAC/B;AACA,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa;;AAEb;AACA;;AAEA;;AAEA;AACA;AACA,wBAAuB,SAAS;AAChC,wBAAuB,QAAQ;AAC/B,0BAAyB,EAAE;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA,wDAAuD;AACvD,6CAA4C;;AAE5C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC3MA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB,OAAO;AAC1B,oBAAmB,SAAS;AAC5B,sBAAqB,QAAQ;AAC7B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,cAAa;;AAEb;AACA,UAAS;;AAET;AACA;AACA,oBAAmB,OAAO;AAC1B,oBAAmB,OAAO;AAC1B,sBAAqB,QAAQ;AAC7B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,8BAA6B;AAC7B;;AAEA;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,kBAAiB,OAAO;AACxB;AACA;AACA,uBAAsB;AACtB;;AAEA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;;;;;;;;ACtJA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,cAAa,kBAAkB;AAC/B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,2BAA2B;AACtC,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AC1LA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,MAAM;AACrB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,0CAAyC;AACzC;;AAEA;AACA,sBAAqB;;AAErB,kCAAiC;AACjC;;AAEA;AACA,cAAa;;AAEb;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,QAAQ;AACvB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,WAAW;AAC1B,gBAAe,QAAQ;AACvB,kBAAiB,MAAM;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,sBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;;AAEb;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,KAAK;AACpB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,KAAK;AACpB,gBAAe,MAAM;AACrB,gBAAe,SAAS;AACxB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAiB;AACjB,cAAa;AACb,UAAS;AACT,MAAK;;AAEL;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,KAAK;AACpB,gBAAe,6BAA6B;AAC5C;AACA,kBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;AACA,oBAAmB,kBAAkB;AACrC,sBAAqB,kBAAkB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,WAAW;AAC1B,kBAAiB,WAAW;AAC5B;AACA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;AACA;AACA,UAAS;;AAET;AACA;AACA;;AAEA;;;;;;;;AChQA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,QAAQ;AACvB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;;AAEb,sBAAqB,iBAAiB;AACtC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,iBAAiB;AAChC,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,QAAQ;AACvB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAa;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,wCAAuC,kBAAkB;AACzD;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAiB;AACjB,cAAa;AACb,UAAS;AACT,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,KAAK;AACpB,gBAAe,WAAW;AAC1B,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,UAAS;;AAET;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,KAAK;AACpB,gBAAe,WAAW;AAC1B,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,KAAK;AACpB,gBAAe,WAAW;AAC1B,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;ACrPA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,MAAM;AACjB,YAAW,wBAAwB;AACnC,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC;AACtC,uCAAsC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,sDAAqD;AACrD;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,YAAW,QAAQ;AACnB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,QAAQ;AACnB,YAAW,QAAQ;AACnB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,2BAA2B;AACtC,YAAW,2BAA2B;AACtC,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7RA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,kBAAkB;AACjC,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,kBAAkB;AACjC,kBAAiB,QAAQ;AACzB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,kBAAkB;AACjC;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,KAAK;AACpB,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,WAAW;AAC1B,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;;AAET;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB,kBAAiB;AACjB;;AAEA;AACA;AACA,4BAA2B,kBAAkB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,WAAW;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;;AAEL;AACA;AACA;AACA,gBAAe,KAAK;AACpB,gBAAe,KAAK;AACpB,gBAAe,WAAW;AAC1B,gBAAe,QAAQ;AACvB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;;AAEA;;;;;;;;AClNA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAiB;AACjB,oBAAmB;AACnB,qBAAoB;AACpB,iBAAgB;AAChB;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA,cAAa;AACb;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;;AAET;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;;AAET;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChQA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,WAAU;AACV,eAAc,OAAO;AACrB,eAAc,OAAO;AACrB,eAAc,QAAQ;AACtB,eAAc,QAAQ;AACtB,eAAc,OAAO;AACrB;;AAEA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,aAAY,eAAe;AAC3B,aAAY,SAAS;AACrB,YAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,cAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,YAAW,OAAO;AAClB,cAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,aAAa;AACxB,YAAW,UAAU;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,eAAe;AAC1B,YAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;;;;;;;ACpaA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,aAAY,OAAO;AACnB,aAAY,OAAO;AACnB,aAAY,OAAO;AACnB,aAAY,QAAQ;AACpB,aAAY,QAAQ;AACpB,aAAY,OAAO;AACnB,YAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,aAAa;AACxB,YAAW,eAAe;AAC1B;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;ACnKA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,gBAAe,SAAS;AACxB,gBAAe,EAAE;AACjB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;ACxDA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,UAAU;AACrB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA,YAAW,OAAO;AAClB;AACA,YAAW,OAAO;AAClB,YAAW,YAAY;AACvB,cAAa;AACb;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA,eAAc,OAAO;AACrB;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;;ACtKA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,YAAY;AACvB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;AClFA;AACA,kEAAiE;AACjE,sFAAqF;;AAErF;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,wFAAuF,qBAAqB,yEAAyE;AACrL;AACA,4HAA2H,0BAA0B,aAAa;AAClK;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,8IAA6I,+BAA+B,aAAa;AACzL,SAAQ;AACR,uKAAsK,uBAAuB,aAAa;AAC1M;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,wHAAuH,mCAAmC,aAAa;AACvK;AACA,EAAC;AACD;;AAEA,2QAA0Q,GAAG,6BAA6B,aAAa;AACvT;AACA,EAAC;AACD,sFAAqF;;AAErF;AACA,0NAAyN,6BAA6B,aAAa;AACnQ;AACA,mDAAkD,uBAAuB,yEAAyE;AAClJ;AACA,EAAC,gBAAgB,E;;;;;;AClCjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,YAAY;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,mBAAkB;AAClB;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,WAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,YAAW,KAAK;AAChB;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,YAAW,eAAe;AAC1B,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,eAAe;AAC1B,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,YAAY;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;ACrYA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,YAAW,kBAAkB;AAC7B,YAAW,OAAO;AAClB,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;;AAEA;AACA,oBAAmB,kBAAkB;AACrC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAiB;;AAEjB;AACA,cAAa;AACb,UAAS;AACT,MAAK;AACL;;AAEA;AACA,cAAa,KAAK;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,MAAM;AACjB;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;;;;;;;ACtMA;AACA,kEAAiE;AACjE;;AAEA,6FAA4F,UAAU,uBAAuB,yEAAyE;AACtM,EAAC;AACD;;AAEA,6FAA4F,UAAU,uBAAuB,yEAAyE;AACtM,EAAC;AACD;;AAEA,8FAA6F,UAAU,q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;AACA;AACA;;AAEA;AACA;AACA,YAAW,WAAW;AACtB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,UAAU;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,YAAY;AACvB,YAAW,WAAW;AACtB,cAAa,QAAQ;AACrB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACpPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,wBAAwB;AACnC,YAAW,iBAAiB;AAC5B,YAAW,QAAQ;AACnB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,MAAM;AACnB;AACA;AACA;AACA;;AAEA;AAC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ACA;;AAEA;;;;;;;ACrHA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA,YAAW,OAAO;AAClB;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,eAAe;AAC1B;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;AACT;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA,WAAU,oBAAoB;AAC9B;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAiB;AACjB;;AAEA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACvNA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA,YAAW,OAAO;AAClB;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,MAAM;AACjB,YAAW,eAAe;AAC1B,cAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kBAAiB;AACjB,cAAa;AACb,UAAS;AACT,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW,eAAe;AAC1B,cAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;;;;;;;ACnKA;AACA,kEAAiE;AACjE,sFAAqF;;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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;;;;;;;;AC3FA;AACA,kEAAiE;AACjE,sFAAqF;;AAErF;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,qMAAoM,iCAAiC,aAAa;AAClP;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,EAAC,gBAAgB,E;;;;;;ACjBjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,OAAO;AACpB;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAsB;AACtB,2BAA0B,SAAS;AACnC,2BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;AAEA;;;;;;;ACvHA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA;AACA,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,YAAW,KAAK;AAChB;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,sBAAsB;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,SAAS;AAC3B,mBAAkB,eAAe;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AClRA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,WAAW;AAC1B,kBAAiB,iBAAiB;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,oBAAmB,WAAW;AAC9B,sBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAU,YAAY;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AChGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA,YAAW,SAAS;AACpB,YAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB,YAAW,QAAQ;AACnB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,MAAM;AACjB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,WAAU,UAAU;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;ACrRA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA;AACA,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,YAAW,KAAK;AAChB;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,sBAAsB;AACnC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,QAAQ;AAC1B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB,mBAAkB,kBAAkB;AACpC,mBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACrTA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,eAAe;AAC1B;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,MAAM;AACjB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,WAAU,mBAAmB;AAC7B;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;;;;;;;AClJA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA;AACA,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,YAAW,KAAK;AAChB;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,sBAAsB;AACnC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,SAAS;AAC3B,mBAAkB,eAAe;AACjC;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA,eAAc;AACd,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AC3QA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,aAAa;AACxB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,eAAc,YAAY;AAC1B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;ACjJA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA,YAAW,KAAK;AAChB,YAAW,QAAQ;AACnB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,OAAO;AACpB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO,gCAAgC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,OAAO;AACzB;AACA;AACA;AACA,MAAK;AACL;;AAEA;;AAEA;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA,YAAW,KAAK;AAChB,YAAW,SAAS;AACpB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO,gCAAgC;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAkB;AAClB,uBAAsB,SAAS;AAC/B,uBAAsB,WAAW;AACjC;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;;AAEA;;;;;;;;ACvGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA;AACA,YAAW,KAAK;AAChB,YAAW,SAAS;AACpB,YAAW,KAAK;AAChB;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd,mBAAkB,KAAK;AACvB,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,KAAK;AACvB,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,QAAQ;AAC1B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB,mBAAkB,kBAAkB;AACpC,mBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,KAAK;AACvB,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,SAAS;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACtVA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,aAAa;AACxB;AACA;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,KAAK;AAChB,YAAW,KAAK;AAChB,YAAW,QAAQ;AACnB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,cAAa,MAAM;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,MAAM;AACnB;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,SAAS;AACtB;AACA;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;;;;;;;;ACrQA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,gBAAe,KAAK;AACpB,kBAAiB,SAAS;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAmB,WAAW;AAC9B,oBAAmB,OAAO;AAC1B,sBAAqB,OAAO;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;AACT,MAAK;;AAEL;AACA;AACA,gBAAe,wBAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,UAAS;AACT;AACA;;AAEA;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA;AACA,YAAW,KAAK;AAChB,YAAW,SAAS;AACpB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd,mBAAkB,YAAY;AAC9B,mBAAkB,KAAK;AACvB,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA;AACA,YAAW,WAAW;AACtB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,YAAY;AAC9B,mBAAkB,KAAK;AACvB,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,YAAY;AAC9B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,SAAS;AAC3B,mBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd,mBAAkB,YAAY;AAC9B,mBAAkB,KAAK;AACvB,mBAAkB,WAAW;AAC7B,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;ACxWA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,SAAS;AACpB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,2CAA0C,aAAa;AACvD,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAsC,mBAAmB;AACzD;AACA;;AAEA;;;;;;;;ACtOA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,YAAW,YAAY;AACvB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,eAAc;AACd;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAU,SAAS;AACnB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;;AAEA;AACA,cAAa,QAAQ;AACrB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,cAAc;AACzB,YAAW,cAAc;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;ACvLA;AACA,kEAAiE;AACjE;;AAEA;AACA,wQAAuQ,GAAG,6BAA6B,aAAa;AACpT,4CAA2C;AAC3C,EAAC;AACD,sFAAqF;;AAErF;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,0HAAyH,wBAAwB,aAAa;AAC9J,+BAA8B,cAAc;AAC5C,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N,kEAAiE;AACjE;AACA,SAAQ;AACR;AACA,SAAQ;AACR,4IAA2I,4BAA4B,aAAa;AACpL;AACA,yFAAwF,yBAAyB,yEAAyE;AAC1L;AACA,EAAC,gBAAgB,E;;;;;;AC3BjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA;AACA,YAAW,KAAK;AAChB,YAAW,SAAS;AACpB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,YAAY;AACvB,cAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd,mBAAkB,YAAY;AAC9B,mBAAkB,KAAK;AACvB,mBAAkB,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B,SAAS;AAC3B;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;;AC7SA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;;;;;;;;;AC3KA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAkB;AAClB;AACA,YAAW,KAAK;AAChB,YAAW,UAAU;AACrB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,YAAY;AACvB,cAAa,eAAe;AAC5B;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,mBAAkB;AAClB,uBAAsB,SAAS;AAC/B,uBAAsB,WAAW;AACjC;AACA;AACA;AACA;AACA,UAAS;AACT,MAAK;AACL;;AAEA;;AAEA;;;;;;;;AC3FA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,YAAY;AACvB,YAAW,WAAW;AACtB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAW,KAAK;AAChB,YAAW,YAAY;AACvB,YAAW,KAAK;AAChB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,UAAS;AACT;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;AACT;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;;AC5IA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,SAAS;AACpB,YAAW,YAAY;AACvB,YAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA,cAAa,WAAW;AACxB,cAAa;AACb;AACA,MAAK;;AAEL;AACA,eAAc;AACd;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;;AAEL;AACA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,WAAU;AACV;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,eAAe;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,YAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;;AAET;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;AACL;;AAEA;;;;;;;;ACvPA;AACA,kEAAiE;AACjE,sFAAqF;;AAErF;AACA,mLAAkL,6BAA6B,aAAa;AAC5N,kEAAiE;AACjE,yKAAwK,wBAAwB,aAAa;AAC7M,UAAS;AACT,uKAAsK,uBAAuB,aAAa;AAC1M;AACA,4HAA2H,0BAA0B,aAAa;AAClK;AACA,0HAAyH,oCAAoC,aAAa;AAC1K;AACA,EAAC;AACD,sFAAqF;;AAErF;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,wFAAuF,uBAAuB,yEAAyE;AACvL;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,EAAC,gBAAgB,E;;;;;;ACzBjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,eAAe;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA,8CAA6C;AAC7C;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AA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AACA;AACA,SAAQ;AACR;AACA,SAAQ;AACR;AACA,SAAQ;AACR,EAAC;AACD;;AAEA;AACA,wQAAuQ,GAAG,6BAA6B,aAAa;AACpT,+CAA8C;AAC9C,EAAC;AACD,kJAAiJ;;AAEjJ;AACA;AACA;AACA;AACA;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA;AACA,WAAU;AACV;AACA;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,uIAAsI,qBAAqB,0FAA0F;AACrP;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,uIAAsI,qBAAqB,0FAA0F;AACrP;AACA;AACA;AACA,4IAA2I,4BAA4B,aAAa;AACpL;AACA,EAAC;AACD;AACA,EAAC;AACD;;AAEA;AACA;AACA;AACA,EAAC;AACD;;AAEA,kDAAiD;AACjD;AACA;AACA,EAAC;AACD,gDAA+C;AAC/C,EAAC;AACD;;AAEA,6FAA4F,+CAA+C,uBAAuB,yEAAyE;AAC3O,EAAC,gBAAgB,E;;;;;;AC7JjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAgB;AAChB;AACA,YAAW,KAAK;AAChB,YAAW,MAAM;AACjB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;AACA;AACA,uBAAsB;AACtB,2BAA0B,SAAS;AACnC,2BAA0B,WAAW;AACrC;AACA;AACA;AACA;AACA,cAAa;AACb,UAAS;AACT;AACA;;AAEA;;AAEA;;;;;;;;AC1FA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,MAAM;AACjB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,QAAQ;AAC1B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB,mBAAkB,kBAAkB;AACpC,mBAAkB,OAAO;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,WAAW;AACtB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;;;;;;AC5TA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,MAAM;AACjB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA,eAAc,YAAY;AAC1B;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,gBAAe,OAAO;AACtB,kBAAiB,OAAO;AACxB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;;;;;;ACrFA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,YAAW,cAAc;AACzB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;;;;;;AC3EA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,YAAW,QAAQ;AACnB;AACA,YAAW,QAAQ;AACnB,YAAW,MAAM;AACjB;AACA;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA,MAAK;;AAEL;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,OAAO;AACpB;AACA;AACA,sCAAqC;;AAErC;AACA;;AAEA;AACA;AACA,cAAa,YAAY;AACzB;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB,cAAa,aAAa;AAC1B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAU;AACV,eAAc,YAAY;AAC1B,eAAc,OAAO;AACrB,eAAc,OAAO;AACrB,eAAc,QAAQ;AACtB,eAAc,QAAQ;AACtB;;AAEA;AACA;AACA,YAAW,mBAAmB;AAC9B;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,SAAS;AACpB,YAAW,SAAS;AACpB,cAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa,OAAO;AACpB;AACA;AACA;AACA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A;AACA;;AAEA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,MAAM;AACjB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB,mBAAkB,YAAY;AAC9B,mBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB;AACA;;AAEA;AACA;;AAEA;;AAEA;;;;;;;;AC9MA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;AClHA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW,KAAK;AAChB,YAAW,MAAM;AACjB,YAAW,KAAK;AAChB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,eAAc;AACd,mBAAkB,SAAS;AAC3B,mBAAkB,KAAK;AACvB,mBAAkB,KAAK;AACvB;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,cAAa,YAAY;AACzB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,YAAY;AACvB,cAAa,cAAc;AAC3B;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA,wBAAuB;AACvB;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB,mBAAkB,YAAY;AAC9B,mBAAkB,SAAS;AAC3B;AACA;AACA;;AAEA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB;AACA;AACA;;AAEA;AACA;AACA,YAAW;AACX,YAAW,OAAO;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,gBAAe;AACf,eAAc;AACd,mBAAkB,OAAO;AACzB,mBAAkB,OAAO;AACzB,mBAAkB,KAAK;AACvB;AACA;;AAEA;AACA;;AAEA;;AAEA;;;;;;;;AC9QA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,UAAU;AACrB;AACA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;;;;;;;;ACpMA;AACA,kEAAiE;AACjE;;AAEA;AACA;AACA,SAAQ;AACR,EAAC;AACD,8EAA6E;;AAE7E;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,EAAC;AACD;;AAEA;AACA,oKAAmK,4CAA4C,8BAA8B,aAAa;AAC1P;AACA,EAAC;AACD;;AAEA;AACA,gKAA+J,4CAA4C,4BAA4B,aAAa;AACpP;AACA,EAAC;AACD,sFAAqF;;AAErF;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N,sDAAqD,yBAAyB,0BAA0B,6BAA6B;AACrI;AACA,SAAQ;AACR,sIAAqI,qBAAqB,yEAAyE;AACnO;AACA,uIAAsI,yBAAyB,yEAAyE;AACxO;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,sIAAqI,qBAAqB,wFAAwF;AAClP;AACA,EAAC,gBAAgB,E;;;;;;ACjDjB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,cAAa;AACb,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB,YAAW,OAAO;AAClB;AACA,YAAW,OAAO;AAClB;AACA,YAAW,YAAY;AACvB;AACA;AACA;;AAEA;AACA,eAAc;AACd;AACA;;AAEA;AACA;AACA,eAAc;AACd;AACA;;AAEA;AACA,eAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;;AAEA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,YAAW,WAAW;AACtB;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW,YAAY;AACvB,YAAW,YAAY;AACvB,cAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,YAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;A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AAa;AAC5N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,uKAAsK,0CAA0C,aAAa;AAC7N;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,+MAA8M,sCAAsC,aAAa;AACjQ;AACA,mLAAkL,6BAA6B,aAAa;AAC5N;AACA,yFAAwF,uBAAuB,yEAAyE;AACxL;AACA,EAAC,gBAAgB,E","file":"tui-calendar.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"tui-code-snippet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"tui-code-snippet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Calendar\"] = factory(require(\"tui-code-snippet\"));\n\telse\n\t\troot[\"tui\"] = root[\"tui\"] || {}, root[\"tui\"][\"Calendar\"] = factory(root[\"tui\"][\"util\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_6__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 2a519fee5829da391ae5","/**\n * @fileoverview The entry file of fullcalendar\n * @author NHN Ent. FE Development Team\n */\n\n'use strict';\n\nrequire('./css/main.styl');\nrequire('./js/view/template/helper');\n\nmodule.exports = require('./js/factory/calendar');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/index.js\n// module id = 0\n// module chunks = 0","// removed by extract-text-webpack-plugin\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/css/main.styl\n// module id = 1\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Helpers for handlebar templates.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Handlebars = require('handlebars-template-loader/runtime');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar config = require('../../config');\n\n/**\n * Get CSS syntax for element size\n * @param {number} value - size value to apply element\n * @param {string} postfix - postfix string ex) px, em, %\n * @param {string} prefix - property name ex) width, height\n * @returns {string} CSS syntax\n */\nfunction getElSize(value, postfix, prefix) {\n prefix = prefix || '';\n if (util.isNumber(value)) {\n return prefix + ':' + value + postfix;\n }\n\n return prefix + ':auto';\n}\n\n/**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\nfunction getElLeft(viewModel, grids) {\n return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n}\n\n/**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getElWidth(viewModel, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n var left;\n for (; i < viewModel.width; i += 1) {\n left = (viewModel.left + i) % length;\n left += parseInt((viewModel.left + i) / length, 10);\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nHandlebars.registerHelper({\n /**\n * Stamp supplied object\n *\n * Commonly use for rendering object's unique ID to rendered view\n * @param {object} obj - object to stamp\n * @returns {number} stamp value\n */\n 'stamp': function(obj) {\n return util.stamp(obj);\n },\n\n /**\n * Whether supplied object are equal?\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} result of operation\n */\n 'equal': function(a, b) {\n return a === b;\n },\n\n /**\n * OR\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'or': function(a, b) {\n return a || b;\n },\n\n /**\n * Compare object or apply logical operation by customizable oper parameter\n * @param {*} a - a\n * @param {string} oper - operator ex) '==', '<'\n * @param {*} b - b\n * @param {Handlebars} options - handlebar options\n * @returns {boolean} result of operation\n */\n 'fi': function(a, oper, b, options) {\n switch (oper) {\n case '==':\n return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n case '===':\n return (a === b) ? options.fn(this) : options.inverse(this);\n case '!==':\n return (a !== b) ? options.fn(this) : options.inverse(this);\n case '<':\n return (a < b) ? options.fn(this) : options.inverse(this);\n case '||':\n return (a || b) ? options.fn(this) : options.inverse(this);\n default:\n throw new Error('Not match operation');\n }\n },\n\n /**\n * Get hhmm formatted time str\n * @param {Date} date - date object\n * @returns {string} formatted value\n */\n 'hhmm': function(date) {\n return datetime.format(date, 'HH:mm');\n },\n\n /**\n * Get `width` stylesheet string\n * @param {number} width - width percentage\n * @returns {string} css style part\n */\n 'common-width': function(width) {\n return getElSize(width, '%', 'width');\n },\n\n /**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\n 'grid-left': function(viewModel, grids) {\n return getElLeft(viewModel, grids);\n },\n\n /**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\n 'grid-width': function(viewModel, grids) {\n return getElWidth(viewModel, grids);\n },\n\n /**\n * Use in time.hbs\n * @param {ScheduleViewModel} viewModel viewModel\n * @returns {string} element size css class\n */\n 'time-scheduleBlock': function(viewModel) {\n var top = getElSize(viewModel.top, 'px', 'top'),\n left = getElSize(viewModel.left, '%', 'left'),\n width = getElSize(viewModel.width, '%', 'width'),\n height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n var height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'holiday': function(day) {\n var cssClass = '';\n\n if (day === 0) {\n cssClass = config.classname('holiday-sun');\n }\n\n if (day === 6) {\n cssClass = config.classname('holiday-sat');\n }\n\n return cssClass;\n },\n\n /**\n * Add supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'add': function(a, b) {\n return a + b;\n },\n\n /**\n * Multiply supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'multiply': function(a, b) {\n return a * b;\n },\n\n /**\n * Divide supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'divide': function(a, b) {\n return a / b;\n },\n\n /**\n * Subtract supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'subtract': function(a, b) {\n return a - b;\n },\n\n /**\n * Get css prefix in global configuration\n * @returns {string} css prefix\n */\n 'CSS_PREFIX': function() {\n return config.cssPrefix;\n },\n\n /**********\n * Default schedule template\n **********/\n\n 'milestone-tmpl': function(model) {\n return ' ' +\n common.stripTags(model.title);\n },\n\n 'milestoneTitle-tmpl': function() {\n return '마일스톤';\n },\n\n 'task-tmpl': function(model) {\n return ' ' +\n common.stripTags(model.title);\n },\n\n 'taskTitle-tmpl': function() {\n return '업무';\n },\n\n 'alldayTitle-tmpl': function() {\n return '종일';\n },\n\n 'alldayCollapseBtnTitle-tmpl': function() {\n return '∧';\n },\n\n 'allday-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'time-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'monthMoreTitleDate-tmpl': function(date) {\n return date;\n },\n\n 'monthMoreClose-tmpl': function() {\n return 'close';\n },\n\n 'monthGridHeader-tmpl': function(model) {\n return '' + model.date + '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'monthGridFooter-tmpl': function() {\n return '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'weekDayname-tmpl': function(model) {\n return '' + model.date + ' ' + model.dayName;\n },\n\n 'monthDayname-tmpl': function(model) {\n return model.label;\n },\n\n 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '+' + hiddenSchedules;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/helper.js\n// module id = 5\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_6__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}\n// module id = 6\n// module chunks = 0","module.exports = require('handlebars/runtime');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars-template-loader/runtime/index.js\n// module id = 7\n// module chunks = 0","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime')['default'];\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/runtime.js\n// module id = 8\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _handlebarsBase = require('./handlebars/base');\n\nvar base = _interopRequireWildcard(_handlebarsBase);\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\n\nvar _handlebarsSafeString = require('./handlebars/safe-string');\n\nvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\nvar _handlebarsException = require('./handlebars/exception');\n\nvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\nvar _handlebarsUtils = require('./handlebars/utils');\n\nvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\nvar _handlebarsRuntime = require('./handlebars/runtime');\n\nvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\nvar _handlebarsNoConflict = require('./handlebars/no-conflict');\n\nvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nfunction create() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = _handlebarsSafeString2['default'];\n hb.Exception = _handlebarsException2['default'];\n hb.Utils = Utils;\n hb.escapeExpression = Utils.escapeExpression;\n\n hb.VM = runtime;\n hb.template = function (spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n}\n\nvar inst = create();\ninst.create = create;\n\n_handlebarsNoConflict2['default'](inst);\n\ninst['default'] = inst;\n\nexports['default'] = inst;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NB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XR1cm4gcnVudGltZS50ZW1wbGF0ZShzcGVjLCBoYik7XG4gIH07XG5cbiAgcmV0dXJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars.runtime.js\n// module id = 9\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.HandlebarsEnvironment = HandlebarsEnvironment;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('./utils');\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _helpers = require('./helpers');\n\nvar _decorators = require('./decorators');\n\nvar _logger = require('./logger');\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar VERSION = '4.0.11';\nexports.VERSION = VERSION;\nvar COMPILER_REVISION = 7;\n\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '== 1.x.x',\n 5: '== 2.0.0-alpha.x',\n 6: '>= 2.0.0-beta.1',\n 7: '>= 4.0.0'\n};\n\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials, decorators) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n this.decorators = decorators || {};\n\n _helpers.registerDefaultHelpers(this);\n _decorators.registerDefaultDecorators(this);\n}\n\nHandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: _logger2['default'],\n log: _logger2['default'].log,\n\n registerHelper: function registerHelper(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple helpers');\n }\n _utils.extend(this.helpers, name);\n } else {\n this.helpers[name] = fn;\n }\n },\n unregisterHelper: function unregisterHelper(name) {\n delete this.helpers[name];\n },\n\n registerPartial: function registerPartial(name, partial) {\n if (_utils.toString.call(name) === objectType) {\n _utils.extend(this.partials, name);\n } else {\n if (typeof partial === 'undefined') {\n throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n }\n this.partials[name] = partial;\n }\n },\n unregisterPartial: function unregisterPartial(name) {\n delete this.partials[name];\n },\n\n registerDecorator: function registerDecorator(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple decorators');\n }\n _utils.extend(this.decorators, name);\n } else {\n this.decorators[name] = fn;\n }\n },\n unregisterDecorator: function unregisterDecorator(name) {\n delete this.decorators[name];\n }\n};\n\nvar log = _logger2['default'].log;\n\nexports.log = log;\nexports.createFrame = _utils.createFrame;\nexports.logger = _logger2['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQTRDLFNBQVM7O3lCQUMvQixhQUFhOzs7O3VCQUNFLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNuQyxVQUFVOzs7O0FBRXRCLElBQU0sT0FBTyxHQUFHLFFBQVEsQ0FBQzs7QUFDekIsSUFBTSxpQkFBaUIsR0FBRyxDQUFDLENBQUM7OztBQUU1QixJQUFNLGdCQUFnQixHQUFHO0FBQzlCLEdBQUMsRUFBRSxhQUFhO0FBQ2hCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxlQUFlO0FBQ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ICAgICB0aHJvdyBuZXcgRXhjZXB0aW9uKGBBdHRlbXB0aW5nIHRvIHJlZ2lzdGVyIGEgcGFydGlhbCBjYWxsZWQgXCIke25hbWV9XCIgYXMgdW5kZWZpbmVkYCk7XG4gICAgICB9XG4gICAgICB0aGlzLnBhcnRpYWxzW25hbWVdID0gcGFydGlhbDtcbiAgICB9XG4gIH0sXG4gIHVucmVnaXN0ZXJQYXJ0aWFsOiBmdW5jdGlvbihuYW1lKSB7XG4gICAgZGVsZXRlIHRoaXMucGFydGlhbHNbbmFtZV07XG4gIH0sXG5cbiAgcmVnaXN0ZXJEZWNvcmF0b3I6IGZ1bmN0aW9uKG5hbWUsIGZuKSB7XG4gICAgaWYgKHRvU3RyaW5nLmNhbGwobmFtZSkgPT09IG9iamVjdFR5cGUpIHtcbiAgICAgIGlmIChmbikgeyB0aHJvdyBuZXcgRXhjZXB0aW9uKCdBcmcgbm90IHN1cHBvcnRlZCB3aXRoIG11bHRpcGxlIGRlY29yYXRvcnMnKTsgfVxuICAgICAgZXh0ZW5kKHRoaXMuZGVjb3JhdG9ycywgbmFtZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuZGVjb3JhdG9yc1tuYW1lXSA9IGZuO1xuICAgIH1cbiAgfSxcbiAgdW5yZWdpc3RlckRlY29yYXRvcjogZnVuY3Rpb24obmFtZSkge1xuICAgIGRlbGV0ZSB0aGlzLmRlY29yYXRvcnNbbmFtZV07XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHtjcmVhdGVGcmFtZSwgbG9nZ2VyfTtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/base.js\n// module id = 10\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.extend = extend;\nexports.indexOf = indexOf;\nexports.escapeExpression = escapeExpression;\nexports.isEmpty = isEmpty;\nexports.createFrame = createFrame;\nexports.blockParams = blockParams;\nexports.appendContextPath = appendContextPath;\nvar escape = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`',\n '=': '='\n};\n\nvar badChars = /[&<>\"'`=]/g,\n possible = /[&<>\"'`=]/;\n\nfunction escapeChar(chr) {\n return escape[chr];\n}\n\nfunction extend(obj /* , ...source */) {\n for (var i = 1; i < arguments.length; i++) {\n for (var key in arguments[i]) {\n if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n obj[key] = arguments[i][key];\n }\n }\n }\n\n return obj;\n}\n\nvar toString = Object.prototype.toString;\n\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n/* eslint-disable func-style */\nvar isFunction = function isFunction(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\n/* istanbul ignore next */\nif (isFunction(/x/)) {\n exports.isFunction = isFunction = function (value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nexports.isFunction = isFunction;\n\n/* eslint-enable func-style */\n\n/* istanbul ignore next */\nvar isArray = Array.isArray || function (value) {\n return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n};\n\nexports.isArray = isArray;\n// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\nfunction indexOf(array, value) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n}\n\nfunction escapeExpression(string) {\n if (typeof string !== 'string') {\n // don't escape SafeStrings, since they're already safe\n if (string && string.toHTML) {\n return string.toHTML();\n } else if (string == null) {\n return '';\n } else if (!string) {\n return string + '';\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = '' + string;\n }\n\n if (!possible.test(string)) {\n return string;\n }\n return string.replace(badChars, escapeChar);\n}\n\nfunction isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction createFrame(object) {\n var frame = extend({}, object);\n frame._parent = object;\n return frame;\n}\n\nfunction blockParams(params, ids) {\n params.path = ids;\n return params;\n}\n\nfunction appendContextPath(contextPath, id) {\n return (contextPath ? contextPath + '.' : '') + id;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQzs7QUFFRixJQUFNLFFBQVEsR0FBRyxZQUFZO0lBQ3ZCLFFBQVEsR0FBRyxXQUFXLENBQUM7O0FBRTdCLFNBQVMsVUFBVSxDQUFDLEdBQUcsRUFBRTtBQUN2QixTQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztDQUNwQjs7QUFFTSxTQUFTLE1BQU0sQ0FBQyxHQUFHLG9CQUFtQjtBQUMzQyxPQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUN6QyxTQUFLLElBQUksR0FBRyxJQUFJLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBRTtBQUM1QixVQUFJLE1BQU0sQ0FBQyxTQUFTLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLEVBQUUs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19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/utils.js\n// module id = 11\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var loc = node && node.loc,\n line = undefined,\n column = undefined;\n if (loc) {\n line = loc.start.line;\n column = loc.start.column;\n\n message += ' - ' + line + ':' + column;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n /* istanbul ignore else */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, Exception);\n }\n\n try {\n if (loc) {\n this.lineNumber = line;\n\n // Work around issue under safari where we can't directly set the column value\n /* istanbul ignore next */\n if (Object.defineProperty) {\n Object.defineProperty(this, 'column', {\n value: column,\n enumerable: true\n });\n } else {\n this.column = column;\n }\n }\n } catch (nop) {\n /* Ignore if the browser is very particular */\n }\n}\n\nException.prototype = new Error();\n\nexports['default'] = Exception;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ0EsSUFBTSxVQUFVLEdBQUcsQ0FBQyxhQUFhLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxPQUFPLENBQUMsQ0FBQzs7QUFFbkcsU0FBUyxTQUFTLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRTtBQUNoQyxNQUFJLEdBQUcsR0FBRyxJQUFJLElBQUksSUFBSSxDQUFDLEdBQUc7T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cbiAgaWYgKEVycm9yLmNhcHR1cmVTdGFja1RyYWNlKSB7XG4gICAgRXJyb3IuY2FwdHVyZVN0YWNrVHJhY2UodGhpcywgRXhjZXB0aW9uKTtcbiAgfVxuXG4gIHRyeSB7XG4gICAgaWYgKGxvYykge1xuICAgICAgdGhpcy5saW5lTnVtYmVyID0gbGluZTtcblxuICAgICAgLy8gV29yayBhcm91bmQgaXNzdWUgdW5kZXIgc2FmYXJpIHdoZXJlIHdlIGNhbid0IGRpcmVjdGx5IHNldCB0aGUgY29sdW1uIHZhbHVlXG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICAgICAgaWYgKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkge1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2NvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogY29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgIH1cbiAgICB9XG4gIH0gY2F0Y2ggKG5vcCkge1xuICAgIC8qIElnbm9yZSBpZiB0aGUgYnJvd3NlciBpcyB2ZXJ5IHBhcnRpY3VsYXIgKi9cbiAgfVxufVxuXG5FeGNlcHRpb24ucHJvdG90eXBlID0gbmV3IEVycm9yKCk7XG5cbmV4cG9ydCBkZWZhdWx0IEV4Y2VwdGlvbjtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/exception.js\n// module id = 12\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultHelpers = registerDefaultHelpers;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _helpersBlockHelperMissing = require('./helpers/block-helper-missing');\n\nvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\nvar _helpersEach = require('./helpers/each');\n\nvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\nvar _helpersHelperMissing = require('./helpers/helper-missing');\n\nvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\nvar _helpersIf = require('./helpers/if');\n\nvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\nvar _helpersLog = require('./helpers/log');\n\nvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\nvar _helpersLookup = require('./helpers/lookup');\n\nvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\nvar _helpersWith = require('./helpers/with');\n\nvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\nfunction registerDefaultHelpers(instance) {\n _helpersBlockHelperMissing2['default'](instance);\n _helpersEach2['default'](instance);\n _helpersHelperMissing2['default'](instance);\n _helpersIf2['default'](instance);\n _helpersLog2['default'](instance);\n _helpersLookup2['default'](instance);\n _helpersWith2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7eUNBQXVDLGdDQUFnQzs7OzsyQkFDOUMsZ0JBQWdCOzs7O29DQUNQLDBCQUEwQjs7Ozt5QkFDckMsY0FBYzs7OzswQkFDYixlQUFlOzs7OzZCQUNaLGtCQUFrQjs7OzsyQkFDcEIsZ0JBQWdCOzs7O0FBRWxDLFNBQVMsc0JBQXNCLENBQUMsUUFBUSxFQUFFO0FBQy9DLHlDQUEyQixRQUFRLENBQUMsQ0FBQztBQUNyQywyQkFBYSxRQUFRLENBQUMsQ0FBQztBQUN2QixvQ0FBc0IsUUFBUSxDQUFDLENBQUM7QUFDaEMseUJBQVcsUUFBUSxDQUFDLENBQUM7QUFDckIsMEJBQVksUUFBUSxDQUFDLENBQUM7QUFDdEIsNkJBQWUsUUFBUSxDQUFDLENBQUM7QUFDekIsMkJBQWEsUUFBUSxDQUFDLENBQUM7Q0FDeEIiLCJmaWxlIjoiaGVscGVycy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCByZWdpc3RlckJsb2NrSGVscGVyTWlzc2luZyBmcm9tICcuL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcnO1xuaW1wb3J0IHJlZ2lzdGVyRWFjaCBmcm9tICcuL2hlbHBlcnMvZWFjaCc7XG5pbXBvcnQgcmVnaXN0ZXJIZWxwZXJNaXNzaW5nIGZyb20gJy4vaGVscGVycy9oZWxwZXItbWlzc2luZyc7XG5pbXBvcnQgcmVnaXN0ZXJJZiBmcm9tICcuL2hlbHBlcnMvaWYnO1xuaW1wb3J0IHJlZ2lzdGVyTG9nIGZyb20gJy4vaGVscGVycy9sb2cnO1xuaW1wb3J0IHJlZ2lzdGVyTG9va3VwIGZyb20gJy4vaGVscGVycy9sb29rdXAnO1xuaW1wb3J0IHJlZ2lzdGVyV2l0aCBmcm9tICcuL2hlbHBlcnMvd2l0aCc7XG5cbmV4cG9ydCBmdW5jdGlvbiByZWdpc3RlckRlZmF1bHRIZWxwZXJzKGluc3RhbmNlKSB7XG4gIHJlZ2lzdGVyQmxvY2tIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJFYWNoKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJJZihpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyTG9nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb29rdXAoaW5zdGFuY2UpO1xuICByZWdpc3RlcldpdGgoaW5zdGFuY2UpO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers.js\n// module id = 13\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('blockHelperMissing', function (context, options) {\n var inverse = options.inverse,\n fn = options.fn;\n\n if (context === true) {\n return fn(this);\n } else if (context === false || context == null) {\n return inverse(this);\n } else if (_utils.isArray(context)) {\n if (context.length > 0) {\n if (options.ids) {\n options.ids = [options.name];\n }\n\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n if (options.data && options.ids) {\n var data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n options = { data: data };\n }\n\n return fn(context, options);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBc0QsVUFBVTs7cUJBRWpELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQ3pCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUN0QixNQUFNLElBQUksZUFBUSxPQUFPLENBQUMsRUFBRTtBQUMzQixVQUFJLE9BQU8sQ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gICAgbGV0IGludmVyc2UgPSBvcHRpb25zLmludmVyc2UsXG4gICAgICAgIGZuID0gb3B0aW9ucy5mbjtcblxuICAgIGlmIChjb250ZXh0ID09PSB0cnVlKSB7XG4gICAgICByZXR1cm4gZm4odGhpcyk7XG4gICAgfSBlbHNlIGlmIChjb250ZXh0ID09PSBmYWxzZSB8fCBjb250ZXh0ID09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgaWYgKGNvbnRleHQubGVuZ3RoID4gMCkge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCwgb3B0aW9ucy5uYW1lKTtcbiAgICAgICAgb3B0aW9ucyA9IHtkYXRhOiBkYXRhfTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js\n// module id = 14\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('each', function (context, options) {\n if (!options) {\n throw new _exception2['default']('Must pass iterator to #each');\n }\n\n var fn = options.fn,\n inverse = options.inverse,\n i = 0,\n ret = '',\n data = undefined,\n contextPath = undefined;\n\n if (options.data && options.ids) {\n contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n }\n\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n if (options.data) {\n data = _utils.createFrame(options.data);\n }\n\n function execIteration(field, index, last) {\n if (data) {\n data.key = field;\n data.index = index;\n data.first = index === 0;\n data.last = !!last;\n\n if (contextPath) {\n data.contextPath = contextPath + field;\n }\n }\n\n ret = ret + fn(context[field], {\n data: data,\n blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n });\n }\n\n if (context && typeof context === 'object') {\n if (_utils.isArray(context)) {\n for (var j = context.length; i < j; i++) {\n if (i in context) {\n execIteration(i, i, i === context.length - 1);\n }\n }\n } else {\n var priorKey = undefined;\n\n for (var key in context) {\n if (context.hasOwnProperty(key)) {\n // We're running the iterations one step out of sync so we can detect\n // the last iteration without have to scan the object twice and create\n // an itermediate keys array.\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1);\n }\n priorKey = key;\n i++;\n }\n }\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1, true);\n }\n }\n }\n\n if (i === 0) {\n ret = inverse(this);\n }\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7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GNvbnRleHQgJiYgdHlwZW9mIGNvbnRleHQgPT09ICdvYmplY3QnKSB7XG4gICAgICBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBpZiAoaSBpbiBjb250ZXh0KSB7XG4gICAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvbnRleHQubGVuZ3RoIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsZXQgcHJpb3JLZXk7XG5cbiAgICAgICAgZm9yIChsZXQga2V5IGluIGNvbnRleHQpIHtcbiAgICAgICAgICBpZiAoY29udGV4dC5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgICAgICAvLyBXZSdyZSBydW5uaW5nIHRoZSBpdGVyYXRpb25zIG9uZSBzdGVwIG91dCBvZiBzeW5jIHNvIHdlIGNhbiBkZXRlY3RcbiAgICAgICAgICAgIC8vIHRoZSBsYXN0IGl0ZXJhdGlvbiB3aXRob3V0IGhhdmUgdG8gc2NhbiB0aGUgb2JqZWN0IHR3aWNlIGFuZCBjcmVhdGVcbiAgICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgICBpZiAocHJpb3JLZXkgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBwcmlvcktleSA9IGtleTtcbiAgICAgICAgICAgIGkrKztcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/each.js\n// module id = 15\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('helperMissing', function () /* [args, ]options */{\n if (arguments.length === 1) {\n // A missing field in a {{foo}} construct.\n return undefined;\n } else {\n // Someone is actually trying to call something, blow up.\n throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozt5QkFBc0IsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxlQUFlLEVBQUUsaUNBQWdDO0FBQ3ZFLFFBQUksU0FBUyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7O0FBRTFCLGFBQU8sU0FBUyxDQUFDO0tBQ2xCLE1BQU07O0FBRUwsWUFBTSwyQkFBYyxtQkFBbUIsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLENBQUM7S0FDdkY7R0FDRixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJoZWxwZXItbWlzc2luZy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBFeGNlcHRpb24gZnJvbSAnLi4vZXhjZXB0aW9uJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2hlbHBlck1pc3NpbmcnLCBmdW5jdGlvbigvKiBbYXJncywgXW9wdGlvbnMgKi8pIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgLy8gQSBtaXNzaW5nIGZpZWxkIGluIGEge3tmb299fSBjb25zdHJ1Y3QuXG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBTb21lb25lIGlzIGFjdHVhbGx5IHRyeWluZyB0byBjYWxsIHNvbWV0aGluZywgYmxvdyB1cC5cbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oJ01pc3NpbmcgaGVscGVyOiBcIicgKyBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdLm5hbWUgKyAnXCInKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/helper-missing.js\n// module id = 16\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('if', function (conditional, options) {\n if (_utils.isFunction(conditional)) {\n conditional = conditional.call(this);\n }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function (conditional, options) {\n return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.hash });\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBa0MsVUFBVTs7cUJBRTdCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLGtCQUFXLFdBQVcsQ0FBQyxFQUFFO0FBQUUsaUJBQVcsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQUU7Ozs7O0FBS3RFLFFBQUksQUFBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsV0FBVyxJQUFJLENBQUMsV0FBVyxJQUFLLGVBQVEsV0FBVyxDQUFDLEVBQUU7QUFDdkUsYUFBTyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQzlCLE1BQU07QUFDTCxhQUFPLE9BQU8sQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDekI7R0FDRixDQUFDLENBQUM7O0FBRUgsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxXQUFXLEVBQUUsT0FBTyxFQUFFO0FBQy9ELFdBQU8sUUFBUSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLFdBQVcsRUFBRSxFQUFDLEVBQUUsRUFBRSxPQUFPLENBQUMsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLENBQUMsRUFBRSxFQUF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gaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ3VubGVzcycsIGZ1bmN0aW9uKGNvbmRpdGlvbmFsLCBvcHRpb25zKSB7XG4gICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnNbJ2lmJ10uY2FsbCh0aGlzLCBjb25kaXRpb25hbCwge2ZuOiBvcHRpb25zLmludmVyc2UsIGludmVyc2U6IG9wdGlvbnMuZm4sIGhhc2g6IG9wdGlvbnMuaGFzaH0pO1xuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/if.js\n// module id = 17\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('log', function () /* message, options */{\n var args = [undefined],\n options = arguments[arguments.length - 1];\n for (var i = 0; i < arguments.length - 1; i++) {\n args.push(arguments[i]);\n }\n\n var level = 1;\n if (options.hash.level != null) {\n level = options.hash.level;\n } else if (options.data && options.data.level != null) {\n level = options.data.level;\n }\n args[0] = level;\n\n instance.log.apply(instance, args);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ2xCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM5QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQ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ldCBsZXZlbCA9IDE7XG4gICAgaWYgKG9wdGlvbnMuaGFzaC5sZXZlbCAhPSBudWxsKSB7XG4gICAgICBsZXZlbCA9IG9wdGlvbnMuaGFzaC5sZXZlbDtcbiAgICB9IGVsc2UgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmRhdGEubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmRhdGEubGV2ZWw7XG4gICAgfVxuICAgIGFyZ3NbMF0gPSBsZXZlbDtcblxuICAgIGluc3RhbmNlLmxvZyguLi4gYXJncyk7XG4gIH0pO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/log.js\n// module id = 18\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('lookup', function (obj, field) {\n return obj && obj[field];\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFO0FBQ3JELFdBQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQztHQUMxQixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJsb29rdXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihpbnN0YW5jZSkge1xuICBpbnN0YW5jZS5yZWdpc3RlckhlbHBlcignbG9va3VwJywgZnVuY3Rpb24ob2JqLCBmaWVsZCkge1xuICAgIHJldHVybiBvYmogJiYgb2JqW2ZpZWxkXTtcbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/lookup.js\n// module id = 19\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('with', function (context, options) {\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n var fn = options.fn;\n\n if (!_utils.isEmpty(context)) {\n var data = options.data;\n if (options.data && options.ids) {\n data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n }\n\n return fn(context, {\n data: data,\n blockParams: _utils.blockParams([context], [data && data.contextPath])\n });\n } else {\n return options.inverse(this);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUErRSxVQUFVOztxQkFFMUUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3pELFFBQUksa0JBQVcsT0FBTyxDQUFDLEVBQUU7QUFBRSxhQUFPLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUFFOztBQUUxRCxRQUFJLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLENBQUMsZUFBUSxPQUFPLENBQUMsRUFBRTtBQUNyQixVQUFJLElBQUksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDO0FBQ3hCLFVBQUksT0FBTyxDQUFDLElBQUksSUF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iAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGRhdGEgPSBjcmVhdGVGcmFtZShvcHRpb25zLmRhdGEpO1xuICAgICAgICBkYXRhLmNvbnRleHRQYXRoID0gYXBwZW5kQ29udGV4dFBhdGgob3B0aW9ucy5kYXRhLmNvbnRleHRQYXRoLCBvcHRpb25zLmlkc1swXSk7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBmbihjb250ZXh0LCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dF0sIFtkYXRhICYmIGRhdGEuY29udGV4dFBhdGhdKVxuICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmludmVyc2UodGhpcyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/with.js\n// module id = 20\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultDecorators = registerDefaultDecorators;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _decoratorsInline = require('./decorators/inline');\n\nvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\nfunction registerDefaultDecorators(instance) {\n _decoratorsInline2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/decorators.js\n// module id = 21\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerDecorator('inline', function (fn, props, container, options) {\n var ret = fn;\n if (!props.partials) {\n props.partials = {};\n ret = function (context, options) {\n // Create a new partials stack frame prior to exec.\n var original = container.partials;\n container.partials = _utils.extend({}, original, props.partials);\n var ret = fn(context, options);\n container.partials = original;\n return ret;\n };\n }\n\n props.partials[options.args[0]] = options.fn;\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXFCLFVBQVU7O3FCQUVoQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3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G9yaWdpbmFsID0gY29udGFpbmVyLnBhcnRpYWxzO1xuICAgICAgICBjb250YWluZXIucGFydGlhbHMgPSBleHRlbmQoe30sIG9yaWdpbmFsLCBwcm9wcy5wYXJ0aWFscyk7XG4gICAgICAgIGxldCByZXQgPSBmbihjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgICAgY29udGFpbmVyLnBhcnRpYWxzID0gb3JpZ2luYWw7XG4gICAgICAgIHJldHVybiByZXQ7XG4gICAgICB9O1xuICAgIH1cblxuICAgIHByb3BzLnBhcnRpYWxzW29wdGlvbnMuYXJnc1swXV0gPSBvcHRpb25zLmZuO1xuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/decorators/inline.js\n// module id = 22\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('./utils');\n\nvar logger = {\n methodMap: ['debug', 'info', 'warn', 'error'],\n level: 'info',\n\n // Maps a given level value to the `methodMap` indexes above.\n lookupLevel: function lookupLevel(level) {\n if (typeof level === 'string') {\n var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n if (levelMap >= 0) {\n level = levelMap;\n } else {\n level = parseInt(level, 10);\n }\n }\n\n return level;\n },\n\n // Can be overridden in the host environment\n log: function log(level) {\n level = logger.lookupLevel(level);\n\n if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n var method = logger.methodMap[level];\n if (!console[method]) {\n // eslint-disable-line no-console\n method = 'log';\n }\n\n for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n message[_key - 1] = arguments[_key];\n }\n\n console[method].apply(console, message); // eslint-disable-line no-console\n }\n }\n};\n\nexports['default'] = logger;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL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yLmxvb2t1cExldmVsKGxvZ2dlci5sZXZlbCkgPD0gbGV2ZWwpIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIGlmICghY29uc29sZVttZXRob2RdKSB7ICAgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgICAgIG1ldGhvZCA9ICdsb2cnO1xuICAgICAgfVxuICAgICAgY29uc29sZVttZXRob2RdKC4uLm1lc3NhZ2UpOyAgICAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGVcbiAgICB9XG4gIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IGxvZ2dlcjtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/logger.js\n// module id = 23\n// module chunks = 0","// Build out our basic SafeString type\n'use strict';\n\nexports.__esModule = true;\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n return '' + this.string;\n};\n\nexports['default'] = SafeString;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/safe-string.js\n// module id = 24\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.checkRevision = checkRevision;\nexports.template = template;\nexports.wrapProgram = wrapProgram;\nexports.resolvePartial = resolvePartial;\nexports.invokePartial = invokePartial;\nexports.noop = noop;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _utils = require('./utils');\n\nvar Utils = _interopRequireWildcard(_utils);\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _base = require('./base');\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = _base.COMPILER_REVISION;\n\n if (compilerRevision !== currentRevision) {\n if (compilerRevision < currentRevision) {\n var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n }\n }\n}\n\nfunction template(templateSpec, env) {\n /* istanbul ignore next */\n if (!env) {\n throw new _exception2['default']('No environment passed to template');\n }\n if (!templateSpec || !templateSpec.main) {\n throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n }\n\n templateSpec.main.decorator = templateSpec.main_d;\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as psuedo-supported APIs.\n env.VM.checkRevision(templateSpec.compiler);\n\n function invokePartialWrapper(partial, context, options) {\n if (options.hash) {\n context = Utils.extend({}, context, options.hash);\n if (options.ids) {\n options.ids[0] = true;\n }\n }\n\n partial = env.VM.resolvePartial.call(this, partial, context, options);\n var result = env.VM.invokePartial.call(this, partial, context, options);\n\n if (result == null && env.compile) {\n options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n result = options.partials[options.name](context, options);\n }\n if (result != null) {\n if (options.indent) {\n var lines = result.split('\\n');\n for (var i = 0, l = lines.length; i < l; i++) {\n if (!lines[i] && i + 1 === l) {\n break;\n }\n\n lines[i] = options.indent + lines[i];\n }\n result = lines.join('\\n');\n }\n return result;\n } else {\n throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n }\n }\n\n // Just add water\n var container = {\n strict: function strict(obj, name) {\n if (!(name in obj)) {\n throw new _exception2['default']('\"' + name + '\" not defined in ' + obj);\n }\n return obj[name];\n },\n lookup: function lookup(depths, name) {\n var len = depths.length;\n for (var i = 0; i < len; i++) {\n if (depths[i] && depths[i][name] != null) {\n return depths[i][name];\n }\n }\n },\n lambda: function lambda(current, context) {\n return typeof current === 'function' ? current.call(context) : current;\n },\n\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n\n fn: function fn(i) {\n var ret = templateSpec[i];\n ret.decorator = templateSpec[i + '_d'];\n return ret;\n },\n\n programs: [],\n program: function program(i, data, declaredBlockParams, blockParams, depths) {\n var programWrapper = this.programs[i],\n fn = this.fn(i);\n if (data || depths || blockParams || declaredBlockParams) {\n programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n }\n return programWrapper;\n },\n\n data: function data(value, depth) {\n while (value && depth--) {\n value = value._parent;\n }\n return value;\n },\n merge: function merge(param, common) {\n var obj = param || common;\n\n if (param && common && param !== common) {\n obj = Utils.extend({}, common, param);\n }\n\n return obj;\n },\n // An empty object to use as replacement for null-contexts\n nullContext: Object.seal({}),\n\n noop: env.VM.noop,\n compilerInfo: templateSpec.compiler\n };\n\n function ret(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var data = options.data;\n\n ret._setup(options);\n if (!options.partial && templateSpec.useData) {\n data = initData(context, data);\n }\n var depths = undefined,\n blockParams = templateSpec.useBlockParams ? [] : undefined;\n if (templateSpec.useDepths) {\n if (options.depths) {\n depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n } else {\n depths = [context];\n }\n }\n\n function main(context /*, options*/) {\n return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n }\n main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n return main(context, options);\n }\n ret.isTop = true;\n\n ret._setup = function (options) {\n if (!options.partial) {\n container.helpers = container.merge(options.helpers, env.helpers);\n\n if (templateSpec.usePartial) {\n container.partials = container.merge(options.partials, env.partials);\n }\n if (templateSpec.usePartial || templateSpec.useDecorators) {\n container.decorators = container.merge(options.decorators, env.decorators);\n }\n } else {\n container.helpers = options.helpers;\n container.partials = options.partials;\n container.decorators = options.decorators;\n }\n };\n\n ret._child = function (i, data, blockParams, depths) {\n if (templateSpec.useBlockParams && !blockParams) {\n throw new _exception2['default']('must pass block params');\n }\n if (templateSpec.useDepths && !depths) {\n throw new _exception2['default']('must pass parent depths');\n }\n\n return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n };\n return ret;\n}\n\nfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n function prog(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var currentDepths = depths;\n if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n currentDepths = [context].concat(depths);\n }\n\n return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n }\n\n prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\n prog.program = i;\n prog.depth = depths ? depths.length : 0;\n prog.blockParams = declaredBlockParams || 0;\n return prog;\n}\n\nfunction resolvePartial(partial, context, options) {\n if (!partial) {\n if (options.name === '@partial-block') {\n partial = options.data['partial-block'];\n } else {\n partial = options.partials[options.name];\n }\n } else if (!partial.call && !options.name) {\n // This is a dynamic partial that returned a string\n options.name = partial;\n partial = options.partials[partial];\n }\n return partial;\n}\n\nfunction invokePartial(partial, context, options) {\n // Use the current closure context to save the partial-block if this partial\n var currentPartialBlock = options.data && options.data['partial-block'];\n options.partial = true;\n if (options.ids) {\n options.data.contextPath = options.ids[0] || options.data.contextPath;\n }\n\n var partialBlock = undefined;\n if (options.fn && options.fn !== noop) {\n (function () {\n options.data = _base.createFrame(options.data);\n // Wrapper function to get access to currentPartialBlock from the closure\n var fn = options.fn;\n partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n // Restore the partial-block from the closure for the execution of the block\n // i.e. the part inside the block of the partial call.\n options.data = _base.createFrame(options.data);\n options.data['partial-block'] = currentPartialBlock;\n return fn(context, options);\n };\n if (fn.partials) {\n options.partials = Utils.extend({}, options.partials, fn.partials);\n }\n })();\n }\n\n if (partial === undefined && partialBlock) {\n partial = partialBlock;\n }\n\n if (partial === undefined) {\n throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n } else if (partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nfunction noop() {\n return '';\n}\n\nfunction initData(context, data) {\n if (!data || !('root' in data)) {\n data = data ? _base.createFrame(data) : {};\n data.root = context;\n }\n return data;\n}\n\nfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n if (fn.decorator) {\n var props = {};\n prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n Utils.extend(prog, props);\n }\n return prog;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBQzhCLFFBQVE7O0FBRWxFLFNBQVMsYUFBYSxDQUFDLFlBQVksRUFBRTtBQUMxQyxNQUFNLGdCQUFnQixHQUFHLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztNQUN2RCxlQUFlLDBCQUFvQixDQUFDOztBQUUxQyxNQUFJLGdCQUFnQixLQUFLLGVBQWUsRUFBRTtBQUN4QyxRQUFJLGdCQUFnQixHQUFHLGVBQWUsRUFBRTtBQUN0QyxVQUFNLGVBQWUsR0FBRyx1QkFBaUIsZUFBZSxDQUFDO1VBQ25ELGdCQUFnQixHQUFHLHVCQUFpQixnQkFBZ0IsQ0FBQyxDQUFDO0FBQzVELFlBQU0sMkJBQWMseUZBQXlGLEdBQ3ZHLHFEQUFxRCxHQUFHLGVBQWUsR0FBRyxtREFBbUQsR0FBRyxnQkFBZ0IsR0FBRyxJQUFJLENBQU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ydGlhbCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgdGhyb3cgbmV3IEV4Y2VwdGlvbignVGhlIHBhcnRpYWwgJyArIG9wdGlvbnMubmFtZSArICcgY291bGQgbm90IGJlIGZvdW5kJyk7XG4gIH0gZWxzZSBpZiAocGFydGlhbCBpbnN0YW5jZW9mIEZ1bmN0aW9uKSB7XG4gICAgcmV0dXJuIHBhcnRpYWwoY29udGV4dCwgb3B0aW9ucyk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIG5vb3AoKSB7IHJldHVybiAnJzsgfVxuXG5mdW5jdGlvbiBpbml0RGF0YShjb250ZXh0LCBkYXRhKSB7XG4gIGlmICghZGF0YSB8fCAhKCdyb290JyBpbiBkYXRhKSkge1xuICAgIGRhdGEgPSBkYXRhID8gY3JlYXRlRnJhbWUoZGF0YSkgOiB7fTtcbiAgICBkYXRhLnJvb3QgPSBjb250ZXh0O1xuICB9XG4gIHJldHVybiBkYXRhO1xufVxuXG5mdW5jdGlvbiBleGVjdXRlRGVjb3JhdG9ycyhmbiwgcHJvZywgY29udGFpbmVyLCBkZXB0aHMsIGRhdGEsIGJsb2NrUGFyYW1zKSB7XG4gIGlmIChmbi5kZWNvcmF0b3IpIHtcbiAgICBsZXQgcHJvcHMgPSB7fTtcbiAgICBwcm9nID0gZm4uZGVjb3JhdG9yKHByb2csIHByb3BzLCBjb250YWluZXIsIGRlcHRocyAmJiBkZXB0aHNbMF0sIGRhdGEsIGJsb2NrUGFyYW1zLCBkZXB0aHMpO1xuICAgIFV0aWxzLmV4dGVuZChwcm9nLCBwcm9wcyk7XG4gIH1cbiAgcmV0dXJuIHByb2c7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/runtime.js\n// module id = 25\n// module chunks = 0","/* global window */\n'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (Handlebars) {\n /* istanbul ignore next */\n var root = typeof global !== 'undefined' ? global : window,\n $Handlebars = root.Handlebars;\n /* istanbul ignore next */\n Handlebars.noConflict = function () {\n if (root.Handlebars === Handlebars) {\n root.Handlebars = $Handlebars;\n }\n return Handlebars;\n };\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O3FCQUNlLFVBQVMsVUFBVSxFQUFFOztBQUVsQyxNQUFJLElBQUksR0FBRyxPQUFPLE1BQU0sS0FBSyxXQUFXLEdBQUcsTUFBTSxHQUFHLE1BQU07TUFDdEQsV0FBVyxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUM7O0FBRWxDLFlBQVUsQ0FBQyxVQUFVLEdBQUcsWUFBVztBQUNqQyxRQUFJLElBQUksQ0FBQyxVQUFVLEtBQUssVUFBVSxFQUFFO0FBQ2xDLFVBQUksQ0FBQyxVQUFVLEdBQUcsV0FBVyxDQUFDO0tBQy9CO0FBQ0QsV0FBTyxVQUFVLENBQUM7R0FDbkIsQ0FBQztDQUNIIiwiZmlsZSI6Im5vLWNvbmZsaWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFsIHdpbmRvdyAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oSGFuZGxlYmFycykge1xuICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICBsZXQgcm9vdCA9IHR5cGVvZiBnbG9iYWwgIT09ICd1bmRlZmluZWQnID8gZ2xvYmFsIDogd2luZG93LFxuICAgICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/no-conflict.js\n// module id = 26\n// module chunks = 0","/**\n * @fileoverview datetime utility module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date,\n dw = require('../common/dw');\nvar util = require('tui-code-snippet');\n/* eslint-disable no-useless-escape */\nvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\nvar datetime, tokenFunc;\n\nvar memo = {\n millisecondsTo: {},\n millisecondsFrom: {}\n};\n\ntokenFunc = {\n /**\n * @param {TZDate} date date object.\n * @returns {string} YYYYMMDD\n */\n 'YYYYMMDD': function(date) {\n return [\n date.getFullYear(),\n datetime.leadingZero(date.getMonth() + 1, 2),\n datetime.leadingZero(date.getDate(), 2)\n ].join('');\n },\n /**\n * @param {TZDate} date date object\n * @returns {string} four digit year number\n */\n 'YYYY': function(date) {\n return String(date.getFullYear());\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit month number\n */\n 'MM': function(date) {\n return datetime.leadingZero(date.getMonth() + 1, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit date number\n */\n 'DD': function(date) {\n return datetime.leadingZero(date.getDate(), 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} HH:mm\n */\n 'HH:mm': function(date) {\n var hour = date.getHours(),\n minutes = date.getMinutes();\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n }\n};\n\ndatetime = {\n /**\n * The number of milliseconds one day.\n * @type {number}\n */\n MILLISECONDS_PER_DAY: 86400000,\n\n /**\n * The number of milliseconds one hour.\n * @type {number}\n */\n MILLISECONDS_PER_HOUR: 3600000,\n\n /**\n * The number of milliseconds one minutes.\n * @type {number}\n */\n MILLISECONDS_PER_MINUTES: 60000,\n\n /**\n * convert milliseconds\n * @param {string} type - type of value.\n * @param {number} value - value to convert.\n * @param {function} iteratee - iteratee function to use reduce.\n * @returns {number} converted value.\n */\n _convMilliseconds: function(type, value, iteratee) {\n var conv = [24, 60, 60, 1000],\n index = {\n day: 0,\n hour: 1,\n minutes: 2,\n seconds: 3\n };\n\n if (!(type in index) || global.isNaN(value)) {\n return false;\n }\n\n return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n },\n\n /**\n * Convert milliseconds value to other type\n * @param {type} type convert to type want to. support \"day\", \"hour\",\n * \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsTo: function(type, value) {\n var cache = memo.millisecondsTo,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m / v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert value to milliseconds\n * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsFrom: function(type, value) {\n var cache = memo.millisecondsFrom,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m * v;\n });\n\n return cache[key];\n },\n\n /**\n * Make date array from supplied paramters.\n * @param {TZDate} start Start date.\n * @param {TZDate} end End date.\n * @param {number} step The number of milliseconds to use increment.\n * @returns {array} Date array.\n */\n range: function(start, end, step) {\n var startTime = start.getTime();\n var endTime = end.getTime();\n var cursor = startTime;\n var date = dw(startTime);\n var result = [];\n\n while (cursor <= endTime && endTime > date.d.getTime()) {\n result.push(new TZDate(date.d));\n cursor = cursor + step;\n date.addDate(1);\n }\n\n return result;\n },\n\n /**\n * Clone supplied date.\n * @param {TZDate} date date object to clone.\n * @returns {TZDate} Cloned date object\n */\n clone: function(date) {\n return new TZDate(date.getTime());\n },\n\n /**\n * Compare two dates.\n *\n * when first date is latest then seconds then return -1.\n *\n * return +1 reverse, and return 0 is same.\n * @param {TZDate} d1 Date object to compare.\n * @param {TZDate} d2 Date object to compare.\n * @returns {number} result of compare\n */\n compare: function(d1, d2) {\n var _d1 = d1.getTime(),\n _d2 = d2.getTime();\n\n if (_d1 < _d2) {\n return -1;\n }\n if (_d1 > _d2) {\n return 1;\n }\n\n return 0;\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month?\n */\n isSameMonth: function(d1, d2) {\n return (d1.getFullYear() === d2.getFullYear() &&\n d1.getMonth() === d2.getMonth());\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month, date?\n */\n isSameDate: function(d1, d2) {\n var sameMonth = datetime.isSameMonth(d1, d2);\n\n return sameMonth && (d1.getDate() === d2.getDate());\n },\n\n /**\n * Check supplied parameter is valid date object.\n * @param {*} d Object to validate.\n * @returns {boolean} return true when parameter is valid date object.\n */\n isValid: function(d) {\n if (d instanceof TZDate) {\n return !window.isNaN(d.getTime());\n }\n\n return false;\n },\n\n /**\n * convert non local date to UTC date.\n * @param {TZDate} d Date to convert UTC.\n * @returns {TZDate} The UTC Date.\n */\n toUTC: function(d) {\n var l = d.getTime(),\n offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\n return new TZDate(l + offset);\n },\n\n /**\n * pad left zero characters.\n * @param {number} number number value to pad zero.\n * @param {number} length pad length to want.\n * @returns {string} padded string.\n */\n leadingZero: function(number, length) {\n var zero = '',\n i = 0;\n\n if (String(number).length > length) {\n return String(number);\n }\n\n for (; i < (length - 1); i += 1) {\n zero += '0';\n }\n\n return (zero + number).slice(length * -1);\n },\n\n /**\n * Convert date string to date object.\n *\n * Only listed below formats avaliable.\n *\n * - YYYYMMDD\n * - YYYY/MM/DD\n * - YYYY-MM-DD\n * - YYYY/MM/DD HH:mm:SS\n * - YYYY-MM-DD HH:mm:SS\n *\n * @param {string} str Formatted string.\n * @param {number} [fixMonth=-1] - number for fix month calculating.\n * @returns {(Date|boolean)} Converted Date object. when supplied str is not available then return false.\n */\n parse: function(str, fixMonth) {\n var separator,\n matches = str.match(dateFormatRx),\n ymd,\n hms;\n\n if (util.isUndefined(fixMonth)) {\n fixMonth = -1;\n }\n\n if (!matches) {\n return false;\n }\n\n if (str.length > 8) {\n // YYYY/MM/DD\n // YYYY-MM-DD\n // YYYY/MM/DD HH:mm:SS\n // YYYY-MM-DD HH:mm:SS\n separator = ~str.indexOf('/') ? '/' : '-';\n matches = matches.splice(1);\n\n ymd = matches[0].split(separator);\n hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n } else {\n // YYYYMMDD\n matches = matches[0];\n ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n hms = [0, 0, 0];\n }\n\n return new TZDate(\n Number(ymd[0]),\n Number(ymd[1]) + fixMonth,\n Number(ymd[2]),\n Number(hms[0]),\n Number(hms[1]),\n Number(hms[2])\n );\n },\n\n /**\n * Return date object from Date.\n * @param {TZDate} date date\n * @returns {object} Date object.\n */\n raw: function(date) {\n return {\n y: date.getFullYear(),\n M: date.getMonth(),\n d: date.getDate(),\n h: date.getHours(),\n m: date.getMinutes(),\n s: date.getSeconds(),\n ms: date.getMilliseconds()\n };\n },\n\n /**\n * Return 00:00:00 supplied date.\n * @param {TZDate} date date.\n * @returns {TZDate} start date.\n */\n start: function(date) {\n var d = new TZDate(date.getTime());\n d.setHours(0, 0, 0, 0);\n\n return d;\n },\n\n /**\n * Return 23:59:59 supplied date.\n * @param {TZDate} date date.\n * @returns {TZDate} end date.\n */\n end: function(date) {\n var d = new TZDate(date.getTime());\n d.setHours(23, 59, 59, 0);\n\n return d;\n },\n\n /**\n * Return formatted string as basis of supplied string.\n *\n * Supported Token Lists.\n *\n * - YYYY => 1988\n * - MM => 01 ~ 12\n * - DD => 01 ~ 31\n * - YYYYMMDD => 19880925\n * @param {TZDate} date String want to formatted.\n * @param {string} format format str.\n * @returns {string} Formatted date string.\n */\n format: function(date, format) {\n var result = format;\n util.forEachOwnProperties(tokenFunc, function(converter, token) {\n result = result.replace(token, converter(date));\n });\n\n return result;\n },\n\n /**\n * Get start date of specific month\n * @param {TZDate} date - date to get start date\n * @returns {TZDate} start date of supplied month\n */\n startDateOfMonth: function(date) {\n var startDate = new TZDate(Number(date));\n\n startDate.setDate(1);\n startDate.setHours(0, 0, 0, 0);\n\n return startDate;\n },\n\n /**\n * Get end date of specific month\n * @param {TZDate} date - date to get end date\n * @returns {TZDate} end date of supplied month\n */\n endDateOfMonth: function(date) {\n var endDate = datetime.startDateOfMonth(date);\n\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setDate(endDate.getDate() - 1);\n endDate.setHours(23, 59, 59);\n\n return endDate;\n },\n\n /**\n * Return 2-dimensional array month calendar\n *\n * dates that different month with given date are negative values\n * @param {TZDate} month - date want to calculate month calendar\n * @param {object} options - options\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n * @param {number} options.visibleWeeksCount visible weeks count\n * @param {boolean} options.workweek - only show work week\n * @param {function} [iteratee] - iteratee for customizing calendar object\n * @returns {Array.} calendar 2d array\n */\n arr2dCalendar: function(month, options, iteratee) {\n var weekArr,\n start, end,\n startIndex, endIndex,\n totalDate, afterDates,\n cursor, week,\n calendar = [],\n startDayOfWeek = options.startDayOfWeek,\n isAlways6Week = options.isAlways6Week,\n visibleWeeksCount = options.visibleWeeksCount,\n workweek = options.workweek;\n\n if (visibleWeeksCount) {\n start = new TZDate(month);\n end = dw(new TZDate(month));\n end.addDate(7 * (visibleWeeksCount - 1));\n end = end.d;\n } else {\n start = datetime.startDateOfMonth(month);\n end = datetime.endDateOfMonth(month);\n }\n\n // create day number array by startDayOfWeek number\n // 4 -> [4, 5, 6, 0, 1, 2, 3]\n // 2 -> [2, 3, 4, 5, 6, 0, 1]\n weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n startIndex = util.inArray(start.getDay(), weekArr);\n endIndex = util.inArray(end.getDay(), weekArr);\n // free dates after last date of this month\n afterDates = 7 - (endIndex + 1);\n\n if (visibleWeeksCount) {\n totalDate = 7 * visibleWeeksCount;\n } else {\n totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n }\n cursor = new TZDate(new TZDate(start).setDate(start.getDate() - startIndex));\n // iteratee all dates to render\n util.forEachArray(util.range(totalDate), function(i) {\n var date;\n\n if (!(i % 7)) {\n // group each date by week\n week = calendar[i / 7] = [];\n }\n\n date = new TZDate(cursor);\n date = iteratee ? iteratee(date) : date;\n if (!workweek || !datetime.isWeekend(date.getDay())) {\n week.push(date);\n }\n\n // add date\n cursor.setDate(cursor.getDate() + 1);\n });\n\n return calendar;\n },\n\n /**\n * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n *\n * @param {number} days - day length of week\n * @param {boolean} narrowWeekend - narrow weekend\n * @param {number} startDayOfWeek - start day of week\n * @param {boolean} workweek - only show work week\n * @returns {Array} day, left, width\n */\n getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n var limitDaysToApplyNarrowWeekend = 5;\n var uniformWidth = 100 / days;\n var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n var accumulatedWidth = 0;\n var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\n if (workweek) {\n dates = util.filter(dates, function(day) {\n return !datetime.isWeekend(day);\n });\n }\n\n narrowWeekend = workweek ? false : narrowWeekend;\n\n return util.map(dates, function(day) {\n var model;\n var width = narrowWeekend ? wideWidth : uniformWidth;\n if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n width = wideWidth / 2;\n }\n\n model = {\n day: day,\n width: width,\n left: accumulatedWidth\n };\n\n accumulatedWidth += width;\n\n return model;\n });\n },\n\n /**\n * Get that day is weekend\n * @param {number} day number\n * @returns {boolean} true if weekend or false\n */\n isWeekend: function(day) {\n return day === 0 || day === 6;\n }\n};\n\nmodule.exports = datetime;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/datetime.js\n// module id = 27\n// module chunks = 0","/**\n * @fileoverview timezone\n * @author NHN Ent. FE Development Lab \n */\n'use strict';\n\nvar MIN_TO_MS = 60 * 1000;\nvar customOffsetMs = getTimezoneOffset();\nvar timezoneOffsetCallback = null;\n\nvar getterMethods = [\n 'getDate',\n 'getDay',\n 'getFullYear',\n 'getHours',\n 'getMilliseconds',\n 'getMinutes',\n 'getMonth',\n 'getSeconds'\n];\n\nvar setterMethods = [\n 'setDate',\n 'setFullYear',\n 'setHours',\n 'setMilliseconds',\n 'setMinutes',\n 'setMonth',\n 'setSeconds'\n];\n\n/**\n * Get the timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n */\nfunction getTimezoneOffset(timestamp) {\n timestamp = timestamp || Date.now();\n\n return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n}\n\n/**\n * Get the custome timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n */\nfunction getCustomTimezoneOffset(timestamp) {\n if (timezoneOffsetCallback) {\n return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n }\n\n return customOffsetMs;\n}\n\n/**\n * Create a Date instance with multiple arguments\n * @param {Array} args - arguments\n * @returns {Date}\n */\nfunction createDateWithMultipleArgs(args) {\n var utc = Date.UTC.apply(null, args);\n\n return new Date(utc + getTimezoneOffset(utc));\n}\n\n/**\n * Create a Date instance with argument\n * @param {Date|TZDate|string|number} arg - arguments\n * @returns {Date}\n */\nfunction createDateWithSingleArg(arg) {\n var time;\n\n if (arg instanceof Date || arg instanceof TZDate) {\n time = arg.getTime();\n } else if ((typeof arg) === 'string') {\n time = Date.parse(arg);\n } else if ((typeof arg) === 'number') {\n time = arg;\n } else if (arg === null) {\n time = 0;\n } else {\n throw new Error('Invalid Type');\n }\n\n return new Date(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n}\n\n/**\n * Date Class\n */\nfunction TZDate() {\n var date;\n\n switch (arguments.length) {\n case 0:\n date = createDateWithSingleArg(Date.now());\n break;\n case 1:\n date = createDateWithSingleArg(arguments[0]);\n break;\n default:\n date = createDateWithMultipleArgs(arguments);\n }\n\n this._date = date;\n}\n\nTZDate.prototype.setTime = function(time) {\n return this._date.setTime(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n};\n\nTZDate.prototype.getTime = function() {\n var time = this._date.getTime();\n\n return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n};\n\nTZDate.prototype.valueOf = function() {\n return this.getTime();\n};\n\ngetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n return this._date[methodName].apply(this._date, arguments);\n };\n});\n\nsetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n this._date[methodName].apply(this._date, arguments);\n\n return this.getTime();\n };\n});\n\nmodule.exports = {\n Date: TZDate,\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffset: function(offset) {\n customOffsetMs = offset * MIN_TO_MS;\n },\n\n /**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n */\n setOffsetCallback: function(callback) {\n timezoneOffsetCallback = callback;\n },\n\n /**\n * (Use this method only for testing)\n * Reset system timezone and custom timezone\n */\n restoreOffset: function() {\n customOffsetMs = getTimezoneOffset();\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/timezone.js\n// module id = 28\n// module chunks = 0","/**\n * @fileoverview Wrapper module for easy calc date object\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\n\n/**\n * @constructor\n * @param {Date} date to wrapping DW class\n */\nfunction DW(date) {\n if (!(this instanceof DW)) {\n return new DW(date);\n }\n\n if (!(date instanceof TZDate)) {\n date = new TZDate(date);\n }\n\n /**\n * @type {Date}\n */\n this.d = date;\n}\n\n/**\n * Return d property when supplied object is DW. else return itself\n * @param {*} obj - object\n * @returns {Date} date\n */\nDW.prototype.safe = function(obj) {\n if (obj.constructor === DW) {\n return obj.d;\n }\n\n return obj;\n};\n\n/**\n * Clone DW object\n * @returns {DW} cloned dwrap object\n */\nDW.prototype.clone = function() {\n return new DW(new TZDate(Number(this.d)));\n};\n\n/**\n * Add days\n * @param {number} day - day to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addDate = function(day) {\n this.d.setDate(this.d.getDate() + day);\n\n return this;\n};\n\n/**\n * Add month. If month value is changed, date set to 1.\n * @param {number} m - month to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addMonth = function(m) {\n var prevMonth = this.d.getMonth();\n var prevYear = this.d.getFullYear();\n this.d.setMonth(prevMonth + m);\n\n // move to first day on the month because plus 1 month on '2017-01-31' means '2017-03-01'\n // Don't do it on different year(Because december + 1month is ok)\n if (this.d.getFullYear() === prevYear && this.d.getMonth() !== prevMonth) {\n this.d.setMonth(prevMonth + m, 1);\n }\n\n return this;\n};\n\n/**\n * Set hour, minutes, seconds, milliseconds\n * @param {number} h - hours\n * @param {number} m - minutes\n * @param {number} s - seconds\n * @param {number} ms - milliseconds\n * @returns {DW} wrapper object\n */\nDW.prototype.setHours = function(h, m, s, ms) {\n this.d.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * Whether date is between supplied dates?\n * @param {Date|DW} d1 - from date\n * @param {Date|DW} d2 - to date\n * @returns {boolean} is between?\n */\nDW.prototype.isBetween = function(d1, d2) {\n var safe = this.safe;\n\n return safe(d1) <= this.d && this.d <= safe(d2);\n};\n\nmodule.exports = DW;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/dw.js\n// module id = 29\n// module chunks = 0","/**\n * @fileoverview common/general utilities.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar aps = Array.prototype.slice;\n\nvar domutil = require('../common/domutil'),\n Collection = require('../common/collection');\n\n/**\n * Default schedule id getter for collection\n * @param {Schedule} schedule - schedule instance\n * @returns {string} schedule id\n */\nfunction scheduleIDGetter(schedule) {\n return schedule.cid();\n}\n\nmodule.exports = {\n /**\n * @param {...*} initItems - items to add newly created collection.\n * @returns {Collection} new collection for schedule models.\n */\n createScheduleCollection: function(initItems) { // eslint-disable-line\n var collection = new Collection(scheduleIDGetter);\n\n if (arguments.length) {\n collection.add.apply(collection, arguments);\n }\n\n return collection;\n },\n\n /**\n * Get ratio value.\n *\n * a : b = y : X;\n *\n * =\n *\n * X = (b * y) / a;\n * @param {number} a - a\n * @param {number} b - b\n * @param {number} y - y\n * @returns {number} ratio value\n */\n ratio: function(a, b, y) {\n // a : b = y : x;\n return (b * y) / a;\n },\n\n /**\n * Find nearest value from supplied params.\n * @param {number} value - value to find.\n * @param {array} nearest - nearest array.\n * @returns {number} nearest value\n */\n nearest: function(value, nearest) {\n var diff = util.map(nearest, function(v) {\n return Math.abs(value - v);\n }),\n nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\n return nearest[nearestIndex];\n },\n\n /**\n * pick value from object then return utility object to treat it.\n * @param {object} obj - object to search supplied path property.\n * @param {...string} paths - rest parameter that string value to search property in object.\n * @returns {object} pick object.\n */\n pick2: function(obj, paths) { // eslint-disable-line\n var result = util.pick.apply(null, arguments),\n pick;\n\n pick = {\n /**\n * @returns {*} picked value.\n */\n val: function() {\n return result;\n },\n\n /**\n * invoke supplied function in picked object.\n *\n * the callback context is set picked object.\n * @param {string|function} fn - function to invoke in picked object.\n * @returns {*} result of invoke.\n */\n then: function(fn) {\n var args;\n\n if (!result) {\n return undefined; //eslint-disable-line\n }\n\n args = aps.call(arguments, 1);\n\n if (util.isString(fn)) {\n return (util.pick(result, fn) || function() {}).apply(result, args);\n }\n\n return fn.call(result, result);\n }\n };\n\n return pick;\n },\n\n /**\n * Mixin method.\n *\n * (extend methods except property name 'mixin')\n * @param {object} from - mixin object.\n * @param {object} to - object to mixin.\n */\n mixin: function(from, to) {\n util.extend(to.prototype, from);\n },\n\n /**\n * Limit supplied value base on `minArr`, `maxArr`\n * @param {number} value - value\n * @param {array} minArr - min\n * @param {array} maxArr - max\n * @returns {number} limited value\n */\n limit: function(value, minArr, maxArr) {\n var v = Math.max.apply(null, [value].concat(minArr));\n v = Math.min.apply(null, [v].concat(maxArr));\n\n return v;\n },\n\n stripTags: function(str) {\n return str.replace(/<([^>]+)>/ig, '');\n },\n\n /**\n * Get first value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} first value in 2d array\n */\n firstIn2dArray: function(arr2d) {\n return util.pick(arr2d, '0', '0');\n },\n\n /**\n * Get last value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} last value in 2d array\n */\n lastIn2dArray: function(arr2d) {\n var lastRow = arr2d.length - 1,\n lastCol = arr2d[lastRow].length - 1;\n\n return util.pick(arr2d, lastRow, lastCol);\n },\n\n /**\n * Set 'title' attribute for all element that has exceeded content in\n * container\n * @param {string} selector - CSS selector {@see domutil#find}\n * @param {HTMLElement} container - container element\n */\n setAutoEllipsis: function(selector, container) {\n util.forEach(domutil.find(selector, container, true), function(el) {\n if (el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/common.js\n// module id = 30\n// module chunks = 0","/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n/**\n * @fileoverview Utility modules for manipulate DOM elements.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar domevent = require('./domevent');\nvar Collection = require('./collection');\nvar util = require('tui-code-snippet');\n\nvar posKey = '_pos',\n domutil;\n\nvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\n/**\n * Trim leading, trailing whitespace\n * @param {string} str - string to trim\n * @returns {string} trimmed string\n */\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n\ndomutil = {\n /**\n * Create DOM element and return it.\n * @param {string} tagName Tag name to append.\n * @param {HTMLElement} [container] HTML element will be parent to created element.\n * if not supplied, will use **document.body**\n * @param {string} [className] Design class names to appling created element.\n * @returns {HTMLElement} HTML element created.\n */\n appendHTMLElement: function(tagName, container, className) {\n var el;\n\n className = className || '';\n\n el = document.createElement(tagName);\n el.className = className;\n\n if (container) {\n container.appendChild(el);\n } else {\n document.body.appendChild(el);\n }\n\n return el;\n },\n\n /**\n * Remove element from parent node.\n * @param {HTMLElement} el - element to remove.\n */\n remove: function(el) {\n if (el && el.parentNode) {\n el.parentNode.removeChild(el);\n }\n },\n\n /**\n * Get element by id\n * @param {string} id element id attribute\n * @returns {HTMLElement} element\n */\n get: function(id) {\n return document.getElementById(id);\n },\n\n /**\n * Check supplied element is matched selector.\n * @param {HTMLElement} el - element to check\n * @param {string} selector - selector string to check\n * @returns {boolean} match?\n */\n _matcher: function(el, selector) {\n var cssClassSelector = /^\\./,\n idSelector = /^#/;\n\n if (cssClassSelector.test(selector)) {\n return domutil.hasClass(el, selector.replace('.', ''));\n }\n if (idSelector.test(selector)) {\n return el.id === selector.replace('#', '');\n }\n\n return el.nodeName.toLowerCase() === selector.toLowerCase();\n },\n\n /**\n * Find DOM element by specific selectors.\n * below three selector only supported.\n *\n * 1. css selector\n * 2. id selector\n * 3. nodeName selector\n * @param {string} selector selector\n * @param {(HTMLElement|string)} [root] You can assign root element to find\n * if not supplied, document.body will use.\n * @param {boolean|function} [multiple=false] - set true then return all\n * elements that meet condition, if set function then use it filter function.\n * @returns {HTMLElement} HTML element finded.\n */\n find: function(selector, root, multiple) {\n var result = [],\n found = false,\n isFirst = util.isUndefined(multiple) || multiple === false,\n isFilter = util.isFunction(multiple);\n\n if (util.isString(root)) {\n root = domutil.get(root);\n }\n\n root = root || window.document.body;\n\n /**\n * Function for recursive find specific node\n * @param {HTMLElement} el - element to search\n * @param {string} selector - selector\n */\n function recurse(el, selector) {\n var childNodes = el.childNodes,\n i = 0,\n len = childNodes.length,\n cursor;\n\n for (; i < len; i += 1) {\n cursor = childNodes[i];\n\n if (cursor.nodeName === '#text') {\n continue;\n }\n\n if (domutil._matcher(cursor, selector)) {\n if ((isFilter && multiple(cursor)) || !isFilter) {\n result.push(cursor);\n }\n\n if (isFirst) {\n found = true;\n break;\n }\n } else if (cursor.childNodes.length > 0) {\n recurse(cursor, selector);\n if (found) {\n break;\n }\n }\n }\n }\n\n recurse(root, selector);\n\n return isFirst ? (result[0] || null) : result;\n },\n\n /**\n * Find parent element recursively.\n * @param {HTMLElement} el - base element to start find.\n * @param {string} selector - selector string for find\n * @param {boolean} excludeEl - exclude the base element to find\n * @returns {HTMLElement} - element finded or null.\n */\n closest: function(el, selector, excludeEl) {\n var parent = el.parentNode;\n\n if (!excludeEl && domutil._matcher(el, selector)) {\n return el;\n }\n\n while (parent && parent !== window.document.body) {\n if (domutil._matcher(parent, selector)) {\n return parent;\n }\n\n parent = parent.parentNode;\n }\n\n return null;\n },\n\n /**\n * Return texts inside element.\n * @param {HTMLElement} el target element\n * @returns {string} text inside node\n */\n text: function(el) {\n var ret = '',\n i = 0,\n nodeType = el.nodeType;\n\n if (nodeType) {\n if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n // nodes that available contain other nodes\n if (typeof el.textContent === 'string') {\n return el.textContent;\n }\n\n for (el = el.firstChild; el; el = el.nextSibling) {\n ret += domutil.text(el);\n }\n } else if (nodeType === 3 || nodeType === 4) {\n // TEXT, CDATA SECTION\n return el.nodeValue;\n }\n } else {\n for (; el[i]; i += 1) {\n ret += domutil.text(el[i]);\n }\n }\n\n return ret;\n },\n\n /**\n * Set data attribute to target element\n * @param {HTMLElement} el - element to set data attribute\n * @param {string} key - key\n * @param {string|number} data - data value\n */\n setData: function(el, key, data) {\n if ('dataset' in el) {\n el.dataset[key] = data;\n\n return;\n }\n\n el.setAttribute('data-' + key, data);\n },\n\n /**\n * Get data value from data-attribute\n * @param {HTMLElement} el - target element\n * @param {string} key - key\n * @returns {string} value\n */\n getData: function(el, key) {\n if ('dataset' in el) {\n return el.dataset[key];\n }\n\n return el.getAttribute('data-' + key);\n },\n\n /**\n * Check element has specific design class name.\n * @param {HTMLElement} el target element\n * @param {string} name css class\n * @returns {boolean} return true when element has that css class name\n */\n hasClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n return el.classList.contains(name);\n }\n\n className = domutil.getClass(el);\n\n return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n },\n\n /**\n * Add design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n addClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n util.forEachArray(name.split(' '), function(value) {\n el.classList.add(value);\n });\n } else if (!domutil.hasClass(el, name)) {\n className = domutil.getClass(el);\n domutil.setClass(el, (className ? className + ' ' : '') + name);\n }\n },\n\n /**\n *\n * Overwrite design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n setClass: function(el, name) {\n if (util.isUndefined(el.className.baseVal)) {\n el.className = name;\n } else {\n el.className.baseVal = name;\n }\n },\n\n /**\n * Element에 cssClass속성을 제거하는 메서드\n * Remove specific design class from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name class name to remove\n */\n removeClass: function(el, name) {\n var removed = '';\n\n if (!util.isUndefined(el.classList)) {\n el.classList.remove(name);\n } else {\n removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n domutil.setClass(el, trim(removed));\n }\n },\n\n /**\n * Get HTML element's design classes.\n * @param {HTMLElement} el target element\n * @returns {string} element css class name\n */\n getClass: function(el) {\n if (!el || !el.className) {\n return '';\n }\n\n return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n },\n\n /**\n * Get specific CSS style value from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} style css attribute name\n * @returns {(string|null)} css style value\n */\n getStyle: function(el, style) {\n var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n css;\n\n if ((!value || value === 'auto') && document.defaultView) {\n css = document.defaultView.getComputedStyle(el, null);\n value = css ? css[style] : null;\n }\n\n return value === 'auto' ? null : value;\n },\n\n /**\n * get element's computed style values.\n *\n * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n * @param {HTMLElement} el - element want to get style.\n * @returns {object} virtual CSSStyleDeclaration object.\n */\n getComputedStyle: function(el) {\n var defaultView = document.defaultView;\n\n if (!defaultView || !defaultView.getComputedStyle) {\n return {\n getPropertyValue: function(prop) {\n /* eslint-disable no-useless-escape */\n var re = /(\\-([a-z]){1})/g;\n if (prop === 'float') {\n prop = 'styleFloat';\n }\n\n if (re.test(prop)) {\n prop = prop.replace(re, function() {\n return arguments[2].toUpperCase();\n });\n }\n\n return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n }\n };\n }\n\n return document.defaultView.getComputedStyle(el);\n },\n\n /**\n * Set position CSS style.\n * @param {HTMLElement} el target element\n * @param {number} [x=0] left pixel value.\n * @param {number} [y=0] top pixel value.\n */\n setPosition: function(el, x, y) {\n x = util.isUndefined(x) ? 0 : x;\n y = util.isUndefined(y) ? 0 : y;\n\n el[posKey] = [x, y];\n\n el.style.left = util.isNumber(x) ? (x + 'px') : x;\n el.style.top = util.isNumber(y) ? (y + 'px') : y;\n },\n\n /**\n * Set position CSS style with left, top, right, bottom\n * @param {HTMLElement} el target element\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\n setLTRB: function(el, ltrb) {\n var props = ['left', 'top', 'right', 'bottom'];\n var value;\n props.forEach(function(prop) {\n value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n });\n },\n\n /**\n * Get position from HTML element.\n * @param {HTMLElement} el target element\n * @param {boolean} [clear=false] clear cache before calculating position.\n * @returns {number[]} point\n */\n getPosition: function(el, clear) {\n var left,\n top,\n bound;\n\n if (clear) {\n el[posKey] = null;\n }\n\n if (el[posKey]) {\n return el[posKey];\n }\n\n left = 0;\n top = 0;\n\n if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n 'getBoundingClientRect' in el) {\n // 엘리먼트의 left또는 top이 'auto'일 때 수단\n bound = el.getBoundingClientRect();\n\n left = bound.left;\n top = bound.top;\n } else {\n left = parseFloat(el.style.left || 0);\n top = parseFloat(el.style.top || 0);\n }\n\n return [left, top];\n },\n\n /**\n * Return element's size\n * @param {HTMLElement} el target element\n * @returns {number[]} width, height\n */\n getSize: function(el) {\n var bound,\n width = domutil.getStyle(el, 'width'),\n height = domutil.getStyle(el, 'height');\n\n if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n util.isNull(width) || util.isNull(height)) &&\n 'getBoundingClientRect' in el) {\n bound = el.getBoundingClientRect();\n width = bound.width || el.offsetWidth;\n height = bound.height || el.offsetHeight;\n } else {\n width = parseFloat(width || 0);\n height = parseFloat(height || 0);\n }\n\n return [width, height];\n },\n\n /**\n * Fallback of getBoundingClientRect\n * @param {HTMLElement} el - element\n * @returns {object} rect\n */\n getBCRect: function(el) {\n var rect = el.getBoundingClientRect();\n\n rect = util.extend({\n width: el.offsetWidth,\n height: el.offsetHeight\n }, rect);\n\n return rect;\n },\n\n /**\n * Check specific CSS style is available.\n * @param {array} props property name to testing\n * @returns {(string|boolean)} return true when property is available\n * @example\n * var props = ['transform', '-webkit-transform'];\n * domutil.testProp(props); // 'transform'\n */\n testProp: function(props) {\n var style = document.documentElement.style,\n i = 0,\n len = props.length;\n\n for (; i < len; i += 1) {\n if (props[i] in style) {\n return props[i];\n }\n }\n\n return false;\n },\n\n /**\n * Get form data\n * @param {HTMLFormElement} formElement - form element to extract data\n * @returns {object} form data\n */\n getFormData: function(formElement) {\n var groupedByName = new Collection(function() {\n return this.length;\n }),\n noDisabledFilter = function(el) {\n return !el.disabled;\n },\n output = {};\n\n groupedByName.add.apply(\n groupedByName,\n domutil.find('input', formElement, noDisabledFilter)\n .concat(domutil.find('select', formElement, noDisabledFilter))\n .concat(domutil.find('textarea', formElement, noDisabledFilter))\n );\n\n groupedByName = groupedByName.groupBy(function(el) {\n return (el && el.getAttribute('name')) || '_other';\n });\n\n util.forEach(groupedByName, function(elements, name) {\n if (name === '_other') {\n return;\n }\n\n elements.each(function(el) {\n var nodeName = el.nodeName.toLowerCase(),\n type = el.type,\n result = [];\n\n if (type === 'radio') {\n result = [elements.find(function(el) {\n return el.checked;\n }).toArray().pop()];\n } else if (type === 'checkbox') {\n result = elements.find(function(el) {\n return el.checked;\n }).toArray();\n } else if (nodeName === 'select') {\n elements.find(function(el) {\n return !!el.childNodes.length;\n }).each(function(el) {\n result = result.concat(\n domutil.find('option', el, function(opt) {\n return opt.selected;\n })\n );\n });\n } else {\n result = elements.find(function(el) {\n return el.value !== '';\n }).toArray();\n }\n\n result = util.map(result, function(el) {\n return el.value;\n });\n\n if (!result.length) {\n result = '';\n } else if (result.length === 1) {\n result = result[0];\n }\n\n output[name] = result;\n });\n });\n\n return output;\n }\n};\n\n/*eslint-disable*/\nvar userSelectProperty = domutil.testProp([\n 'userSelect',\n 'WebkitUserSelect',\n 'OUserSelect',\n 'MozUserSelect',\n 'msUserSelect'\n]);\nvar supportSelectStart = 'onselectstart' in document;\nvar prevSelectStyle = '';\n/* eslint-enable*/\n\n/**\n * Disable browser's text selection behaviors.\n * @method\n */\ndomutil.disableTextSelection = (function() {\n if (supportSelectStart) {\n return function(dom) {\n domevent.on(dom, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function(dom) {\n var style = dom.style;\n prevSelectStyle = style[userSelectProperty];\n style[userSelectProperty] = 'none';\n };\n})();\n\n/**\n * Enable browser's text selection behaviors.\n * @method\n */\ndomutil.enableTextSelection = (function() {\n if (supportSelectStart) {\n return function() {\n domevent.off(window, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function() {\n document.documentElement.style[userSelectProperty] = prevSelectStyle;\n };\n})();\n\n/**\n * Disable browser's image drag behaviors.\n */\ndomutil.disableImageDrag = function() {\n domevent.on(window, 'dragstart', domevent.preventDefault);\n};\n\n/**\n * Enable browser's image drag behaviors.\n */\ndomutil.enableImageDrag = function() {\n domevent.off(window, 'dragstart', domevent.preventDefault);\n};\n\nmodule.exports = domutil;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/domutil.js\n// module id = 31\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Utility module for handling DOM events.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar browser = util.browser,\n eventKey = '_evt',\n DRAG = {\n START: ['touchstart', 'mousedown'],\n END: {\n mousedown: 'mouseup',\n touchstart: 'touchend',\n pointerdown: 'touchend',\n MSPointerDown: 'touchend'\n },\n MOVE: {\n mousedown: 'mousemove',\n touchstart: 'touchmove',\n pointerdown: 'touchmove',\n MSPointerDown: 'touchmove'\n }\n };\n\nvar domevent = {\n /**\n * Bind dom events.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n on: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._on(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._on(obj, type, handler, fn);\n });\n },\n\n /**\n * DOM event binding.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {String} type The name of events.\n * @param {*} fn handler function\n * @param {*} [context] context object for handler method.\n * @private\n */\n _on: function(obj, type, fn, context) {\n var id,\n handler,\n originHandler;\n\n id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\n if (obj[eventKey] && obj[eventKey][id]) {\n return;\n }\n\n handler = function(e) {\n fn.call(context || obj, e || window.event);\n };\n\n originHandler = handler;\n\n if ('addEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n handler = function(e) {\n e = e || window.event;\n if (!domevent._checkMouse(obj, e)) {\n return;\n }\n originHandler(e);\n };\n obj.addEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.addEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.addEventListener(type, handler, false);\n }\n } else if ('attachEvent' in obj) {\n obj.attachEvent('on' + type, handler);\n }\n\n obj[eventKey] = obj[eventKey] || {};\n obj[eventKey][id] = handler;\n },\n\n /**\n * Unbind DOM Event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n off: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._off(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._off(obj, type, handler, fn);\n });\n },\n\n /**\n * Unbind DOM event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {String} type The name of event to unbind.\n * @param {function()} fn Event handler that supplied when binding.\n * @param {*} context context object that supplied when binding.\n * @private\n */\n _off: function(obj, type, fn, context) {\n var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n handler = obj[eventKey] && obj[eventKey][id];\n\n if (!handler) {\n return;\n }\n\n if ('removeEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n obj.removeEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.removeEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.removeEventListener(type, handler, false);\n }\n } else if ('detachEvent' in obj) {\n try {\n obj.detachEvent('on' + type, handler);\n } catch (e) {} //eslint-disable-line\n }\n\n delete obj[eventKey][id];\n\n if (util.keys(obj[eventKey]).length) {\n return;\n }\n\n // throw exception when deleting host object's property in below IE8\n if (util.browser.msie && util.browser.version < 9) {\n obj[eventKey] = null;\n\n return;\n }\n\n delete obj[eventKey];\n },\n\n /**\n * Bind DOM event. this event will unbind after invokes.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n once: function(obj, types, fn, context) {\n var self = this;\n\n if (util.isObject(types)) {\n util.forEachOwnProperties(types, function(handler, type) {\n domevent.once(obj, type, handler, fn);\n });\n\n return;\n }\n\n /**\n * Handler for temporary usage for once implementation\n */\n function onceHandler() {\n fn.apply(context || obj, arguments);\n self._off(obj, types, onceHandler, context);\n }\n\n domevent.on(obj, types, onceHandler, context);\n },\n\n /**\n * Cancel event bubbling.\n * @param {Event} e Event object.\n */\n stopPropagation: function(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n } else {\n e.cancelBubble = true;\n }\n },\n\n /**\n * Cancel browser default actions.\n * @param {Event} e Event object.\n */\n preventDefault: function(e) {\n if (e.preventDefault) {\n e.preventDefault();\n } else {\n e.returnValue = false;\n }\n },\n\n /**\n * Syntatic sugar of stopPropagation and preventDefault\n * @param {Event} e Event object.\n */\n stop: function(e) {\n domevent.preventDefault(e);\n domevent.stopPropagation(e);\n },\n\n /**\n * Stop scroll events.\n * @param {HTMLElement} el HTML element to prevent scroll.\n */\n disableScrollPropagation: function(el) {\n domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n },\n\n /**\n * Stop all events related with click.\n * @param {HTMLElement} el HTML element to prevent all event related with click.\n */\n disableClickPropagation: function(el) {\n domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n },\n\n /**\n * Get mouse position from mouse event.\n *\n * If supplied relatveElement parameter then return relative position based on element.\n * @param {Event} mouseEvent Mouse event object\n * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n * @returns {number[]} mouse position.\n */\n getMousePosition: function(mouseEvent, relativeElement) {\n var rect;\n\n if (!relativeElement) {\n return [mouseEvent.clientX, mouseEvent.clientY];\n }\n\n rect = relativeElement.getBoundingClientRect();\n\n return [\n mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n mouseEvent.clientY - rect.top - relativeElement.clientTop\n ];\n },\n\n /**\n * Normalize mouse wheel event that different each browsers.\n * @param {MouseEvent} e Mouse wheel event.\n * @returns {Number} delta\n */\n getWheelDelta: function(e) {\n var delta = 0;\n\n if (e.wheelDelta) {\n delta = e.wheelDelta / 120;\n }\n\n if (e.detail) {\n delta = -e.detail / 3;\n }\n\n return delta;\n },\n\n /**\n * prevent firing mouseleave event when mouse entered child elements.\n * @param {HTMLElement} el HTML element\n * @param {MouseEvent} e Mouse event\n * @returns {Boolean} leave?\n * @private\n */\n _checkMouse: function(el, e) {\n var related = e.relatedTarget;\n\n if (!related) {\n return true;\n }\n\n try {\n while (related && (related !== el)) {\n related = related.parentNode;\n }\n } catch (err) {\n return false;\n }\n\n return (related !== el);\n },\n\n /**\n * Trigger specific events to html element.\n * @param {HTMLElement} obj HTMLElement\n * @param {string} type Event type name\n * @param {object} [eventData] Event data\n */\n trigger: function(obj, type, eventData) {\n var rMouseEvent = /(mouse|click)/;\n if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n eventData = domevent.mouseEvent(type);\n }\n\n if (obj.dispatchEvent) {\n obj.dispatchEvent(eventData);\n } else if (obj.fireEvent) {\n obj.fireEvent('on' + type, eventData);\n }\n },\n\n /**\n * Create virtual mouse event.\n *\n * Tested at\n *\n * - IE7 ~ IE11\n * - Chrome\n * - Firefox\n * - Safari\n * @param {string} type Event type\n * @param {object} [eventObj] Event data\n * @returns {MouseEvent} Virtual mouse event.\n */\n mouseEvent: function(type, eventObj) {\n var evt,\n e;\n\n e = util.extend({\n bubbles: true,\n cancelable: (type !== 'mousemove'),\n view: window,\n wheelDelta: 0,\n detail: 0,\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false,\n button: 0,\n relatedTarget: undefined // eslint-disable-line\n }, eventObj);\n\n // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n if (browser.msie && browser.version < 9) {\n delete e.wheelDelta;\n }\n\n if (typeof document.createEvent === 'function') {\n evt = document.createEvent('MouseEvents');\n evt.initMouseEvent(type,\n e.bubbles, e.cancelable, e.view, e.detail,\n e.screenX, e.screenY, e.clientX, e.clientY,\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, document.body.parentNode\n );\n } else if (document.createEventObject) {\n evt = document.createEventObject();\n\n util.forEach(e, function(value, propName) {\n evt[propName] = value;\n }, this);\n evt.button = {0: 1,\n 1: 4,\n 2: 2}[evt.button] || evt.button;\n }\n\n return evt;\n },\n\n /**\n * Normalize mouse event's button attributes.\n *\n * Can detect which button is clicked by this method.\n *\n * Meaning of return numbers\n *\n * - 0: primary mouse button\n * - 1: wheel button or center button\n * - 2: secondary mouse button\n * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n * @returns {number} - The value of meaning which button is clicked?\n */\n getMouseButton: function(mouseEvent) {\n var button,\n primary = '0,1,3,5,7',\n secondary = '2,6',\n wheel = '4';\n\n /* istanbul ignore else */\n if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n return mouseEvent.button;\n }\n\n button = String(mouseEvent.button);\n if (primary.indexOf(button) > -1) {\n return 0;\n }\n if (secondary.indexOf(button) > -1) {\n return 2;\n }\n if (~wheel.indexOf(button)) {\n return 1;\n }\n\n return -1;\n }\n};\n\nmodule.exports = domevent;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/domevent.js\n// module id = 32\n// module chunks = 0","/**\n * @fileoverview Common collections.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachProp = util.forEachOwnProperties,\n forEachArr = util.forEachArray,\n isFunc = util.isFunction,\n isObj = util.isObject;\n\nvar aps = Array.prototype.slice;\n\n/**\n * Common collection.\n *\n * It need function for get model's unique id.\n *\n * if the function is not supplied then it use default function {@link Collection#getItemID}\n * @constructor\n * @param {function} [getItemIDFn] function for get model's id.\n */\nfunction Collection(getItemIDFn) {\n /**\n * @type {object.}\n */\n this.items = {};\n\n /**\n * @type {number}\n */\n this.length = 0;\n\n if (isFunc(getItemIDFn)) {\n /**\n * @type {function}\n */\n this.getItemID = getItemIDFn;\n }\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Combind supplied function filters and condition.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.and = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 0;\n\n for (; i < cnt; i += 1) {\n if (!filters[i].call(null, item)) {\n return false;\n }\n }\n\n return true;\n };\n};\n\n/**\n * Combine multiple function filters with OR clause.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.or = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 1,\n result = filters[0].call(null, item);\n\n for (; i < cnt; i += 1) {\n result = (result || filters[i].call(null, item));\n }\n\n return result;\n };\n};\n\n/**\n * Merge several collections.\n *\n * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n * @param {...Collection} collections collection arguments to merge\n * @returns {Collection} merged collection.\n */\nCollection.merge = function(collections) { // eslint-disable-line\n var cols = aps.call(arguments),\n newItems = {},\n merged = new Collection(cols[0].getItemID),\n extend = util.extend;\n\n forEachArr(cols, function(col) {\n extend(newItems, col.items);\n });\n\n merged.items = newItems;\n merged.length = util.keys(merged.items).length;\n\n return merged;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * get model's unique id.\n * @param {object} item model instance.\n * @returns {number} model unique id.\n */\nCollection.prototype.getItemID = function(item) {\n return String(item._id);\n};\n\n/**\n * add models.\n * @param {...*} item models to add this collection.\n */\nCollection.prototype.add = function(item) {\n var self = this,\n id,\n ownItems;\n\n if (arguments.length > 1) {\n forEachArr(aps.call(arguments), function(o) {\n self.add(o);\n });\n\n return;\n }\n\n id = this.getItemID(item);\n ownItems = this.items;\n\n if (!ownItems[id]) {\n this.length += 1;\n }\n ownItems[id] = item;\n};\n\n/**\n * remove models.\n * @param {...(object|string|number)} id model instance or unique id to delete.\n * @returns {array} deleted model list.\n */\nCollection.prototype.remove = function(id) {\n var self = this,\n removed = [],\n ownItems,\n itemToRemove;\n\n if (!this.length) {\n return removed;\n }\n\n if (arguments.length > 1) {\n removed = util.map(aps.call(arguments), function(_id) {\n return self.remove(_id);\n });\n\n return removed;\n }\n\n ownItems = this.items;\n\n if (isObj(id)) {\n id = this.getItemID(id);\n }\n\n if (!ownItems[id]) {\n return removed;\n }\n\n this.length -= 1;\n itemToRemove = ownItems[id];\n delete ownItems[id];\n\n return itemToRemove;\n};\n\n/**\n * remove all models in collection.\n */\nCollection.prototype.clear = function() {\n this.items = {};\n this.length = 0;\n};\n\n/**\n * check collection has specific model.\n * @param {(object|string|number|function)} id model instance or id or filter function to check\n * @returns {boolean} is has model?\n */\nCollection.prototype.has = function(id) {\n var isFilter,\n has;\n\n if (!this.length) {\n return false;\n }\n\n isFilter = isFunc(id);\n has = false;\n\n if (isFilter) {\n this.each(function(item) {\n if (id(item) === true) {\n has = true;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n } else {\n id = isObj(id) ? this.getItemID(id) : id;\n has = util.isExisty(this.items[id]);\n }\n\n return has;\n};\n\n/**\n * invoke callback when model exist in collection.\n * @param {(string|number)} id model unique id.\n * @param {function} fn the callback.\n * @param {*} [context] callback context.\n */\nCollection.prototype.doWhenHas = function(id, fn, context) {\n var item = this.items[id];\n\n if (!util.isExisty(item)) {\n return;\n }\n\n fn.call(context || this, item);\n};\n\n/**\n * Search model. and return new collection.\n * @param {function} filter filter function.\n * @returns {Collection} new collection with filtered models.\n * @example\n * collection.find(function(item) {\n * return item.edited === true;\n * });\n *\n * function filter1(item) {\n * return item.edited === false;\n * }\n *\n * function filter2(item) {\n * return item.disabled === false;\n * }\n *\n * collection.find(Collection.and(filter1, filter2));\n *\n * collection.find(Collection.or(filter1, filter2));\n */\nCollection.prototype.find = function(filter) {\n var result = new Collection();\n\n if (this.hasOwnProperty('getItemID')) {\n result.getItemID = this.getItemID;\n }\n\n this.each(function(item) {\n if (filter(item) === true) {\n result.add(item);\n }\n });\n\n return result;\n};\n\n/**\n * Group element by specific key values.\n *\n * if key parameter is function then invoke it and use returned value.\n * @param {(string|number|function|array)} key key property or getter function.\n * if string[] supplied, create each collection before grouping.\n * @param {function} [groupFunc] - function that return each group's key\n * @returns {object.} grouped object\n * @example\n *\n * // pass `string`, `number`, `boolean` type value then group by property value.\n * collection.groupBy('gender'); // group by 'gender' property value.\n * collection.groupBy(50); // group by '50' property value.\n *\n * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n * collection.groupBy(function(item) {\n * if (item.score > 60) {\n * return 'pass';\n * }\n * return 'fail';\n * });\n *\n * // pass `array` with first arguments then create each collection before grouping.\n * collection.groupBy(['go', 'ruby', 'javascript']);\n * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n *\n * // can pass `function` with `array` then group each elements.\n * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n * if (item.isFast) {\n * return 'go';\n * }\n *\n * return item.name;\n * });\n */\nCollection.prototype.groupBy = function(key, groupFunc) {\n var result = {},\n collection,\n baseValue,\n keyIsFunc = isFunc(key),\n getItemIDFn = this.getItemID;\n\n if (util.isArray(key)) {\n util.forEachArray(key, function(k) {\n result[String(k)] = new Collection(getItemIDFn);\n });\n\n if (!groupFunc) {\n return result;\n }\n\n key = groupFunc;\n keyIsFunc = true;\n }\n\n this.each(function(item) {\n if (keyIsFunc) {\n baseValue = key(item);\n } else {\n baseValue = item[key];\n\n if (isFunc(baseValue)) {\n baseValue = baseValue.apply(item);\n }\n }\n\n collection = result[baseValue];\n\n if (!collection) {\n collection = result[baseValue] = new Collection(getItemIDFn);\n }\n\n collection.add(item);\n });\n\n return result;\n};\n\n/**\n * Return single item in collection.\n *\n * Returned item is inserted in this collection firstly.\n * @param {function} [filter] - function filter\n * @returns {object} item.\n */\nCollection.prototype.single = function(filter) {\n var result,\n useFilter = util.isFunction(filter);\n\n this.each(function(item) {\n if (!useFilter) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n if (filter(item)) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n }, this);\n\n return result;\n};\n\n/**\n * sort a basis of supplied compare function.\n * @param {function} compareFunction compareFunction\n * @returns {array} sorted array.\n */\nCollection.prototype.sort = function(compareFunction) {\n var arr = [];\n\n this.each(function(item) {\n arr.push(item);\n });\n\n if (isFunc(compareFunction)) {\n arr = arr.sort(compareFunction);\n }\n\n return arr;\n};\n\n/**\n * iterate each model element.\n *\n * when iteratee return false then break the loop.\n * @param {function} iteratee iteratee(item, index, items)\n * @param {*} [context] context\n */\nCollection.prototype.each = function(iteratee, context) {\n forEachProp(this.items, iteratee, context || this);\n};\n\n/**\n * return new array with collection items.\n * @returns {array} new array.\n */\nCollection.prototype.toArray = function() {\n if (!this.length) {\n return [];\n }\n\n return util.map(this.items, function(item) {\n return item;\n });\n};\n\nmodule.exports = Collection;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/collection.js\n// module id = 33\n// module chunks = 0","/**\n * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar cssPrefix = 'tui-full-calendar-',\n alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\nvar config = {\n throwError: function(msg) {\n throw new Error(msg);\n },\n\n cssPrefix: cssPrefix,\n\n classname: function(str) {\n str = str || '';\n\n if (str.charAt(0) === '.') {\n return '.' + config.cssPrefix + str.slice(1);\n }\n\n return config.cssPrefix + str;\n },\n\n allday: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n time: {\n getViewIDRegExp: timeGetViewID\n }\n};\n\nmodule.exports = config;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/config.js\n// module id = 34\n// module chunks = 0","/**\n * @fileoverview Factory module for control all other factory.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet'),\n Handlebars = require('handlebars-template-loader/runtime');\nvar dw = require('../common/dw'),\n datetime = require('../common/datetime'),\n Layout = require('../view/layout'),\n Drag = require('../handler/drag'),\n controllerFactory = require('./controller'),\n weekViewFactory = require('./weekView'),\n monthViewFactory = require('./monthView'),\n TZDate = require('../common/timezone').Date,\n config = require('../config'),\n timezone = require('../common/timezone');\n\nvar mmin = Math.min;\n\n/**\n * @typedef {object} Schedule\n * @property {string} id - unique schedule id depends on calendar id\n * @property {string} calendarId - unique calendar id\n * @property {string} title - schedule title\n * @property {string} start - start time\n * @property {string} end - end time\n * @property {boolean} isAllDay - all day schedule\n * @property {string} category - schedule type('milestone', 'task', allday', 'time')\n * @property {string} dueDateClass - task schedule type string\n * (any string value is ok and mandatory if category is 'task')\n * @property {boolean} isPending - in progress flag to do something like network job(The schedule will be transparent.)\n * @property {boolean} isFocused - focused schedule flag\n * @property {boolean} isVisible - schedule visibility flag\n * @property {boolean} isReadOnly - schedule read-only flag\n * @property {string} [color] - schedule text color\n * @property {string} [bgColor] - schedule background color\n * @property {string} [borderColor] - schedule left border color\n * @property {string} customStyle - schedule's custom css class\n * @property {any} raw - user data\n */\n\n/**\n * @typedef {object} RenderRange - rendered range\n * @property {Date} start - start date\n * @property {Date} end - end date\n */\n\n/**\n * @typedef {object} Options - calendar option object\n * @property {string} [cssPrefix] - CSS classname prefix\n * @property {string} [defaultView='week'] - default view of calendar\n * @property {string} [defaultDate=null] - default date to render calendar. if not supplied, use today.\n * @property {object} [calendarColor] - preset calendar colors\n * @property {string} [calendarColor.color] - calendar color\n * @property {string} [calendarColor.bgColor] - calendar background color\n * @property {string} [calendarColor.borderColor] - calendar left border color\n * @property {boolean} [calendarColor.render] - immediately apply colors when setCalendarColor called.\n * @property {boolean} [taskView=true] - show the milestone and task in weekly, daily view\n * @property {boolean} [scheduleView=true] - show the all day and time grid in weekly, daily view\n * @property {object} [template] - template option\n * @property {function} [template.milestoneTitle] - milestone title(at left column) template function\n * @property {function} [template.milestone] - milestone template function\n * @property {function} [template.taskTitle] - task title(at left column) template function\n * @property {function} [template.task] - task template function\n * @property {function} [template.alldayTitle] - allday title(at left column) template function\n * @property {function} [template.allday] - allday template function\n * @property {function} [template.time] - time template function\n * @property {function} [template.monthMoreTitleDate] - month more layer title template function\n * @property {function} [template.monthMoreClose] - month more layer close button template function\n * @property {function} [template.monthGridHeader] - month grid header(date, decorator, title) template function\n * @property {function} [template.monthGridFooter] - month grid footer(date, decorator, title) template function\n * @property {function} [template.monthGridHeaderExceed] - month grid header(exceed schedule count) template function\n * @property {function} [template.monthGridFooterExceed] - month grid footer(exceed schedule count) template function\n * @property {function} [template.weekDayname] - weekly dayname template function\n * @property {function} [template.monthDayname] - monthly dayname template function\n * @property {object} [week] - options for week view\n * @property {number} [week.startDayOfWeek=0] - start day of week\n * @property {Array.} [week.panelHeights] - each panel height px(Milestone, Task, Allday View Panel)\n * @property {Array.} [week.daynames] - day names in weekly and daily.\n * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {boolean} [week.narrowWeekend=false] - make weekend column narrow(1/2 width)\n * @property {boolean} [week.workweek=false] - show only 5 days except for weekend\n * @property {string} [week.alldayViewType='scroll'] - set view type of allday panel. ('scroll'|'toggle')\n * @property {object} [month] - options for month view\n * @property {Array.} [month.daynames] - day names in monthly.\n * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {number} [month.startDayOfWeek=0] - start day of week\n * @property {boolean} [month.narrowWeekend=false] - make weekend column narrow(1/2 width)\n * @property {boolean} [month.visibleWeeksCount=6] - visible week count in monthly(0 or null are same with 6)\n * @property {number} [month.visibleScheduleCount] - visible schedule count in monthly grid\n * @property {object} [month.moreLayerSize] - more layer size\n * @property {object} [month.moreLayerSize.width=null] - css width value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [month.moreLayerSize.height=null] - css height value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [month.grid] - grid's header and footer information\n * @property {object} [month.grid.header] - grid's header informatioin\n * @property {number} [month.grid.header.height=34] - grid's header height\n * @property {object} [month.grid.footer] - grid's footer informatioin\n * @property {number} [month.grid.footer.height=34] - grid's footer height\n * @property {Array.} [schedules] - array of Schedule data for add calendar after initialize.\n */\n\n/**\n * @typedef {class} CustomEvents\n * https://nhnent.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html\n */\n\n/**\n * @typedef {object} TimeCreationGuide - time creation guide instance to present selected time period\n * @property {HTMLElement} guideElement - guide element\n * @property {Object.} guideElements - map by key. It can be used in monthly view\n * @property {function} clearGuideElement - hide the creation guide\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var guide = event.guide;\n * // use guideEl$'s left, top to locate your schedule creation popup\n * var guideEl$ = guide.guideElement ?\n * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n *\n * // after that call this to hide the creation guide\n * guide.clearGuideElement();\n * });\n */\n\n/**\n * Calendar class\n * @constructor\n * @mixes CustomEvents\n * @param {HTMLElement|string} container - container element or selector id\n * @param {Options} options - calendar options\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * defaultView: 'week',\n * taskView: true,\n * scheduleView: true,\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'Milestone';\n * },\n * task: function(schedule) {\n * return '  #' + schedule.title;\n * },\n * taskTitle: function() {\n * return '';\n * },\n * allday: function(schedule) {\n * return schedule.title + ' ';\n * },\n * alldayTitle: function() {\n * return 'All Day';\n * },\n * time: function(schedule) {\n * return schedule.title + ' ' + schedule.start;\n * }\n * },\n * month: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * },\n * week: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * panelHeights: [80, 80, 120],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * }\n * });\n */\nfunction Calendar(container, options) {\n var opt;\n\n if (util.isString(container)) {\n container = document.querySelector(container);\n }\n\n /**\n * calendar options\n * @type {Options}\n */\n this.options = opt = util.extend({\n calendarColor: {},\n groupFunc: function(viewModel) {\n var model = viewModel.model;\n\n if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n return 'allday';\n }\n\n return model.category;\n },\n controller: null,\n defaultView: 'week',\n taskView: true,\n scheduleView: true,\n defaultDate: new TZDate(),\n template: util.extend({\n allday: null,\n time: null\n }, util.pick(options, 'template') || {}),\n week: util.extend({}, util.pick(options, 'week') || {}),\n month: util.extend({}, util.pick(options, 'month') || {}),\n schedules: []\n }, options);\n\n this.options.week = util.extend({\n startDayOfWeek: 0,\n workweek: false\n }, util.pick(this.options, 'week') || {});\n\n this.options.month = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible) &&\n (schedule.category === 'allday' || schedule.category === 'time');\n }\n }, util.pick(options, 'month') || {});\n\n /**\n * Calendar color map\n * @type {object}\n * @private\n */\n this.calendarColor = opt.calendarColor;\n\n /**\n * @type {HTMLElement}\n * @private\n */\n this.container = container;\n\n /**\n * Current rendered date\n * @type {Date}\n * @readonly\n */\n this.renderDate = opt.defaultDate;\n\n /**\n * start and end date of weekly, monthly\n * @type {RenderRange}\n * @readonly\n */\n this.renderRange = {\n start: null,\n end: null\n };\n\n /**\n * base controller\n * @type {Base}\n * @private\n */\n this.controller = opt.controller || this.createController();\n\n /**\n * layout view (layout manager)\n * @type {Layout}\n * @private\n */\n this.layout = new Layout(container);\n\n /**\n * global drag handler\n * @type {Drag}\n * @private\n */\n this.dragHandler = new Drag({distance: 10}, this.layout.container);\n\n /**\n * current rendered view name. ('day', 'week', 'month')\n * @type {string}\n * @default 'week'\n * @readonly\n */\n this.viewName = opt.defaultView;\n\n /**\n * previous rendered view name\n * @type {string}\n * @private\n */\n this.prevViewName = this.viewName;\n\n /**\n * Refresh method. it can be ref different functions for each view modes.\n * @type {function}\n * @private\n */\n this.refreshMethod = null;\n\n /**\n * Scroll to now. It can be called for 'week', 'day' view modes.\n * @type {function}\n * @private\n */\n this.scrollToNowMethod = null;\n\n this.initialize();\n}\n\n/**\n * Create controller instance\n * @returns {Base} controller instance\n * @private\n */\nCalendar.prototype.createController = function() {\n return controllerFactory(this.options);\n};\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Week} week view instance\n * @private\n */\nCalendar.prototype.createWeekView = function(controller, container, dragHandler, options) {\n return weekViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n};\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Month} month view instance\n * @private\n */\nCalendar.prototype.createMonthView = function(controller, container, dragHandler, options) {\n return monthViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n};\n\n/**\n * destroy calendar instance.\n */\nCalendar.prototype.destroy = function() {\n this.dragHandler.destroy();\n this.controller.off();\n this.layout.clear();\n this.layout.destroy();\n\n util.forEach(this.options.template, function(func, name) {\n if (func) {\n Handlebars.unregisterHelper(name + '-tmpl');\n }\n });\n\n this.options = this.renderDate = this.controller =\n this.layout = this.dragHandler = this.viewName = this.prevViewName =\n this.refreshMethod = this.scrollToNowMethod = null;\n};\n\n/**\n * Initialize calendar\n * @private\n */\nCalendar.prototype.initialize = function() {\n var controller = this.controller,\n viewName = this.viewName,\n opt = this.options;\n\n this.layout.controller = controller;\n\n if (opt.schedules && opt.schedules.length) {\n this.createSchedules(opt.schedules, true);\n }\n\n util.forEach(opt.template, function(func, name) {\n if (func) {\n Handlebars.registerHelper(name + '-tmpl', func);\n }\n });\n\n this.toggleView(viewName, true);\n};\n\n/**********\n * CRUD Methods\n **********/\n\n/**\n * Create schedules and render calendar.\n * @param {Array.} schedules - schedule data list\n * @param {boolean} [silent=false] - no auto render after creation when set true\n * @example\n * calendar.createSchedules([\n * {\n * id: '1',\n * calendarId: '1',\n * title: 'my schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T22:30:00+09:00',\n * end: '2018-01-19T02:30:00+09:00'\n * },\n * {\n * id: '2',\n * calendarId: '1',\n * title: 'second schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T17:30:00+09:00',\n * end: '2018-01-19T17:31:00+09:00'\n * }\n * ]);\n */\nCalendar.prototype.createSchedules = function(schedules, silent) {\n var calColor = this.calendarColor;\n\n util.forEach(schedules, function(obj) {\n var color = calColor[obj.calendarId];\n\n if (color) {\n obj.color = color.color;\n obj.bgColor = color.bgColor;\n obj.borderColor = color.borderColor;\n }\n });\n\n this.controller.createSchedules(schedules, silent);\n\n if (!silent) {\n this.render();\n }\n};\n\n/**\n * Get schedule by schedule id and calendar id.\n * @param {string} id - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {Schedule} schedule object\n * @example\n * var schedule = calendar.getSchedule(scheduleId, calendarId);\n * console.log(schedule.title);\n */\nCalendar.prototype.getSchedule = function(id, calendarId) {\n return this.controller.schedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n};\n\n/**\n * Update the schedule\n * @param {string} id - ID of schedule to update\n * @param {string} calendarId - calendarId of schedule to update\n * @param {Schedule} scheduleData - schedule data to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var startTime = event.start;\n * var endTime = event.end;\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * start: startTime,\n * end: endTime\n * });\n * });\n */\nCalendar.prototype.updateSchedule = function(id, calendarId, scheduleData) {\n var ctrl = this.controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n\n if (schedule) {\n ctrl.updateSchedule(schedule, scheduleData);\n this.render();\n }\n};\n\n/**\n * Delete schedule.\n * @fires Calendar#beforeDeleteSchedule\n * @param {string} id - ID of schedule to delete\n * @param {string} calendarId - calendarId of schedule to delete\n */\nCalendar.prototype.deleteSchedule = function(id, calendarId) {\n var ctrl = this.controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n\n if (!schedule) {\n return;\n }\n\n /**\n * Fire this event when delete a schedule.\n * @event Calendar#beforeDeleteSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to delete\n * @example\n * calendar.on('beforeDeleteSchedule', function() {\n * alert('The schedule is removed.');\n * });\n */\n this.fire('beforeDeleteSchedule', {\n schedule: schedule\n });\n\n ctrl.deleteSchedule(schedule);\n this.render();\n};\n\n/**********\n * Private Methods\n **********/\n\n/**\n * Set child view's options recursively\n * @param {View} view - parent view\n * @param {function} func - option manipulate function\n * @private\n */\nCalendar.prototype.setOptionRecurseively = function(view, func) {\n view.recursive(function(childView) {\n var opt = childView.options;\n\n if (!opt) {\n return;\n }\n\n func(opt);\n });\n};\n\n/**\n * @param {string|Date} date - date to show in calendar\n * @param {number} [startDayOfWeek=0] - start day of week\n * @param {boolean} [workweek=false] - only show work week\n * @returns {array} render range\n * @private\n */\nCalendar.prototype.getWeekDayRange = function(date, startDayOfWeek, workweek) {\n var day, start, end, range,\n msFrom = datetime.millisecondsFrom;\n\n startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n date = util.isDate(date) ? date : new TZDate(date);\n day = date.getDay();\n\n // calculate default render range first.\n start = new TZDate(\n Number(date) -\n msFrom('day', day) +\n msFrom('day', startDayOfWeek)\n );\n\n end = new TZDate(Number(start) + msFrom('day', 6));\n\n if (day < startDayOfWeek) {\n start = new TZDate(Number(start) - msFrom('day', 7));\n end = new TZDate(Number(end) - msFrom('day', 7));\n }\n\n if (workweek) {\n range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n );\n\n range = util.filter(range, function(weekday) {\n return !datetime.isWeekend(weekday.getDay());\n });\n\n start = range[0];\n end = range[range.length - 1];\n }\n\n return [start, end];\n};\n\n/**\n * Toggle schedules visibility by calendar ID\n * @param {string} calendarId - calendar id value\n * @param {boolean} toHide - set true to hide schedules\n * @param {boolean} render - set true then render after change visible property each models\n * @private\n */\nCalendar.prototype._toggleSchedulesByCalendarID = function(calendarId, toHide, render) {\n var ownSchedules = this.controller.schedules;\n\n calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\n ownSchedules.each(function(schedule) {\n if (~util.inArray(schedule.calendarId, calendarId)) {\n schedule.set('isVisible', !toHide);\n }\n });\n\n if (render) {\n this.render();\n }\n};\n\n/**********\n * General Methods\n **********/\n\n/**\n * Render the calendar.\n * @example\n * var silent = true;\n * calendar.clear();\n * calendar.createSchedules(schedules, silent);\n * calendar.render();\n */\nCalendar.prototype.render = function() {\n this.layout.render();\n};\n\n/**\n * Delete all schedules and clear view.\n * @example\n * calendar.clear();\n * calendar.createSchedules(schedules, true);\n * calendar.render();\n */\nCalendar.prototype.clear = function() {\n this.controller.clearSchedules();\n this.render();\n};\n\n/**\n * Scroll to now in daily, weekly view\n * @example\n * function onNewSchedules(schedules) {\n * calendar.createSchedules(schedules);\n * if (calendar.viewName !== 'month') {\n * calendar.scrollToNow();\n * }\n * }\n */\nCalendar.prototype.scrollToNow = function() {\n if (this.scrollToNowMethod) {\n this.scrollToNowMethod();\n }\n};\n\n/**\n * Refresh the calendar layout.\n * @example\n * window.addEventListener('resize', function() {\n * calendar.refresh();\n * });\n */\nCalendar.prototype.refresh = function() {\n if (this.refreshMethod) {\n this.refreshMethod();\n }\n\n this.render();\n};\n\n/**\n * Refresh child views\n * @param {string} [viewName] - the name of view to render. if not supplied then refresh all.\n * @private\n */\nCalendar.prototype.refreshChildView = function(viewName) {\n if (!viewName) {\n this.render();\n\n return;\n }\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n this.layout.children.items[viewName].render();\n};\n\n/**\n * Move to today.\n * @example\n * function onClickTodayBtn() {\n * calendar.today();\n * }\n */\nCalendar.prototype.today = function() {\n this.renderDate = new TZDate();\n\n this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n this.move();\n this.render();\n};\n\n/**\n * Move the calendar amount of offset value\n * @param {number} offset - offset value.\n * @private\n * @example\n * // move previous week when \"week\" view.\n * // move previous month when \"month\" view.\n * calendar.move(-1);\n */\nCalendar.prototype.move = function(offset) {\n var renderDate = dw(this.renderDate),\n viewName = this.viewName,\n view = this.getCurrentView(),\n recursiveSet = this.setOptionRecurseively,\n startDate, endDate, tempDate,\n startDayOfWeek, visibleWeeksCount, workweek, datetimeOptions;\n\n offset = util.isExisty(offset) ? offset : 0;\n\n if (viewName === 'month') {\n startDayOfWeek = util.pick(this.options, 'month', 'startDayOfWeek') || 0;\n visibleWeeksCount = mmin(util.pick(this.options, 'month', 'visibleWeeksCount') || 0, 6);\n workweek = util.pick(this.options, 'month', 'workweek') || false;\n\n if (visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n\n renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\n recursiveSet(view, function(opt) {\n opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM-DD');\n });\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: true,\n workweek: workweek\n };\n\n renderDate.addMonth(offset);\n tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\n recursiveSet(view, function(opt) {\n opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM');\n });\n }\n\n startDate = tempDate[0][0];\n endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n } else if (viewName === 'week') {\n renderDate.addDate(offset * 7);\n startDayOfWeek = util.pick(this.options, 'week', 'startDayOfWeek') || 0;\n workweek = util.pick(this.options, 'week', 'workweek') || false;\n tempDate = this.getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\n startDate = tempDate[0];\n endDate = tempDate[1];\n\n recursiveSet(view, function(opt) {\n opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n });\n } else if (viewName === 'day') {\n renderDate.addDate(offset);\n startDate = endDate = renderDate.d;\n\n recursiveSet(view, function(opt) {\n opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n });\n }\n\n this.renderDate = renderDate.d;\n this.renderRange = {\n start: startDate,\n end: endDate\n };\n};\n\n/**\n * Move to specific date\n * @param {(Date|string)} date - date to move\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.viewName === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.toggleView('day', true);\n * }\n * });\n */\nCalendar.prototype.setDate = function(date) {\n if (util.isString(date)) {\n date = datetime.parse(date);\n }\n\n this.renderDate = new TZDate(Number(date));\n this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n this.move(0);\n this.render();\n};\n\n/**\n * Move the calendar forward a day, a week, a month\n * @example\n * function moveToNextOrPrevRange(val) {\n calendar.clear();\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.next = function() {\n this.move(1);\n this.render();\n};\n\n/**\n * Move the calendar backward a day, a week, a month\n * @example\n * function moveToNextOrPrevRange(val) {\n calendar.clear();\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.prev = function() {\n this.move(-1);\n this.render();\n};\n\n/**\n * Return current rendered view.\n * @returns {View} current view instance\n * @private\n */\nCalendar.prototype.getCurrentView = function() {\n var viewName = this.viewName;\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n return util.pick(this.layout.children.items, viewName);\n};\n\n/**\n * Change calendar's schedule color with option\n * @param {string} calendarId - calendar ID\n * @param {object} option - color data object\n * @param {string} option.color - text color of schedule element\n * @param {string} option.bgColor - bg color of schedule element\n * @param {string} option.borderColor - border color of schedule element\n * @param {boolean} [option.render=true] - set false then does not auto render.\n * @example\n * calendar.setCalendarColor('1', {\n * color: '#e8e8e8',\n * bgColor: '#585858',\n * render: false\n * });\n * calendar.setCalendarColor('2', {\n * color: '#282828',\n * bgColor: '#dc9656',\n * render: false\n * });\n * calendar.setCalendarColor('3', {\n * color: '#a16946',\n * bgColor: '#ab4642',\n * render: true\n * });\n */\nCalendar.prototype.setCalendarColor = function(calendarId, option) {\n var calColor = this.calendarColor,\n ownSchedules = this.controller.schedules,\n ownColor = calColor[calendarId];\n\n if (!util.isObject(option)) {\n config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n }\n\n ownColor = calColor[calendarId] = util.extend({\n color: '#000',\n bgColor: '#a1b56c',\n borderColor: '#a1b56c',\n render: true\n }, option);\n\n ownSchedules.each(function(model) {\n if (model.calendarId !== calendarId) {\n return;\n }\n\n model.color = ownColor.color;\n model.bgColor = ownColor.bgColor;\n model.borderColor = ownColor.borderColor;\n });\n\n if (ownColor.render) {\n this.render();\n }\n};\n\n/**\n * Show schedules visibility by calendar ID\n * @param {string|string[]} calendarId - calendar id value\n * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n * @private\n */\nCalendar.prototype.showSchedulesByCalendarID = function(calendarId, render) {\n render = util.isExisty(render) ? render : true;\n this._toggleSchedulesByCalendarID(calendarId, false, render);\n};\n\n/**\n * Hide schedules visibility by calendar ID\n * @param {string|string[]} calendarId - calendar id value\n * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n * @private\n */\nCalendar.prototype.hideSchedulesByCalendarID = function(calendarId, render) {\n render = util.isExisty(render) ? render : true;\n this._toggleSchedulesByCalendarID(calendarId, true, render);\n};\n\n/**********\n * Custom Events\n **********/\n\n/**\n * 각 뷰의 클릭 핸들러와 사용자 클릭 이벤트 핸들러를 잇기 위한 브릿지 개념의 이벤트 핸들러\n * @fires Calendar#clickSchedule\n * @param {object} clickScheduleData - 'clickSchedule' 핸들러의 이벤트 데이터\n * @private\n */\nCalendar.prototype._onClick = function(clickScheduleData) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent\n * @example\n * calendar.on('clickSchedule', function(event) {\n * var schedule = event.schedule;\n *\n * if (lastClickSchedule) {\n * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n * isFocused: false\n * });\n * }\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * isFocused: true\n * });\n *\n * lastClickSchedule = schedule;\n * // open detail view\n * });\n */\n this.fire('clickSchedule', clickScheduleData);\n};\n\n/**\n * dayname 클릭 이벤트 핸들러\n * @fires Calendar#clickDayname\n * @param {object} clickScheduleData - 'clickDayname' 핸들러의 이벤트 데이터\n * @private\n */\nCalendar.prototype._onClickDayname = function(clickScheduleData) {\n /**\n * Fire this event when click a day name in weekly.\n * @event Calendar#clickDayname\n * @type {object}\n * @property {string} date - date string by format 'YYYY-MM-DD'\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.viewName === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.toggleView('day', true);\n * }\n * });\n */\n this.fire('clickDayname', clickScheduleData);\n};\n\n/**\n * @fires {Calendar#beforeCreateSchedule}\n * @param {object} createScheduleData - select schedule data from allday, time\n * @private\n */\nCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n /**\n * Fire this event when select time period in daily, weekly, monthly.\n * @event Calendar#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - allday schedule\n * @property {Date} start - selected start time\n * @property {Date} end - selected end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name like 'click', 'dblclick'\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var startTime = event.start;\n * var endTime = event.end;\n * var isAllDay = event.isAllDay;\n * var guide = event.guide;\n * var triggerEventName = event.triggerEventName;\n * var schedule;\n *\n * if (triggerEventName === 'click') {\n * // open writing simple schedule popup\n * schedule = {...};\n * } else if (triggerEventName === 'dblclick') {\n * // open writing detail schedule popup\n * schedule = {...};\n * }\n *\n * calendar.createSchedules([schedule]);\n * });\n */\n this.fire('beforeCreateSchedule', createScheduleData);\n};\n\n/**\n * @fires Calendar#beforeUpdateSchedule\n * @param {object} updateScheduleData - update schedule data\n * @private\n */\nCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n /**\n * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n * @event Calendar#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var startTime = event.start;\n * var endTime = event.end;\n *\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * start: startTime,\n * end: endTime\n * });\n * });\n */\n this.fire('beforeUpdateSchedule', updateScheduleData);\n};\n\n/**\n * @fires Calendar#resizePanel\n * @param {object} resizeScheduleData - resize schedule data object\n * @private\n */\nCalendar.prototype._onResizePanel = function(resizeScheduleData) {\n /**\n * Fire this event when resize view panels(milestone, task, allday).\n * @event Calendar#resizePanel\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n * @example\n * calendar.on('resizePanel', function(layoutData) {\n * console.log(layoutData);\n * // do something to resize your UI if necessary.\n * });\n */\n this.fire('resizePanel', resizeScheduleData);\n};\n\n/**\n * 캘린더 팩토리 클래스와 주뷰, 월뷰의 이벤트 연결을 토글한다\n * @param {boolean} isAttach - true면 이벤트 연결함.\n * @param {Week|Month} view - 주뷰 또는 월뷰\n * @private\n */\nCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n var self = this,\n handler = view.handler,\n isMonthView = view.viewName === 'month',\n method = isAttach ? 'on' : 'off';\n\n util.forEach(handler.click, function(clickHandler) {\n clickHandler[method]('clickSchedule', self._onClick, self);\n });\n\n util.forEach(handler.dayname, function(clickHandler) {\n clickHandler[method]('clickDayname', self._onClickDayname, self);\n });\n\n util.forEach(handler.creation, function(creationHandler) {\n creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n });\n\n util.forEach(handler.move, function(moveHandler) {\n moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n util.forEach(handler.resize, function(resizeHandler) {\n resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n if (!isMonthView) {\n view.vLayout[method]('resize', self._onResizePanel, self);\n }\n};\n\n/**\n * Toggle current view\n * @param {string} newViewName - new view name to render\n * @param {boolean} force - force render despite of current view and new view are equal\n * @example\n * // daily view\n * calendar.toggleView('day', true);\n *\n * // weekly view\n * calendar.toggleView('week', true);\n *\n * // monthly view(default 6 weeks view)\n * calendar.options.month.visibleWeeksCount = 6; // or null\n * calendar.toggleView('month', true);\n *\n * // 2 weeks monthly view\n * calendar.options.month.visibleWeeksCount = 2;\n * calendar.toggleView('month', true);\n *\n * // 3 weeks monthly view\n * calendar.options.month.visibleWeeksCount = 3;\n * calendar.toggleView('month', true);\n *\n * // narrow weekend\n * calendar.options.month.narrowWeekend = true;\n * calendar.options.week.narrowWeekend = true;\n * calendar.toggleView(calendar.viewName, true);\n *\n * // change start day of week(from monday)\n * calendar.options.month.startDayOfWeek = 1;\n * calendar.options.week.startDayOfWeek = 1;\n * calendar.toggleView(calendar.viewName, true);\n */\nCalendar.prototype.toggleView = function(newViewName, force) {\n var self = this,\n layout = this.layout,\n controller = this.controller,\n dragHandler = this.dragHandler,\n options = this.options,\n viewName = this.viewName,\n created;\n\n if (!force && viewName === newViewName) {\n return;\n }\n\n this._setViewName(newViewName);\n\n // convert day to week\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n if (newViewName === 'day') {\n newViewName = 'week';\n }\n layout.children.doWhenHas(viewName, function(view) {\n self._toggleViewSchedule(false, view);\n });\n\n layout.clear();\n\n if (newViewName === 'month') {\n created = this.createMonthView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n } else if (newViewName === 'week' || newViewName === 'day') {\n created = this.createWeekView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n }\n\n layout.addChild(created.view);\n\n layout.children.doWhenHas(newViewName, function(view) {\n self._toggleViewSchedule(true, view);\n });\n\n this.refreshMethod = created.refresh;\n this.scrollToNowMethod = created.scrollToNow;\n\n this.move();\n this.render();\n};\n\n/**\n * Toggle task view('Milestone', 'Task') panel\n * @param {boolean} enabled - use task view\n * @example\n * // There is no milestone, task, so hide those view panel\n * calendar.toggleTaskView(false);\n *\n * // There are some milestone, task, so show those view panel.\n * calendar.toggleTaskView(true);\n */\nCalendar.prototype.toggleTaskView = function(enabled) {\n var viewName = this.viewName,\n options = this.options;\n\n options.taskView = enabled;\n\n this.toggleView(viewName, true);\n};\n\n/**\n * Toggle schedule view('AllDay', TimeGrid') panel\n * @param {boolean} enabled - use task view\n * @example\n * // hide those view panel to show only 'Milestone', 'Task'\n * calendar.toggleScheduleView(false);\n *\n * // show those view panel.\n * calendar.toggleScheduleView(true);\n */\nCalendar.prototype.toggleScheduleView = function(enabled) {\n var viewName = this.viewName,\n options = this.options;\n\n options.scheduleView = enabled;\n\n this.toggleView(viewName, true);\n};\n\n/**\n * Set current view name\n * @param {string} viewName - new view name to render\n * @private\n */\nCalendar.prototype._setViewName = function(viewName) {\n this.prevViewName = this.viewName;\n this.viewName = viewName;\n};\n\n/**\n * Get schedule by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {HTMLElement} schedule element if found or null\n * @example\n * var element = calendar.getElement(scheduleId, calendarId);\n * console.log(element);\n */\nCalendar.prototype.getElement = function(scheduleId, calendarId) {\n var schedule = this.getSchedule(scheduleId, calendarId);\n if (schedule) {\n return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n }\n\n return null;\n};\n\n/**\n * Set timezone offset\n * @param {number} offset - offset (min)\n * @static\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n */\nCalendar.setTimezoneOffset = function(offset) {\n timezone.setOffset(offset);\n};\n\n/**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n * @static\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n * });\n */\nCalendar.setTimezoneOffsetCallback = function(callback) {\n timezone.setOffsetCallback(callback);\n};\n\nutil.CustomEvents.mixin(Calendar);\n\nmodule.exports = Calendar;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/calendar.js\n// module id = 35\n// module chunks = 0","/**\n * @fileoverview Layout view. wrap all view containers at outside.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\nvar View = require('./view');\n\n/**\n * Layout view for toggle each child view. It will controlled via navigation UI.\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container Container element to use layout view.\n */\nfunction Layout(container) {\n container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * @type {Collection} Child view collection.\n */\n this.children = new Collection(function(childView) {\n return childView.viewName;\n });\n /* eslint-enable*/\n}\n\nutil.inherit(Layout, View);\n\n/**\n * Clear child views.\n */\nLayout.prototype.clear = function() {\n this.children.each(function(childView) {\n childView.destroy();\n });\n\n this.children.clear();\n this.container.innerHTML = '';\n};\n\n/**\n * Remove child view.\n * @override\n * @param {(string|View)} viewName - name of view or instance.\n */\nLayout.prototype.removeChild = function(viewName) {\n this.children.remove(viewName);\n};\n\n/**\n * Toggle child views.\n * @param {string} viewName - Name of view.\n */\nLayout.prototype.toggleChildView = function(viewName) {\n var container,\n prefix = ['add', 'remove'],\n flag;\n\n this.children.each(function(childView) {\n container = childView.container;\n flag = Number(childView.viewName === viewName);\n domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n });\n};\n\nmodule.exports = Layout;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/layout.js\n// module id = 36\n// module chunks = 0","/**\n * @fileoverview The base class of views.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\n\n/**\n * Base class of views.\n *\n * All views create own container element inside supplied container element.\n * @constructor\n * @param {HTMLElement} container Default container element for view.\n * you can use this element for this.container syntax.\n */\nfunction View(container) {\n var id = util.stamp(this);\n\n if (util.isUndefined(container)) {\n container = domutil.appendHTMLElement('div');\n }\n\n domutil.addClass(container, this.cssprefix(id));\n\n /**\n * unique id\n * @type {number}\n */\n this.id = id;\n\n /**\n * base element of view.\n * @type {HTMLDIVElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * child views.\n * @type {Collection}\n */\n this.children = new Collection(function(view) {\n return util.stamp(view);\n });\n /* eslint-enable*/\n\n /**\n * parent view instance.\n * @type {View}\n */\n this.parent = null;\n}\n\n/**\n * CSS classname prefix\n * @type {string}\n */\nView.prototype.cssPrefix = 'tui-view-';\n\n/**\n * Add child views.\n * @param {View} view The view instance to add.\n * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n */\nView.prototype.addChild = function(view, fn) {\n if (fn) {\n fn.call(view, this);\n }\n // add parent view\n view.parent = this;\n\n this.children.add(view);\n};\n\n/**\n * Remove added child view.\n * @param {(number|View)} id View id or instance itself to remove.\n * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n */\nView.prototype.removeChild = function(id, fn) {\n var view = util.isNumber(id) ? this.children.items[id] : id;\n\n id = util.stamp(view);\n\n if (fn) {\n fn.call(view, this);\n }\n\n this.children.remove(id);\n};\n\n/**\n * Render view recursively.\n */\nView.prototype.render = function() {\n this.children.each(function(childView) {\n childView.render();\n });\n};\n\n/**\n * Invoke function recursively.\n * @param {function} fn - function to invoke child view recursively\n * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n */\nView.prototype.recursive = function(fn, skipThis) {\n if (!util.isFunction(fn)) {\n return;\n }\n\n if (!skipThis) {\n fn(this);\n }\n\n this.children.each(function(childView) {\n childView.recursive(fn);\n });\n};\n\n/**\n * Resize view recursively to parent.\n */\nView.prototype.resize = function() {\n var args = Array.prototype.slice.call(arguments),\n parent = this.parent;\n\n while (parent) {\n if (util.isFunction(parent._onResize)) {\n parent._onResize.apply(parent, args);\n }\n\n parent = parent.parent;\n }\n};\n\n/**\n * Invoking method before destroying.\n */\nView.prototype._beforeDestroy = function() {};\n\n/**\n * Clear properties\n */\nView.prototype._destroy = function() {\n this._beforeDestroy();\n this.children.clear();\n this.container.innerHTML = '';\n\n this.id = this.parent = this.children = this.container = null;\n};\n\n/*eslint-disable*/\n/**\n * Destroy child view recursively.\n */\nView.prototype.destroy = function(isChildView) {\n this.children.each(function(childView) {\n childView.destroy(true);\n childView._destroy();\n });\n\n if (isChildView) {\n return;\n }\n\n this._destroy();\n};\n/* eslint-enable*/\n\n/**\n * Calculate view's container element bound.\n * @returns {object} The bound of container element.\n */\nView.prototype.getViewBound = function() {\n var container = this.container,\n position = domutil.getPosition(container),\n size = domutil.getSize(container);\n\n return {\n x: position[0],\n y: position[1],\n width: size[0],\n height: size[1]\n };\n};\n\n/**\n * Return view default CSS prefix\n * @param {string} [className] - if supplied then return prefix added class name\n * @returns {string} CSS prefix value\n */\nView.prototype.cssprefix = function(className) {\n return this.cssPrefix + (className || '');\n};\n\nutil.CustomEvents.mixin(View);\n\nmodule.exports = View;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/view.js\n// module id = 37\n// module chunks = 0","/**\n * @fileoverview Drag handler for calendar.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar domevent = require('../common/domevent');\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {object} options - options for drag handler\n * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n * @param {HTMLElement} container element to watching drag interaction.\n */\nfunction Drag(options, container) {\n domevent.on(container, 'mousedown', this._onMouseDown, this);\n\n this.options = util.extend({\n distance: 10,\n exclude: null\n }, options);\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * Flag for represent current dragging session has been cancelled for exclude option.\n * @type {boolean}\n */\n this._cancelled = false;\n\n /**\n * @type {boolean}\n */\n this._isMoved = false;\n\n /**\n * dragging distance in pixel between mousedown and firing dragStart events\n * @type {number}\n */\n this._distance = 0;\n\n /**\n * @type {boolean}\n */\n this._dragStartFired = false;\n\n /**\n * @type {object}\n */\n this._dragStartEventData = null;\n}\n\n/**\n * Destroy method.\n */\nDrag.prototype.destroy = function() {\n domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n this._isMoved = null;\n this.container = null;\n};\n\n/**\n * Clear cache data for single dragging session.\n */\nDrag.prototype._clearData = function() {\n this._cancelled = false;\n this._distance = 0;\n this._isMoved = false;\n this._dragStartFired = false;\n this._dragStartEventData = null;\n};\n\n/**\n * Toggle events for mouse dragging.\n * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n */\nDrag.prototype._toggleDragEvent = function(toBind) {\n var container = this.container,\n domMethod,\n method;\n\n if (toBind) {\n domMethod = 'on';\n method = 'disable';\n } else {\n domMethod = 'off';\n method = 'enable';\n }\n\n domutil[method + 'TextSelection'](container);\n domutil[method + 'ImageDrag'](container);\n domevent[domMethod](global.document, {\n mousemove: this._onMouseMove,\n mouseup: this._onMouseUp\n }, this);\n};\n\n/**\n * Normalize mouse event object.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {object} normalized mouse event data.\n */\nDrag.prototype._getEventData = function(mouseEvent) {\n return {\n target: mouseEvent.target || mouseEvent.srcElement,\n originEvent: mouseEvent\n };\n};\n\n/**\n * MouseDown DOM event handler.\n * @param {MouseEvent} mouseDownEvent MouseDown event object.\n */\nDrag.prototype._onMouseDown = function(mouseDownEvent) {\n var opt = this.options,\n target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n if (opt.exclude && opt.exclude(target)) {\n this._cancelled = true;\n\n return;\n }\n\n this._clearData();\n this._dragStartEventData = this._getEventData(mouseDownEvent);\n\n this._toggleDragEvent(true);\n};\n\n/**\n * MouseMove DOM event handler.\n * @emits Drag#drag\n * @emits Drag#dragStart\n * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n */\nDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n var distance;\n\n if (this._cancelled) {\n this._clearData();\n\n return;\n }\n\n distance = this.options.distance;\n // prevent automatic scrolling.\n domevent.preventDefault(mouseMoveEvent);\n\n if (this._distance < distance) {\n this._distance += 1;\n\n return;\n }\n this._isMoved = true;\n\n if (!this._dragStartFired) {\n this._dragStartFired = true;\n\n /**\n * Drag start events. cancelable.\n * @event Drag#dragStart\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n if (!this.invoke('dragStart', this._dragStartEventData)) {\n this._toggleDragEvent(false);\n this._clearData();\n\n return;\n }\n }\n\n /**\n * CalEvents while dragging.\n * @event Drag#drag\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('drag', this._getEventData(mouseMoveEvent));\n};\n\n/**\n * MouseUp DOM event handler.\n * @param {MouseEvent} mouseUpEvent MouseUp event object.\n * @emits Drag#dragEnd\n * @emits Drag#click\n */\nDrag.prototype._onMouseUp = function(mouseUpEvent) {\n if (this._cancelled) {\n return;\n }\n\n this._toggleDragEvent(false);\n\n // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n if (this._isMoved) {\n this._isMoved = false;\n /**\n * Drag end events.\n * @event Drag#dragEnd\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('dragEnd', this._getEventData(mouseUpEvent));\n } else {\n /**\n * Click events.\n * @event Drag#click\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('click', this._getEventData(mouseUpEvent));\n }\n\n this._clearData();\n};\n\nutil.CustomEvents.mixin(Drag);\n\nmodule.exports = Drag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/drag.js\n// module id = 38\n// module chunks = 0","/**\n * @fileoverview Controller factory module.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Base = require('../controller/base'),\n Core = require('../controller/viewMixin/core'),\n Week = require('../controller/viewMixin/week'),\n Month = require('../controller/viewMixin/month'),\n datetime = require('../common/datetime');\n\n/**\n * Mixin object. create object property to target and mix to that\n * @param {object} from - source object\n * @param {object} to - target object\n * @param {string} propertyName - property name\n */\nfunction mixin(from, to, propertyName) {\n var obj = to[propertyName] = {};\n\n util.forEach(from, function(method, methodName) {\n obj[methodName] = util.bind(method, to);\n });\n}\n\n/**\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @returns {Base} The controller instance.\n */\nmodule.exports = function(options) {\n var controller = new Base(options),\n originQuery;\n\n mixin(Core, controller, 'Core');\n mixin(Week, controller, 'Week');\n mixin(Month, controller, 'Month');\n\n /**********\n * Override Week#findByDateRange for support schedules that category is 'miles\n * tone', 'task'.\n **********/\n\n originQuery = controller.Week.findByDateRange;\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @override\n * @param {Date} start - start date to find schedules\n * @param {Date} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @returns {object} view model data\n */\n function findByDateRange(start, end, andFilters) {\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ymdRange = util.map(dateRange, function(d) {\n return datetime.format(d, 'YYYY-MM-DD');\n }),\n viewModels;\n\n andFilters = andFilters || [];\n viewModels = originQuery(start, end, andFilters);\n\n util.forEach(viewModels, function(coll, key, obj) {\n var groupedByYMD;\n\n // Change view model\n if (key === 'milestone') {\n groupedByYMD = coll.groupBy(ymdRange, function(viewModel) {\n return datetime.format(viewModel.model.end, 'YYYY-MM-DD');\n });\n\n obj[key] = groupedByYMD;\n }\n });\n\n return viewModels;\n }\n\n controller.Week.findByDateRange = findByDateRange;\n\n return controller;\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/controller.js\n// module id = 39\n// module chunks = 0","/**\n * @fileoverview Base calendar controller\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Schedule = require('../model/schedule');\nvar ScheduleViewModel = require('../model/viewModel/scheduleViewModel');\nvar datetime = require('../common/datetime');\nvar common = require('../common/common');\n\n/**\n * @constructor\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @mixes util.CustomEvents\n */\nfunction Base(options) {\n options = options || {};\n\n /**\n * function for group each schedule models.\n * @type {function}\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {string} group key\n */\n this.groupFunc = options.groupFunc || function(viewModel) {\n if (viewModel.model.isAllDay) {\n return 'allday';\n }\n\n return 'time';\n };\n\n /**\n * schedules collection.\n * @type {Collection}\n */\n this.schedules = common.createScheduleCollection();\n\n /**\n * Matrix for multidate schedules.\n * @type {object.}\n */\n this.dateMatrix = {};\n}\n\n/**\n * Calculate contain dates in schedule.\n * @private\n * @param {Schedule} schedule The instance of schedule.\n * @returns {array} contain dates.\n */\nBase.prototype._getContainDatesInSchedule = function(schedule) {\n var range = datetime.range(\n datetime.start(schedule.getStarts()),\n datetime.end(schedule.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n );\n\n return range;\n};\n\n/**********\n * CRUD\n **********/\n\n/**\n * Create an schedule instance from raw data.\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {object} options Data object to create schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that created.\n */\nBase.prototype.createSchedule = function(options, silent) {\n var schedule,\n scheduleData = {\n data: options\n };\n\n /**\n * @event Base#beforeCreateSchedule\n * @type {Calendar~Schedule[]}\n */\n if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n return null;\n }\n\n schedule = this.addSchedule(Schedule.create(options));\n\n if (!silent) {\n /**\n * @event Base#createdSchedule\n * @type {Schedule}\n */\n this.fire('createdSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n * @param {boolean} [silent=false] - set true then don't fire events.\n * @returns {Schedule[]} The instance list of Schedule that created.\n */\nBase.prototype.createSchedules = function(dataList, silent) {\n var self = this;\n\n return util.map(dataList, function(data) {\n return self.createSchedule(data, silent);\n });\n};\n\n/**\n * Update an schedule.\n * @emits Base#updateSchedule\n * @param {Schedule} schedule - schedule instance to update\n * @param {object} options updated object data.\n * @returns {Schedule} updated schedule instance\n */\nBase.prototype.updateSchedule = function(schedule, options) {\n var start = options.start || schedule.start;\n var end = options.end || schedule.end;\n\n options = options || {};\n\n if (options.title) {\n schedule.set('title', options.title);\n }\n\n if (options.isAllDay) {\n schedule.set('isAllDay', options.isAllDay);\n }\n\n if (options.start || options.end) {\n if (schedule.isAllDay) {\n schedule.setAllDayPeriod(start, end);\n } else {\n schedule.setTimePeriod(start, end);\n }\n }\n\n if (options.color) {\n schedule.set('color', options.color);\n }\n\n if (options.bgColor) {\n schedule.set('bgColor', options.bgColor);\n }\n\n if (options.borderColor) {\n schedule.set('borderColor', options.borderColor);\n }\n\n if (options.origin) {\n schedule.set('origin', options.origin);\n }\n\n if (!util.isUndefined(options.isPending)) {\n schedule.set('isPending', options.isPending);\n }\n\n if (!util.isUndefined(options.isFocused)) {\n schedule.set('isFocused', options.isFocused);\n }\n\n this._removeFromMatrix(schedule);\n this._addToMatrix(schedule);\n\n /**\n * @event Base#updateSchedule\n */\n this.fire('updateSchedule');\n\n return schedule;\n};\n\n/**\n * Delete schedule instance from controller.\n * @param {Schedule} schedule - schedule instance to delete\n * @returns {Schedule} deleted model instance.\n */\nBase.prototype.deleteSchedule = function(schedule) {\n this._removeFromMatrix(schedule);\n this.schedules.remove(schedule);\n\n return schedule;\n};\n\n/**\n * Set date matrix to supplied schedule instance.\n * @param {Schedule} schedule - instance of schedule.\n */\nBase.prototype._addToMatrix = function(schedule) {\n var ownMatrix = this.dateMatrix;\n var containDates = this._getContainDatesInSchedule(schedule);\n\n util.forEach(containDates, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\n matrix.push(util.stamp(schedule));\n });\n};\n\n/**\n * Remove schedule's id from matrix.\n * @param {Schedule} schedule - instance of schedule\n */\nBase.prototype._removeFromMatrix = function(schedule) {\n var modelID = util.stamp(schedule);\n\n util.forEach(this.dateMatrix, function(matrix) {\n var index = util.inArray(modelID, matrix);\n\n if (~index) {\n matrix.splice(index, 1);\n }\n }, this);\n};\n\n/**\n * Add an schedule instance.\n * @emits Base#addedSchedule\n * @param {Schedule} schedule The instance of Schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that added.\n */\nBase.prototype.addSchedule = function(schedule, silent) {\n this.schedules.add(schedule);\n this._addToMatrix(schedule);\n\n if (!silent) {\n /**\n * @event Base#addedSchedule\n * @type {object}\n */\n this.fire('addedSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * split schedule model by ymd.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @param {Collection} scheduleCollection - collection of schedule model.\n * @returns {object.} splitted schedule model collections.\n */\nBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownMatrix = this.dateMatrix,\n result = {};\n\n util.forEachArray(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd],\n collection;\n\n collection = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n util.forEachArray(matrix, function(id) {\n scheduleCollection.doWhenHas(id, function(schedule) {\n collection.add(schedule);\n });\n });\n }\n });\n\n return result;\n};\n\n/**\n * Return schedules in supplied date range.\n *\n * available only YMD.\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @returns {object.} schedule collection grouped by dates.\n */\nBase.prototype.findByDateRange = function(start, end) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownSchedules = this.schedules.items,\n ownMatrix = this.dateMatrix,\n dformat = datetime.format,\n result = {},\n matrix,\n ymd,\n viewModels;\n\n util.forEachArray(range, function(date) {\n ymd = dformat(date, 'YYYYMMDD');\n matrix = ownMatrix[ymd];\n viewModels = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n return ScheduleViewModel.create(ownSchedules[id]);\n }));\n }\n });\n\n return result;\n};\n\nBase.prototype.clearSchedules = function() {\n this.dateMatrix = {};\n this.schedules.clear();\n /**\n * for inner view when clear schedules\n * @event Base#clearSchedules\n * @type {Schedule}\n */\n this.fire('clearSchedules');\n};\n\n// mixin\nutil.CustomEvents.mixin(Base);\n\nmodule.exports = Base;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/base.js\n// module id = 40\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Model of schedule.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar TZDate = require('../common/timezone').Date;\nvar datetime = require('../common/datetime');\nvar dirty = require('../common/dirty');\nvar model = require('../common/model');\n\n/**\n * 일정 카테고리\n * @readonly\n * @enum {string}\n */\nvar SCHEDULE_CATEGORY = {\n /** 마일스톤 */\n MILESTONE: 'milestone',\n\n /** 업무 */\n TASK: 'task',\n\n /** 종일일정 */\n ALLDAY: 'allday',\n\n /** 시간별 일정 */\n TIME: 'time'\n};\n\n/**\n * The model of calendar schedules.\n * @constructor\n * @mixes dirty\n * @mixes model\n */\nfunction Schedule() {\n /**\n * `Optional` unique id for various use.\n * @type {string}\n */\n this.id = '';\n\n /**\n * title for schedule.\n * @type {string}\n */\n this.title = '';\n\n /**\n * is schedule is all day schedule?\n * @type {boolean}\n */\n this.isAllDay = false;\n\n /**\n * schedule start\n * @type {TZDate}\n */\n this.start = null;\n\n /**\n * schedule end\n * @type {TZDate}\n */\n this.end = null;\n\n /**\n * schedule text color\n * @type {string}\n */\n this.color = '#000';\n\n /**\n * schedule block visibility\n * @type {boolean}\n */\n this.isVisible = true;\n\n /**\n * schedule background color\n * @type {string}\n */\n this.bgColor = '#a1b56c';\n\n /**\n * schedule left border color\n * @type {string}\n */\n this.borderColor = '#000';\n\n /**\n * 캘린더 ID\n * @type {string}\n */\n this.calendarId = '';\n\n /**\n * 일정 카테고리 (마일스톤, 업무, 종일일정, 시간별일정)\n * @type {string}\n */\n this.category = '';\n\n /**\n * 업무 일정의 경우 구분 (출근전, 점심전, 퇴근전)\n * @type {string}\n */\n this.dueDateClass = '';\n\n /**\n * 커스텀 스타일\n * @type {string}\n */\n this.customStyle = '';\n\n /**\n * in progress flag to do something\n * @type {boolean}\n */\n this.isPending = false;\n\n /**\n * focused schedule flag\n * @type {boolean}\n */\n this.isFocused = false;\n\n /**\n * read-only schedule flag\n * @type {boolean}\n */\n this.isReadOnly = false;\n\n /**\n * 렌더링과 관계 없는 별도 데이터 저장 공간.\n * @type {object}\n */\n this.raw = null;\n\n // initialize model id\n util.stamp(this);\n}\n\n/**********\n * static props\n **********/\n\nSchedule.schema = {\n required: ['title'],\n dateRange: ['start', 'end']\n};\n\n/**\n * create schedule model from json(object) data.\n * @param {object} data object for model.\n * @returns {Schedule} Schedule model instance.\n */\nSchedule.create = function(data) {\n var inst = new Schedule();\n inst.init(data);\n\n return inst;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Initialize schedule instance.\n * @param {object} options options.\n */\nSchedule.prototype.init = function(options) {\n options = util.extend({}, options);\n if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n options.isAllDay = true;\n }\n\n this.id = options.id || '';\n this.title = options.title || '';\n this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\n this.color = options.color || this.color;\n this.bgColor = options.bgColor || this.bgColor;\n this.borderColor = options.borderColor || this.borderColor;\n this.calendarId = options.calendarId || '';\n this.category = options.category || '';\n this.dueDateClass = options.dueDateClass || '';\n this.customStyle = options.customStyle || '';\n this.isPending = options.isPending || false;\n this.isFocused = options.isFocused || false;\n this.isReadOnly = options.isReadOnly || false;\n\n if (this.isAllDay) {\n this.setAllDayPeriod(options.start, options.end);\n } else {\n this.setTimePeriod(options.start, options.end);\n }\n\n if (options.category === SCHEDULE_CATEGORY.MILESTONE ||\n options.category === SCHEDULE_CATEGORY.TASK) {\n this.start = new TZDate(this.end);\n }\n\n this.raw = options.raw || null;\n};\n\nSchedule.prototype.setAllDayPeriod = function(start, end) {\n // 종일일정인 경우 문자열의 날짜정보만 사용한다.\n if (util.isString(start)) {\n start = datetime.parse(start.substring(0, 10));\n }\n if (util.isString(end)) {\n end = datetime.parse(end.substring(0, 10));\n }\n\n this.start = start;\n this.start.setHours(0, 0, 0);\n this.end = end || new TZDate(this.start);\n this.end.setHours(23, 59, 59);\n};\n\nSchedule.prototype.setTimePeriod = function(start, end) {\n this.start = new TZDate(start || Date.now());\n this.end = new TZDate(end || this.start);\n\n if (!end) {\n this.end.setMinutes(this.end.getMinutes() + 30);\n }\n};\n\n/**\n * @returns {Date} render start date.\n */\nSchedule.prototype.getStarts = function() {\n return this.start;\n};\n\n/**\n * @returns {Date} render end date.\n */\nSchedule.prototype.getEnds = function() {\n return this.end;\n};\n\n/**\n * @returns {number} instance unique id.\n */\nSchedule.prototype.cid = function() {\n return util.stamp(this);\n};\n\n/**\n * Check two schedule are equals (means title, isAllDay, start, end are same)\n * @param {Schedule} schedule Schedule model instance to compare.\n * @returns {boolean} Return false when not same.\n */\nSchedule.prototype.equals = function(schedule) {\n if (this.id !== schedule.id) {\n return false;\n }\n\n if (this.title !== schedule.title) {\n return false;\n }\n\n if (this.isAllDay !== schedule.isAllDay) {\n return false;\n }\n\n if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n return false;\n }\n\n if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n return false;\n }\n\n if (this.color !== schedule.color) {\n return false;\n }\n\n if (this.bgColor !== schedule.bgColor) {\n return false;\n }\n\n if (this.borderColor !== schedule.borderColor) {\n return false;\n }\n\n return true;\n};\n\n/**\n * return duration between start and end.\n * @returns {Date} duration (UTC)\n */\nSchedule.prototype.duration = function() {\n var start = this.getStarts(),\n end = this.getEnds(),\n duration;\n\n if (this.isAllDay) {\n duration = new TZDate(datetime.end(end) - datetime.start(start));\n } else {\n duration = new TZDate(end - start);\n }\n\n return duration;\n};\n\n/**\n * Returns true if the given Schedule coincides with the same time as the\n * calling Schedule.\n * @param {Schedule} schedule The other schedule to compare with this Schedule.\n * @returns {boolean} If the other schedule occurs within the same time as the first object.\n */\nSchedule.prototype.collidesWith = function(schedule) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = schedule.getStarts(),\n end = schedule.getEnds();\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodel.mixin(Schedule.prototype);\ndirty.mixin(Schedule.prototype);\n\nmodule.exports = Schedule;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/model/schedule.js\n// module id = 41\n// module chunks = 0","/**\n * @fileoverview Dirty flagging module for objects.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar common = require('tui-code-snippet');\nvar existy = common.isExisty,\n pick = common.pick,\n isFunc = common.isFunction;\n\n/**\n * Mixin module for dirty flagging on specific objects.\n * @mixin\n * @example\n * var obj = { hello: 'good', test: '123' };\n * dirty.mixin(obj);\n *\n * obj.set('hello', 'world');\n * obj.isDirty(); // true\n * obj.isPropChanged('hello'); // true\n * obj.isPropChanged('test'); // false\n * obj.dirty(false);\n *\n * obj.isDirty(); // false\n * obj.isPropChanged('hello'); // false\n */\nvar dirty = {\n /**\n * Set property value with dirty flagging.\n * @param {string} propName Property name.\n * @param {*} value Proprty value.\n */\n set: function(propName, value) {\n var originValue = this[propName];\n\n if (originValue === value) {\n return;\n }\n\n this[propName] = value;\n\n if (!this._changed) {\n /**\n * Save changed properties.\n * @memberof dirty\n * @name _changed\n * @type {Object}\n */\n this._changed = {};\n }\n\n this._changed[propName] = true;\n\n /**\n * Dirty flag\n * @type {Boolean}\n * @name _dirty\n * @memberof dirty\n */\n this._dirty = true;\n },\n\n /**\n * Check dirty flag.\n * @returns {boolean} Property is changed.\n */\n isDirty: function() {\n return !!this._dirty;\n },\n\n /**\n * Set dirty flag manually.\n * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n */\n dirty: function(toDirty) {\n toDirty = existy(toDirty) ? toDirty : true;\n\n /* istanbul ignore else */\n if (!toDirty) {\n this._changed = {};\n }\n\n this._dirty = toDirty;\n },\n\n /**\n * Delete property safety.\n * @param {String} propName The name of property.\n */\n deleteProp: function(propName) {\n delete this[propName];\n\n if (this._changed) {\n delete this._changed[propName];\n }\n },\n\n /**\n * Check the changes with specific property.\n * @param {String} propName The name of property you want.\n * @returns {boolean} Is property changed?\n */\n isPropChanged: function(propName) {\n if (!this._changed) {\n return false;\n }\n\n return this._changed[propName] === true;\n },\n\n /**\n * Mixin to specific objects.\n * @param {Object} target The object to mix this module.\n * @memberof module:util/dirty\n * @example\n * function Animal() {}\n * dirty.mixin(Animal.prototype);\n */\n mixin: function(target) {\n var methodFilterR = /(^_|mixin|wrap)/;\n\n common.forEachOwnProperties(dirty, function(o, k) {\n if (!methodFilterR.test(k)) {\n target[k] = dirty[k];\n }\n });\n },\n\n /**\n * Wrapper method for dirty flagging.\n *\n * This method invoke after invoked specific method that added by you.\n *\n * The method want to add are must exist before add.\n * @param {object} target Target object to method wrap.\n * @param {(string|object)} methodName\n * Method name to wrap or methodName: flag objects.\n * @param {boolean} [flag=true]\n * this will used to flagging by dirty flagger after invoke the methods added by you.\n * @memberof module:util/dirty\n * @example\n * function Animal(name) {\n * this.name = name;\n * }\n * Animal.prototype.growl = jasmine.createSpy('growl');\n * Animal.prototype.test = function() {\n * return this.name;\n * };\n *\n * dirty.mixin(Animal.prototype);\n * // single\n * dirty.wrap(Animal.prototype, 'growl', true);\n * // multiple\n * dirty.wrap(Animap.prototype, {\n * growl: true,\n * test: false\n * });\n *\n */\n wrap: function(target, methodName, flag) {\n var wrap = dirty.wrap,\n fn;\n\n if (common.isObject(methodName)) {\n common.forEachOwnProperties(methodName, function(_flag, _name) {\n wrap(target, _name, _flag);\n });\n\n return;\n }\n\n flag = existy(flag) ? flag : true;\n\n if (!target._wrapper) {\n /**\n * @param {function} _fn Original method to wrap.\n * @param {boolean} flagToSet The boolean value to using dirty flagging.\n * @returns {*} The result value of original method.\n * @name _wrapper\n * @memberof dirty\n */\n target._wrapper = function(_fn, flagToSet) {\n return function() {\n var args = Array.prototype.slice.call(arguments);\n var result = _fn.apply(this, args); // eslint-disable-line\n this._dirty = flagToSet; // eslint-disable-line\n\n return result;\n };\n };\n }\n\n if (existy(pick(target, methodName)) &&\n isFunc(target[methodName]) &&\n !existy(pick(target, methodName, '_wrapped'))) {\n fn = target[methodName];\n target[methodName] = target._wrapper(fn, flag);\n target[methodName]._wrapped = true;\n }\n }\n};\n\nmodule.exports = dirty;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/dirty.js\n// module id = 42\n// module chunks = 0","/**\n * @fileoverview Mixin module for models.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\nvar util = require('tui-code-snippet');\nvar spaceRx = /^\\s*|\\s*$/g,\n model;\n\nvar datetime = require('../common/datetime');\n\n/**\n * Mixin module for models.\n * @mixin\n */\nmodel = {\n /**\n * string trim\n * @param {string} str string to trim\n * @returns {string} trimed string\n */\n trim: function(str) {\n return str.replace(spaceRx, '');\n },\n /**\n * The collections of validator functions.\n */\n validators: {\n /**\n * check all of supplied fields(property) is not undefined or empty string.\n * @param {object} instance model instance.\n * @param {string[]} fields property names to check.\n * @returns {boolean} return true when supplied fields are not undefined or empty string.\n */\n required: function(instance, fields) {\n var valid = true,\n isValid = function(obj) {\n return !util.isUndefined(obj) && model.trim(obj) !== '';\n };\n\n util.forEach(fields, function(fieldName) {\n valid = isValid(instance[fieldName]);\n\n return valid;\n });\n\n return valid;\n },\n\n /**\n * check supplied fields are valid dates and valid date ranges.\n * @param {object} instance model instance.\n * @param {Date[]} fields array of date range (start, end)\n * @returns {boolean} is valid date range?\n */\n dateRange: function(instance, fields) {\n var start, end;\n\n if (!util.isExisty(instance) || fields.length !== 2) {\n return true;\n }\n\n start = new TZDate(instance[fields[0]]);\n end = new TZDate(instance[fields[1]]);\n\n if (!datetime.isValid(start) || !datetime.isValid(end)) {\n return false;\n }\n\n if (datetime.compare(start, end) === 1) {\n return false;\n }\n\n return true;\n }\n },\n\n /**\n * Check validate for model instance.\n *\n * The validate are works on a basis of constructor's \"schema\" property.\n *\n * You can customize validators add some method to model#validators.\n * @returns {Boolean} model is valid?\n */\n isValid: function() {\n var self = this,\n schema = this.constructor.schema,\n validators = model.validators,\n validator,\n valid = true;\n\n if (!schema) {\n return true;\n }\n\n util.forEach(schema, function(values, validatorName) {\n validator = validators[validatorName];\n\n if (validator) {\n valid = validator(self, values);\n\n return valid; // returning false can stop this loop\n }\n\n return true;\n });\n\n return valid;\n },\n\n /**\n * Make data object form instance.\n *\n * It return object fill with all owned properties but exclude functions.\n * @returns {object} Data object\n */\n parameterize: function() {\n var param = {},\n isFunc = util.isFunction;\n\n util.forEach(this, function(value, propName) {\n if (!isFunc(value)) {\n param[propName] = value;\n }\n });\n\n return param;\n },\n\n /**\n * Mixin model module to supplied target.\n * @param {Object} target The object of want to mixed.\n * @example\n * function Man() {\n * this.name = 'john';\n * }\n * model.mixin(Man.prototype);\n */\n mixin: function(target) {\n util.forEach(model, function(method, name) {\n if (name !== 'mixin') {\n target[name] = method;\n }\n });\n }\n};\n\nmodule.exports = model;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/model.js\n// module id = 43\n// module chunks = 0","/**\n * @fileoverview Model for views\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Schedule ViewModel\n * @constructor\n * @param {Schedule} schedule Schedule instance.\n */\nfunction ScheduleViewModel(schedule) {\n /**\n * The model of schedule.\n * @type {Schedule}\n */\n this.model = schedule;\n\n /**\n * @type {number}\n */\n this.top = 0;\n\n /**\n * @type {number}\n */\n this.left = 0;\n\n /**\n * @type {number}\n */\n this.width = 0;\n\n /**\n * @type {number}\n */\n this.height = 0;\n\n /**\n * Represent schedule has collide with other schedules when rendering.\n * @type {boolean}\n */\n this.hasCollide = false;\n\n /**\n * Extra space at rigth side of this schedule.\n * @type {number}\n */\n this.extraSpace = 0;\n\n /**\n * represent this schedule block is not visible after rendered.\n *\n * in month view, some viewmodel in date need to hide when already rendered before dates.\n *\n * set true then it just shows empty space.\n * @type {boolean}\n */\n this.hidden = false;\n\n /**\n * whether the schedule includes multiple dates\n */\n this.hasMultiDates = false;\n\n /**\n * represent render start date used at rendering.\n *\n * if set null then use model's 'start' property.\n * @type {TZDate}\n */\n this.renderStarts = null;\n\n /**\n * whether the actual start-date is before the render-start-date\n * @type {boolean}\n */\n this.exceedLeft = false;\n\n /**\n * represent render end date used at rendering.\n *\n * if set null then use model's 'end' property.\n * @type {TZDate}\n */\n this.renderEnds = null;\n\n /**\n * whether the actual end-date is after the render-end-date\n * @type {boolean}\n */\n this.exceedRight = false;\n}\n\n/**********\n * static props\n **********/\n\n/**\n * ScheduleViewModel factory method.\n * @param {Schedule} schedule Schedule instance.\n * @returns {ScheduleViewModel} ScheduleViewModel instance.\n */\nScheduleViewModel.create = function(schedule) {\n return new ScheduleViewModel(schedule);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderStarts is not set. return model's start property.\n * @override\n * @returns {Date} render start date.\n */\nScheduleViewModel.prototype.getStarts = function() {\n if (this.renderStarts) {\n return this.renderStarts;\n }\n\n return this.model.start;\n};\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderEnds is not set. return model's end property.\n * @override\n * @returns {Date} render end date.\n */\nScheduleViewModel.prototype.getEnds = function() {\n if (this.renderEnds) {\n return this.renderEnds;\n }\n\n return this.model.end;\n};\n\n/**\n * @returns {number} unique number for model.\n */\nScheduleViewModel.prototype.cid = function() {\n return util.stamp(this.model);\n};\n\n/**\n * Shadowing valueOf method for schedule sorting.\n * @returns {Schedule} The model of schedule.\n */\nScheduleViewModel.prototype.valueOf = function() {\n return this.model;\n};\n\n/**\n * Link duration method\n * @returns {number} Schedule#duration result.\n */\nScheduleViewModel.prototype.duration = function() {\n return this.model.duration();\n};\n\n/**\n * Link collidesWith method\n * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n * @returns {boolean} Schedule#collidesWith result.\n */\nScheduleViewModel.prototype.collidesWith = function(viewModel) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = viewModel.getStarts(),\n end = viewModel.getEnds();\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodule.exports = ScheduleViewModel;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/model/viewModel/scheduleViewModel.js\n// module id = 44\n// module chunks = 0","/**\n * @fileoverview Core methods for schedule block placing\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachArr = util.forEachArray,\n aps = Array.prototype.slice;\n\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar Collection = require('../../common/collection');\nvar ScheduleViewModel = require('../../model/viewModel/scheduleViewModel');\n\nvar Core = {\n /**\n * Calculate collision group.\n * @param {array} viewModels List of viewmodels.\n * @returns {array} Collision Group.\n */\n getCollisionGroup: function(viewModels) {\n var collisionGroups = [],\n foundPrevCollisionSchedule = false,\n previousScheduleList;\n\n if (!viewModels.length) {\n return collisionGroups;\n }\n\n collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n forEachArr(viewModels.slice(1), function(schedule, index) {\n foundPrevCollisionSchedule = false;\n previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\n forEachArr(previousScheduleList, function(previous) {\n if (schedule.collidesWith(previous)) {\n // 이전 일정들과 겹치는 경우 겹치는 일정의 Collision Group을\n // 찾아 이 일정을 추가한다\n foundPrevCollisionSchedule = true;\n\n forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n // 겹치는 이전 일정을 찾은 경우 그 일정이 속한\n // Collision Group에 이 일정을 포함시킨다.\n group.push(util.stamp(schedule.valueOf()));\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n if (!foundPrevCollisionSchedule) {\n // 이 일정은 이전일정과 겹치지 않는 일정이므로\n // 새 Collision Group을 구성한다.\n collisionGroups.push([util.stamp(schedule.valueOf())]);\n }\n });\n\n return collisionGroups;\n },\n\n /**\n * Get row length by column index in 2d matrix.\n * @param {array[]} arr2d Matrix\n * @param {number} col Column index.\n * @returns {number} Last row number in column.\n */\n getLastRowInColumn: function(arr2d, col) {\n var row = arr2d.length;\n\n while (row > 0) {\n row -= 1;\n if (!util.isUndefined(arr2d[row][col])) {\n return row;\n }\n }\n\n return false;\n },\n\n /**\n * Calculate matrix for appointment block element placing.\n * @param {Collection} collection model collection.\n * @param {array[]} collisionGroups Collision groups for schedule set.\n * @returns {array} matrices\n */\n getMatrices: function(collection, collisionGroups) {\n var result = [],\n getLastRowInColumn = Core.getLastRowInColumn;\n\n forEachArr(collisionGroups, function(group) {\n var matrix = [[]];\n\n forEachArr(group, function(scheduleID) {\n var schedule = collection.items[scheduleID],\n col = 0,\n found = false,\n nextRow,\n lastRowInColumn;\n\n while (!found) {\n lastRowInColumn = getLastRowInColumn(matrix, col);\n\n if (lastRowInColumn === false) {\n matrix[0].push(schedule);\n found = true;\n } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n nextRow = lastRowInColumn + 1;\n if (util.isUndefined(matrix[nextRow])) {\n matrix[nextRow] = [];\n }\n matrix[nextRow][col] = schedule;\n found = true;\n }\n\n col += 1;\n }\n });\n\n result.push(matrix);\n });\n\n return result;\n },\n\n /**\n * Filter that get schedule model in supplied date ranges.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @returns {function} schedule filter function\n */\n getScheduleInDateRangeFilter: function(start, end) {\n return function(model) {\n var ownStarts = model.getStarts(),\n ownEnds = model.getEnds();\n\n // shorthand condition of\n //\n // (ownStarts >= start && ownEnds <= end) ||\n // (ownStarts < start && ownEnds >= start) ||\n // (ownEnds > end && ownStarts <= end)\n return !(ownEnds < start || ownStarts > end);\n };\n },\n\n /**\n * Position each view model for placing into container\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {array} matrices - matrices from controller\n * @param {function} [iteratee] - iteratee function invoke each view models\n */\n positionViewModels: function(start, end, matrices, iteratee) {\n var ymdListToRender;\n\n ymdListToRender = util.map(\n datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n function(date) {\n return datetime.format(date, 'YYYYMMDD');\n }\n );\n\n forEachArr(matrices, function(matrix) {\n forEachArr(matrix, function(column) {\n forEachArr(column, function(viewModel, index) {\n var ymd, dateLength;\n\n if (!viewModel) {\n return;\n }\n\n ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n dateLength = datetime.range(\n datetime.start(viewModel.getStarts()),\n datetime.end(viewModel.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n ).length;\n\n viewModel.top = index;\n viewModel.left = util.inArray(ymd, ymdListToRender);\n viewModel.width = dateLength;\n\n if (iteratee) {\n iteratee(viewModel);\n }\n });\n });\n });\n },\n\n /**\n * Limit start, end date each view model for render properly\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n * model collection or ScheduleViewModel\n * @returns {ScheduleViewModel} return view model when third parameter is\n * view model\n */\n limitRenderRange: function(start, end, viewModelColl) {\n /**\n * Limit render range for view models\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {ScheduleViewModel} view model that limited render range\n */\n function limit(viewModel) {\n if (viewModel.getStarts() < start) {\n viewModel.exceedLeft = true;\n viewModel.renderStarts = new TZDate(start.getTime());\n }\n\n if (viewModel.getEnds() > end) {\n viewModel.exceedRight = true;\n viewModel.renderEnds = new TZDate(end.getTime());\n }\n\n return viewModel;\n }\n\n if (viewModelColl.constructor === Collection) {\n viewModelColl.each(limit);\n\n return null;\n }\n\n return limit(viewModelColl);\n },\n\n /**\n * Convert schedule model collection to view model collection.\n * @param {Collection} modelColl - collection of schedule model\n * @returns {Collection} collection of schedule view model\n */\n convertToViewModel: function(modelColl) {\n var viewModelColl;\n\n viewModelColl = new Collection(function(viewModel) {\n return viewModel.cid();\n });\n\n modelColl.each(function(model) {\n viewModelColl.add(ScheduleViewModel.create(model));\n });\n\n return viewModelColl;\n }\n};\n\nmodule.exports = Core;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/core.js\n// module id = 45\n// module chunks = 0","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Controller mixin modules for day views.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar Collection = require('../../common/collection');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\n\n/**\n * @mixin Base.Week\n */\nvar Week = {\n /**********\n * TIME GRID VIEW\n **********/\n\n /**\n * Make array with start and end times on schedules.\n * @this Base.Week\n * @param {array[]} matrix - matrix from controller.\n * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n */\n generateTimeArrayInRow: function(matrix) {\n var row,\n col,\n schedule,\n map = [],\n cursor = [],\n maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n return col.length;\n }));\n\n for (col = 1; col < maxColLen; col += 1) {\n row = 0;\n schedule = util.pick(matrix, row, col);\n\n while (schedule) {\n cursor.push([schedule.getStarts().getTime(), schedule.getEnds().getTime()]);\n\n row += 1;\n schedule = util.pick(matrix, row, col);\n }\n\n map.push(cursor);\n cursor = [];\n }\n\n return map;\n },\n\n /**\n * Get collision information from list\n * @this Base\n * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n * @param {number} start - schedule start time that want to detect collisions.\n * @param {number} end - schedule end time that want to detect collisions.\n * @returns {boolean} target has collide in supplied array?\n */\n hasCollide: function(arr, start, end) {\n var startStart,\n startEnd,\n endStart,\n endEnd,\n getFunc = function(index) {\n return function(block) {\n return block[index];\n };\n },\n abs = Math.abs,\n compare = array.compare.num.asc,\n hasCollide;\n\n if (!arr.length) {\n return false;\n }\n\n startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\n return hasCollide;\n },\n\n /**\n * Initialize values to viewmodels for detect real collision at rendering phase.\n * @this Base\n * @param {array[]} matrices - Matrix data.\n */\n getCollides: function(matrices) {\n util.forEachArray(matrices, function(matrix) {\n var binaryMap,\n maxRowLength;\n\n binaryMap = Week.generateTimeArrayInRow(matrix);\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n util.forEachArray(matrix, function(row) {\n util.forEachArray(row, function(viewModel, col) {\n var startTime,\n endTime,\n hasCollide,\n i;\n\n if (!viewModel) {\n return;\n }\n\n startTime = viewModel.getStarts().getTime() + 1;\n endTime = viewModel.getEnds().getTime() - 1;\n\n for (i = (col + 1); i < maxRowLength; i += 1) {\n hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\n if (hasCollide) {\n viewModel.hasCollide = true;\n break;\n }\n\n viewModel.extraSpace += 1;\n }\n });\n });\n });\n },\n\n /**\n * create view model for time view part\n * @this Base\n * @param {Date} start - start date.\n * @param {Date} end - end date.\n * @param {Collection} time - view model collection.\n * @returns {object} view model for time part.\n */\n getViewModelForTimeView: function(start, end, time) {\n var self = this,\n ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n result = {};\n\n util.forEach(ymdSplitted, function(collection, ymd) {\n var viewModels = collection.sort(array.compare.schedule.asc),\n collisionGroups,\n matrices;\n\n collisionGroups = self.Core.getCollisionGroup(viewModels);\n matrices = self.Core.getMatrices(collection, collisionGroups);\n self.Week.getCollides(matrices);\n\n result[ymd] = matrices;\n });\n\n return result;\n },\n\n /**********\n * ALLDAY VIEW\n **********/\n\n /**\n * Set hasMultiDates flag to true and set date ranges for rendering\n * @this Base\n * @param {Collection} vColl - view model collection\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n viewModel.hasMultiDates = true;\n viewModel.renderStarts = datetime.start(model.getStarts());\n viewModel.renderEnds = datetime.end(model.getEnds());\n });\n },\n\n /**\n * create view model for allday view part\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n * @returns {object} allday viewModel.\n */\n getViewModelForAlldayView: function(start, end, viewModelColl) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n viewModels,\n collisionGroups,\n matrices;\n\n if (!viewModelColl || !viewModelColl.length) {\n return [];\n }\n\n ctrlWeek._addMultiDatesInfo(viewModelColl);\n ctrlCore.limitRenderRange(start, end, viewModelColl);\n\n viewModels = viewModelColl.sort(array.compare.schedule.asc);\n collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\n matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n ctrlCore.positionViewModels(start, end, matrices);\n\n return matrices;\n },\n\n /**********\n * READ\n **********/\n\n /**\n * Populate schedules in date range.\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @returns {object} schedules grouped by dates.\n */\n findByDateRange: function(start, end, andFilters) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n modelColl,\n group;\n\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n modelColl = this.schedules.find(filter);\n modelColl = ctrlCore.convertToViewModel(modelColl);\n\n group = modelColl.groupBy(['task', 'allday', 'time'], this.groupFunc);\n group.task = ctrlWeek.getViewModelForAlldayView(start, end, group.task);\n group.allday = ctrlWeek.getViewModelForAlldayView(start, end, group.allday);\n group.time = ctrlWeek.getViewModelForTimeView(start, end, group.time);\n\n return group;\n }\n};\n\nmodule.exports = Week;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/week.js\n// module id = 46\n// module chunks = 0","/**\n * @fileoverview Utility module for array sort, binary search.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../common/datetime');\n\n/**\n * A module for sorting array.\n * @module array\n */\n\n/**********\n * Search\n **********/\n\n/**\n * search item index using binary search algorithm.\n *\n * the array must be sorted.\n * @param {array} arr array to search.\n * @param {(string|number|boolean)} search value to search.\n * @param {function} [fn] iteratee for retrieve each element's value to search.\n * @param {function} [compare] compare function for specific sort status. default is string ascending.\n * @returns {number} The number of item index searched. return negative number when no exist that item.\n * It can use insert index after Math.abs()\n * @example\n *\n * var arr = [1, 3, 7, 11, 15, 23];\n *\n * function sortNumber(a, b) {\n * return a - b;\n * }\n *\n * bsearch(arr, 15, null, sortNumber); // 4\n * bsearch(arr, 21, null, sortNumber); // -5\n *\n * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n * // [1, 2, 7, 11, 15, 21, 23]\n */\nfunction bsearch(arr, search, fn, compare) {\n var minIndex = 0,\n maxIndex = arr.length - 1,\n currentIndex,\n value,\n comp;\n\n compare = compare || stringASC;\n\n while (minIndex <= maxIndex) {\n currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n comp = compare(value, search);\n\n if (comp < 0) {\n minIndex = currentIndex + 1;\n } else if (comp > 0) {\n maxIndex = currentIndex - 1;\n } else {\n return currentIndex;\n }\n }\n\n return ~maxIndex;\n}\n\n/**********\n * Compare Functions\n **********/\n\n/**\n * compare function for array sort.\n *\n * sort array by ascending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanASC(a, b) {\n if (a !== b) {\n return a ? -1 : 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by descending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanDESC(a, b) {\n if (a !== b) {\n return a ? 1 : -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number ascending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberASC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return a - b;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number descending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberDESC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return b - a;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * Compare schedule models for sort.\n *\n * 1. all day schedule first.\n * 2. early start.\n * 3. longest duration.\n * 4. early created.\n * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n * @returns {number} Result of comparison.\n */\nfunction scheduleASC(a, b) {\n var durationA, durationB;\n var allDayCompare, startsCompare;\n var modelA = a.valueOf();\n var modelB = b.valueOf();\n\n allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\n if (allDayCompare) {\n return allDayCompare;\n }\n\n startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\n if (startsCompare) {\n return startsCompare;\n }\n\n durationA = a.duration().getTime();\n durationB = b.duration().getTime();\n\n if (durationA < durationB) {\n return 1;\n }\n if (durationA > durationB) {\n return -1;\n }\n\n return util.stamp(modelA) - util.stamp(modelB);\n}\n\nmodule.exports = {\n bsearch: bsearch,\n compare: {\n schedule: {\n asc: scheduleASC\n },\n bool: {\n asc: booleanASC,\n desc: booleanDESC\n },\n num: {\n asc: numberASC,\n desc: numberDESC\n },\n str: {\n asc: stringASC,\n desc: stringDESC,\n ascIgnoreCase: stringASCIgnoreCase,\n descIgnoreCase: stringDESCIgnoreCase\n }\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/array.js\n// module id = 47\n// module chunks = 0","/**\n * @fileoverview Controller mixin for Month View\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar array = require('../../common/array'),\n datetime = require('../../common/datetime'),\n Collection = require('../../common/collection');\nvar mmax = Math.max;\n\nvar Month = {\n /**\n * Filter function for find time schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is time schedule?\n */\n _onlyTimeFilter: function(viewModel) {\n return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n },\n\n /**\n * Filter function for find allday schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is allday schedule?\n */\n _onlyAlldayFilter: function(viewModel) {\n return viewModel.model.isAllDay || viewModel.hasMultiDates;\n },\n\n /**\n * Weight top value +1 for month view render\n * @param {ScheduleViewModel} viewModel - schedule view model\n */\n _weightTopValue: function(viewModel) {\n viewModel.top = viewModel.top || 0;\n viewModel.top += 1;\n },\n\n /**\n * Adjust render range to render properly.\n *\n * Limit start, end for each allday schedules and expand start, end for\n * each time schedules\n * @this Base\n * @param {Date} start - render start date\n * @param {Date} end - render end date\n * @param {Collection} vColl - view model collection\n * property.\n */\n _adjustRenderRange: function(start, end, vColl) {\n var ctrlCore = this.Core;\n\n vColl.each(function(viewModel) {\n if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n ctrlCore.limitRenderRange(start, end, viewModel);\n }\n });\n },\n\n /**\n * Get max top index value for allday schedules in specific date (YMD)\n * @this Base\n * @param {string} ymd - yyyymmdd formatted value\n * @param {Collection} vAlldayColl - collection of allday schedules\n * @returns {number} max top index value in date\n */\n _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n var dateMatrix = this.dateMatrix,\n topIndexesInDate = [];\n util.forEach(dateMatrix[ymd], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topIndexesInDate.push(viewModel.top);\n });\n });\n\n if (topIndexesInDate.length > 0) {\n return mmax.apply(null, topIndexesInDate);\n }\n\n return 0;\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _adjustTimeTopIndex: function(vColl) {\n var ctrlMonth = this.Month;\n var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var maxIndexInYMD = {};\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\n if (util.isUndefined(alldayMaxTopInYMD)) {\n alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n }\n maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n (alldayMaxTopInYMD + 1);\n });\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _stackTimeFromTop: function(vColl) {\n var ctrlMonth = this.Month;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var indiceInYMD = {};\n var dateMatrix = this.dateMatrix;\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var topArrayInYMD = indiceInYMD[scheduleYMD];\n var maxTopInYMD;\n var i;\n\n if (util.isUndefined(topArrayInYMD)) {\n topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n util.forEach(dateMatrix[scheduleYMD], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topArrayInYMD.push(viewModel.top);\n });\n });\n }\n\n if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n for (i = 1; i <= maxTopInYMD; i += 1) {\n timeViewModel.top = i;\n if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n break;\n }\n }\n }\n topArrayInYMD.push(timeViewModel.top);\n });\n },\n\n /**\n * Convert multi-date time schedule to all-day schedule\n * @this Base\n * @param {Collection} vColl - view model collection\n * property.\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n var start = model.getStarts();\n var end = model.getEnds();\n\n viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\n if (!model.isAllDay && viewModel.hasMultiDates) {\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.end(end);\n }\n });\n },\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @param {Date} start - start date to find schedules\n * @param {Date} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n * @returns {object} view model data\n */\n findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n var ctrlCore = this.Core,\n ctrlMonth = this.Month,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n coll, vColl, vList,\n collisionGroup,\n matrices;\n\n alldayFirstMode = alldayFirstMode || false;\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n coll = this.schedules.find(filter);\n vColl = ctrlCore.convertToViewModel(coll);\n ctrlMonth._addMultiDatesInfo(vColl);\n ctrlMonth._adjustRenderRange(start, end, vColl);\n vList = vColl.sort(array.compare.schedule.asc);\n\n collisionGroup = ctrlCore.getCollisionGroup(vList);\n matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n if (alldayFirstMode) {\n ctrlMonth._adjustTimeTopIndex(vColl);\n } else {\n ctrlMonth._stackTimeFromTop(vColl);\n }\n\n return matrices;\n }\n};\n\nmodule.exports = Month;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/month.js\n// module id = 48\n// module chunks = 0","/**\n * @fileoverview Factory module for WeekView\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar VLayout = require('../common/vlayout');\nvar reqAnimFrame = require('../common/reqAnimFrame');\n// Parent views\nvar Week = require('../view/week/week');\n\n// Sub views\nvar DayName = require('../view/week/dayname');\nvar TimeGrid = require('../view/week/timeGrid');\nvar Allday = require('../view/week/allday');\nvar Milestone = require('../view/week/milestone');\nvar TaskView = require('../view/week/taskview');\n\n// Handlers\nvar AlldayClick = require('../handler/allday/click');\nvar AlldayCreation = require('../handler/allday/creation');\nvar AlldayMove = require('../handler/allday/move');\nvar AlldayResize = require('../handler/allday/resize');\nvar DayNameClick = require('../handler/time/clickDayname');\nvar TimeClick = require('../handler/time/click');\nvar TimeCreation = require('../handler/time/creation');\nvar TimeMove = require('../handler/time/move');\nvar TimeResize = require('../handler/time/resize');\nvar MilestoneClick = require('../handler/milestone/click');\n\nvar DEFAULT_VIEW_SEQUENCE = ['Milestone', 'Task', 'AllDay', 'TimeGrid'];\nvar DEFAULT_VIEWS = {\n 'Milestone': {\n minHeight: 20,\n height: 80,\n maxHeight: 80,\n show: true\n },\n 'Task': {\n minHeight: 40,\n height: 120,\n maxHeight: 120,\n show: true\n },\n 'AllDay': {\n minHeight: 20,\n height: 80,\n maxHeight: 80,\n show: true,\n maxExpandCount: 10\n },\n 'TimeGrid': {\n autoHeight: true,\n show: true\n }\n};\n\n/* eslint-disable complexity*/\nmodule.exports = function(baseController, layoutContainer, dragHandler, options) {\n var viewSequence = options.week.viewSequence || DEFAULT_VIEW_SEQUENCE,\n views = options.week.views || DEFAULT_VIEWS,\n panels = [],\n isAllDayPanelFirstRender = true;\n var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout,\n milestoneView, taskView, alldayView, timeGridView, alldayPanel;\n\n weekView = new Week(null, options.week, layoutContainer);\n weekView.handler = {\n click: {},\n dayname: {},\n creation: {},\n move: {},\n resize: {}\n };\n\n // Change visibilities\n util.forEach(views, function(value, key) {\n if (key === 'Milestone' || key === 'Task') {\n value.show = options.taskView;\n } else if (key === 'AllDay' || key === 'TimeGrid') {\n value.show = options.scheduleView;\n }\n });\n\n // Make panels by view sequence and visibilities\n util.forEach(viewSequence, function(name) {\n var view = views[name];\n if (view.show) {\n if (panels.length) {\n panels.push({\n isSplitter: true\n });\n }\n panels.push(util.extend({\n name: name\n }, view));\n }\n });\n\n if (panels.length) {\n panels[panels.length - 1].autoHeight = true;\n panels[panels.length - 1].maxHeight = null;\n }\n\n dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\n /**********\n * 일자표기 (상단 일월화수...)\n **********/\n dayNameView = new DayName(options.week, dayNameContainer);\n weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n weekView.addChild(dayNameView);\n\n /**********\n * 수직 레이아웃 모듈 초기화\n **********/\n vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\n vLayout = new VLayout({\n panels: panels,\n panelHeights: options.week.panelHeights || []\n }, vLayoutContainer);\n\n weekView.vLayout = vLayout;\n\n if (util.pick(views, 'Milestone').show) {\n /**********\n * 마일스톤\n **********/\n milestoneView = new Milestone(options.week, vLayout.getPanelByName('Milestone').container);\n milestoneView.on('afterRender', function(viewModel) {\n vLayout.getPanelByName('Milestone').setHeight(null, viewModel.height);\n });\n weekView.addChild(milestoneView);\n weekView.handler.click.milestone = new MilestoneClick(dragHandler, milestoneView, baseController);\n }\n\n if (util.pick(views, 'Task').show) {\n /**********\n * 업무\n **********/\n taskView = new TaskView(options.week, vLayout.getPanelByName('Task').container);\n taskView.on('afterRender', function() {\n vLayout.getPanelByName('Task').setHeight(null, taskView.contentHeight);\n });\n weekView.addChild(taskView);\n weekView.handler.click.task = new AlldayClick(dragHandler, taskView, baseController);\n weekView.handler.move.task = new AlldayMove(dragHandler, taskView, baseController);\n }\n\n if (util.pick(views, 'AllDay').show) {\n /**********\n * 종일일정\n **********/\n alldayPanel = vLayout.getPanelByName('AllDay');\n alldayView = new Allday(options.week, alldayPanel.container, alldayPanel.options);\n alldayView.on('afterRender', function() {\n if (alldayView.viewType === 'toggle' && !alldayView.collapsed) {\n alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n }\n if (isAllDayPanelFirstRender) {\n alldayPanel.setHeight(null, alldayView.options.height);\n isAllDayPanelFirstRender = false;\n } else {\n alldayPanel.setHeight(null, alldayView.contentHeight);\n }\n });\n\n weekView.addChild(alldayView);\n weekView.handler.click.allday = new AlldayClick(dragHandler, alldayView, baseController);\n weekView.handler.creation.allday = new AlldayCreation(dragHandler, alldayView, baseController);\n weekView.handler.move.allday = new AlldayMove(dragHandler, alldayView, baseController);\n weekView.handler.resize.allday = new AlldayResize(dragHandler, alldayView, baseController);\n\n weekView.handler.click.allday.on('clickExpand', function(index) {\n alldayView.prevMaxHeight = alldayView.aboutMe.maxHeight;\n alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n alldayPanel.isHeightForcedSet = false;\n alldayView.collapsed = false;\n alldayView.aboutMe.forcedLayout = false;\n alldayView.aboutMe.collapseBtnIndex = index;\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n weekView.handler.click.allday.on('clickCollapse', function() {\n var newHeight = alldayView.prevMaxHeight;\n delete alldayView.prevMaxHeight;\n alldayPanel.options.maxHeight = newHeight;\n alldayPanel.setHeight(null, newHeight);\n alldayView.collapsed = true;\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n alldayPanel.on('resize', function() {\n alldayView.aboutMe.forcedLayout = true;\n weekView.render();\n });\n }\n\n if (util.pick(views, 'TimeGrid').show) {\n /**********\n * 시간별 일정\n **********/\n timeGridView = new TimeGrid(options.week, vLayout.getPanelByName('TimeGrid').container);\n weekView.addChild(timeGridView);\n weekView.handler.click.time = new TimeClick(dragHandler, timeGridView, baseController);\n weekView.handler.creation.time = new TimeCreation(dragHandler, timeGridView, baseController);\n weekView.handler.move.time = new TimeMove(dragHandler, timeGridView, baseController);\n weekView.handler.resize.time = new TimeResize(dragHandler, timeGridView, baseController);\n }\n\n weekView.on('afterRender', function() {\n vLayout.refresh();\n });\n\n // add controller\n weekView.controller = baseController.Week;\n\n // add destroy\n weekView._beforeDestroy = function() {\n util.forEach(weekView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n weekView.off();\n };\n\n return {\n view: weekView,\n refresh: function() {\n var weekViewHeight = weekView.getViewBound().height,\n daynameViewHeight = domutil.getBCRect(\n dayNameView.container\n ).height;\n\n vLayout.container.style.height =\n weekViewHeight - daynameViewHeight + 'px';\n vLayout.refresh();\n },\n scrollToNow: function() {\n if (timeGridView) {\n timeGridView.scrollToNow();\n }\n }\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/weekView.js\n// module id = 49\n// module chunks = 0","/**\n * @fileoverview Layout module that supplied split height, resize height features.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n domevent = require('./domevent'),\n View = require('../view/view'),\n VPanel = require('./vpanel'),\n Drag = require('../handler/drag');\n\nvar mAbs = Math.abs;\n\n/**\n * @typedef PanelOptions\n * @type {object}\n * @property {number} [minHeight=0] - minimum height of panel\n * @property {number} [height=0] - current panel height\n * @property {boolean} [splitter=false] - is this panel uses splitter?\n * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n * @property {string} [className=''] - className string for add created element\n */\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VLayout module\n * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n * @param {number[]} [options.panelHeights] - panel height list\n * @param {HTMLElement} container - container element\n */\nfunction VLayout(options, container) {\n var opt, tempHeights;\n\n if (!(this instanceof VLayout)) {\n return new VLayout(options, container);\n }\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('vlayout-container'));\n\n /**\n * @type {object}\n */\n opt = this.options = util.extend({\n panels: [],\n panelHeights: []\n }, options);\n\n /**\n * @type {VPanel[]}\n */\n this.panels = [];\n\n /**\n * @type {Drag}\n */\n this._drag = new Drag({\n distance: 10,\n exclude: function(target) {\n return !domutil.hasClass(target, config.classname('splitter'));\n }\n }, container);\n\n this._drag.on({\n dragStart: this._onDragStart,\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @type {object}\n */\n this._dragData = null;\n\n if (opt.panels.length) {\n if (opt.panelHeights.length) {\n tempHeights = opt.panelHeights.slice();\n util.forEach(opt.panels, function(panelOpt) {\n if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n panelOpt.height = tempHeights.shift();\n }\n });\n }\n\n this.addPanels(opt.panels, this.container);\n }\n\n this.refresh();\n}\n\nutil.inherit(VLayout, View);\n\n/**\n * Get current panels height in layout\n * @returns {number[]} height of panels with `autoHeight` false\n */\nVLayout.prototype.getLayoutData = function() {\n var heightList = [];\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n heightList.push(panel.getHeight());\n });\n\n return heightList;\n};\n\n/**\n * Set panels height in layout\n * @param {number[]} heightList of panels with `autoHeight` false\n */\nVLayout.prototype.setLayoutData = function(heightList) {\n if (!heightList.length) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n panel.setHeight(null, heightList.shift());\n });\n\n this.refresh();\n};\n\n/**\n * Get next panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} next panel\n */\nVLayout.prototype.nextPanel = function(panel) {\n return this.panels[panel.index + 1];\n};\n\n/**\n * Get previous panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} previous panel\n */\nVLayout.prototype.prevPanel = function(panel) {\n return this.panels[panel.index - 1];\n};\n\n/**\n * Initialize resizing guide element\n * @param {HTMLElement} element - element to use guide element after cloned\n * @param {number} top - top pixel value for guide element\n * @returns {HTMLElement} cloned element == guide element\n */\nVLayout.prototype._initializeGuideElement = function(element, top) {\n var cloned = element.cloneNode(true);\n\n domutil.addClass(cloned, config.classname('splitter-guide'));\n this._refreshGuideElement(cloned, top);\n this.container.appendChild(cloned);\n\n return cloned;\n};\n\n/**\n * Refresh guide element position\n * @param {HTMLElement} element - guide element\n * @param {number} top - top pixel value for guide element\n */\nVLayout.prototype._refreshGuideElement = function(element, top) {\n element.style.top = top + 'px';\n};\n\n/**\n * Clear guide element position\n * @param {HTMLElement} element - guide element\n */\nVLayout.prototype._clearGuideElement = function(element) {\n domutil.remove(element);\n};\n\n/**\n * Resize overall panels size\n * @param {VPanel} splPanel - splitter panel instance\n * @param {number} startY - dragstart Y position\n * @param {number} mouseY - dragend Y position\n */\nVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n var diffY = startY - mouseY,\n resizedHeight = mAbs(diffY),\n resizeMap = [],\n toDown = mouseY > startY,\n backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n cursor, resizeInfo;\n\n cursor = this[backwardMethod](splPanel);\n resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n\n for (cursor = this[forwardMethod](cursor);\n util.isExisty(cursor);\n cursor = this[forwardMethod](cursor)) {\n if (cursor.isSplitter()) {\n continue;\n }\n\n resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n resizedHeight -= resizeInfo[1];\n }\n\n util.forEach(resizeMap, function(pair) {\n pair[0].setHeight(null, pair[1], true);\n pair[0].fire('resize');\n });\n};\n\n/**\n * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n * @param {VPanel} splPanel - splitter panel instance\n * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n */\nVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n var upper = 0,\n below = 0,\n cursor,\n func = function(panel) {\n if (panel.isSplitter()) {\n return panel.getHeight();\n }\n\n return panel.options.minHeight;\n };\n\n for (cursor = this.prevPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.prevPanel(cursor)) {\n upper += func(cursor);\n }\n\n for (cursor = this.nextPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.nextPanel(cursor)) {\n below += func(cursor);\n }\n\n return [upper, below];\n};\n\n/**********\n * Drag Handlers\n **********/\n\n/**\n * Drag start schedule handler\n * @param {object} e - drag start schedule data\n */\nVLayout.prototype._onDragStart = function(e) {\n var oEvent = e.originEvent,\n target = e.target,\n splIndex = domutil.getData(target, 'panelIndex'),\n splPanel = this.panels[splIndex],\n splHeight = splPanel.getHeight(),\n splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n guideElement = this._initializeGuideElement(target, mouseY);\n\n splPanel.addClass(config.classname('splitter-focused'));\n\n this._dragData = {\n splPanel: splPanel,\n splOffsetY: splOffsetY,\n guideElement: guideElement,\n startY: mouseY - splOffsetY,\n minY: 0,\n maxY: this.getViewBound().height - splHeight\n };\n\n if (!util.browser.msie) {\n domutil.addClass(document.body, config.classname('resizing'));\n }\n};\n\n/**\n * Drag schedule handler\n * @param {object} e - drag schedule data\n */\nVLayout.prototype._onDrag = function(e) {\n var dragData = this._dragData,\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\n this._refreshGuideElement(dragData.guideElement, mouseY);\n};\n\n/**\n * Drag end schedule handler\n * @fires VLayout#resize\n * @param {object} e - dragend schedule data\n */\nVLayout.prototype._onDragEnd = function(e) {\n var dragData = this._dragData,\n asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n mouseY = common.limit(\n mouseY - dragData.splOffsetY,\n [dragData.minY + asideMinMax[0]],\n [dragData.maxY - asideMinMax[1]]\n );\n\n this._resize(dragData.splPanel, dragData.startY, mouseY);\n\n /**\n * @event VLayout#resize\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n */\n this.fire('resize', {\n layoutData: this.getLayoutData()\n });\n\n this._dragData = null;\n this._clearGuideElement(dragData.guideElement);\n dragData.splPanel.removeClass(config.classname('splitter-focused'));\n domutil.removeClass(document.body, config.classname('resizing'));\n};\n\n/**********\n * Methods\n **********/\n\n/**\n * refresh each panels\n */\nVLayout.prototype.refresh = function() {\n var panelToFillHeight = [];\n var layoutHeight = this.getViewBound().height;\n var usedHeight = 0;\n var remainHeight;\n\n if (!layoutHeight) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.options.autoHeight) {\n panelToFillHeight.push(panel);\n } else {\n usedHeight += panel.getHeight();\n }\n });\n\n remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\n util.forEach(panelToFillHeight, function(panel) {\n panel.setHeight(null, remainHeight);\n });\n};\n\n/**\n * add panel\n * @param {PanelOptions} options - options for panel\n * @param {container} [container] - container element\n */\nVLayout.prototype.addPanel = function(options, container) {\n var element = document.createElement('div'),\n panels = this.panels,\n index = panels.length;\n\n options = util.extend({\n index: index\n }, options);\n\n panels.push(new VPanel(options, element));\n\n container.appendChild(element);\n};\n\n/**\n * Add multiple panel\n * @param {PanelOptions[]} options - panel options list\n * @param {HTMLElement} container - container element\n */\nVLayout.prototype.addPanels = function(options, container) {\n var self = this,\n frag = document.createDocumentFragment();\n\n util.forEach(options, function(option) {\n self.addPanel(option, frag);\n });\n\n container.appendChild(frag);\n};\n\n/**\n * Get a panel by name\n * @param {string} name - panel's name\n * @returns {VPanel}\n */\nVLayout.prototype.getPanelByName = function(name) {\n var found;\n util.forEach(this.panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n};\n\nmodule.exports = VLayout;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/vlayout.js\n// module id = 50\n// module chunks = 0","/**\n * @fileoverview Panel class for VLayout module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VPanel\n * @param {number} options.index - index of panel in vlayout\n * @param {number} [options.minHeight=0] - minimum height of panel\n * @param {number} [options.height] - initial height of panel\n * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n * @param {string} [options.className] - additional class name to add element\n * @param {HTMLElement} container - container element\n */\nfunction VPanel(options, container) {\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n index: 0,\n name: '0',\n minHeight: 0,\n maxHeight: null,\n height: null,\n isSplitter: false,\n autoHeight: false,\n className: ''\n }, options);\n\n /**\n * @type {number}\n */\n this.index = this.options.index;\n\n /**\n * @type {string}\n */\n this.name = this.options.name || String(this.index);\n\n this.isHeightForcedSet = false;\n\n this._initPanel(this.options, container);\n}\n\nutil.inherit(VPanel, View);\n\n/**\n * whether this panel is splitter?\n * @returns {boolean} panel is splitter?\n */\nVPanel.prototype.isSplitter = function() {\n return this.options.isSplitter;\n};\n\n/**\n * set height of html element\n * @param {HTMLElement} [container] - container element\n * @param {number} newHeight - height\n * @param {boolean} force - whether ignore max-length\n */\nVPanel.prototype.setHeight = function(container, newHeight, force) {\n var maxHeight = this.options.maxHeight;\n var minHeight = this.options.minHeight;\n var autoHeight = this.options.autoHeight;\n container = container || this.container;\n\n // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n if (!force && this.isHeightForcedSet && !autoHeight) {\n return;\n }\n\n if (force) {\n this.isHeightForcedSet = true;\n } else if (maxHeight) {\n newHeight = Math.min(newHeight, maxHeight);\n }\n newHeight = Math.max(minHeight, newHeight);\n\n container.style.height = newHeight + 'px';\n};\n\n/**\n * Calculate new height of panel and remains by supplied height growth\n * @param {number} growth - growth value\n * @returns {number[]} newHeight, remainHeight\n */\nVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n var height = this.getHeight(),\n newHeight = height + growth,\n resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\n return [resizeTo, height - resizeTo];\n};\n\n/**\n * get outer height of panel element\n * @returns {number} outer height of panel element\n */\nVPanel.prototype.getHeight = function() {\n return domutil.getSize(this.container)[1];\n};\n\n/**\n * add design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.addClass = function(className) {\n domutil.addClass(this.container, className);\n};\n\n/**\n * remove design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.removeClass = function(className) {\n domutil.removeClass(this.container, className);\n};\n\n/**\n * initialize panel element\n * @param {PanelOptions} options - options for panel\n * @param {HTMLDivElement} container - panel element\n */\nVPanel.prototype._initPanel = function(options, container) {\n var height;\n\n domutil.setData(container, 'panelIndex', options.index);\n\n if (options.isSplitter) {\n domutil.addClass(container, config.classname('splitter'));\n\n return;\n }\n\n if (options.className) {\n domutil.addClass(container, options.className);\n }\n\n if (options.autoHeight) {\n domutil.setData(container, 'autoHeight', true);\n } else {\n height = common.limit(options.height || 0,\n [options.minHeight],\n [options.maxHeight || options.height]\n );\n\n options.height = height;\n this.setHeight(container, height);\n }\n};\n\nmodule.exports = VPanel;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/vpanel.js\n// module id = 51\n// module chunks = 0","/**\n * @fileoverview RequestAnimFrame\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar requestFn,\n cancelFn;\n\n/**\n * Get name with vendor prefix\n * @param {string} name - name to prepend prefix\n * @returns {string} vendor prefixed name\n */\nfunction getPrefixed(name) {\n return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n}\n\nrequestFn = global.requestAnimationFrame ||\n getPrefixed('RequestAnimationFrame') ||\n function(fn, context) {\n fn.call(context);\n };\n\ncancelFn = global.cancelAnimationFrame ||\n getPrefixed('CancelAnimationFrame') ||\n getPrefixed('CancelRequestAnimationFrame') ||\n function() {};\n\n/**\n * @module module:reqAnimFrame\n */\n\nmodule.exports = {\n /**\n * Shim of requestAnimationFrame\n * @param {function} fn callback function\n * @param {*} context context for callback\n * @returns {number} Unique id\n */\n requestAnimFrame: function(fn, context) {\n return requestFn.call(global, util.bind(fn, context));\n },\n\n /**\n * Shim of cancelAnimationFrame\n * @param {number} id requestAnimationFrame id\n */\n cancelAnimFrame: function(id) {\n if (!id) {\n return;\n }\n\n cancelFn.call(global, id);\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/reqAnimFrame.js\n// module id = 52\n// module chunks = 0","/**\n * @fileoverview View of days UI.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\n\n/**\n * FullCalendar 에서는 날짜 정보만 사용(YYYY-MM-DD) 하고,\n * SplitTimeCalendar 에서는 타임존 정보까지 포함된 문자열을 사용하기 때문에 분기처리함.\n * @param {String} dateString - date string\n * @returns {TZDate}\n */\nfunction parseRangeDateString(dateString) {\n if (dateString.length === 10) {\n return datetime.parse(dateString);\n }\n\n return new TZDate(dateString);\n}\n\n/**\n * @constructor\n * @param {Base.Week} controller The controller mixin part.\n * @param {object} options View options\n * @param {string} [options.renderStartDate] Start date of render.\n * if not supplied then use -3d from today. YYYY-MM-DD format.\n * @param {string} [options.renderEndDate] End date of render.\n * if not supplied then use +3d from today. YYYY-MM-DD format.\n * @param {string} [options.cssPrefix] - CSS classname prefix\n * @param {HTMLElement} container The element to use container for this view.\n * @extends {View}\n */\nfunction Week(controller, options, container) {\n var range;\n\n container = domutil.appendHTMLElement('div', container);\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('week-container'));\n\n range = this._getRenderDateRange(new TZDate());\n\n /**\n * @type {object} Options for view.\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /**\n * Week controller mixin.\n * @type {Base.Week}\n */\n this.controller = controller;\n}\n\nutil.inherit(Week, View);\n\n/**********\n * Override props\n **********/\n\n/**\n * Render each child view with schedules in ranges.\n * @fires Week#afterRender\n * @override\n */\nWeek.prototype.render = function() {\n var options = this.options,\n scheduleFilter = options.scheduleFilter,\n narrowWeekend = options.narrowWeekend,\n startDayOfWeek = options.startDayOfWeek,\n workweek = options.workweek;\n var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\n renderStartDate = parseRangeDateString(options.renderStartDate);\n renderEndDate = parseRangeDateString(options.renderEndDate);\n\n range = datetime.range(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n datetime.MILLISECONDS_PER_DAY\n );\n\n if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n range = util.filter(range, function(date) {\n return !datetime.isWeekend(date.getDay());\n });\n\n renderStartDate = range[0];\n renderEndDate = range[range.length - 1];\n }\n\n schedulesInDateRange = this.controller.findByDateRange(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n scheduleFilter\n );\n\n grids = datetime.getGridLeftAndWidth(\n range.length,\n narrowWeekend,\n startDayOfWeek,\n workweek\n );\n\n viewModel = {\n schedulesInDateRange: schedulesInDateRange,\n renderStartDate: renderStartDate,\n renderEndDate: renderEndDate,\n grids: grids,\n range: range\n };\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n });\n\n /**\n * @event Week#afterRender\n */\n this.fire('afterRender');\n};\n\n/**********\n * Prototype props\n **********/\n\nWeek.prototype.viewName = 'week';\n\n/**\n * Calculate default render date range from supplied date.\n * @param {Date} baseDate base date.\n * @returns {object} date range.\n */\nWeek.prototype._getRenderDateRange = function(baseDate) {\n var base = datetime.start(baseDate),\n start = new TZDate(Number(base)),\n end = new TZDate(Number(base));\n\n start.setDate(start.getDate() - 3);\n end.setDate(end.getDate() + 3);\n\n return {\n start: start,\n end: end\n };\n};\n\nutil.CustomEvents.mixin(Week);\n\nmodule.exports = Week;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/week.js\n// module id = 53\n// module chunks = 0","/**\n * @fileoverview View for rendering daynames\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar daynameTmpl = require('../template/week/daynames.hbs');\n\n/**\n * @constructor\n * @param {object} options - options for dayname view\n * @param {HTMLElement} container Container element to use.\n * @extends {View}\n */\nfunction DayName(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('dayname-container')\n );\n\n this.options = util.extend({\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n }, options);\n\n View.call(this, container);\n}\n\nutil.inherit(DayName, View);\n\n/**\n * Get default viewmodels.\n * @param {Date} start The date of start render\n * @param {Date} end The end of end render\n * @param {object} grids grid data(width, left, day)\n * @returns {array} viewmodel.\n */\nDayName.prototype._getBaseViewModel = function(start, end, grids) {\n var daynames = this.options.daynames,\n viewModel;\n\n viewModel = util.map(datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ), function(d, i) {\n var day = d.getDay();\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: datetime.isSameDate(d, new TZDate()),\n date: d.getDate(),\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n renderDate: datetime.format(d, 'YYYY-MM-DD')\n };\n });\n\n return viewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel View model from parent (WeekView)\n */\nDayName.prototype.render = function(viewModel) {\n var _viewModel = this._getBaseViewModel(\n viewModel.renderStartDate,\n viewModel.renderEndDate,\n viewModel.grids\n );\n\n this.container.innerHTML = daynameTmpl(_viewModel);\n};\n\nmodule.exports = DayName;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/dayname.js\n// module id = 54\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"weekDayname-tmpl\"] || (depth0 && depth0[\"weekDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/daynames.hbs\n// module id = 55\n// module chunks = 0","/**\n * @fileoverview View for rendered schedules by times.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar View = require('../view');\nvar Time = require('./time');\nvar AutoScroll = require('../../common/autoScroll');\nvar mainTmpl = require('../template/week/timeGrid.hbs');\n\nvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\nvar SIXTY_SECONDS = 60;\n\n/**\n * start~end 까지의 시간 레이블 목록을 반환한다.\n * 현재 시간과 가까운 레이블의 경우 hidden:true로 설정한다.\n * @param {number} start - 시작시간\n * @param {number} end - 끝시간\n * @param {boolean} hasHourMarker - 현재 시간이 표시되는지 여부\n * @returns {Array.}\n */\nfunction getHoursLabels(start, end, hasHourMarker) {\n var now = new TZDate();\n var nowMinutes = now.getMinutes();\n var nowHours = now.getHours();\n var hoursRange = util.range(start, end);\n var nowAroundHours = null;\n\n if (hasHourMarker) {\n if (nowMinutes < 20) {\n nowAroundHours = nowHours;\n } else if (nowMinutes > 40) {\n nowAroundHours = nowHours + 1;\n }\n }\n\n return hoursRange.map(function(hours) {\n return {\n hours: hours,\n hidden: nowAroundHours === hours\n };\n });\n}\n/**\n * @constructor\n * @extends {View}\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n * @param {number} [options.hourStart=0] You can change view's start hours.\n * @param {number} [options.hourEnd=0] You can change view's end hours.\n * @param {HTMLElement} container Container element.\n */\nfunction TimeGrid(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('timegrid-container')\n );\n\n View.call(this, container);\n\n if (!util.browser.safari) {\n /**\n * @type {AutoScroll}\n */\n this._autoScroll = new AutoScroll(container);\n }\n\n /**\n * Time view options.\n * @type {object}\n */\n this.options = util.extend({\n renderStartDate: '',\n renderEndDate: '',\n hourStart: 0,\n hourEnd: 24\n }, options);\n\n /**\n * Interval id for hourmarker animation.\n * @type {number}\n */\n this.intervalID = 0;\n\n /**\n * timer id for hourmarker initial state\n * @type {number}\n */\n this.timerID = 0;\n\n /**\n * @type {boolean}\n */\n this._scrolled = false;\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n this.attachEvent();\n}\n\nutil.inherit(TimeGrid, View);\n\n/**********\n * Prototype props\n **********/\n\n/**\n * @type {string}\n */\nTimeGrid.prototype.viewName = 'timegrid';\n\n/**\n * Destroy view.\n * @override\n */\nTimeGrid.prototype._beforeDestroy = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n\n if (this._autoScroll) {\n this._autoScroll.destroy();\n }\n\n this._autoScroll = this.hourmarker = this.intervalID = this.timerID = this._cacheParentViewModel = null;\n};\n\n/**\n * @param {Date} [time] - date object to convert pixel in grids.\n * use **Date.now()** when not supplied.\n * @returns {number} The pixel value represent current time in grids.\n */\nTimeGrid.prototype._getTopPercentByTime = function(time) {\n var opt = this.options,\n raw = datetime.raw(time || new TZDate()),\n hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n datetime.millisecondsFrom('minutes', raw.m) +\n datetime.millisecondsFrom('seconds', raw.s) +\n raw.ms,\n topPercent;\n\n topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\n return common.limit(topPercent, [0], [100]);\n};\n\n/**\n * Get Hourmarker viewmodel.\n * @param {Date} now - now\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel of hourmarker.\n */\nTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n var todaymarkerLeft = -1,\n viewModel;\n\n now = now || new TZDate();\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(now, date)) {\n todaymarkerLeft = grids[index] ? grids[index].left : 0;\n }\n });\n\n viewModel = {\n currentHours: now.getHours(),\n hourmarkerTop: this._getTopPercentByTime(now),\n hourmarkerText: datetime.format(now, 'HH:mm'),\n todaymarkerLeft: todaymarkerLeft\n };\n\n return viewModel;\n};\n\n/**\n * Get base viewModel.\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getBaseViewModel = function(grids, range) {\n var opt = this.options;\n var viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range);\n viewModel.hoursLabels = getHoursLabels(opt.hourStart, opt.hourEnd, viewModel.todaymarkerLeft >= 0);\n\n return viewModel;\n};\n\n/**\n * Reconcilation child views and render.\n * @param {object} viewModels Viewmodel\n * @param {object} grids grid information(width, left, day)\n * @param {HTMLElement} container Container element for each time view.\n */\nTimeGrid.prototype._renderChildren = function(viewModels, grids, container) {\n var self = this,\n options = this.options,\n childOption,\n child,\n isToday,\n today = datetime.format(new TZDate(), 'YYYYMMDD'),\n i = 0;\n\n // clear contents\n container.innerHTML = '';\n this.children.clear();\n\n // reconcilation of child views\n util.forEach(viewModels, function(schedules, ymd) {\n isToday = ymd === today;\n\n childOption = {\n index: i,\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n ymd: ymd,\n isToday: isToday,\n isPending: options.isPending,\n isFocused: options.isFocused,\n hourStart: options.hourStart,\n hourEnd: options.hourEnd\n };\n\n child = new Time(\n childOption,\n domutil.appendHTMLElement('div', container, config.classname('time-date'))\n );\n child.render(ymd, schedules);\n\n self.addChild(child);\n\n i += 1;\n });\n};\n\n/**\n * @override\n * @param {object} viewModel ViewModel list from Week view.\n */\nTimeGrid.prototype.render = function(viewModel) {\n var timeViewModel = viewModel.schedulesInDateRange.time,\n container = this.container,\n grids = viewModel.grids,\n range = viewModel.range,\n baseViewModel = this._getBaseViewModel(grids, range),\n scheduleLen = util.keys(timeViewModel).length;\n\n this._cacheParentViewModel = viewModel;\n\n if (!scheduleLen) {\n return;\n }\n\n baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\n container.innerHTML = mainTmpl(baseViewModel);\n\n /**********\n * Render children\n **********/\n this._renderChildren(\n timeViewModel,\n grids,\n domutil.find(config.classname('.timegrid-schedules-container'), container)\n );\n\n this._hourLabels = domutil.find('ul', container);\n\n /**********\n * Render hourmarker\n **********/\n this.hourmarker = domutil.find(config.classname('.timegrid-hourmarker'), container);\n\n if (!this._scrolled) {\n this._scrolled = true;\n this.scrollToNow();\n }\n};\n\n/**\n * Refresh hourmarker element.\n */\nTimeGrid.prototype.refreshHourmarker = function() {\n var hourmarker = this.hourmarker,\n grids = this._cacheParentViewModel ? this._cacheParentViewModel.grids : null,\n range = this._cacheParentViewModel ? this._cacheParentViewModel.range : null,\n viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range),\n todaymarker,\n hourmarkerText;\n\n if (!hourmarker || !viewModel) {\n return;\n }\n\n todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n hourmarkerText = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n\n reqAnimFrame.requestAnimFrame(function() {\n hourmarker.style.display = 'block';\n hourmarker.style.top = viewModel.hourmarkerTop + '%';\n todaymarker.style.display = (viewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n hourmarkerText.innerHTML = viewModel.hourmarkerText;\n });\n};\n\n/**\n * Attach events\n */\nTimeGrid.prototype.attachEvent = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n this.intervalID = this.timerID = null;\n\n this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n};\n\n/**\n * Scroll time grid to current hourmarker.\n */\nTimeGrid.prototype.scrollToNow = function() {\n var self = this,\n container = this.container;\n var offsetTop,\n viewBound,\n scrollTop,\n scrollAmount,\n scrollBy,\n scrollFn;\n\n if (!self.hourmarker) {\n return;\n }\n\n offsetTop = this.hourmarker.offsetTop;\n viewBound = this.getViewBound();\n scrollTop = offsetTop;\n scrollAmount = viewBound.height / 4;\n scrollBy = 10;\n\n scrollFn = function() {\n if (scrollTop > offsetTop - scrollAmount) {\n scrollTop -= scrollBy;\n container.scrollTop = scrollTop;\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n } else {\n container.scrollTop = offsetTop - scrollAmount;\n }\n };\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n};\n\n/**********\n * Schedule handlers\n **********/\n\n/**\n * Interval tick handler\n */\nTimeGrid.prototype.onTick = function() {\n if (this.timerID) {\n clearTimeout(this.timerID);\n this.timerID = null;\n }\n\n if (!this.intervalID) {\n this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n }\n this.refreshHourmarker();\n};\n\nmodule.exports = TimeGrid;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/timeGrid.js\n// module id = 56\n// module chunks = 0","/**\n * @fileoverview View of time.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\nvar timeTmpl = require('../template/week/time.hbs');\n\nvar forEachArr = util.forEachArray;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options Options\n * @param {number} options.index Date index in week view.\n * @param {number} options.width Date element width (percent)\n * @param {string} options.ymd YYYMMDD string for this view\n * @param {boolean} options.isToday when set true then assign today design class to container.\n * @param {number} options.hourStart Can limit of render hour start.\n * @param {number} options.hourEnd Can limit of render hour end.\n * @param {HTMLElement} container Element to use container for this view.\n */\nfunction Time(options, container) {\n View.call(this, container);\n\n this.options = util.extend({\n index: 0,\n width: 0,\n ymd: '',\n isToday: false,\n pending: false,\n hourStart: 0,\n hourEnd: 24,\n defaultMarginBottom: 2,\n minHeight: 18.5\n }, options);\n\n this.timeTmpl = timeTmpl;\n container.style.width = options.width + '%';\n container.style.left = options.left + '%';\n\n if (this.options.isToday) {\n domutil.addClass(this.container, config.classname('today'));\n }\n}\n\nutil.inherit(Time, View);\n\n/**\n * Convert YYYYMMDD formatted string date to Date.\n * @param {string} str formatted string.\n * @returns {Date} start of date.\n */\nTime.prototype._parseDateGroup = function(str) {\n var y = parseInt(str.substr(0, 4), 10),\n m = parseInt(str.substr(4, 2), 10),\n d = parseInt(str.substr(6, 2), 10);\n\n return new TZDate(y, m - 1, d);\n};\n\n/**\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n * @param {number} options.baseHeight - pixel value related with baseMS options.\n * @param {number[]} options.baseLeft - left position percents for each columns.\n * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n * @param {number} options.columnIndex - the number index of schedule blocks.\n * it represent rendering index from left sides in view.\n * @returns {object} bound object for supplied view model.\n */\nTime.prototype.getScheduleViewBound = function(viewModel, options) {\n var baseMS = options.baseMS;\n var baseHeight = options.baseHeight;\n var cropped = false;\n var offsetStart, width, height, top;\n var isReadOnly = util.pick(viewModel, 'model', 'isReadOnly') || false;\n\n offsetStart = viewModel.valueOf().start - options.todayStart;\n\n // containerHeight : milliseconds in day = x : schedule's milliseconds\n top = (baseHeight * offsetStart) / baseMS;\n height = (baseHeight * viewModel.duration()) / baseMS;\n width = options.baseWidth * (viewModel.extraSpace + 1);\n\n // set width auto when has no collisions.\n if (!viewModel.hasCollide) {\n width = null;\n }\n\n if (height + top > baseHeight) {\n height = baseHeight - top;\n cropped = true;\n }\n\n if (isReadOnly) {\n cropped = true;\n }\n\n return {\n top: top,\n left: options.baseLeft[options.columnIndex],\n width: width,\n height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n cropped: cropped\n };\n};\n\n/**\n * Set viewmodels for rendering.\n * @param {string} ymd The date of schedules. YYYYMMDD format.\n * @param {array} matrices The matrices for schedule placing.\n */\nTime.prototype._getBaseViewModel = function(ymd, matrices) {\n var self = this,\n options = this.options,\n hourStart = options.hourStart,\n hourEnd = options.hourEnd,\n containerHeight,\n todayStart,\n baseMS;\n\n /**\n * Calculate each schedule element bounds relative with rendered hour milliseconds and\n * wrap each schedule model to viewmodels.\n */\n containerHeight = this.getViewBound().height;\n todayStart = this._parseDateGroup(ymd);\n todayStart.setHours(hourStart);\n baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\n forEachArr(matrices, function(matrix) {\n var maxRowLength,\n widthPercent,\n leftPercents,\n i;\n\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n widthPercent = 100 / maxRowLength;\n\n leftPercents = [];\n for (i = 0; i < maxRowLength; i += 1) {\n leftPercents[i] = widthPercent * i;\n }\n\n forEachArr(matrix, function(row) {\n forEachArr(row, function(viewModel, col) {\n var viewBound;\n\n if (!viewModel) {\n return;\n }\n\n viewBound = self.getScheduleViewBound(viewModel, {\n todayStart: todayStart,\n baseMS: baseMS,\n baseLeft: leftPercents,\n baseWidth: widthPercent,\n baseHeight: containerHeight,\n columnIndex: col\n });\n\n util.extend(viewModel, viewBound);\n });\n });\n });\n};\n\n/**\n * @returns {Date} - Date of this view.\n */\nTime.prototype.getDate = function() {\n return this._parseDateGroup(this.options.ymd);\n};\n\n/**\n * @override\n * @param {string} ymd The date of schedules. YYYYMMDD format\n * @param {array} matrices Matrices for placing schedules\n */\nTime.prototype.render = function(ymd, matrices) {\n this._getBaseViewModel(ymd, matrices);\n this.container.innerHTML = this.timeTmpl({\n matrices: matrices\n });\n};\n\nmodule.exports = Time;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/time.js\n// module id = 57\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"time-date-schedule-block-pending\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"time-schedule-focused \";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
     
    \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/time.hbs\n// module id = 58\n// module chunks = 0","/**\n * @fileoverview Add autoscroll feature to elements that prevented text selection.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domevent = require('../common/domevent');\nvar domutil = require('../common/domutil');\nvar Point = require('../common/point');\n\nvar SCROLL_INTERVAL = 30;\nvar SCROLL_MAX = 15;\nvar SCROLL_CLICK_INCREASED = 2; // IE에서 스크롤 바 클릭 시 실제 UI pixel 보다 넓게 잡히는 현상 offset.\n\n/**\n * Add autoscroll feature to elements that prevented text selection.\n * @constructor\n * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n */\nfunction AutoScroll(container) {\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * @type {AutoScroll.DIRECTION}\n */\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n /**\n * @type {number}\n */\n this._offset = 0;\n\n /**\n * interval to scrolling\n * @type {number}\n */\n this._intervalID = 0;\n\n domevent.on(container, {\n 'mousedown': this._onMouseDown\n }, this);\n}\n\n/**\n * @enum\n */\nAutoScroll.DIRECTION = {\n INSIDE: 0,\n TOP: 1,\n RIGHT: 2,\n BOTTOM: 3,\n LEFT: 4\n};\n\n/**\n * Instance destroy method.\n */\nAutoScroll.prototype.destroy = function() {\n domevent.off(this.container, {\n 'mousedown': this._onMouseDown,\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n\n window.clearInterval(this._intervalID);\n this._intervalID = this._direction = this.container = null;\n};\n\n/**\n * Normalize ClientRect and calculate each position of edges.\n * @param {ClientRect} clientRect - ClientRect object of element.\n * @returns {object} edges.\n */\nAutoScroll.prototype._getEdgePositions = function(clientRect) {\n return {\n top: clientRect.top,\n right: clientRect.left + clientRect.width,\n bottom: clientRect.bottom,\n left: clientRect.left\n };\n};\n\n/**\n * Get element real size (\"real size\" -> size without scrollbar)\n * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n * @returns {number[]} real size [width, height]\n */\nAutoScroll.prototype.getRealSize = function(el) {\n var computed = domutil.getComputedStyle(el),\n border,\n padding;\n\n border = parseFloat(computed.getPropertyValue('border-top-width')) +\n parseFloat(computed.getPropertyValue('border-bottom-width'));\n padding = parseFloat(computed.getPropertyValue('padding-top')) +\n parseFloat(computed.getPropertyValue('padding-bottom'));\n\n return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n};\n\n/**\n * Check supplied element has scrollbar.\n * @param {HTMLElement} el - element want to know has scrollbar.\n * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n */\nAutoScroll.prototype.hasScrollbar = function(el) {\n var realSize = this.getRealSize(el);\n\n return [\n el.offsetWidth > Math.ceil(realSize[0]),\n el.offsetHeight > Math.ceil(realSize[1])\n ];\n};\n\n/**\n * @param {HTMLElement} el - element want to know.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {boolean} mouse pointer is on the scrollbar?\n */\nAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n var realSize = this.getRealSize(el),\n pos = domevent.getMousePosition(mouseEvent, el),\n mouseInScrollbar = false;\n\n mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\n return mouseInScrollbar;\n};\n\n/**\n * MouseDown event handler\n * @param {MouseEvent} mouseDownEvent - mouse down event\n */\nAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n return;\n }\n\n window.clearInterval(this._intervalID);\n this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\n domevent.on(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * MouseMove event handler\n * @param {MouseEvent} mouseEvent - mouse move event object.\n */\nAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n pos = Point.n(domevent.getMousePosition(mouseEvent));\n\n if (pos.y >= edge.top && pos.y <= edge.bottom &&\n pos.x >= edge.left && pos.x <= edge.right) {\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n return;\n }\n\n if (pos.y < edge.top) {\n this._direction = AutoScroll.DIRECTION.TOP;\n this._offset = edge.top - pos.y;\n\n return;\n }\n\n if (pos.y > edge.bottom) {\n this._direction = AutoScroll.DIRECTION.BOTTOM;\n this._offset = pos.y - edge.bottom;\n\n return;\n }\n\n if (pos.x < edge.left) {\n this._direction = AutoScroll.DIRECTION.LEFT;\n this._offset = edge.left - pos.x;\n\n return;\n }\n\n this._direction = AutoScroll.DIRECTION.RIGHT;\n this._offset = pos.x - edge.right;\n};\n\n/**\n * MouseUp event handler.\n */\nAutoScroll.prototype._onMouseUp = function() {\n window.clearInterval(this._intervalID);\n this._intervalID = 0;\n this._direction = AutoScroll.DIRECTION.INSIDE;\n this._offset = 0;\n\n domevent.off(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * Interval tick event handler\n */\nAutoScroll.prototype._onTick = function() {\n var direction = this._direction,\n container,\n factor;\n\n if (!direction) {\n return;\n }\n\n container = this.container;\n factor = Math.min(this._offset, SCROLL_MAX);\n\n switch (direction) {\n case AutoScroll.DIRECTION.TOP:\n container.scrollTop -= factor;\n break;\n case AutoScroll.DIRECTION.RIGHT:\n container.scrollLeft += factor;\n break;\n case AutoScroll.DIRECTION.BOTTOM:\n container.scrollTop += factor;\n break;\n default:\n container.scrollLeft -= factor;\n break;\n }\n};\n\nmodule.exports = AutoScroll;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/autoScroll.js\n// module id = 59\n// module chunks = 0","/**\n * @fileoverview\n * Class for represent two dimensional x, y coordinates.\n *\n * It suppliy a group of functions for manipulate coordinates.\n * @author NHN Ent. FE Development Team \n * @example\n * var p = point(10, 10);\n * var r1 = p.add(Point(5, 5));\n * console.log(p.toString()) // \"Point(10, 10)\"\n * console.log(r1.toString()) // \"Point(15, 15)\"\n *\n * var p2 = new Point(10, 10);\n * p2._add(point(5, 5));\n * console.log(p2.toString()) // \"Point(15, 15)\"\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Class for represent two dimentional x, y coordinates.\n * @constructor\n * @param {number} x The number of X coordinates.\n * @param {number} y The number of Y coordinates.\n * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n * @example\n * var t = new Point(13, 5);\n */\nfunction Point(x, y, useRound) {\n /**\n * @type {number}\n */\n this.x = (useRound ? Math.round(x) : x);\n\n /**\n * @type {number}\n */\n this.y = (useRound ? Math.round(y) : y);\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Calculate point ratio.\n * @param {Point} point The instance of point.\n * @param {number} factor From factor\n * @param {number} toFactor To factor\n * @returns {Point} Point instance calculated.\n */\nPoint.getRatio = function(point, factor, toFactor) {\n if (factor === toFactor) {\n return point.clone();\n }\n\n return point.multiplyBy(toFactor)._divideBy(factor);\n};\n\n/**\n * Syntatic sugar of new Point()\n * @param {(Point|number|number[])} x X coordinate value.\n * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n * @param {boolean} [useRound] Set true then round initial coordinate values.\n * @returns {Point} The instance of point.\n * @example\n * var p1 = point(10, 15);\n * var p2 = point([10, 15]);\n */\nPoint.n = function(x, y, useRound) {\n if (x instanceof Point) {\n return x;\n }\n\n if (util.isArray(x)) {\n return new Point(x[0], x[1], y);\n }\n\n return new Point(x, y, useRound);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Clone points\n * @returns {Point} The point instance cloned.\n */\nPoint.prototype.clone = function() {\n return new Point(this.x, this.y);\n};\n\n/**\n * Add points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.add = function(point) {\n return this.clone()._add(Point.n(point));\n};\n\n/**\n * Add self points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._add = function(point) {\n this.x += point.x;\n this.y += point.y;\n\n return this;\n};\n\n/**\n * Subtract points.\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.subtract = function(point) {\n return this.clone()._subtract(Point.n(point));\n};\n\n/**\n * Subtract points. (manipulate self)\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._subtract = function(point) {\n this.x -= point.x;\n this.y -= point.y;\n\n return this;\n};\n\n/**\n * Divide points.\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.divideBy = function(num) {\n return this.clone()._divideBy(num);\n};\n\n/**\n * Divide points. (manipulate self)\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._divideBy = function(num) {\n this.x /= num;\n this.y /= num;\n\n return this;\n};\n\n/**\n * Multiply coordinates.\n * @param {number} num Thyen number to multiply\n * @returns {Point} Point calculated.\n */\nPoint.prototype.multiplyBy = function(num) {\n return this.clone()._multiplyBy(num);\n};\n\n/**\n * Multiply self coordinates.\n * @param {number} num The number to multiply.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._multiplyBy = function(num) {\n this.x *= num;\n this.y *= num;\n\n return this;\n};\n\n/**\n * Round coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.round = function() {\n return this.clone()._round();\n};\n\n/**\n * Round self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._round = function() {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n\n return this;\n};\n\n/**\n * Reverse values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.reverse = function() {\n return this.clone()._reverse();\n};\n\n/**\n * Reverse self values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._reverse = function() {\n this.x *= -1;\n this.y *= -1;\n\n return this;\n};\n\n/**\n * Floor coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.floor = function() {\n return this.clone()._floor();\n};\n\n/**\n * Floor self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._floor = function() {\n this.x = Math.floor(this.x);\n this.y = Math.floor(this.y);\n\n return this;\n};\n\n/**\n * Ceil coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.ceil = function() {\n return this.clone()._ceil();\n};\n\n/**\n * Ceil self coodinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._ceil = function() {\n this.x = Math.ceil(this.x);\n this.y = Math.ceil(this.y);\n\n return this;\n};\n\n/**\n * Rotate point.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype.rotate = function(deg, center, cos, sin) {\n return this.clone()._rotate(deg, center, cos, sin);\n};\n\n/**\n * Rotate self.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype._rotate = function(deg, center, cos, sin) {\n var rad = deg * (Math.PI / 180),\n x,\n y;\n\n cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\n this._subtract(center);\n\n x = this.x;\n y = this.y;\n\n this.x = (x * cos) - (y * sin);\n this.y = (x * sin) + (y * cos);\n\n this._add(center);\n\n return this;\n};\n\n/**\n * Calculate distance between two points.\n * @param {Point} point Point instance.\n * @returns {number} The number of distance between two points.\n */\nPoint.prototype.distanceTo = function(point) {\n var x,\n y;\n\n point = Point.n(point);\n\n x = point.x - this.x;\n y = point.y - this.y;\n\n return Math.sqrt((x * x) + (y * y));\n};\n\n/**\n * Check point equals.\n * @param {Point} point Point instance to compare\n * @returns {boolean} equality\n */\nPoint.prototype.equals = function(point) {\n point = Point.n(point);\n\n return point.x === this.x && point.y === this.y;\n};\n\n/**\n * Return formatted string. 'Point(x, y)'\n * @returns {string} string\n */\nPoint.prototype.toString = function() {\n return 'Point(' + this.x + ', ' + this.y + ')';\n};\n\n/**\n * Return coodinates to array. [x, y]\n * @returns {number[]} coordinate array.\n */\nPoint.prototype.toArray = function() {\n return [this.x, this.y];\n};\n\nmodule.exports = Point;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/point.js\n// module id = 60\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + alias4(((helper = (helper = helpers.hours || (depth0 != null ? depth0.hours : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hours\",\"hash\":{},\"data\":data}) : helper)))\n + \"\\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n
    \"\n + alias4(((helper = (helper = helpers.hourmarkerText || (depth0 != null ? depth0.hourmarkerText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hourmarkerText\",\"hash\":{},\"data\":data}) : helper)))\n + \"
    \\n
    \\n
    today
    \\n
    \\n
    \\n
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.showHourMarker : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/timeGrid.hbs\n// module id = 61\n// module chunks = 0","/**\n * @fileoverview View of allday schedule container inside of Week view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n View = require('../view'),\n WeekdayInWeek = require('./weekdayInWeek'),\n tmpl = require('../template/week/allday.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n * @param {number} [options.height=60] - minimum height of schedule container element.\n * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n * @param {HTMLElement} container Container element.\n * @param {object} aboutMe allday panel name and height\n */\nfunction Allday(options, container, aboutMe) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('allday-container')\n );\n\n /**\n * rendering options.\n * @type {object}\n */\n this.options = util.extend({\n title: 'All-day',\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: 18,\n scheduleGutter: 2,\n scheduleContainerTop: 1,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange.allday;\n }\n }, options);\n\n /**\n * height of content\n */\n this.contentHeight = 0;\n\n this.viewType = options.alldayViewType || 'scroll';\n this.collapsed = (this.viewType === 'toggle');\n this.aboutMe = util.extend(\n aboutMe, {\n name: 'allday'\n }\n );\n\n this.maxScheduleInDay = 0;\n\n View.call(this, container);\n}\n\nutil.inherit(Allday, View);\n\n/**\n * create month week view model for render allday schedules in top of week views.\n * @override\n * @param {object} viewModel - viewModel from parent views.\n */\nAllday.prototype.render = function(viewModel) {\n var container = this.container;\n var scheduleContainerTop = this.options.scheduleContainerTop;\n var self = this;\n var weekdayView;\n\n container.innerHTML = tmpl(this.options);\n\n this.children.clear();\n\n weekdayView = new WeekdayInWeek(\n this.options,\n domutil.find(config.classname('.weekday-container'), container),\n this.aboutMe\n );\n weekdayView.collapsed = this.collapsed;\n weekdayView.on('afterRender', function(weekdayViewModel) {\n self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n self.maxScheduleInDay = weekdayViewModel.maxScheduleInDay;\n });\n\n this.addChild(weekdayView);\n\n this.children.each(function(childView) {\n childView.collapsed = this.collapsed;\n childView.render(viewModel);\n }, this);\n\n this.fire('afterRender', viewModel);\n};\n\nAllday.prototype.getExpandMaxHeight = function() {\n var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n var maxExpandCount = this.aboutMe.maxExpandCount;\n\n if (this.maxScheduleInDay > maxExpandCount) {\n return scheduleHeight * (maxExpandCount + 0.5);\n }\n\n return scheduleHeight * maxExpandCount;\n};\n\nmodule.exports = Allday;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/allday.js\n// module id = 62\n// module chunks = 0","/**\n * @fileoverview Weekday view for week\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Weekday = require('../weekday'),\n tmpl = require('./weekdayInWeek.hbs'),\n datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar config = require('../../config');\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.containerHeight=40] - minimum height of schedule\n * container element.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n * @param {object} [aboutMe] - parent container info\n * @param {string} [aboutMe.name] - panel name ['Milestone'|'Task'|'AllDay'|'TimeGrid']\n * @param {boolean} [aboutMe.forcedLayout] - force layout height by dragging\n */\nfunction WeekdayInWeek(options, container, aboutMe) {\n Weekday.call(this, options, container);\n this.aboutMe = aboutMe || {};\n}\n\nutil.inherit(WeekdayInWeek, Weekday);\n\n/**\n * Render Weekday view\n * @override\n */\nWeekdayInWeek.prototype.render = function(viewModel) {\n var opt = this.options,\n container = this.container,\n aboutMe = this.aboutMe,\n name = aboutMe.name;\n var baseViewModel;\n\n this.viewType = opt[name + 'ViewType'] || '';\n\n baseViewModel = this.getBaseViewModel(viewModel);\n\n if (this.viewType === 'toggle') {\n baseViewModel.viewType = this.viewType;\n baseViewModel.collapsed = this.collapsed ? 'collapsed' : '';\n baseViewModel.collapseBtnIndex = aboutMe.collapseBtnIndex;\n }\n\n container.innerHTML = tmpl(baseViewModel);\n\n util.forEach(domutil.find(config.classname('.weekday-exceed-in-week'), container, true), function(el) {\n el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n });\n\n util.forEach(domutil.find(config.classname('.weekday-collapse-btn'), container, true), function(el) {\n el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n });\n\n this.fire('afterRender', baseViewModel);\n};\n\n/**\n * returns maximum schedule count in day\n * @param {array} matrices - The matrices for schedule placing.\n * @returns {number} maximum schedule count in day\n */\nWeekdayInWeek.prototype._getMaxScheduleInDay = function(matrices) {\n return mmax.apply(\n null,\n util.map(matrices, function(matrix) {\n return Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n })\n );\n};\n\n/**\n * returns minimum height for container.\n * @param {number} maxScheduleInDay - max schedule blocks in one day\n * @returns {number}\n */\nWeekdayInWeek.prototype._getMinHeight = function(maxScheduleInDay) {\n var opt = this.options;\n var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\n if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n contentHeight += opt.containerBottomGutter;\n }\n\n return contentHeight;\n};\n\n/**\n * make and update data of exceed date\n * @param {object} exceedDate - data to have exceed date in a week\n * @param {TZDate} renderStarts - start date of a week\n * @param {TZDate} renderEnds - end date of a week\n */\nWeekdayInWeek.prototype._updateExceedDate = function(exceedDate, renderStarts, renderEnds) {\n var date = datetime.clone(renderStarts);\n var day;\n\n for (; date <= renderEnds; date.setDate(date.getDate() + 1)) {\n day = datetime.format(date, 'YYYYMMDD');\n if (!exceedDate[day]) {\n exceedDate[day] = 1;\n } else {\n exceedDate[day] += 1;\n }\n }\n};\n\n/**\n * Exclude overflow schedules from matrices\n * @param {array} matrices - The matrices for schedule placing.\n * @param {number} visibleScheduleCount - maximum visible count on panel\n * @param {number} maxScheduleInDay - maximum number of schedules in day\n * @returns {array} - The matrices for schedule placing except overflowed schedules.\n */\nWeekdayInWeek.prototype._excludeExceedSchedules = function(matrices, visibleScheduleCount, maxScheduleInDay) {\n if (visibleScheduleCount >= maxScheduleInDay) {\n return matrices;\n }\n\n return matrices.map(function(matrix) {\n return matrix.map(function(row) {\n if (row.length > visibleScheduleCount) {\n return row.filter(function(item) {\n return item.top < visibleScheduleCount;\n }, this);\n }\n\n return row;\n }, this);\n }, this);\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInWeek.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var matrices = opt.getViewModelFunc(viewModel);\n var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n var visibleScheduleCount = this.aboutMe.visibleScheduleCount;\n var aboutMe = this.aboutMe;\n var exceedDate = {};\n var baseViewModel, panelHeight;\n\n if (this.viewType === 'toggle') {\n panelHeight = aboutMe.forcedLayout ? this.getViewBound().height : mmin(aboutMe.height, aboutMe.maxHeight);\n visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n if (this.collapsed) {\n visibleScheduleCount = mmin(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n exceedDate =\n this.getExceedDate(visibleScheduleCount,\n viewModel.schedulesInDateRange[aboutMe.name],\n viewModel.range,\n maxScheduleInDay\n );\n matrices = this._excludeExceedSchedules(matrices, visibleScheduleCount, maxScheduleInDay);\n aboutMe.visibleScheduleCount = visibleScheduleCount;\n } else {\n visibleScheduleCount = mmax(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n }\n }\n\n viewModel = util.extend({\n exceedDate: exceedDate || {}\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n minHeight: this._getMinHeight(maxScheduleInDay),\n matrices: matrices,\n scheduleContainerTop: this.options.scheduleContainerTop,\n maxScheduleInDay: maxScheduleInDay,\n floatingButtonTop: this._calculateFloatingBtnTop(visibleScheduleCount, maxScheduleInDay),\n panelName: aboutMe.name\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * Calculate absolute top position of floating button layer\n * @param {number} visibleScheduleCount - maximum (row) number of schedules that panel can show\n * @param {number} maxScheduleInDay - maximum number of schedules in day\n * @returns {number} absolute top position of floating buttons in weekday panel\n */\nWeekdayInWeek.prototype._calculateFloatingBtnTop = function(visibleScheduleCount, maxScheduleInDay) {\n var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n\n if (!this.collapsed && maxScheduleInDay > this.aboutMe.maxExpandCount) {\n return (visibleScheduleCount - 0.5) * scheduleHeight;\n }\n\n return (visibleScheduleCount - 1) * scheduleHeight;\n};\n\nmodule.exports = WeekdayInWeek;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/weekdayInWeek.js\n// module id = 63\n// module chunks = 0","/**\n * @fileoverview Weekday view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n datetime = require('../common/datetime'),\n TZDate = require('../common/timezone').Date,\n View = require('./view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - view options.\n * @param {number} [options.containerHeight=40] - minimum height of schedule\n * container element.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction Weekday(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('weekday')\n );\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n containerHeight: 40,\n containerBottomGutter: 8,\n scheduleHeight: 18,\n scheduleGutter: 2,\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n View.call(this, container);\n}\n\nutil.inherit(Weekday, View);\n\n/**\n * Get render date range\n * @returns {Date[]} rendered date range\n */\nWeekday.prototype.getRenderDateRange = function() {\n return this._cacheParentViewModel.range;\n};\n\n/**\n * Get render date grids information\n * @returns {Date[]} rendered date grids information\n */\nWeekday.prototype.getRenderDateGrids = function() {\n return this._cacheParentViewModel.grids;\n};\n\n/**\n * Get default view model.\n * @param {object} viewModel parent's view model\n * @returns {object} viewModel to rendering.\n */\nWeekday.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var range = viewModel.range;\n var today = datetime.format(new TZDate(), 'YYYYMMDD');\n var gridWidth = (100 / range.length);\n var grids = viewModel.grids;\n var exceedDate = viewModel.exceedDate || {};\n\n this._cacheParentViewModel = viewModel;\n\n return {\n width: gridWidth,\n scheduleHeight: opt.scheduleHeight,\n scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n scheduleBlockGutter: opt.scheduleGutter,\n dates: util.map(range, function(date, index) {\n var day = date.getDay();\n var ymd = datetime.format(date, 'YYYYMMDD');\n\n return {\n date: datetime.format(date, 'YYYY-MM-DD'),\n month: date.getMonth() + 1,\n day: day,\n isToday: ymd === today,\n ymd: ymd,\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0\n };\n })\n };\n};\n\n/* eslint max-nested-callbacks: 0 */\n/**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\nWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n var exceedDate = this._initExceedDate(range);\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n};\n\n/**\n * Initiate exceed date information\n * @param {Array.} range - date range of one week\n * @returns {Object} - initiated exceed date\n */\nWeekday.prototype._initExceedDate = function(range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n return exceedDate;\n};\n\nmodule.exports = Weekday;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/weekday.js\n// module id = 64\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda;\n\n return \"\\n
    \\n
    \\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"task\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.program(20, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(22, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-left\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-right\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-schedule-focused \";\n},\"14\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"16\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\n return \" \"\n + ((stack1 = (helpers[\"task-tmpl\"] || (depth0 && depth0[\"task-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"task-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.viewType : depth0),\"===\",\"toggle\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(25, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"25\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && data.root)) && stack1.collapsed),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(27, data, 0),\"inverse\":container.program(30, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"28\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + alias4((helpers[\"weekGridFooterExceed-tmpl\"] || (depth0 && depth0[\"weekGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data}))\n + \"\\n\";\n},\"30\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),\"===\",((stack1 = (data && data.root)) && stack1.collapseBtnIndex),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(31, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"31\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = ((helper = (helper = helpers[\"alldayCollapseBtnTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayCollapseBtnTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayCollapseBtnTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,(depth0 != null ? depth0.panelName : depth0),\"===\",\"allday\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/weekdayInWeek.hbs\n// module id = 65\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"alldayTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/allday.hbs\n// module id = 66\n// module chunks = 0","/**\n * @fileoverview 마일스톤 뷰\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../../view/view');\nvar tmpl = require('../template/week//milestone.hbs');\n\n// item height + gutter (defined in css)\nvar ITEM_HEIGHT = 17;\n\n// list padding-top (defined in css)\nvar LIST_PADDING_TOP = 1;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n * @param {number} [options.minHeight=52] - min-height of milestone view\n * @param {number} [options.lineHeight=12] - line height of milestone view\n * @param {HTMLElement} container - container element\n */\nfunction Milestone(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('milestone-container')\n );\n\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n renderStartDate: '',\n renderEndDate: ''\n }, options);\n}\n\nutil.inherit(Milestone, View);\n\n/**\n * Get base viewmodel for task view\n * @param {object} [viewModel] - view model from parent view\n * @returns {object} view model for task view\n */\nMilestone.prototype._getBaseViewModel = function(viewModel) {\n var schedules = {},\n range = viewModel.range,\n height,\n today = datetime.format(new TZDate(), 'YYYY-MM-DD'),\n viewModelSchedules = util.pick(viewModel.schedulesInDateRange, 'milestone'),\n grids = viewModel.grids,\n i = 0;\n\n // 일정이 없는 경우라도 빈 객체를 생성\n util.forEach(range, function(d) {\n schedules[datetime.format(d, 'YYYY-MM-DD')] = {length: 0};\n });\n\n util.extend(schedules, viewModelSchedules);\n\n util.forEach(schedules, function(schedule, key) {\n schedule.isToday = (key === today);\n schedule.left = grids[i] ? grids[i].left : 0;\n schedule.width = grids[i] ? grids[i].width : 0;\n i += 1;\n });\n\n height = LIST_PADDING_TOP;\n height += Math.max.apply(null, util.map(schedules, function(coll) {\n return coll.length;\n })) * ITEM_HEIGHT;\n\n return {\n schedules: schedules,\n height: height\n };\n};\n\n/**\n * 마일스톤 뷰 렌더링\n * @override\n */\nMilestone.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this._getBaseViewModel(viewModel);\n\n container.style.minHeight = this.options.minHeight + 'px';\n container.innerHTML = tmpl(baseViewModel);\n\n util.forEach(domutil.find('li', container, true), function(el) {\n if (el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n\n this.fire('afterRender', baseViewModel);\n};\n\nmodule.exports = Milestone;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/milestone.js\n// module id = 67\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
      \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.items : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing;\n\n return \"
  • \\n \"\n + ((stack1 = (helpers[\"milestone-tmpl\"] || (depth0 && depth0[\"milestone-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"milestone-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
  • \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"milestoneTitle-tmpl\"] || (depth0 != null ? depth0[\"milestoneTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"milestoneTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/milestone.hbs\n// module id = 68\n// module chunks = 0","/**\n * @fileoverview Task view for upper area of Week view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n View = require('../view'),\n WeekdayInWeek = require('./weekdayInWeek'),\n tmpl = require('../template/week/taskview.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for TaskView\n * @param {string} options.renderStartDate - start date of this view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of this view's render date. YYYY-MM-DD\n * @param {number} [options.height=60] - minimum height of schedule container element.\n * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n \n * @param {HTMLElement} container - container element\n */\nfunction TaskView(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('task-container')\n );\n\n /**\n * rendering options.\n * @type {object}\n */\n this.options = util.extend({\n title: 'task',\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: 18,\n scheduleGutter: 2,\n scheduleContainerTop: 1,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange.task;\n }\n }, options);\n\n /**\n * height of content\n */\n this.contentHeight = 0;\n\n View.call(this, container);\n}\n\nutil.inherit(TaskView, View);\n\n/**\n * 업무 뷰 렌더링\n * @override\n */\nTaskView.prototype.render = function(viewModel) {\n var container = this.container;\n var scheduleContainerTop = this.options.scheduleContainerTop;\n var self = this;\n var weekdayView;\n\n container.innerHTML = tmpl(this.options);\n\n this.children.clear();\n\n weekdayView = new WeekdayInWeek(\n this.options,\n domutil.find(config.classname('.weekday-container'), container)\n );\n weekdayView.on('afterRender', function(weekdayViewModel) {\n self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n });\n\n this.addChild(weekdayView);\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n });\n\n this.fire('afterRender', viewModel);\n};\n\nmodule.exports = TaskView;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/taskview.js\n// module id = 69\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"taskTitle-tmpl\"] || (depth0 != null ? depth0[\"taskTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"taskTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/taskview.hbs\n// module id = 70\n// module chunks = 0","/**\n * @fileoverview Click handle module for allday schedules\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar AlldayMove = require('./move');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayClick(dragHandler, alldayView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy handler module\n */\nAlldayClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.alldayView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nAlldayClick.prototype.checkExpectCondition = AlldayMove.prototype.checkExpectedCondition;\n\n/**\n * Click event handler\n * @param {object} clickEvent - click event data\n * @emits AlldayClick#clickSchedule\n */\nAlldayClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n scheduleCollection = this.baseController.schedules,\n collapseElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-collapse-btn')\n );\n var blockElement, scheduleElement;\n\n if (collapseElement) {\n self.fire('clickCollapse');\n\n return;\n }\n\n if (!timeView) {\n return;\n }\n\n if (this._onClickMoreElement(clickEvent.target)) {\n return;\n }\n\n scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n if (scheduleElement) {\n blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nAlldayClick.prototype._onClickMoreElement = function(target) {\n var moreElement = domutil.closest(target, config.classname('.weekday-exceed-in-week'));\n var index = moreElement.dataset ? moreElement.dataset.index : moreElement.getAttribute('data-index');\n var parseInt = Number.parseInt || window.parseInt;\n\n if (moreElement) {\n this.fire('clickExpand', parseInt(index || 0, 10));\n\n return true;\n }\n\n return false;\n};\n\nutil.CustomEvents.mixin(AlldayClick);\n\nmodule.exports = AlldayClick;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/click.js\n// module id = 71\n// module chunks = 0","/**\n * @fileoverview Move handler for Allday view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar AlldayCore = require('./core');\nvar AlldayMoveGuide = require('./moveGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayMove(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * Temporary variable for dragstart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {AlldayMoveGuide}\n */\n this.guide = new AlldayMoveGuide(this);\n}\n\nAlldayMove.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.alldayView = this.baseController =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayMove.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n parentView,\n matches;\n\n if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n parentView = domutil.closest(target, config.classname('.weekday'));\n\n if (!parentView) {\n return false;\n }\n\n cssClass = domutil.getClass(parentView);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler method.\n * @emits AlldayMove#alldayMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n */\nAlldayMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.baseController,\n excludeTarget = true,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n if (!scheduleBlockElement) {\n return;\n }\n\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event AlldayMove#alldayMoveDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('alldayMoveDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayMove#alldayMoveDrag\n * @param {object} dragEventData - Drag#drag event handler eventdata.\n */\nAlldayMove.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @schedule AlldayMove#alldayMoveDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayMoveDrag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule model to base controller.\n * @fires AlldayMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from AlldayMove handler module.\n */\nAlldayMove.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newStarts = new TZDate(schedule.start.getTime()),\n newEnds = new TZDate(schedule.end.getTime());\n\n newStarts = new TZDate(newStarts.setDate(newStarts.getDate() + dateOffset));\n newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n\n /**\n * @event AlldayMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayMove#alldayMoveDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nAlldayMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event AlldayMove#alldayMoveDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayMoveDragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayMove#alldayMoveClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayMove.prototype._onClick = function(clickEventData) {\n /**\n * @event AlldayMove#alldayMoveClick\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'alldayMoveClick', true);\n};\n\ncommon.mixin(AlldayCore, AlldayMove);\nutil.CustomEvents.mixin(AlldayMove);\n\nmodule.exports = AlldayMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/move.js\n// module id = 72\n// module chunks = 0","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Base mixin object for handler/allday\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\n\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @mixin Allday.Core\n */\nvar alldayCore = {\n /**\n * @param {Allday} alldayView - view instance of allday.\n * @param {MouseEvent} mouseEvent - mouse schedule object.\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleData: function(alldayView, mouseEvent) {\n var weekdayView = alldayView.children.single(),\n container,\n datesInRange,\n containerWidth,\n mousePos,\n dragStartXIndex,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n container = weekdayView.container;\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n containerWidth = domutil.getSize(container)[0];\n mousePos = domevent.getMousePosition(mouseEvent, container);\n dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\n /**\n * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n * @returns {object} schedule data.\n */\n return function(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, container),\n mouseX = pos[0],\n xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: alldayView,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: mouseEvent.type,\n grids: grids,\n range: range\n };\n };\n }\n};\n\n/**\n * Get the left index\n * @param {Array} grids - grid size information\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\nfunction getX(grids, left) {\n var i = 0;\n var length = grids.length;\n var grid;\n if (left < 0) {\n left = 0;\n }\n\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n}\n\nmodule.exports = alldayCore;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/core.js\n// module id = 73\n// module chunks = 0","/**\n * @fileoverview Effect module for Allday.Move\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * Class for Allday.Move dragging effect.\n * @constructor\n * @param {AlldayMove} alldayMove - instance of AlldayMove.\n */\nfunction AlldayMoveGuide(alldayMove) {\n /**\n * @type {AlldayMove}\n */\n this.alldayMove = alldayMove;\n\n /**\n * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {number}\n */\n this._dragStartXIndex = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n alldayMove.on({\n 'alldayMoveDragstart': this._onDragStart,\n 'alldayMoveDrag': this._onDrag,\n 'alldayMoveDragend': this._clearGuideElement,\n 'alldayMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.alldayMove.off(this);\n this.alldayMove = this.scheduleContainer = this._dragStartXIndex =\n this.elements = this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nAlldayMoveGuide.prototype._clearGuideElement = function() {\n this._showOriginScheduleBlocks();\n\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nAlldayMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n var scheduleBlocks = domutil.find(\n config.classname('.weekday-schedule-block'),\n this.alldayMove.alldayView.container,\n true\n );\n\n this.elements = util.filter(scheduleBlocks, function(schedule) {\n return domutil.getData(schedule, 'id') === modelID;\n });\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nAlldayMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * @param {Schedule} model - model\n * @param {HTMLElement} parent - parent element\n * Highlight element blocks\n */\nAlldayMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\n util.forEach(elements, function(el) {\n el.style.margin = '0';\n\n if (!model.isFocused) {\n el.style.backgroundColor = el.style.color;\n el.style.borderLeftColor = el.style.color;\n el.style.color = '#ffffff';\n }\n });\n};\n\n/**\n * Refresh guide element.\n * @param {number} leftPercent - left percent of guide element.\n * @param {number} widthPercent - width percent of guide element.\n * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n * @param {boolean} isExceededRight - schedule end is later then render end date?\n */\nAlldayMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n\n if (isExceededLeft) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n }\n\n if (isExceededRight) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n }\n });\n};\n\n/**\n * Get schedule block information from schedule data.\n *\n * For example, there is single schedule has 10 length. but render range in view is 5 then\n * rendered block must be cut out to render properly. in this case, this method return\n * how many block are cut before rendering.\n *\n * 이벤트 데이터에서 이벤트 블록 엘리먼트 렌더링에 대한 필요 정보를 추출한다.\n *\n * ex) 렌더링 된 블록의 길이는 5지만 실제 이 이벤트는 10의 길이를 가지고 있을 때\n * 좌 우로 몇 만큼 잘려있는지에 관한 정보를 반환함.\n * @param {object} dragStartEventData - schedule data from Allday.Move handler.\n * @returns {function} function that return schedule block information.\n */\nAlldayMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n datesInRange = dragStartEventData.datesInRange,\n range = dragStartEventData.range,\n baseWidthPercent = (100 / datesInRange),\n originScheduleStarts = datetime.start(model.start),\n originScheduleEnds = datetime.end(model.end),\n renderStartDate = datetime.start(range[0]),\n renderEndDate = datetime.end(range[range.length - 1]),\n fromLeft = (new TZDate(originScheduleStarts.getTime() -\n renderStartDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0,\n fromRight = (new TZDate(originScheduleEnds.getTime() -\n renderEndDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0;\n\n return function(indexOffset) {\n return {\n baseWidthPercent: baseWidthPercent,\n fromLeft: fromLeft + indexOffset,\n fromRight: fromRight + indexOffset\n };\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var alldayViewContainer = this.alldayMove.alldayView.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n domutil.addClass(guideElement, config.classname('allday-guide-move'));\n scheduleContainer.appendChild(guideElement);\n\n this._dragStartXIndex = dragStartEventData.xIndex;\n this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\n this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nAlldayMoveGuide.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStartXIndex = this._dragStartXIndex,\n datesInRange = dragEventData.datesInRange,\n grids = dragEventData.grids,\n scheduleData,\n isExceededLeft,\n isExceededRight,\n originLength,\n leftIndex,\n size,\n newLeft,\n newWidth;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n isExceededLeft = scheduleData.fromLeft < 0;\n isExceededRight = scheduleData.fromRight > 0;\n\n leftIndex = Math.max(0, scheduleData.fromLeft);\n originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\n newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\n this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n};\n\n/**\n * Get schedule width based on grids\n * @param {number} left - left index\n * @param {number} size - schedule width\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getScheduleBlockWidth(left, size, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n for (; i < size; i += 1) {\n left = (left + i) % length;\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nmodule.exports = AlldayMoveGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/moveGuide.js\n// module id = 74\n// module chunks = 0","/**\n * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar alldayCore = require('./core');\nvar AlldayCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CutomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayCreation(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {AlldayCreationGuide}\n */\n this.guide = new AlldayCreationGuide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(alldayView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destroy method\n */\nAlldayCreation.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (this.alldayView && this.alldayView.container) {\n domevent.off(this.alldayView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.alldayView = this.baseController = this.getScheduleDataFunc = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target).trim();\n var isAllDay = domutil.closest(target, config.classname('.allday-container'));\n var excludeTarget = true;\n var matches, schedulesElement;\n\n if (!isAllDay) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n ) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n return false;\n }\n\n schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n return false;\n }\n\n target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {AlldayCreation#beforeCreateSchedule}\n * @param {object} scheduleData - schedule data from AlldayCreation module.\n */\nAlldayCreation.prototype._createSchedule = function(scheduleData) {\n var dateRange = scheduleData.range,\n startXIndex = scheduleData.dragStartXIndex,\n xIndex = scheduleData.xIndex,\n start, end;\n\n // when inverse start, end then change it.\n if (xIndex < startXIndex) {\n startXIndex = xIndex + startXIndex;\n xIndex = startXIndex - xIndex;\n startXIndex = startXIndex - xIndex;\n }\n\n start = new TZDate(dateRange[startXIndex].getTime());\n end = datetime.end(dateRange[xIndex]);\n\n /**\n * @event {AlldayCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: true,\n start: start,\n end: end,\n guide: this.guide,\n triggerEventName: scheduleData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler method.\n * @emits AlldayCreation#alldayCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n */\nAlldayCreation.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n\n scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\n /**\n * @event AlldayCreation#alldayCreationDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayCreationDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayCreation#alldayCreationDrag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nAlldayCreation.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\n /**\n * @event AlldayCreation#alldayCreationDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayCreationDrag', scheduleData);\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayCreation#alldayCreationDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n */\nAlldayCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n var scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\n this._createSchedule(scheduleData);\n\n /**\n * @event AlldayCreation#alldayCreationDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayCreationDragend', scheduleData);\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayCreation#alldayCreationClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData.originEvent);\n scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('alldayCreationClick', scheduleData);\n self._createSchedule(scheduleData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Dblclick event handler method.\n * @emits AlldayCreation#alldayCreationClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayCreation.prototype._onDblClick = function(clickEventData) {\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData);\n scheduleData = getScheduleDataFunc(clickEventData);\n\n this.fire('alldayCreationClick', scheduleData);\n\n this._createSchedule(scheduleData);\n\n this._requestOnClick = false;\n};\n\ncommon.mixin(alldayCore, AlldayCreation);\nutil.CustomEvents.mixin(AlldayCreation);\n\nmodule.exports = AlldayCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/creation.js\n// module id = 75\n// module chunks = 0","/**\n * @fileoverview Guide element for Allday.Creation\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for Allday.Creation dragging effect.\n * @constructor\n * @param {AlldayCreation} alldayCreation - instance of AlldayCreation.\n */\nfunction AlldayCreationGuide(alldayCreation) {\n /**\n * @type {AlldayCreation}\n */\n this.alldayCreation = alldayCreation;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = document.createElement('div');\n\n this.initializeGuideElement();\n\n alldayCreation.on({\n alldayCreationDragstart: this._createGuideElement,\n alldayCreationDrag: this._onDrag,\n alldayCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.alldayCreation.off(this);\n this.alldayCreation = this.scheduleContainer = this.guideElement = null;\n};\n\n/**\n * initialize guide element's default style.\n */\nAlldayCreationGuide.prototype.initializeGuideElement = function() {\n domutil.addClass(this.guideElement, config.classname('allday-guide-creation-block'));\n};\n\n/**\n * Drag event handler\n * @param {object} scheduleData - schedule data from Allday.Creation handler.\n */\nAlldayCreationGuide.prototype._onDrag = function(scheduleData) {\n this._refreshGuideElement(scheduleData, true);\n};\n\n/**\n * Get element width based on narrowWeekend\n * @param {number} dragStartIndex - grid start index\n * @param {number} dragEndIndex - grid end index\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nAlldayCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n var width = 0;\n var i = dragStartIndex;\n for (; i <= dragEndIndex; i += 1) {\n width += grids[i] ? grids[i].width : 0;\n }\n\n return width;\n};\n\n/**\n * Refresh guide element.\n * @param {object} scheduleData - schedule data from Allday.Creation handler.\n * @param {boolean} defer - If set to true, set style in the next frame\n */\nAlldayCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n var guideElement = this.guideElement,\n data = scheduleData,\n dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n leftPercent,\n widthPercent;\n\n leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\n /** eslint-disable require-jsdoc */\n function setStyle() {\n guideElement.style.display = 'block';\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n }\n\n if (defer) {\n reqAnimFrame.requestAnimFrame(setStyle);\n } else {\n setStyle();\n }\n};\n\n/**\n * Clear guide element.\n */\nAlldayCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement;\n\n domutil.remove(guideElement);\n\n guideElement.style.display = 'none';\n guideElement.style.left = '';\n guideElement.style.width = '';\n};\n\n/**\n * Create guide element\n * @param {object} dragStartEventData - schedule data object of Allday.Creation.\n */\nAlldayCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var alldayCreation = this.alldayCreation,\n alldayView = alldayCreation.alldayView,\n alldayContainerElement = alldayView.container,\n scheduleContainer = domutil.find(config.classname('.weekday-grid'), alldayContainerElement);\n\n scheduleContainer.appendChild(this.guideElement);\n this._refreshGuideElement(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - event data object of Allday.Creation.\n */\nAlldayCreationGuide.prototype._onDrag = function(dragEventData) {\n this._refreshGuideElement(dragEventData);\n};\n\nmodule.exports = AlldayCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/creationGuide.js\n// module id = 76\n// module chunks = 0","/**\n * @fileoverview Resize handler module for Allday view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar AlldayCore = require('./core');\nvar AlldayResizeGuide = require('./resizeGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayResize(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * Temporary variable for dragStart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {AlldayResizeGuide}\n */\n this.guide = new AlldayResizeGuide(this);\n}\n\n/**\n * Destroy method\n */\nAlldayResize.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.alldayView = this.baseController =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayResize.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n target = domutil.closest(target, config.classname('.weekday'));\n\n if (!target) {\n return false;\n }\n\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler.\n * @emits AlldayResize#alldayResizeDragstart\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.baseController,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event AlldayResize#alldayResizeDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('alldayResizeDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayResize#alldayResizeDrag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nAlldayResize.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @event AlldayResize#alldayResizeDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayResizeDrag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule instance to base controller.\n * @fires AlldayResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from AlldayResize handler.\n */\nAlldayResize.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newEnds = new TZDate(schedule.end.getTime());\n\n newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n newEnds = new TZDate(Math.max(datetime.end(schedule.start).getTime(), newEnds.getTime()));\n\n /**\n * @event AlldayResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {date} start - start time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayResize#alldayResizeDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nAlldayResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event AlldayResize#alldayResizeDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayResizeDragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayResize#alldayResizeClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayResize.prototype._onClick = function(clickEventData) {\n /**\n * @event AlldayResize#alldayResizeClick\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'alldayResizeClick', true);\n};\n\ncommon.mixin(AlldayCore, AlldayResize);\nutil.CustomEvents.mixin(AlldayResize);\n\nmodule.exports = AlldayResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/resize.js\n// module id = 77\n// module chunks = 0","/**\n * @fileoverview Resize Guide module.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @param {AlldayResize} alldayResize - instance of AlldayResize\n */\nfunction AlldayResizeGuide(alldayResize) {\n /**\n * @type {AlldayResize}\n */\n this.alldayResize = alldayResize;\n\n /**\n * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n alldayResize.on({\n 'alldayResizeDragstart': this._onDragStart,\n 'alldayResizeDrag': this._onDrag,\n 'alldayResizeDragend': this._clearGuideElement,\n 'alldayResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.alldayResize.off(this);\n this.alldayResize = this.scheduleContainer = this.getScheduleDataFunc =\n this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nAlldayResizeGuide.prototype._clearGuideElement = function() {\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} newWidth - new width percentage value to resize guide element.\n */\nAlldayResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.width = newWidth + '%';\n });\n};\n\n/**\n * Return function that calculate guide element's new width percentage value.\n * @param {object} dragStartEventData - dragstart schedule data.\n * @returns {function} return function that calculate guide element new width percentage.\n */\nAlldayResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n viewOptions = this.alldayResize.alldayView.options,\n fromLeft = (new TZDate(\n model.start.getTime() - datetime.parse(viewOptions.renderStartDate)\n )) / datetime.MILLISECONDS_PER_DAY | 0,\n grids = dragStartEventData.grids;\n\n return function(xIndex) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\n for (; i < length; i += 1) {\n if (i > fromLeft && i <= xIndex) {\n width += grids[i] ? grids[i].width : 0;\n }\n }\n\n return width;\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var alldayViewContainer = this.alldayResize.alldayView.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n domutil.addClass(guideElement, config.classname('allday-guide-move'));\n scheduleContainer.appendChild(guideElement);\n\n this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nAlldayResizeGuide.prototype._onDrag = function(dragEventData) {\n var func = this.getScheduleDataFunc;\n\n if (!func) {\n return;\n }\n\n this.refreshGuideElement(func(dragEventData.xIndex));\n};\n\nmodule.exports = AlldayResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/resizeGuide.js\n// module id = 78\n// module chunks = 0","/**\n * @fileoverview Dayname click event hander module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayName} [dayNameView] - DayName view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction DayNameClick(dragHandler, dayNameView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayName}\n */\n this.dayNameView = dayNameView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayNameClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dayNameView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayNameClick.prototype.checkExpectCondition = function(target) {\n var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\n if (!container) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits DayNameClick#clickDayname\n */\nDayNameClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n daynameView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.dayname'));\n\n if (!daynameView || !blockElement) {\n return;\n }\n\n /**\n * @events DayNameClick#clickDayname\n * @type {object}\n * @property {string} date - click date\n */\n self.fire('clickDayname', {\n date: domutil.getData(blockElement, 'date')\n });\n};\n\nutil.CustomEvents.mixin(DayNameClick);\n\nmodule.exports = DayNameClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/clickDayname.js\n// module id = 79\n// module chunks = 0","/**\n * @fileoverview Allday event click event hander module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeClick(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.timeGridView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nTimeClick.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits TimeClick#clickEvent\n */\nTimeClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n schedulesCollection = this.baseController.schedules;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events TimeClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(TimeClick);\n\nmodule.exports = TimeClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/click.js\n// module id = 80\n// module chunks = 0","/**\n * @fileoverview Handling creation events from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar TimeCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeCreation(dragHandler, timeGridView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * TimeGrid view instance.\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {TimeCreationGuide}\n */\n this.guide = new TimeCreationGuide(this);\n\n /**\n * Temporary function for single drag session's calc.\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * Temporary function for drag start data cache.\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destroy method\n */\nTimeCreation.prototype.destroy = function() {\n var timeGridView = this.timeGridView;\n\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (timeGridView && timeGridView.container) {\n domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this.guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n */\nTimeCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n target = target.parentNode;\n cssClass = domutil.getClass(target);\n }\n\n matches = cssClass.match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, matches[1]);\n};\n\n/**\n * Drag#dragStart event handler.\n * @emits TimeCreation#timeCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n eventData;\n\n if (!result) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @event TimeCreation#timeCreationDragstart\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeCreation#timeCreationDrag\n * @param {object} dragEventData - event data from Drag#drag.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n eventData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n eventData = getScheduleDataFunc(dragEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDrag\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDrag', eventData);\n};\n\n/**\n * @fires TimeCreation#beforeCreateSchedule\n * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n * or TimeCreation#timeCreationClick\n */\nTimeCreation.prototype._createSchedule = function(eventData) {\n var relatedView = eventData.relatedView,\n createRange = eventData.createRange,\n nearestGridTimeY = eventData.nearestGridTimeY,\n baseDate,\n dateStart,\n dateEnd,\n start,\n end;\n\n if (!createRange) {\n createRange = [\n nearestGridTimeY,\n nearestGridTimeY + datetime.millisecondsFrom('minutes', 30)\n ];\n }\n\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.end(baseDate);\n start = Math.max(dateStart.getTime(), createRange[0]);\n end = Math.min(dateEnd.getTime(), createRange[1]);\n\n /**\n * @event TimeCreation#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: false,\n start: new TZDate(start),\n end: new TZDate(end),\n guide: this.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeCreation#timeCreationDragend\n * @param {object} dragEndEventData - event data from Drag#dragend\n */\nTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n var self = this,\n dragStart = this._dragStart;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * Function for manipulate event data before firing event\n * @param {object} eventData - event data\n */\n function reviseFunc(eventData) {\n var range = [\n dragStart.nearestGridTimeY,\n eventData.nearestGridTimeY\n ].sort(array.compare.num.asc);\n range[1] += datetime.millisecondsFrom('hour', 0.5);\n\n eventData.createRange = range;\n\n self._createSchedule(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDragend\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {number[]} createRange - milliseconds range between drag start and end to create.\n */\n this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Drag#click event handler\n * @emits TimeCreation#timeCreationClick\n * @param {object} clickEventData - event data from Drag#click.\n */\nTimeCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var condResult, getScheduleDataFunc, eventData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n condResult = this.checkExpectedCondition(clickEventData.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('timeCreationClick', eventData);\n self._createSchedule(eventData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Dblclick event handler\n * @param {MouseEvent} e - Native MouseEvent\n */\nTimeCreation.prototype._onDblClick = function(e) {\n var condResult, getScheduleDataFunc, eventData;\n\n condResult = this.checkExpectedCondition(e.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(e);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n\n this._requestOnClick = false;\n};\n\ntimeCore.mixin(TimeCreation);\nutil.CustomEvents.mixin(TimeCreation);\n\nmodule.exports = TimeCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/creation.js\n// module id = 81\n// module chunks = 0","/**\n * @fileoverview Module for Time.Creation effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar TZDate = require('../../common/timezone').Date;\nvar MIN30 = (datetime.MILLISECONDS_PER_MINUTES * 30);\n\n/**\n * Class for Time.Creation dragging effect.\n * @constructor\n * @param {TimeCreation} timeCreation - instance of TimeCreation.\n */\nfunction TimeCreationGuide(timeCreation) {\n /**\n * Guide element for creation effect.\n * @type {HTMLElement}\n */\n this.guideElement = global.document.createElement('div');\n\n /**\n * @type {HTMLDivElement}\n */\n this.guideTimeElement = domutil.appendHTMLElement(\n 'span',\n this.guideElement,\n config.classname('time-guide-creation-label')\n );\n\n domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\n /**\n * @type {TimeCreation}\n */\n this.timeCreation = timeCreation;\n\n /**\n * @type {array}\n */\n this._styleUnit = null;\n\n /**\n * @type {array}\n */\n this._styleStart = null;\n\n /**\n * @type {function}\n */\n this._styleFunc = null;\n\n timeCreation.on({\n timeCreationDragstart: this._createGuideElement,\n timeCreationDrag: this._onDrag,\n timeCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method.\n */\nTimeCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.timeCreation.off(this);\n this.timeCreation = this._styleUnit = this._styleStart =\n this._styleFunc = this.guideElement = this.guideTimeElement = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement,\n timeElement = this.guideTimeElement;\n\n domutil.remove(guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.display = 'none';\n guideElement.style.top = '';\n guideElement.style.height = '';\n timeElement.innerHTML = '';\n });\n};\n\n/**\n * Refresh guide element\n * @param {number} top - The number of guide element's style top\n * @param {number} height - The number of guide element's style height\n * @param {Date} start - start time of schedule to create\n * @param {Date} end - end time of schedule to create\n * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n */\nTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n var guideElement = this.guideElement;\n var timeElement = this.guideTimeElement;\n\n guideElement.style.top = top + 'px';\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n\n timeElement.innerHTML = datetime.format(new TZDate(start), 'HH:mm') +\n ' - ' + datetime.format(new TZDate(end), 'HH:mm');\n\n if (bottomLabel) {\n domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n } else {\n domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n }\n};\n\n/**\n * Get unit data of calculating new style of guide element by user interaction\n * @param {Time} relatedView - time view instance related with schedule\n * @returns {array} unit data.\n */\nTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n var viewOpt = relatedView.options,\n viewHeight = relatedView.getViewBound().height,\n hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n todayStart = datetime.parse(viewOpt.ymd),\n todayEnd = datetime.end(todayStart);\n\n todayStart.setHours(0, 0, 0, 0);\n todayStart.setHours(viewOpt.hourStart);\n\n // [0] height of view\n // [1] hour length of view\n // [2] start time of view\n // [3] end time of view\n // [4] height of view for one hour\n return [\n viewHeight,\n hourLength,\n Number(todayStart),\n Number(todayEnd),\n viewHeight / hourLength\n ];\n};\n\n/**\n * Applying limitation to supplied data and return it.\n * @param {number} top - top pixel of guide element\n * @param {number} height - height pixel of guide element\n * @param {number} start - relative time value of dragstart point\n * @param {number} end - relative time value of dragend point\n * @returns {array} limited style data\n */\nTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n var unitData = this._styleUnit;\n\n top = common.limit(top, [0], [unitData[0]]);\n height = common.limit(top + height, [0], [unitData[0]]) - top;\n start = common.limit(start, [unitData[2]], [unitData[3]]);\n end = common.limit(end, [unitData[2]], [unitData[3]]);\n\n return [top, height, start, end];\n};\n\n/**\n * Get function to calculate guide element UI data from supplied units\n * @param {number} viewHeight - total height of view's container element\n * @param {number} hourLength - hour length that rendered in time view\n * @param {number} todayStart - time for view's start date\n * @returns {function} UI data calculator function\n */\nTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n var todayEnd = Number(datetime.end(new TZDate(Number(todayStart))));\n\n /**\n * Get top, time value from schedule dat\n * @param {object} scheduleData - schedule data object\n * @returns {number[]} top, time\n */\n function getStyleData(scheduleData) {\n var gridY = scheduleData.nearestGridY,\n gridTimeY = scheduleData.nearestGridTimeY,\n top, time;\n\n top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n time = common.limit(gridTimeY, [todayStart], [todayEnd]);\n\n return [top, time];\n }\n\n return getStyleData;\n};\n\n/**\n * DragStart event handler\n * @param {object} dragStartEventData - dragStart schedule data.\n */\nTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var relatedView = dragStartEventData.relatedView,\n unitData, styleFunc, styleData, result;\n\n unitData = this._styleUnit = this._getUnitData(relatedView);\n styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n styleData = this._styleStart = styleFunc(dragStartEventData);\n\n result = this._limitStyleData(\n styleData[0],\n (unitData[4] / 2),\n styleData[1],\n (styleData[1] + MIN30)\n );\n\n this._refreshGuideElement.apply(this, result);\n\n relatedView.container.appendChild(this.guideElement);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEventData - drag schedule data.\n */\nTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n var styleFunc = this._styleFunc,\n unitData = this._styleUnit,\n startStyle = this._styleStart,\n refreshGuideElement = this._refreshGuideElement.bind(this),\n heightOfHalfHour,\n endStyle,\n result;\n\n if (!styleFunc || !unitData || !startStyle) {\n return;\n }\n\n heightOfHalfHour = (unitData[4] / 2);\n endStyle = styleFunc(dragEventData);\n\n if (endStyle[0] > startStyle[0]) {\n result = this._limitStyleData(\n startStyle[0],\n (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n startStyle[1],\n (endStyle[1] + MIN30)\n );\n } else {\n result = this._limitStyleData(\n endStyle[0],\n (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n endStyle[1],\n (startStyle[1] + MIN30)\n );\n result.push(true);\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n refreshGuideElement.apply(null, result);\n });\n};\n\nmodule.exports = TimeCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/creationGuide.js\n// module id = 82\n// module chunks = 0","/**\n * @fileoverview Core methods for dragging actions\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar domevent = require('../../common/domevent');\nvar Point = require('../../common/point');\n\n/**\n * @mixin Time.Core\n */\nvar timeCore = {\n /**\n * Get Y index ratio(hour) in time grids by supplied parameters.\n * @param {number} baseMil - base milliseconds number for supplied height.\n * @param {number} height - container element height.\n * @param {number} y - Y coordinate to calculate hour ratio.\n * @returns {number} hour index ratio value.\n */\n _calcGridYIndex: function(baseMil, height, y) {\n // get ratio from right expression > point.y : x = session.height : baseMil\n // and convert milliseconds value to hours.\n var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n floored = result | 0,\n nearest = common.nearest(result - floored, [0, 1]);\n\n return floored + (nearest ? 0.5 : 0);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleData: function(timeView) {\n var self = this,\n container = timeView.container,\n options = timeView.options,\n viewHeight = timeView.getViewBound().height,\n viewTime = Number(timeView.getDate()),\n hourLength = options.hourEnd - options.hourStart,\n baseMil = datetime.millisecondsFrom('hour', hourLength);\n\n /**\n * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n * @param {object} [extend] - object to extend event data before return.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(mouseEvent, extend) {\n var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n gridY = common.ratio(viewHeight, hourLength, mouseY),\n timeY = viewTime + datetime.millisecondsFrom('hour', gridY),\n nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n nearestGridTimeY = viewTime + datetime.millisecondsFrom('hour', nearestGridY + options.hourStart);\n\n return util.extend({\n target: mouseEvent.target || mouseEvent.srcElement,\n relatedView: timeView,\n originEvent: mouseEvent,\n mouseY: mouseY,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n triggerEvent: mouseEvent.type\n }, extend);\n }, this);\n },\n\n /**\n * Mixin method.\n * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n */\n mixin: function(obj) {\n var proto = obj.prototype;\n util.forEach(timeCore, function(method, methodName) {\n if (methodName === 'mixin') {\n return;\n }\n\n proto[methodName] = method;\n });\n }\n};\n\nmodule.exports = timeCore;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/core.js\n// module id = 83\n// module chunks = 0","/**\n * @fileoverview Handling move schedules from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeMoveGuide = require('./moveGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeMove(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeMoveGuide}\n */\n this._guide = new TimeMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method.\n */\nTimeMove.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {boolean|object} - return object when satiate condition.\n */\nTimeMove.prototype.checkExpectCondition = function(target) {\n if (!domutil.closest(target, config.classname('.time-schedule'))) {\n return false;\n }\n\n return this._getTimeView(target);\n};\n\n/**\n * Get Time view container from supplied element.\n * @param {HTMLElement} target - element to find time view container.\n * @returns {object|boolean} - return time view instance when finded.\n */\nTimeMove.prototype._getTimeView = function(target) {\n var container = domutil.closest(target, config.classname('.time-date')),\n matches;\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeMove#timeMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart schedule data.\n */\nTimeMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData,\n ctrl = this.baseController,\n targetModelID,\n targetModel;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n targetModel = ctrl.schedules.items[targetModelID];\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n model: targetModel\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeMove#timeMoveDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} model - model instance\n */\n this.fire('timeMoveDragstart', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveDrag\n * @param {MouseEvent} dragEventData - mousemove event object\n * @param {string} [overrideEventName] - name of emitting event to override.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n timeView = this._getTimeView(dragEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n if (!timeView || !getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n currentView: timeView,\n targetModelID: dragStart.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeMove#timeMoveDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n */\nTimeMove.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n dateDiff = 0,\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n currentView = scheduleData.currentView,\n scheduleDuration,\n dateStart,\n dateEnd,\n newStarts,\n newEnds,\n baseDate;\n\n if (!schedule || !currentView) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.end(baseDate);\n newStarts = new TZDate(schedule.getStarts().getTime() + timeDiff);\n newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n scheduleDuration = schedule.duration();\n\n if (currentView) {\n dateDiff = currentView.getDate() - relatedView.getDate();\n }\n\n if (newStarts < dateStart) {\n newStarts = new TZDate(dateStart.getTime());\n newEnds = new TZDate(newStarts.getTime() + scheduleDuration.getTime());\n } else if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd.getTime());\n newStarts = new TZDate(newEnds.getTime() - scheduleDuration.getTime());\n }\n\n newStarts = new TZDate(newStarts.getTime() + dateDiff);\n newEnds = new TZDate(newEnds.getTime() + dateDiff);\n\n /**\n * @event TimeMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * @emits TimeMove#timeMoveDragend\n * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n */\nTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n currentView = this._getTimeView(dragEndEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n currentView: currentView,\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeMove#timeMoveDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeMoveDragend', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveClick\n * @param {MouseEvent} clickEventData - click mouse event object.\n */\nTimeMove.prototype._onClick = function(clickEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n /**\n * @event TimeMove#timeMoveClick\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeMoveClick', scheduleData);\n};\n\ntimeCore.mixin(TimeMove);\nutil.CustomEvents.mixin(TimeMove);\n\nmodule.exports = TimeMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/move.js\n// module id = 84\n// module chunks = 0","/**\n * @fileoverview Module for Time.Move effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar FloatingLayer = require('../../common/floatingLayer');\nvar tmpl = require('../../view/template/week/timeMoveGuide.hbs');\nvar TZDate = require('../../common/timezone').Date;\nvar Schedule = require('../../model/schedule');\n\n/**\n * Class for Time.Move effect.\n * @constructor\n * @param {TimeMove} timeMove - The instance of TimeMove.\n */\nfunction TimeMoveGuide(timeMove) {\n /**\n * @type {FloatingLayer}\n */\n this._guideLayer = null;\n\n /**\n * @Type {Schedule}\n */\n this._model = null;\n\n /**\n * @type {object}\n */\n this._lastDrag = null;\n\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeMove}\n */\n this.timeMove = timeMove;\n\n /**\n * @type {HTMLElement}\n */\n this._container = null;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n timeMove.on({\n 'timeMoveDragstart': this._onDragStart,\n 'timeMoveDrag': this._onDrag,\n 'timeMoveDragend': this._clearGuideElement,\n 'timeMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeMove.off(this);\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n this._getTopFunc = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeMoveGuide.prototype._clearGuideElement = function() {\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n\n this._showOriginScheduleBlocks();\n\n this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.addClass(this.guideElement, className);\n }\n};\n\n/**\n * Show element blocks\n */\nTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.removeClass(this.guideElement, className);\n }\n};\n\nTimeMoveGuide.prototype._getHighlightColorModel = function(model) {\n return {\n bgColor: model.color\n };\n};\n\n/**\n * Refresh guide element\n * @param {string} top - guide element's style top.\n * @param {Schedule} model - updated model\n */\nTimeMoveGuide.prototype._refreshGuideElement = function(top, model) {\n var self = this;\n\n reqAnimFrame.requestAnimFrame(function() {\n if (!self._guideLayer) {\n return;\n }\n self._guideLayer.setPosition(0, top);\n self._guideLayer.setContent(tmpl({model: model}));\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var guideElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n );\n\n if (!guideElement) {\n return;\n }\n\n this._startTopPixel = parseFloat(guideElement.style.top);\n this._startGridY = dragStartEventData.nearestGridY;\n this.guideElement = guideElement;\n this._container = dragStartEventData.relatedView.container;\n\n this._model = util.extend(\n Schedule.create(dragStartEventData.model),\n dragStartEventData.model,\n this._getHighlightColorModel(dragStartEventData.model)\n );\n this._lastDrag = dragStartEventData;\n\n this._resetGuideLayer();\n this._hideOriginScheduleBlocks();\n};\n\n/**\n * TimeMove#timeMoveDrag event handler\n * @param {object} dragEventData - drag event data\n */\nTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.currentView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n guideHeight = parseFloat(this.guideElement.style.height),\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n timeDiff = dragEventData.nearestGridTimeY - this._lastDrag.nearestGridTimeY,\n bottomLimit,\n top;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n if (this._container !== timeView.container) {\n this._container = timeView.container;\n this._resetGuideLayer();\n }\n\n top = this._startTopPixel + gridYOffsetPixel;\n bottomLimit = viewHeight - guideHeight;\n\n top = Math.max(top, 0);\n top = Math.min(top, bottomLimit);\n\n // update time\n this._model.start = new TZDate(this._model.getStarts().getTime() + timeDiff);\n this._model.end = new TZDate(this._model.getEnds().getTime() + timeDiff);\n this._lastDrag = dragEventData;\n\n this._refreshGuideElement(top, this._model);\n};\n\nTimeMoveGuide.prototype._resetGuideLayer = function() {\n if (this._guideLayer) {\n this._guideLayer.destroy();\n this._guideLayer = null;\n }\n this._guideLayer = new FloatingLayer(null, this._container);\n this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n this._guideLayer.setPosition(0, this.guideElement.style.top);\n this._guideLayer.setContent(tmpl({model: this._model}));\n this._guideLayer.show();\n};\n\nmodule.exports = TimeMoveGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/moveGuide.js\n// module id = 85\n// module chunks = 0","/**\n * @fileoverview Floating layer module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for floating layer module\n * @param {HTMLElement} container - parent continer for floating layer\n */\nfunction FloatingLayer(options, container) {\n var sibling = container[FloatingLayer.PROP_KEY],\n layerContainer;\n\n if (!sibling) {\n sibling = container[FloatingLayer.PROP_KEY] = [];\n }\n\n sibling.push(this);\n\n /**\n * @type {Collection}\n */\n this.sibling = sibling;\n\n /**\n * @type {number}\n */\n this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\n layerContainer = document.createElement('div');\n layerContainer.style.display = 'none';\n layerContainer.style.position = 'absolute';\n domutil.addClass(layerContainer, config.classname('floating-layer'));\n container.appendChild(layerContainer);\n\n View.call(this, layerContainer);\n\n /**\n * @type {HTMLElement}\n */\n this.parent = container;\n}\n\nutil.inherit(FloatingLayer, View);\n\n/**\n * @const\n */\nFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\n/**\n * @const\n */\nFloatingLayer.INIT_ZINDEX = 999;\n\n/**\n * Destroy floating layer instance. if there no instnace in parent container\n *\n * remove instance cache property in container element\n */\nFloatingLayer.prototype.destroy = function() {\n var parent = this.parent,\n sibling = this.sibling,\n i = 0, cnt = sibling.length;\n\n for (; i < cnt; i += 1) {\n if (sibling[i] === this) {\n sibling.splice(i, 1);\n break;\n }\n }\n\n if (!sibling.length) {\n try {\n delete parent[FloatingLayer.PROP_KEY];\n } catch (e) {\n parent[FloatingLayer.PROP_KEY] = null;\n }\n\n parent.style.position = '';\n }\n\n domutil.remove(this.container);\n\n this.sibling = null;\n\n View.prototype.destroy.call(this);\n};\n\n/**\n * @returns {boolean} whether layer is visible?\n */\nFloatingLayer.prototype.isVisible = function() {\n return this.container.style.display !== 'none';\n};\n\n/**\n * Set layer position\n * @param {number} x - x coordinate of layer\n * @param {number} y - y coordinate of layer\n */\nFloatingLayer.prototype.setPosition = function(x, y) {\n domutil.setPosition(this.container, x, y);\n};\n\n/**\n * Set layer left, top, right, bottom position\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\nFloatingLayer.prototype.setLTRB = function(ltrb) {\n domutil.setLTRB(this.container, ltrb);\n};\n\n/**\n * Set layer size\n * @param {number|string} w - layer width\n * @param {number|string} h - layer height\n */\nFloatingLayer.prototype.setSize = function(w, h) {\n var container = this.container;\n\n w = util.isNumber(w) ? w + 'px' : w;\n h = util.isNumber(h) ? h + 'px' : h;\n\n container.style.width = w;\n container.style.height = h;\n};\n\n/**\n * Set layer content\n * @param {string} html - html string\n */\nFloatingLayer.prototype.setContent = function(html) {\n this.container.innerHTML = html;\n};\n\n/**\n * Get largest z-index from sibling layers\n * @returns {number} largest z-index value\n */\nFloatingLayer.prototype.getLargestZIndex = function() {\n var zIndexes = util.map(this.sibling, function(layer) {\n return layer.zIndex;\n });\n\n return Math.max.apply(null, zIndexes);\n};\n\n/**\n * Set focus to layer\n */\nFloatingLayer.prototype.focus = function() {\n var zIndexForShow = this.getLargestZIndex() + 1;\n this.container.style.zIndex = this.zIndex = zIndexForShow;\n};\n\n/**\n * Show layer\n */\nFloatingLayer.prototype.show = function() {\n this.focus();\n this.container.style.display = 'block';\n};\n\n/**\n * Hide layer\n */\nFloatingLayer.prototype.hide = function() {\n this.container.style.display = 'none';\n};\n\nmodule.exports = FloatingLayer;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/floatingLayer.js\n// module id = 86\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
     
    \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/timeMoveGuide.hbs\n// module id = 87\n// module chunks = 0","/**\n * @fileoverview Handling resize schedules from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeResizeGuide = require('./resizeGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeResize(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeResizeGuide}\n */\n this._guide = new TimeResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method\n */\nTimeResize.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * @param {HTMLElement} target - element to check condition.\n * @returns {object|boolean} - return time view instance or false\n */\nTimeResize.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n return false;\n }\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeResize#timeResizeDragstart\n * @param {object} dragStartEventData - event data of Drag#dragstart\n */\nTimeResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: domutil.getData(blockElement, 'id')\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeResizeDragstart', scheduleData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeResize#timeResizeDrag\n * @param {object} dragEventData - event data of Drag#drag custom event.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n startScheduleData = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !startScheduleData) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n targetModelID: startScheduleData.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeResize#timeResizeDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n */\nTimeResize.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n dateEnd,\n newEnds,\n baseDate;\n\n if (!schedule) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\n baseDate = new TZDate(relatedView.getDate());\n dateEnd = datetime.end(baseDate);\n newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n\n if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd.getTime());\n }\n\n if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n newEnds = new TZDate(schedule.getStarts().getTime() + datetime.millisecondsFrom('minutes', 30));\n }\n\n /**\n * @event TimeResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeResize#timeResizeDragend\n * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n */\nTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeResize#timeResizeDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeResizeDragend', scheduleData);\n\n this._getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * @emits TimeResize#timeResizeClick\n */\nTimeResize.prototype._onClick = function() {\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeClick\n */\n this.fire('timeResizeClick');\n};\n\ntimeCore.mixin(TimeResize);\nutil.CustomEvents.mixin(TimeResize);\n\nmodule.exports = TimeResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/resize.js\n// module id = 88\n// module chunks = 0","/**\n * @fileoverview Module for Time.Resize effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\n\n/**\n * Class for Time.Resize effect.\n * @constructor\n * @param {TimeResize} timeResize - the instance of TimeResize handler.\n */\nfunction TimeResizeGuide(timeResize) {\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeResize}\n */\n this.timeResize = timeResize;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {HTMLElement}\n */\n this._originScheduleElement = null;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n /**\n * @type {number}\n */\n this._startHeightPixel = 0;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n timeResize.on({\n 'timeResizeDragstart': this._onDragStart,\n 'timeResizeDrag': this._onDrag,\n 'timeResizeDragend': this._clearGuideElement,\n 'timeResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeResize.off(this);\n this.guideElement = this.timeResize = this._getTopFunc =\n this._originScheduleElement = this._startHeightPixel =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeResizeGuide.prototype._clearGuideElement = function() {\n var guideElement = this.guideElement,\n originElement = this._originScheduleElement;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing'));\n }\n\n if (originElement) {\n originElement.style.display = 'block';\n }\n\n domutil.remove(guideElement);\n\n this.guideElement = this._getTopFunc = this._originScheduleElement =\n this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Refresh guide element\n * @param {string} height - guide element's style height.\n */\nTimeResizeGuide.prototype._refreshGuideElement = function(height) {\n var guideElement = this.guideElement;\n\n if (!guideElement) {\n return;\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var originElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n ),\n guideElement;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing'));\n }\n\n if (!originElement) {\n return;\n }\n\n this._startGridY = dragStartEventData.nearestGridY;\n this._startHeightPixel = parseFloat(originElement.style.height);\n this._startTopPixel = parseFloat(originElement.style.top);\n\n this._originScheduleElement = originElement;\n guideElement = this.guideElement = originElement.cloneNode(true);\n domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\n originElement.style.display = 'none';\n dragStartEventData.relatedView.container.appendChild(guideElement);\n};\n\n/**\n * @param {object} dragEventData - event data from Drag#drag.\n */\nTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.relatedView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n guideElement = this.guideElement,\n guideTop = parseFloat(guideElement.style.top),\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n // hourLength : viewHeight = gridYOffset : X;\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n minHeight,\n maxHeight,\n height;\n\n height = (this._startHeightPixel + gridYOffsetPixel);\n // at least large than 30min from schedule start time.\n minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n minHeight -= this._startTopPixel;\n // smaller than 24h\n maxHeight = viewHeight - guideTop;\n\n height = Math.max(height, minHeight);\n height = Math.min(height, maxHeight);\n\n this._refreshGuideElement(height);\n};\n\nmodule.exports = TimeResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/resizeGuide.js\n// module id = 89\n// module chunks = 0","/**\n * @fileoverview 마일스톤 항목 클릭 이벤트 핸들러 모듈\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * 마일스톤 클릭 이벤트 핸들러 모듈\n * @constructor\n * @implelements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} dragHandler - dragHandler instance\n * @param {Milestone} milestoneView - milstone view instance\n * @param {Base} baseController - baseController instance\n */\nfunction MilestoneClick(dragHandler, milestoneView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Milestone}\n */\n this.milestoneView = milestoneView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy\n */\nMilestoneClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dragHandler = this.milestoneView = this.baseController = null;\n};\n\n/**\n * @param {HTMLElement} target - check reponsibility to this handler module supplied element\n * @returns {boolean|string} return false when handler has no responsibility for supplied element.\n * otherwise, return schedule model id that related with target element.\n */\nMilestoneClick.prototype.checkExpectedCondition = function(target) {\n target = domutil.closest(target, config.classname('.milestone-item'));\n\n if (!target) {\n return false;\n }\n\n return domutil.getData(target, 'id');\n};\n\n/**\n * @emits MilestoneClick#clickSchedule\n * @param {object} clickEvent - click event object\n */\nMilestoneClick.prototype._onClick = function(clickEvent) {\n var self = this,\n modelID = this.checkExpectedCondition(clickEvent.target);\n\n if (!modelID) {\n return;\n }\n\n this.baseController.schedules.doWhenHas(modelID, function(schedule) {\n /**\n * @events MilestoneClick#clickEvent\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(MilestoneClick);\n\nmodule.exports = MilestoneClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/milestone/click.js\n// module id = 90\n// module chunks = 0","/**\n * @fileoverview Month view factory module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n array = require('../common/array'),\n datetime = require('../common/datetime'),\n domutil = require('../common/domutil'),\n Month = require('../view/month/month'),\n MonthClick = require('../handler/month/click'),\n MonthCreation = require('../handler/month/creation'),\n MonthResize = require('../handler/month/resize'),\n MonthMove = require('../handler/month/move'),\n More = require('../view/month/more');\n\n/**\n * Get the view model for more layer\n * @param {TZDate} date - date has more schedules\n * @param {HTMLElement} target - target element\n * @param {Collection} schedules - schedule collection\n * @returns {object} view model\n */\nfunction getViewModelForMoreLayer(date, target, schedules) {\n schedules.each(function(schedule) {\n var model = schedule.model;\n schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n });\n\n return {\n target: target,\n date: datetime.format(date, 'YYYY.MM.DD'),\n schedules: schedules.sort(array.compare.schedule.asc)\n };\n}\n\n/**\n * @param {Base} baseController - controller instance\n * @param {HTMLElement} layoutContainer - container element for month view\n * @param {Drag} dragHandler - drag handler instance\n * @param {object} options - options\n * @returns {object} view instance and refresh method\n */\nfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n var monthViewContainer, monthView, moreView;\n var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n\n monthViewContainer = domutil.appendHTMLElement(\n 'div', layoutContainer, config.classname('month'));\n\n monthView = new Month(options.month, monthViewContainer, baseController.Month);\n moreView = new More(options.month, layoutContainer);\n\n // handlers\n clickHandler = new MonthClick(dragHandler, monthView, baseController);\n creationHandler = new MonthCreation(dragHandler, monthView, baseController);\n resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n moveHandler = new MonthMove(dragHandler, monthView, baseController);\n\n clearSchedulesHandler = function() {\n if (moreView) {\n moreView.hide();\n }\n };\n\n onUpdateSchedule = function() {\n if (moreView) {\n moreView.refresh();\n }\n };\n\n // binding +n click schedule\n clickHandler.on('clickMore', function(clickMoreSchedule) {\n var date = clickMoreSchedule.date,\n target = clickMoreSchedule.target,\n schedules = util.pick(baseController.findByDateRange(\n datetime.start(date),\n datetime.end(date)\n ), clickMoreSchedule.ymd);\n\n schedules.items = util.filter(schedules.items, function(item) {\n return options.month.scheduleFilter(item.model);\n });\n\n if (schedules && schedules.length) {\n moreView.render(getViewModelForMoreLayer(date, target, schedules));\n }\n });\n\n // binding clear schedules\n baseController.on('clearSchedules', clearSchedulesHandler);\n\n // bind update schedule event\n baseController.on('updateSchedule', onUpdateSchedule);\n\n moveHandler.on('monthMoveStart_from_morelayer', function() {\n moreView.hide();\n });\n\n monthView.handler = {\n click: {\n 'default': clickHandler\n },\n creation: {\n 'default': creationHandler\n },\n resize: {\n 'default': resizeHandler\n },\n move: {\n 'default': moveHandler\n }\n };\n\n monthView._beforeDestroy = function() {\n moreView.destroy();\n baseController.off('clearSchedules', clearSchedulesHandler);\n baseController.off('updateSchedule', onUpdateSchedule);\n\n util.forEach(monthView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n };\n\n // add controller\n monthView.controller = baseController.Month;\n\n return {\n view: monthView,\n refresh: function() {\n monthView.vLayout.refresh();\n }\n };\n}\n\nmodule.exports = createMonthView;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/monthView.js\n// module id = 91\n// module chunks = 0","/**\n * @fileoverview Month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('./month.hbs'),\n View = require('../view'),\n VLayout = require('../..//common/vlayout'),\n WeekdayInMonth = require('./weekdayInMonth');\nvar mmin = Math.min;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {function} [options.scheduleFilter] - schedule filter\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {string} [options.renderMonth='2015-12'] - render month\n * @param {string[]} [options.daynames] - daynames to use upside of month view\n * @param {HTMLElement} container - container element\n * @param {Base.Month} controller - controller instance\n */\nfunction Month(options, container, controller) {\n View.call(this, container);\n\n /**\n * @type {Base.Month}\n */\n this.controller = controller;\n\n /**\n * @type {VLayout}\n */\n this.vLayout = new VLayout({\n panels: [\n {height: 42},\n {autoHeight: true}\n ]\n }, container);\n\n /**\n * @type {string}\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n startDayOfWeek: 0,\n renderMonth: '2018-01',\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n narrowWeekend: false,\n visibleWeeksCount: null,\n grid: {\n header: {\n height: 34\n },\n footer: {\n height: 34\n }\n }\n }, options);\n\n this.options.grid.header = util.extend({\n height: 34\n }, util.pick(options, 'grid', 'header'));\n this.options.grid.footer = util.extend({\n height: 34\n }, util.pick(options, 'grid', 'footer'));\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = datetime.getGridLeftAndWidth(\n this.options.daynames.length,\n this.options.narrowWeekend,\n this.options.startDayOfWeek);\n}\n\nutil.inherit(Month, View);\n\n/**\n * Name of view. for managing subview at layout view\n * @type {string}\n */\nMonth.prototype.viewName = 'month';\n\n/**\n * Get calendar array by supplied date\n * @param {string} renderMonthStr - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n * @returns {array.} calendar array\n */\nMonth.prototype._getMonthCalendar = function(renderMonthStr) {\n var date = datetime.parse(renderMonthStr) || datetime.parse(renderMonthStr + '-01');\n var startDayOfWeek = this.options.startDayOfWeek || 0;\n var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n var workweek = this.options.workweek || false;\n var datetimeOptions, calendar;\n\n if (this.options.visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: true,\n workweek: workweek\n };\n }\n\n calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\n return calendar;\n};\n\n/**\n * Create children view (week) and add children\n * @param {HTMLElement} container - container element to render weeks\n * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n */\nMonth.prototype._renderChildren = function(container, calendar) {\n var self = this;\n var weekCount = calendar.length;\n var heightPercent = 100 / weekCount;\n var opt = this.options;\n var renderMonth = opt.renderMonth;\n var narrowWeekend = opt.narrowWeekend;\n var startDayOfWeek = opt.startDayOfWeek;\n var visibleWeeksCount = opt.visibleWeeksCount;\n var visibleScheduleCount = opt.visibleScheduleCount;\n var gridOption = opt.grid;\n\n container.innerHTML = '';\n this.children.clear();\n\n util.forEach(calendar, function(weekArr) {\n var start = new TZDate(Number(weekArr[0])),\n end = new TZDate(Number(weekArr[weekArr.length - 1])),\n weekdayViewContainer,\n weekdayView;\n\n weekdayViewContainer = domutil.appendHTMLElement(\n 'div', container, config.classname('month-week-item'));\n\n weekdayView = new WeekdayInMonth({\n renderMonth: renderMonth,\n heightPercent: heightPercent,\n renderStartDate: datetime.format(start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(end, 'YYYY-MM-DD'),\n narrowWeekend: narrowWeekend,\n startDayOfWeek: startDayOfWeek,\n visibleWeeksCount: visibleWeeksCount,\n visibleScheduleCount: visibleScheduleCount,\n grid: gridOption\n }, weekdayViewContainer);\n\n self.addChild(weekdayView);\n });\n};\n\n/**\n * Render month view\n * @override\n */\nMonth.prototype.render = function() {\n var opt = this.options,\n vLayout = this.vLayout,\n controller = this.controller,\n daynames = opt.daynames,\n workweek = opt.workweek,\n calendar = this._getMonthCalendar(opt.renderMonth),\n scheduleFilter = opt.scheduleFilter,\n grids,\n daynameViewModel,\n baseViewModel;\n\n grids = this.grids = datetime.getGridLeftAndWidth(\n opt.daynames.length,\n opt.narrowWeekend,\n opt.startDayOfWeek\n );\n\n daynameViewModel = util.map(\n util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n function(day, index) {\n return {\n day: day,\n label: daynames[day],\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0\n };\n }\n );\n\n if (workweek) {\n grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\n daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n return !datetime.isWeekend(daynameModel.day);\n });\n\n util.forEach(daynameViewModel, function(daynameModel, index) {\n daynameModel.width = grids[index] ? grids[index].width : 0;\n daynameModel.left = grids[index] ? grids[index].left : 0;\n });\n }\n\n baseViewModel = {\n daynames: daynameViewModel\n };\n\n vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\n this._renderChildren(vLayout.panels[1].container, calendar);\n\n this.children.each(function(childView) {\n var start = datetime.parse(childView.options.renderStartDate);\n var end = datetime.parse(childView.options.renderEndDate);\n var eventsInDateRange = controller.findByDateRange(\n datetime.start(start),\n datetime.end(end),\n scheduleFilter\n );\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY);\n var viewModel = {\n eventsInDateRange: eventsInDateRange,\n range: dateRange.slice(0, grids.length),\n grids: grids\n };\n\n childView.render(viewModel);\n });\n};\n\nmodule.exports = Month;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/month.js\n// module id = 92\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"monthDayname-tmpl\"] || (depth0 && depth0[\"monthDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.daynames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/month.hbs\n// module id = 93\n// module chunks = 0","/**\n * @fileoverview Monthday in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common.js'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n Weekday = require('../weekday'),\n baseTmpl = require('./weekdayInMonth.hbs'),\n scheduleTmpl = require('./weekdayInMonthSchedule.hbs');\nvar mfloor = Math.floor,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction WeekdayInMonth(options, container) {\n Weekday.call(this, options, container);\n container.style.height = options.heightPercent + '%';\n}\n\nutil.inherit(WeekdayInMonth, Weekday);\n\n/**\n * Get schedule container element's bound properly by override\n *\n * View#getViewBound.\n * @override\n */\nWeekdayInMonth.prototype.getViewBound = function() {\n var bound = View.prototype.getViewBound.call(this);\n\n return bound;\n};\n\n/**\n * Get limit index of schedule block in current view\n * @returns {number} limit index\n */\nWeekdayInMonth.prototype._getRenderLimitIndex = function() {\n var opt = this.options;\n var containerHeight = this.getViewBound().height;\n var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n var visibleScheduleCount = opt.visibleScheduleCount || 0;\n var count;\n\n containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\n count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\n if (!visibleScheduleCount) {\n visibleScheduleCount = count;\n }\n\n return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n renderLimitIdx = this._getRenderLimitIndex(),\n exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range);\n var baseViewModel;\n\n viewModel = util.extend({\n exceedDate: exceedDate\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n matrices: viewModel.eventsInDateRange,\n gridHeaderHeight: gridHeaderHeight,\n gridFooterHeight: gridFooterHeight,\n renderLimitIdx: renderLimitIdx + 1\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainer,\n contentStr = '';\n\n if (!this.options.visibleWeeksCount) {\n setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth);\n }\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n scheduleContainer = domutil.find(\n config.classname('.weekday-schedules'),\n container\n );\n\n if (!scheduleContainer) {\n return;\n }\n\n contentStr += scheduleTmpl(baseViewModel);\n\n scheduleContainer.innerHTML = contentStr;\n\n common.setAutoEllipsis(\n config.classname('.weekday-schedule-title'),\n container\n );\n};\n\nWeekdayInMonth.prototype._beforeDestroy = function() {\n};\n\n/**\n * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n * @param {Array} dates - 날짜정보 배열\n * @param {string} renderMonthStr - 현재 렌더링중인 월 (YYYYMM)\n */\nfunction setIsOtherMonthFlag(dates, renderMonthStr) {\n var renderMonth = Number(renderMonthStr.substring(5));\n\n util.forEach(dates, function(dateObj) {\n dateObj.isOtherMonth = dateObj.month !== renderMonth;\n });\n}\n\nmodule.exports = WeekdayInMonth;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonth.js\n// module id = 94\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridHeader-tmpl\"] || (depth0 && depth0[\"monthGridHeader-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridFooter-tmpl\"] || (depth0 && depth0[\"monthGridFooter-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"near-month-day\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"extra-date\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridHeaderExceed-tmpl\"] || (depth0 && depth0[\"monthGridHeaderExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridFooterExceed-tmpl\"] || (depth0 && depth0[\"monthGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonth.hbs\n// module id = 95\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.top : depth0),\"<\",((stack1 = (data && data.root)) && stack1.renderLimitIdx),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\";\n\n return \"
    \\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(19, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-left\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-right\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers.unless.call(alias3,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-schedule-focused \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonthSchedule.hbs\n// module id = 96\n// module chunks = 0","/**\n * @fileoverview Click handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Month} [monthView] - Month view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction MonthClick(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.monthView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * @fires MonthClick#clickMore\n * @param {object} clickEvent - click event object\n */\nMonthClick.prototype._onClick = function(clickEvent) {\n var self = this,\n moreElement,\n scheduleCollection = this.baseController.schedules,\n blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-month')\n );\n\n if (moreElement) {\n self.fire('clickMore', {\n date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n target: moreElement,\n ymd: domutil.getData(moreElement, 'ymd')\n });\n }\n\n if (blockElement) {\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(MonthClick);\n\nmodule.exports = MonthClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/click.js\n// module id = 97\n// module chunks = 0","/**\n * @fileoverview Creation handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar array = require('../../common/array');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar getMousePosDate = require('./core');\nvar Guide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthCreation(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * Cache for dragging session\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthCreationGuide}\n */\n this.guide = new Guide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destructor\n */\nMonthCreation.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.guide.destroy();\n\n if (this.monthView && this.monthView.container) {\n domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.monthView = this.baseController =\n this.getScheduleData = this._cache = this.guide = null;\n};\n\n/**\n * Fire before create schedule\n * @fires {MonthCreation#beforeCreateSchedule}\n * @param {object} eventData - cache data from single dragging session\n */\nMonthCreation.prototype._createSchedule = function(eventData) {\n /**\n * @event {MonthCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: eventData.isAllDay,\n start: eventData.start,\n end: eventData.end,\n guide: this.guide.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {object} dragStartEvent - dragStart event data\n */\nMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n var eventData;\n\n if (!isElementWeekdayGrid(dragStartEvent.target)) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosDate(this.monthView);\n\n eventData = this.getScheduleData(dragStartEvent.originEvent);\n\n this._cache = {\n start: new TZDate(Number(eventData.date))\n };\n\n /**\n * @event {MonthCreation#monthCreationDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragstart', eventData);\n};\n\n/**\n * Drag event handler\n * @fires {MonthCreation#monthCreationDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthCreation.prototype._onDrag = function(dragEvent) {\n var eventData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEvent.originEvent);\n\n if (!eventData) {\n return;\n }\n\n /**\n * @event {MonthCreation#monthCreationDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDrag', eventData);\n};\n\n/**\n * DragEnd event handler\n * @fires {MonthCreation#monthCreationDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var eventData;\n var times;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (eventData) {\n cache.end = new TZDate(Number(eventData.date));\n cache.isAllDay = true;\n\n times = [\n Number(cache.start),\n Number(cache.end)\n ].sort(array.compare.num.asc);\n\n cache.start = new TZDate(times[0]);\n cache.end = datetime.end(new TZDate(times[1]));\n\n this._createSchedule(cache);\n }\n\n /**\n * @event {MonthCreation#monthCreationDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragend', eventData);\n\n this.getScheduleData = this._cache = null;\n};\n\n/**\n * Dblclick event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onDblClick = function(e) {\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e);\n\n this.fire('monthCreationClick', eventData);\n\n range = this._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\n this._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n\n this._requestOnClick = false;\n};\n\n/**\n * Click event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onClick = function(e) {\n var self = this;\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('monthCreationClick', eventData);\n\n range = self._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\n self._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Adjust time to our o'clock\n * @param {TZDate} start - start time\n * @param {TZDate} end - end time\n * @returns {Object} start and end\n */\nMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n var now = new TZDate();\n var hours = now.getHours();\n var minutes = now.getMinutes();\n\n // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n if (minutes <= 30) {\n minutes = 0;\n } else {\n minutes = 30;\n }\n start.setHours(hours, minutes, 0, 0);\n end.setHours(hours + 1, minutes, 0, 0);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * Returns whether the given element is Weekday-Schedule.\n * @param {HTMLElement} el - target element\n * @returns {boolean}\n */\nfunction isElementWeekdayGrid(el) {\n return domutil.closest(el, config.classname('.weekday-grid'))\n && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n}\n\nutil.CustomEvents.mixin(MonthCreation);\n\nmodule.exports = MonthCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/creation.js\n// module id = 98\n// module chunks = 0","/**\n * @fileoverview Module for calculate date by month view and mouse event object\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent');\nvar mfloor = Math.floor;\n\n/**\n * Get high order function that can calc date in mouse point\n * @param {Month} monthView - month view\n * @returns {function} function return event data by mouse event object\n */\nfunction getMousePosDate(monthView) {\n var weekColl = monthView.children,\n weeks = weekColl.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n }),\n weekCount = weekColl.length,\n days = weekColl.single().getRenderDateRange(),\n dayCount = days.length,\n relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n size = domutil.getSize(relativeContainer),\n grids = monthView.grids;\n\n /**\n * Get the left index\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\n function getX(left) {\n var i = 0;\n var length = grids.length;\n var grid;\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n }\n\n /**\n * Get date related with mouse event object\n * @param {object} mouseEvent - click event data\n * @returns {object} data related with mouse event\n */\n function getDate(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n x = getX(common.ratio(size[0], 100, pos[0])),\n y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n weekdayView, date;\n\n weekdayView = util.pick(weeks, y);\n\n if (!weekdayView) {\n return null;\n }\n\n date = util.pick(weekdayView.getRenderDateRange(), x);\n\n if (!date) {\n return null;\n }\n\n return {\n x: x,\n y: y,\n sizeX: dayCount,\n sizeY: weekCount,\n date: date,\n weekdayView: weekdayView,\n triggerEvent: mouseEvent.type\n };\n }\n\n return getDate;\n}\n\nmodule.exports = getMousePosDate;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/core.js\n// module id = 99\n// module chunks = 0","/**\n * @fileoverview Creation guide module for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthCreation} monthCreation - instance of MonthCreation\n */\nfunction MonthCreationGuide(monthCreation) {\n /**\n * @type {MonthCreation}\n */\n this.monthCreation = monthCreation;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthCreation.on({\n monthCreationDragstart: this._createGuideElement,\n monthCreationDrag: this._onDrag,\n monthCreationDragend: this._onDragEnd,\n monthCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthCreationGuide.prototype.destroy = function() {\n this.monthCreation.off(this);\n\n if (this.guide) {\n this.guide.destroy();\n }\n\n this.guide = this.monthCreation = null;\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n var options = {\n isCreationMode: true,\n height: '100%',\n top: 0\n };\n\n this.guide = new MonthGuide(options, this.monthCreation.monthView);\n this.guide.start(dragStartEvent);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthCreationGuide.prototype._onDragEnd = function() {\n // Do nothing. 사용자가 직접 destroy 호출\n this.guide = null;\n};\n\nmodule.exports = MonthCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/creationGuide.js\n// module id = 100\n// module chunks = 0","/**\n * @fileoverview Guide element controller for creation, resize in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n dw = require('../../common/dw'),\n tmpl = require('./guide.hbs');\nvar mmax = Math.max,\n mmin = Math.min,\n mabs = Math.abs,\n mfloor = Math.floor;\n\n/**\n * @constructor\n * @param {object} [options] - options\n * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n * guide element?\n * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n * @param {Month} monthView - Month view instance\n */\nfunction MonthGuide(options, monthView) {\n var self = this;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n top: 0,\n height: '20px',\n bgColor: '#f7ca88',\n label: '새 일정',\n isResizeMode: false,\n isCreationMode: false\n }, options);\n\n /**\n * @type {Month}\n */\n this.view = monthView;\n\n /**\n * @type {WeekdayInMonth[]}\n */\n this.weeks = monthView.children.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n });\n\n /**\n * @type {number}\n */\n this.days = monthView.children.single().getRenderDateRange().length;\n\n /**\n * @type {function}\n */\n this.ratio = util.bind(function(value) {\n return common.ratio(self.days, 100, value);\n });\n\n /**\n * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n * start lower than this coordinate.\n * @type {number[]}\n */\n this.startCoord = [0, 0];\n\n /**\n * @type {Object.}\n */\n this.guideElements = {};\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = monthView.grids;\n}\n\n/**\n * Destructor\n */\nMonthGuide.prototype.destroy = function() {\n this.clear();\n\n this.options = this.view = this.weeks = this.days =\n this.ratio = this.startCoord = this.guideElements = null;\n};\n\nMonthGuide.prototype.clearGuideElement = function() {\n this.destroy();\n};\n\n/**\n * Get ratio value in week.\n * @param {number} value - value for calc ratio in week\n * @returns {number} percent value\n */\nMonthGuide.prototype._getRatioValueInWeek = function(value) {\n var grid = this.grids[value] || {left: 100};\n\n return grid.left;\n};\n\n/**\n * Create guide element\n * @returns {HTMLElement} guide element\n */\nMonthGuide.prototype._createGuideElement = function() {\n var guide = document.createElement('div');\n\n guide.innerHTML = tmpl(this.options);\n\n return guide.firstChild;\n};\n\n/**\n * Get guide element. if not exist then create one\n * @param {number} y - y coordinate\n * @returns {?HTMLElement} guide element\n */\nMonthGuide.prototype._getGuideElement = function(y) {\n var guideElements = this.guideElements,\n guide = guideElements[y],\n weekdayView = this.weeks[y],\n container;\n\n if (!weekdayView) {\n return null;\n }\n\n if (!guide) {\n guide = this._createGuideElement();\n container = weekdayView.container;\n container.appendChild(guide);\n guideElements[y] = guide;\n }\n\n return guide;\n};\n\n/**\n * Get coordinate by supplied date in month\n * @param {Date} date - date to find coordinate\n * @returns {number[]} coordinate (x, y)\n */\nMonthGuide.prototype._getCoordByDate = function(date) {\n var weeks = this.weeks,\n days = this.days,\n getIdxFromDiff = function(d1, d2) {\n return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n },\n monthStart = datetime.parse(weeks[0].options.renderStartDate),\n isBefore = date < monthStart,\n dateDW = dw(date),\n startDW = dw(monthStart),\n endDW = startDW.clone().addDate(isBefore ? -days : days),\n x = getIdxFromDiff(dateDW.d, startDW.d),\n y = 0;\n\n while (!dateDW.isBetween(startDW, endDW)) {\n startDW.addDate(isBefore ? -days : days);\n endDW = startDW.clone().addDate(days);\n x = getIdxFromDiff(dateDW.d, startDW.d);\n y += (isBefore ? -1 : 1);\n }\n\n return [x, y];\n};\n\n/**\n * Get limited coordinate by supplied coodinates\n * @param {number[]} coord - coordinate need to limit\n * @param {number[]} [min] - minimum limitaion of coordinate\n * @param {number[]} [max] - maximum limitation of coordinate\n * @returns {number[]} limited coordiate\n */\nMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n var toIndex = 1,\n x = coord[0],\n y = coord[1],\n result;\n\n min = min || [0, 0];\n max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\n if (y < min[1]) {\n result = min.slice(0);\n } else if (y > max[1]) {\n result = max.slice(0);\n } else {\n x = mmax(min[0], x);\n x = mmin(max[0], x);\n result = [x, y];\n }\n\n return result;\n};\n\n/**\n * Prepare guide element modification\n * @param {object} dragStartEvent - dragStart schedule data from *guide\n */\nMonthGuide.prototype.start = function(dragStartEvent) {\n var opt = this.options,\n target = dragStartEvent.target,\n model = dragStartEvent.model,\n x = dragStartEvent.x,\n y = dragStartEvent.y,\n temp;\n\n if (opt.isResizeMode) {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n\n util.extend(this.options, {\n top: parseInt(target.style.top, 10) + 'px',\n height: parseInt(target.style.height, 10) + 'px',\n bgColor: model.bgColor,\n borderColor: model.borderColor,\n label: model.title\n });\n }\n\n this.startCoord = [x, y];\n this.update(x, y);\n};\n\n/**\n * Data for update several guide elements\n * @typedef UpdateIndication\n * @type {object}\n * @property {HTMLElement} guide - guide element\n * @property {number} left - left style value\n * @property {number} width - width style value\n * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n */\n\n/**\n * Modify HTML element that uses for guide element\n * @param {UpdateIndication[]} inds - indication of update severel guide element\n */\nMonthGuide.prototype._updateGuides = function(inds) {\n util.forEach(inds, function(ind) {\n var guide = ind.guide,\n exceedLClass = config.classname('month-exceed-left'),\n exceedRClass = config.classname('month-exceed-right');\n\n guide.style.display = 'block';\n guide.style.left = ind.left + '%';\n guide.style.width = ind.width + '%';\n\n if (ind.exceedL) {\n domutil.addClass(guide, exceedLClass);\n } else {\n domutil.removeClass(guide, exceedLClass);\n }\n\n if (ind.exceedR) {\n domutil.addClass(guide, exceedRClass);\n } else {\n domutil.removeClass(guide, exceedRClass);\n }\n });\n};\n\n/**\n * Get guide element indicate for origin week\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n var left = mmin(startCoord[0], mouseCoord[0]),\n right = mmax(startCoord[0], mouseCoord[0]) + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = startCoord[0];\n right = this.days;\n exceedR = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n left = 0;\n right = startCoord[0] + 1;\n exceedL = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for week related with mouse position\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n var left = mouseCoord[0],\n right = mouseCoord[0] + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = 0;\n exceedL = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n right = this.days;\n exceedR = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for contained weeks\n * @returns {object} indicate\n */\nMonthGuide.prototype._getContainIndicate = function() {\n return {\n left: 0,\n width: 100,\n exceedL: true,\n exceedR: true\n };\n};\n\n/**\n * Remove several guide element that supplied by parameter\n * @param {number[]} yCoords - array of y coordinate to remove guide element\n */\nMonthGuide.prototype._removeGuideElements = function(yCoords) {\n var guides = this.guideElements;\n\n util.forEach(yCoords, function(y) {\n domutil.remove(guides[y]);\n delete guides[y];\n });\n};\n\n/**\n * Get excluded numbers in range\n * @param {number[]} range - the range. value must be sequencial.\n * @param {number[]} numbers - numbers to check\n * @returns {number[]} excluded numbers\n */\nMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n var min = mmin.apply(null, range),\n max = mmax.apply(null, range),\n excludes = [];\n\n util.forEach(numbers, function(num) {\n num = parseInt(num, 10);\n if (num < min || num > max) {\n excludes.push(num);\n }\n });\n\n return excludes;\n};\n\n/**\n * Update guide elements by coordinate in month grid from mousemove event\n * @param {number} x - x coordinate\n * @param {number} y - y coordinate\n */\nMonthGuide.prototype.update = function(x, y) {\n var self = this,\n startCoord = this.startCoord,\n mouseCoord = [x, y],\n limitedCoord = this.options.isResizeMode ?\n this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n renderedYIndex = util.keys(this.guideElements),\n yCoordsToUpdate = util.range(\n mmin(startCoord[1], limitedCoord[1]),\n mmax(startCoord[1], limitedCoord[1]) + 1\n ),\n yCoordsToRemove = this._getExcludesInRange(\n yCoordsToUpdate,\n renderedYIndex\n ),\n renderIndication = {};\n\n this._removeGuideElements(yCoordsToRemove);\n\n util.forEach(yCoordsToUpdate, function(guideYCoord) {\n var guide = self._getGuideElement(guideYCoord),\n indicate;\n\n if (!guide) {\n return;\n }\n\n if (guideYCoord === startCoord[1]) {\n indicate = self._getOriginIndicate(startCoord, limitedCoord);\n } else if (guideYCoord === mouseCoord[1]) {\n indicate = self._getMouseIndicate(startCoord, mouseCoord);\n } else {\n indicate = self._getContainIndicate();\n }\n\n renderIndication[guideYCoord] = util.extend({\n guide: guide\n }, indicate);\n });\n\n this._updateGuides(renderIndication);\n};\n\n/**\n * Clear all guide elements\n */\nMonthGuide.prototype.clear = function() {\n util.forEach(this.guideElements, function(element) {\n domutil.remove(element);\n });\n\n this.guideElements = {};\n};\n\nmodule.exports = MonthGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/guide.js\n// module id = 101\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \"\n + alias4(((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"label\",\"hash\":{},\"data\":data}) : helper)))\n + \"
    \\n
     
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isCreationMode : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/guide.hbs\n// module id = 102\n// module chunks = 0","/**\n * @fileoverview Module for resize schedule in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n getMousePosData = require('./core'),\n MonthResizeGuide = require('./resizeGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthResize(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthResizeGuide}\n */\n this.guide = new MonthResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthResize.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Fire event for update model\n * @fires {MonthResize#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthResize.prototype._updateSchedule = function(scheduleCache) {\n // 일정의 시작 일자를 변경할 순 없음.\n // 종료시간만 변경 가능.\n var newEnd = datetime.end(new TZDate(Number(scheduleCache.end))),\n schedule = scheduleCache.schedule;\n\n /**\n * @event MonthResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: new TZDate(Number(schedule.getStarts())),\n end: newEnd\n });\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthResize#monthResizeDragstart}\n * @param {object} dragStartEvent - drag start event data\n */\nMonthResize.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID, schedule,\n scheduleData;\n\n if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return;\n }\n\n target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\n if (!target) {\n return;\n }\n\n modelID = domutil.getData(target, 'id');\n schedule = this.baseController.schedules.items[modelID];\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.target = target;\n scheduleData.model = schedule;\n\n this._cache = {\n schedule: schedule,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthCreation#monthResizeDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthResizeDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthResize.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEvent.originEvent);\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthResize#monthResizeDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDrag', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(Number(scheduleData.date));\n this._updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthResizeDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthResize);\n\nmodule.exports = MonthResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/resize.js\n// module id = 103\n// module chunks = 0","/**\n * @fileoverview Module for modification of guide element in schedule resize\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthResize} monthResize - month/resize module instance\n */\nfunction MonthResizeGuide(monthResize) {\n /**\n * @type {MonthResize}\n */\n this.monthResize = monthResize;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthResize.on({\n monthResizeDragstart: this._onDragStart,\n monthResizeDrag: this._onDrag,\n monthResizeDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthResizeGuide.prototype.destroy = function() {\n this.monthResize.off(this);\n this.guide.destroy();\n\n this.guide = this.monthResize = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthResize.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n el.style.display = 'none';\n });\n};\n\n/**\n * Show element blocks\n */\nMonthResizeGuide.prototype._showScheduleBlocks = function() {\n util.forEach(this.elements, function(el) {\n el.style.display = 'block';\n });\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthResize\n */\nMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n this.guide = new MonthGuide({\n isResizeMode: true\n }, this.monthResize.monthView);\n\n this._hideScheduleBlocks(dragStartEvent.model.cid());\n\n this.guide.start(dragStartEvent);\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - event data from MonthCreation\n */\nMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthResizeGuide.prototype._onDragEnd = function() {\n this._showScheduleBlocks();\n\n this.guide.destroy();\n this.elements = this.guide = null;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\nmodule.exports = MonthResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/resizeGuide.js\n// module id = 104\n// module chunks = 0","/**\n * @fileoverview Move handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n getMousePosData = require('./core'),\n MonthMoveGuide = require('./moveGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthMove(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthMoveGuide}\n */\n this.guide = new MonthMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthMove.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Update target schedule\n * @fires {MonthMove#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthMove.prototype.updateSchedule = function(scheduleCache) {\n var schedule = scheduleCache.model;\n var duration = schedule.duration().getTime();\n var startDateRaw = datetime.raw(schedule.start);\n var dragEndTime = Number(scheduleCache.end);\n var newStartDate = new TZDate(dragEndTime);\n\n newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\n /**\n * @event MonthMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStartDate,\n end: new TZDate(newStartDate.getTime() + duration)\n });\n};\n\n/**\n * Get schedule block to clone for month guide effect\n * @param {HTMLElement} target - target element that related with drag schedule\n * @returns {HTMLElement} element to create guide effect\n */\nMonthMove.prototype.getMonthScheduleBlock = function(target) {\n var blockSelector = config.classname('.weekday-schedule-block');\n\n return domutil.closest(target, blockSelector);\n};\n\n/**\n * Get schedule block from more layer\n * @param {HTMLElement} target - element to check\n * @returns {HTMLElement} schedule element\n */\nMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n var className = config.classname('.month-more-schedule');\n\n return domutil.closest(target, className);\n};\n\n/**\n * Check handler has permission to handle fired schedule\n * @fires {MonthMove#monthMoveStart_from_morelayer}\n * @param {HTMLElement} target - target element of fired schedule\n * @returns {(string|null)} model instance ID related with schedule. if handle\n * has not permission to handle the schedule then return null.\n */\nMonthMove.prototype.hasPermissionToHandle = function(target) {\n var modelID = null;\n var blockElement;\n\n if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return null;\n }\n\n blockElement = this.getMonthScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n } else {\n blockElement = this.getMoreLayerScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n /**\n * Fire for notificate that the drag schedule start at more layer view.\n * @event {MonthMove#monthMoveStart_from_morelayer}\n */\n this.fire('monthMoveStart_from_morelayer');\n }\n }\n\n return modelID;\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthMove#monthMoveDragstart}\n * @param {object} dragStartEvent - drag start schedule data\n */\nMonthMove.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID = this.hasPermissionToHandle(target),\n model,\n scheduleData;\n\n if (!modelID) {\n return;\n }\n\n model = this.baseController.schedules.items[modelID];\n\n if (model.isReadOnly) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.originEvent = dragStartEvent.originEvent;\n scheduleData.target = this.getMonthScheduleBlock(target);\n scheduleData.model = model;\n\n this._cache = {\n model: model,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthMove#monthMoveDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthMoveDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthMove#monthMoveDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthMove.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = util.extend({\n originEvent: dragEvent.originEvent\n }, this.getScheduleData(dragEvent.originEvent));\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthMove#monthMoveDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDrag', scheduleData);\n};\n\n/**\n * Event handler for Drag#dragEnd\n * @fires {MonthMove#monthMoveDragend}\n * @param {object} dragEndEvent - dragend event data\n */\nMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(Number(scheduleData.date));\n this.updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthMoveDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthMove);\n\nmodule.exports = MonthMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/move.js\n// module id = 105\n// module chunks = 0","/**\n * @fileoverview Module for modification of guide element for move in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent'),\n FloatingLayer = require('../../common/floatingLayer'),\n tmpl = require('./moveGuide.hbs'),\n Schedule = require('../../model/schedule');\n\n/**\n * @constructor\n * @param {MonthMove} monthMove - month/move module instance\n */\nfunction MonthMoveGuide(monthMove) {\n /**\n * @type {MonthMove}\n */\n this.monthMove = monthMove;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = null;\n\n monthMove.on({\n monthMoveDragstart: this._onDragStart,\n monthMoveDrag: this._onDrag,\n monthMoveDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthMoveGuide.prototype.destroy = function() {\n this.monthMove.off(this);\n this._clearGridBgColor();\n\n if (this.layer) {\n this.layer.destroy();\n }\n\n if (this.element) {\n domutil.remove(this.element);\n }\n\n this.monthMove = this.elements = this.layer = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthMove.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\nMonthMoveGuide.prototype._getHighlightColorModel = function(model) {\n return {\n bgColor: model.color\n };\n};\n\n/**\n * Clear background color for filled grid element.\n */\nMonthMoveGuide.prototype._clearGridBgColor = function() {\n var selector = config.classname('.weekday-filled'),\n className = config.classname('weekday-filled'),\n beforeGridElement = domutil.find(selector,\n this.monthMove.monthView.container);\n\n if (beforeGridElement) {\n domutil.removeClass(beforeGridElement, className);\n }\n};\n\n/**\n * Fill background color of date grids relatied with model updates.\n * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n */\nMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n className = config.classname('weekday-filled'),\n targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\n this._clearGridBgColor();\n\n if (!gridElements || !gridElements[targetIndex]) {\n return;\n }\n\n domutil.addClass(gridElements[targetIndex], className);\n};\n\n/**\n * Handler for MonthMove#dragStart\n * @param {object} dragStartEvent - dragStart schedule data object\n */\nMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n var monthView = this.monthMove.monthView,\n firstWeekdayView = monthView.children.single(),\n weekdayOptions = firstWeekdayView.options,\n widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n container = monthView.container,\n mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n model = dragStartEvent.model,\n layer = new FloatingLayer(null, container);\n\n this._hideOriginScheduleBlocks(model.cid());\n\n this.layer = layer;\n layer.setSize(widthPercent + '%', height);\n layer.setPosition(mousePos[0], mousePos[1]);\n layer.setContent(tmpl({\n model: util.extend(\n Schedule.create(model),\n model,\n this._getHighlightColorModel(model)\n )\n }));\n layer.show();\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n};\n\n/**\n * Handler for MonthMove#drag\n * @param {object} dragEvent - drag event data object\n */\nMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n var container = this.monthMove.monthView.container,\n mousePos = domevent.getMousePosition(\n dragEvent.originEvent,\n container\n );\n\n this._updateGridBgColor(dragEvent);\n\n if (!this.layer) {\n return;\n }\n\n this.layer.setPosition(mousePos[0], mousePos[1]);\n};\n\n/**\n * Handler for MonthMove#dragEnd\n */\nMonthMoveGuide.prototype._onDragEnd = function() {\n this._showOriginScheduleBlocks();\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._clearGridBgColor();\n this.layer.destroy();\n this.layer = null;\n};\n\nmodule.exports = MonthMoveGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/moveGuide.js\n// module id = 106\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-left:3px solid \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/moveGuide.hbs\n// module id = 107\n// module chunks = 0","/**\n * @fileoverview Floating layer for displaying schedule in specific date\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar OUT_PADDING = 5;\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n FloatingLayer = require('../../common/floatingLayer'),\n common = require('../../common/common'),\n tmpl = require('./more.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {object} [options.moreLayerSize] - more layer size\n * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {HTMLElement} container = container element\n */\nfunction More(options, container) {\n View.call(this, container);\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n moreLayerSize: {\n width: null,\n height: null\n }\n }, options);\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(More, View);\n\n/**\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nMore.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n var className = config.classname('month-more-close');\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Mousedown event handler for hiding more layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nMore.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n moreLayer = domutil.closest(target, config.classname('.month-more'));\n\n if (moreLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Get new position for more layer by +n element itself\n * @param {HTMLElement} target - parent grid-line element of +n element\n * @param {HTMLElement} weekItem - weekItem container element\n * @returns {number[]} new position of more layer\n */\nMore.prototype._getRenderPosition = function(target, weekItem) {\n var pos = domevent.getMousePosition({\n clientX: domutil.getPosition(target)[0],\n clientY: domutil.getPosition(weekItem)[1]\n }, this.container);\n var containerSize = domutil.getSize(this.container);\n var left = pos[0] - OUT_PADDING;\n var top = pos[1] - OUT_PADDING;\n\n left = common.ratio(containerSize[0], 100, left) + '%';\n top = common.ratio(containerSize[1], 100, top) + '%';\n\n return [left, top];\n};\n\n/**\n * @override\n */\nMore.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nMore.prototype.render = function(viewModel) {\n var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n var layer = this.layer;\n var self = this;\n var pos = this._getRenderPosition(target, weekItem);\n var height = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n var width = target.offsetWidth + (OUT_PADDING * 2);\n var optMoreLayerSize = this.options.moreLayerSize;\n this._viewModel = viewModel;\n\n if (optMoreLayerSize.width) {\n width = optMoreLayerSize.width;\n }\n\n if (optMoreLayerSize.height) {\n height = optMoreLayerSize.height;\n }\n\n layer.setContent(tmpl(viewModel));\n if (weekItem.parentElement.lastElementChild === weekItem) {\n layer.setLTRB({\n left: pos[0],\n bottom: 0\n });\n layer.setSize(width, '');\n } else {\n layer.setPosition(pos[0], pos[1]);\n layer.setSize(width, height);\n }\n\n layer.show();\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Hide layer\n */\nMore.prototype.hide = function() {\n this.layer.hide();\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nMore.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(tmpl(this._viewModel));\n }\n};\n\nmodule.exports = More;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/more.js\n// module id = 108\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \"\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n return \"\\n background: #ffffff\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n \";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"14\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthMoreTitleDate-tmpl\"] || (depth0 && depth0[\"monthMoreTitleDate-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.date : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/more.hbs\n// module id = 109\n// module chunks = 0"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/tui-calendar.min.css b/dist/tui-calendar.min.css index 6689cba5b..863582c26 100644 --- a/dist/tui-calendar.min.css +++ b/dist/tui-calendar.min.css @@ -1,6 +1,6 @@ /*! * tui-calendar.min - * @version 0.9.3 | Thu Mar 29 2018 + * @version 0.9.4 | Thu Mar 29 2018 * @author NHNEnt FE Development Lab * @license undefined */ diff --git a/dist/tui-calendar.min.js b/dist/tui-calendar.min.js index 50a780eff..9dbdf261b 100644 --- a/dist/tui-calendar.min.js +++ b/dist/tui-calendar.min.js @@ -1,14 +1,14 @@ /*! * tui-calendar.min - * @version 0.9.3 | Thu Mar 29 2018 + * @version 0.9.4 | Thu Mar 29 2018 * @author NHNEnt FE Development Lab * @license undefined */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tui-code-snippet")):"function"==typeof define&&define.amd?define(["tui-code-snippet"],t):"object"==typeof exports?exports.Calendar=t(require("tui-code-snippet")):(e.tui=e.tui||{},e.tui.Calendar=t(e.tui&&e.tui.util))}(this,function(e){return function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={exports:{},id:i,loaded:!1};return e[i].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="/dist",t(0)}([function(e,t,n){"use strict";n(31),n(99),e.exports=n(69)},function(t,n){t.exports=e},function(e,t,n){"use strict";function i(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var a,r=n(9),o=n(12),l=n(1),s="_pos",u=/^auto$|^$|%/;a={appendHTMLElement:function(e,t,n){var i;return n=n||"",i=document.createElement(e),i.className=n,t?t.appendChild(i):document.body.appendChild(i),i},remove:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},get:function(e){return document.getElementById(e)},_matcher:function(e,t){var n=/^\./,i=/^#/;return n.test(t)?a.hasClass(e,t.replace(".","")):i.test(t)?e.id===t.replace("#",""):e.nodeName.toLowerCase()===t.toLowerCase()},find:function(e,t,n){function i(e,t){for(var l,d=e.childNodes,c=0,h=d.length;c0&&(i(l,t),o))break}var r=[],o=!1,s=l.isUndefined(n)||n===!1,u=l.isFunction(n);return l.isString(t)&&(t=a.get(t)),t=t||window.document.body,i(t,e),s?r[0]||null:r},closest:function(e,t,n){var i=e.parentNode;if(!n&&a._matcher(e,t))return e;for(;i&&i!==window.document.body;){if(a._matcher(i,t))return i;i=i.parentNode}return null},text:function(e){var t="",n=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)t+=a.text(e)}else if(3===i||4===i)return e.nodeValue}else for(;e[n];n+=1)t+=a.text(e[n]);return t},setData:function(e,t,n){return"dataset"in e?void(e.dataset[t]=n):void e.setAttribute("data-"+t,n)},getData:function(e,t){return"dataset"in e?e.dataset[t]:e.getAttribute("data-"+t)},hasClass:function(e,t){var n;return l.isUndefined(e.classList)?(n=a.getClass(e),n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)):e.classList.contains(t)},addClass:function(e,t){var n;l.isUndefined(e.classList)?a.hasClass(e,t)||(n=a.getClass(e),a.setClass(e,(n?n+" ":"")+t)):l.forEachArray(t.split(" "),function(t){e.classList.add(t)})},setClass:function(e,t){l.isUndefined(e.className.baseVal)?e.className=t:e.className.baseVal=t},removeClass:function(e,t){var n="";l.isUndefined(e.classList)?(n=(" "+a.getClass(e)+" ").replace(" "+t+" "," "),a.setClass(e,i(n))):e.classList.remove(t)},getClass:function(e){return e&&e.className?l.isUndefined(e.className.baseVal)?e.className:e.className.baseVal:""},getStyle:function(e,t){var n,i=e.style[t]||e.currentStyle&&e.currentStyle[t];return i&&"auto"!==i||!document.defaultView||(n=document.defaultView.getComputedStyle(e,null),i=n?n[t]:null),"auto"===i?null:i},getComputedStyle:function(e){var t=document.defaultView;return t&&t.getComputedStyle?document.defaultView.getComputedStyle(e):{getPropertyValue:function(t){var n=/(\-([a-z]){1})/g;return"float"===t&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,function(){return arguments[2].toUpperCase()})),e.currentStyle[t]?e.currentStyle[t]:null}}},setPosition:function(e,t,n){t=l.isUndefined(t)?0:t,n=l.isUndefined(n)?0:n,e[s]=[t,n],e.style.left=l.isNumber(t)?t+"px":t,e.style.top=l.isNumber(n)?n+"px":n},setLTRB:function(e,t){var n,i=["left","top","right","bottom"];i.forEach(function(i){n=l.isUndefined(t[i])?"":t[i],e.style[i]=l.isNumber(n)?n+"px":n})},getPosition:function(e,t){var n,i,a;return t&&(e[s]=null),e[s]?e[s]:(n=0,i=0,(u.test(e.style.left)||u.test(e.style.top))&&"getBoundingClientRect"in e?(a=e.getBoundingClientRect(),n=a.left,i=a.top):(n=parseFloat(e.style.left||0),i=parseFloat(e.style.top||0)),[n,i])},getSize:function(e){var t,n=a.getStyle(e,"width"),i=a.getStyle(e,"height");return(u.test(n)||u.test(i)||l.isNull(n)||l.isNull(i))&&"getBoundingClientRect"in e?(t=e.getBoundingClientRect(),n=t.width||e.offsetWidth,i=t.height||e.offsetHeight):(n=parseFloat(n||0),i=parseFloat(i||0)),[n,i]},getBCRect:function(e){var t=e.getBoundingClientRect();return t=l.extend({width:e.offsetWidth,height:e.offsetHeight},t)},testProp:function(e){for(var t=document.documentElement.style,n=0,i=e.length;ns.d.getTime();)u.push(new r(s.d)),l+=n,s.addDate(1);return u},clone:function(e){return new r(e.getTime())},compare:function(e,t){var n=e.getTime(),i=t.getTime();return ni?1:0},isSameMonth:function(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()},isSameDate:function(e,t){var n=i.isSameMonth(e,t);return n&&e.getDate()===t.getDate()},isValid:function(e){return e instanceof r&&!window.isNaN(e.getTime())},toUTC:function(e){var t=e.getTime(),n=i.millisecondsFrom("minutes",(new Date).getTimezoneOffset());return new r(t+n)},leadingZero:function(e,t){var n="",i=0;if(String(e).length>t)return String(e);for(;i8?(n=~e.indexOf("/")?"/":"-",o=o.splice(1),i=o[0].split(n),a=o[1]?o[1].split(":"):[0,0,0]):(o=o[0],i=[o.substr(0,4),o.substr(4,2),o.substr(6,2)],a=[0,0,0]),new r(Number(i[0]),Number(i[1])+t,Number(i[2]),Number(a[0]),Number(a[1]),Number(a[2])))},raw:function(e){return{y:e.getFullYear(),M:e.getMonth(),d:e.getDate(),h:e.getHours(),m:e.getMinutes(),s:e.getSeconds(),ms:e.getMilliseconds()}},start:function(e){var t=new r(e.getTime());return t.setHours(0,0,0,0),t},end:function(e){var t=new r(e.getTime());return t.setHours(23,59,59,0),t},format:function(e,t){var n=t;return l.forEachOwnProperties(a,function(t,i){n=n.replace(i,t(e))}),n},startDateOfMonth:function(e){var t=new r(Number(e));return t.setDate(1),t.setHours(0,0,0,0),t},endDateOfMonth:function(e){var t=i.startDateOfMonth(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.setHours(23,59,59),t},arr2dCalendar:function(e,t,n){var a,s,u,d,c,h,p,f,m,g=[],y=t.startDayOfWeek,v=t.isAlways6Week,S=t.visibleWeeksCount,_=t.workweek;return S?(s=new r(e),u=o(new r(e)),u.addDate(7*(S-1)),u=u.d):(s=i.startDateOfMonth(e),u=i.endDateOfMonth(e)),a=l.range(y,7).concat(l.range(7)).slice(0,7),d=l.inArray(s.getDay(),a),c=l.inArray(u.getDay(),a),p=7-(c+1),h=S?7*S:v?42:d+u.getDate()+p,f=new r(new r(s).setDate(s.getDate()-d)),l.forEachArray(l.range(h),function(e){var t;e%7||(m=g[e/7]=[]),t=new r(f),t=n?n(t):t,_&&i.isWeekend(t.getDay())||m.push(t),f.setDate(f.getDate()+1)}),g},getGridLeftAndWidth:function(e,t,n,a){var r=5,o=100/e,s=e>r?100/(e-1):o,u=0,d=l.range(n,7).concat(l.range(e)).slice(0,7);return a&&(d=l.filter(d,function(e){return!i.isWeekend(e)})),t=!a&&t,l.map(d,function(n){var a,l=t?s:o;return e>r&&t&&i.isWeekend(n)&&(l=s/2),a={day:n,width:l,left:u},u+=l,a})},isWeekend:function(e){return 0===e||6===e}},e.exports=i}).call(t,function(){return this}())},function(e,t){"use strict";function n(e){return e=e||Date.now(),new Date(e).getTimezoneOffset()*l}function i(e){return u?u(e)*l:s}function a(e){var t=Date.UTC.apply(null,e);return new Date(t+n(t))}function r(e){var t;if(e instanceof Date||e instanceof o)t=e.getTime();else if("string"==typeof e)t=Date.parse(e);else if("number"==typeof e)t=e;else{if(null!==e)throw new Error("Invalid Type");t=0}return new Date(t-i(t)+n(t))}function o(){var e;switch(arguments.length){case 0:e=r(Date.now());break;case 1:e=r(arguments[0]);break;default:e=a(arguments)}this._date=e}var l=6e4,s=n(),u=null,d=["getDate","getDay","getFullYear","getHours","getMilliseconds","getMinutes","getMonth","getSeconds"],c=["setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds"];o.prototype.setTime=function(e){return this._date.setTime(e-i(e)+n(e))},o.prototype.getTime=function(){var e=this._date.getTime();return e+i(e)-n(e)},o.prototype.valueOf=function(){return this.getTime()},d.forEach(function(e){o.prototype[e]=function(){return this._date[e].apply(this._date,arguments)}}),c.forEach(function(e){o.prototype[e]=function(){return this._date[e].apply(this._date,arguments),this.getTime()}}),e.exports={Date:o,setOffset:function(e){s=e*l},setOffsetCallback:function(e){u=e},restoreOffset:function(){s=n()}}},function(e,t,n){"use strict";function i(e){return e.cid()}var a=n(1),r=Array.prototype.slice,o=n(2),l=n(12);e.exports={createScheduleCollection:function(e){var t=new l(i);return arguments.length&&t.add.apply(t,arguments),t},ratio:function(e,t,n){return t*n/e},nearest:function(e,t){var n=a.map(t,function(t){return Math.abs(e-t)}),i=a.inArray(Math.min.apply(null,n),n);return t[i]},pick2:function(e,t){var n,i=a.pick.apply(null,arguments);return n={val:function(){return i},then:function(e){var t;if(i)return t=r.call(arguments,1),a.isString(e)?(a.pick(i,e)||function(){}).apply(i,t):e.call(i,i)}}},mixin:function(e,t){a.extend(t.prototype,e)},limit:function(e,t,n){var i=Math.max.apply(null,[e].concat(t));return i=Math.min.apply(null,[i].concat(n))},stripTags:function(e){return e.replace(/<([^>]+)>/gi,"")},firstIn2dArray:function(e){return a.pick(e,"0","0")},lastIn2dArray:function(e){var t=e.length-1,n=e[t].length-1;return a.pick(e,t,n)},setAutoEllipsis:function(e,t){a.forEach(o.find(e,t,!0),function(e){e.offsetWidth-1?0:i.indexOf(t)>-1?2:~a.indexOf(t)?1:-1)}};e.exports=l},function(e,t){"use strict";function n(e){return d[e]}function i(e){for(var t=1;t":">",'"':""","'":"'","`":"`","=":"="},c=/[&<>"'`=]/g,h=/[&<>"'`=]/,p=Object.prototype.toString;t.toString=p;var f=function(e){return"function"==typeof e};f(/x/)&&(t.isFunction=f=function(e){return"function"==typeof e&&"[object Function]"===p.call(e)}),t.isFunction=f;var m=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===p.call(e)};t.isArray=m},function(e,t,n){(function(t){"use strict";function i(e){return t["webkit"+e]||t["moz"+e]||t["ms"+e]}var a,r,o=n(1);a=t.requestAnimationFrame||i("RequestAnimationFrame")||function(e,t){e.call(t)},r=t.cancelAnimationFrame||i("CancelAnimationFrame")||i("CancelRequestAnimationFrame")||function(){},e.exports={requestAnimFrame:function(e,n){return a.call(t,o.bind(e,n))},cancelAnimFrame:function(e){e&&r.call(t,e)}}}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e){this.items={},this.length=0,l(e)&&(this.getItemID=e)}var a=n(1),r=a.forEachOwnProperties,o=a.forEachArray,l=a.isFunction,s=a.isObject,u=Array.prototype.slice;i.and=function(e){var t;return e=u.call(arguments),t=e.length,function(n){for(var i=0;i1?void o(u.call(arguments),function(e){i.add(e)}):(t=this.getItemID(e),n=this.items,n[t]||(this.length+=1),void(n[t]=e))},i.prototype.remove=function(e){var t,n,i=this,r=[];return this.length?arguments.length>1?r=a.map(u.call(arguments),function(e){return i.remove(e)}):(t=this.items,s(e)&&(e=this.getItemID(e)),t[e]?(this.length-=1,n=t[e],delete t[e],n):r):r},i.prototype.clear=function(){this.items={},this.length=0},i.prototype.has=function(e){var t,n;return!!this.length&&(t=l(e),n=!1,t?this.each(function(t){return e(t)!==!0||(n=!0,!1)}):(e=s(e)?this.getItemID(e):e,n=a.isExisty(this.items[e])),n)},i.prototype.doWhenHas=function(e,t,n){var i=this.items[e];a.isExisty(i)&&t.call(n||this,i)},i.prototype.find=function(e){var t=new i;return this.hasOwnProperty("getItemID")&&(t.getItemID=this.getItemID),this.each(function(n){e(n)===!0&&t.add(n)}),t},i.prototype.groupBy=function(e,t){var n,r,o={},s=l(e),u=this.getItemID;if(a.isArray(e)){if(a.forEachArray(e,function(e){o[String(e)]=new i(u)}),!t)return o;e=t,s=!0}return this.each(function(t){s?r=e(t):(r=t[e],l(r)&&(r=r.apply(t))),n=o[r],n||(n=o[r]=new i(u)),n.add(t)}),o},i.prototype.single=function(e){var t,n=a.isFunction(e);return this.each(function(i){return n?!e(i)||(t=i,!1):(t=i,!1)},this),t},i.prototype.sort=function(e){var t=[];return this.each(function(e){t.push(e)}),l(e)&&(t=t.sort(e)),t},i.prototype.each=function(e,t){r(this.items,e,t||this)},i.prototype.toArray=function(){return this.length?a.map(this.items,function(e){return e}):[]},e.exports=i},function(e,t){"use strict";function n(e,t){var a=t&&t.loc,r=void 0,o=void 0;a&&(r=a.start.line,o=a.start.column,e+=" - "+r+":"+o);for(var l=Error.prototype.constructor.call(this,e),s=0;s0))return a;u=a-1}return~u}function a(e,t){return e!==t?e?-1:1:0}function r(e,t){return e!==t?e?1:-1:0}function o(e,t){var n=Number(e),i=Number(t);return n-i}function l(e,t){var n=Number(e),i=Number(t);return i-n}function s(e,t){var n=String(e),i=String(t);return n>i?1:ni?-1:ni?1:ni?-1:ni?-1:p.stamp(l)-p.stamp(s))}var p=n(1),f=n(4);e.exports={bsearch:i,compare:{schedule:{asc:h},bool:{asc:a,desc:r},num:{asc:o,desc:l},str:{asc:s,desc:u,ascIgnoreCase:d,descIgnoreCase:c}}}},function(e,t,n){"use strict";function i(e){return this instanceof i?(e instanceof a||(e=new a(e)),void(this.d=e)):new i(e)}var a=n(5).Date;i.prototype.safe=function(e){return e.constructor===i?e.d:e},i.prototype.clone=function(){return new i(new a(Number(this.d)))},i.prototype.addDate=function(e){return this.d.setDate(this.d.getDate()+e),this},i.prototype.addMonth=function(e){var t=this.d.getMonth(),n=this.d.getFullYear();return this.d.setMonth(t+e),this.d.getFullYear()===n&&this.d.getMonth()!==t&&this.d.setMonth(t+e,1),this},i.prototype.setHours=function(e,t,n,i){return this.d.setHours(e,t,n,i),this},i.prototype.isBetween=function(e,t){var n=this.safe;return n(e)<=this.d&&this.d<=n(t)},e.exports=i},function(e,t,n){"use strict";function i(e,t){var n,a=t[i.PROP_KEY];a||(a=t[i.PROP_KEY]=[]),a.push(this),this.sibling=a,this.zIndex=this.getLargestZIndex()||i.INIT_ZINDEX,n=document.createElement("div"),n.style.display="none",n.style.position="absolute",o.addClass(n,r.classname("floating-layer")),t.appendChild(n),l.call(this,n),this.parent=t}var a=n(1),r=n(3),o=n(2),l=n(8);a.inherit(i,l),i.PROP_KEY="__fe_floating_layer",i.INIT_ZINDEX=999,i.prototype.destroy=function(){for(var e=this.parent,t=this.sibling,n=0,a=t.length;nt&&it&&a=n},s.mixin(i.prototype),l.mixin(i.prototype),e.exports=i},function(e,t,n){e.exports=n(7)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},s.registerDefaultHelpers(this),u.registerDefaultDecorators(this)}t.__esModule=!0,t.HandlebarsEnvironment=a;var r=n(10),o=n(13),l=i(o),s=n(49),u=n(47),d=n(57),c=i(d),h="4.0.11";t.VERSION=h;var p=7;t.COMPILER_REVISION=p;var f={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};t.REVISION_CHANGES=f;var m="[object Object]";a.prototype={constructor:a,logger:c.default,log:c.default.log,registerHelper:function(e,t){if(r.toString.call(e)===m){if(t)throw new l.default("Arg not supported with multiple helpers");r.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(r.toString.call(e)===m)r.extend(this.partials,e);else{if("undefined"==typeof t)throw new l.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(r.toString.call(e)===m){if(t)throw new l.default("Arg not supported with multiple decorators");r.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var g=c.default.log;t.log=g,t.createFrame=r.createFrame,t.logger=c.default},function(e,t,n){"use strict";function i(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var a=n(1);i.getRatio=function(e,t,n){return t===n?e.clone():e.multiplyBy(n)._divideBy(t)},i.n=function(e,t,n){return e instanceof i?e:a.isArray(e)?new i(e[0],e[1],t):new i(e,t,n)},i.prototype.clone=function(){return new i(this.x,this.y)},i.prototype.add=function(e){return this.clone()._add(i.n(e))},i.prototype._add=function(e){return this.x+=e.x,this.y+=e.y, -this},i.prototype.subtract=function(e){return this.clone()._subtract(i.n(e))},i.prototype._subtract=function(e){return this.x-=e.x,this.y-=e.y,this},i.prototype.divideBy=function(e){return this.clone()._divideBy(e)},i.prototype._divideBy=function(e){return this.x/=e,this.y/=e,this},i.prototype.multiplyBy=function(e){return this.clone()._multiplyBy(e)},i.prototype._multiplyBy=function(e){return this.x*=e,this.y*=e,this},i.prototype.round=function(){return this.clone()._round()},i.prototype._round=function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},i.prototype.reverse=function(){return this.clone()._reverse()},i.prototype._reverse=function(){return this.x*=-1,this.y*=-1,this},i.prototype.floor=function(){return this.clone()._floor()},i.prototype._floor=function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},i.prototype.ceil=function(){return this.clone()._ceil()},i.prototype._ceil=function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},i.prototype.rotate=function(e,t,n,i){return this.clone()._rotate(e,t,n,i)},i.prototype._rotate=function(e,t,n,i){var a,r,o=e*(Math.PI/180);return n=n||parseFloat(Math.cos(o).toFixed(8)),i=i||parseFloat(Math.sin(o).toFixed(8)),this._subtract(t),a=this.x,r=this.y,this.x=a*n-r*i,this.y=a*i+r*n,this._add(t),this},i.prototype.distanceTo=function(e){var t,n;return e=i.n(e),t=e.x-this.x,n=e.y-this.y,Math.sqrt(t*t+n*n)},i.prototype.equals=function(e){return e=i.n(e),e.x===this.x&&e.y===this.y},i.prototype.toString=function(){return"Point("+this.x+", "+this.y+")"},i.prototype.toArray=function(){return[this.x,this.y]},e.exports=i},function(e,t,n){"use strict";function i(e,t){var n,o;return this instanceof i?(u.call(this,t),l.addClass(t,r.classname("vlayout-container")),n=this.options=a.extend({panels:[],panelHeights:[]},e),this.panels=[],this._drag=new c({distance:10,exclude:function(e){return!l.hasClass(e,r.classname("splitter"))}},t),this._drag.on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd},this),this._dragData=null,n.panels.length&&(n.panelHeights.length&&(o=n.panelHeights.slice(),a.forEach(n.panels,function(e){e.isSplitter||e.autoHeight||(e.height=o.shift())})),this.addPanels(n.panels,this.container)),void this.refresh()):new i(e,t)}var a=n(1),r=n(3),o=n(6),l=n(2),s=n(9),u=n(8),d=n(64),c=n(26),h=Math.abs;a.inherit(i,u),i.prototype.getLayoutData=function(){var e=[];return a.forEach(this.panels,function(t){t.isSplitter()||t.options.autoHeight||e.push(t.getHeight())}),e},i.prototype.setLayoutData=function(e){e.length&&(a.forEach(this.panels,function(t){t.isSplitter()||t.options.autoHeight||t.setHeight(null,e.shift())}),this.refresh())},i.prototype.nextPanel=function(e){return this.panels[e.index+1]},i.prototype.prevPanel=function(e){return this.panels[e.index-1]},i.prototype._initializeGuideElement=function(e,t){var n=e.cloneNode(!0);return l.addClass(n,r.classname("splitter-guide")),this._refreshGuideElement(n,t),this.container.appendChild(n),n},i.prototype._refreshGuideElement=function(e,t){e.style.top=t+"px"},i.prototype._clearGuideElement=function(e){l.remove(e)},i.prototype._resize=function(e,t,n){var i,r,o=t-n,l=h(o),s=[],u=n>t,d=u?"prevPanel":"nextPanel",c=u?"nextPanel":"prevPanel";for(i=this[d](e),r=i.getResizeInfoByGrowth(l),s.push([i,r[0]]),i=this[c](i);a.isExisty(i);i=this[c](i))i.isSplitter()||(r=i.getResizeInfoByGrowth(-l),s.push([i,r[0]]),l-=r[1]);a.forEach(s,function(e){e[0].setHeight(null,e[1],!0),e[0].fire("resize")})},i.prototype._getMouseYAdditionalLimit=function(e){var t,n=0,i=0,r=function(e){return e.isSplitter()?e.getHeight():e.options.minHeight};for(t=this.prevPanel(e);a.isExisty(t);t=this.prevPanel(t))n+=r(t);for(t=this.nextPanel(e);a.isExisty(t);t=this.nextPanel(t))i+=r(t);return[n,i]},i.prototype._onDragStart=function(e){var t=e.originEvent,n=e.target,i=l.getData(n,"panelIndex"),o=this.panels[i],u=o.getHeight(),d=s.getMousePosition(t,n)[1],c=s.getMousePosition(t,this.container)[1],h=this._initializeGuideElement(n,c);o.addClass(r.classname("splitter-focused")),this._dragData={splPanel:o,splOffsetY:d,guideElement:h,startY:c-d,minY:0,maxY:this.getViewBound().height-u},a.browser.msie||l.addClass(document.body,r.classname("resizing"))},i.prototype._onDrag=function(e){var t=this._dragData,n=s.getMousePosition(e.originEvent,this.container)[1];n=o.limit(n-t.splOffsetY,[t.minY],[t.maxY]),this._refreshGuideElement(t.guideElement,n)},i.prototype._onDragEnd=function(e){var t=this._dragData,n=this._getMouseYAdditionalLimit(t.splPanel),i=s.getMousePosition(e.originEvent,this.container)[1];i=o.limit(i-t.splOffsetY,[t.minY+n[0]],[t.maxY-n[1]]),this._resize(t.splPanel,t.startY,i),this.fire("resize",{layoutData:this.getLayoutData()}),this._dragData=null,this._clearGuideElement(t.guideElement),t.splPanel.removeClass(r.classname("splitter-focused")),l.removeClass(document.body,r.classname("resizing"))},i.prototype.refresh=function(){var e,t=[],n=this.getViewBound().height,i=0;n&&(a.forEach(this.panels,function(e){e.options.autoHeight?t.push(e):i+=e.getHeight()}),e=(n-i)/t.length,a.forEach(t,function(t){t.setHeight(null,e)}))},i.prototype.addPanel=function(e,t){var n=document.createElement("div"),i=this.panels,r=i.length;e=a.extend({index:r},e),i.push(new d(e,n)),t.appendChild(n)},i.prototype.addPanels=function(e,t){var n=this,i=document.createDocumentFragment();a.forEach(e,function(e){n.addPanel(e,i)}),t.appendChild(i)},i.prototype.getPanelByName=function(e){var t;return a.forEach(this.panels,function(n){n.name===e&&(t=n)}),t},e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.alldayView=t,this.baseController=n,this._dragStart=null,e.on({dragStart:this._onDragStart},this),this.guide=new u(this)}var a=n(1),r=n(3),o=n(6),l=n(2),s=n(17),u=n(76),d=n(5).Date;i.prototype.destroy=function(){this.guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.alldayView=this.baseController=this.guide=this._dragStart=null},i.prototype.checkExpectedCondition=function(e){var t,n,i=l.getClass(e);return!~i.indexOf(r.classname("weekday-resize-handle"))&&(!!(t=l.closest(e,r.classname(".weekday")))&&(i=l.getClass(t),n=i.match(r.allday.getViewIDRegExp),!(!n||n.length<2)&&a.pick(this.alldayView.children.items,n[1])))},i.prototype._onDragStart=function(e){var t,n,i,o,s,u=e.target,d=this.checkExpectedCondition(u),c=this.baseController,h=!0;d&&(t=l.closest(u,r.classname(".weekday-schedule-block"),h),t&&(n=l.getData(t,"id"),i=c.schedules.items[n],i&&(i.isReadOnly||(o=this._retriveScheduleData(this.alldayView,e.originEvent),this.getScheduleDataFunc=o,s=this._dragStart=o(e.originEvent),a.extend(s,{scheduleBlockElement:t,model:i}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("alldayMoveDragstart",s)))))},i.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.fire("alldayMoveDrag",t(e.originEvent))},i.prototype._updateSchedule=function(e){var t=e.targetModel,n=e.xIndex-e.dragStartXIndex,i=new d(t.start.getTime()),a=new d(t.end.getTime());i=new d(i.setDate(i.getDate()+n)),a=new d(a.setDate(a.getDate()+n)),this.fire("beforeUpdateSchedule",{schedule:t,start:i,end:a})},i.prototype._onDragEnd=function(e,t,n){var i,r=this.getScheduleDataFunc,o=this._dragStart;r&&o&&(this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),i=r(e.originEvent),a.extend(i,{targetModel:o.model}),n||this._updateSchedule(i),this.fire(t||"alldayMoveDragend",i),this.getScheduleDataFunc=this._dragStart=null)},i.prototype._onClick=function(e){this._onDragEnd(e,"alldayMoveClick",!0)},o.mixin(s,i),a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e,t){o.on(t,"mousedown",this._onMouseDown,this),this.options=a.extend({distance:10,exclude:null},e),this.container=t,this._cancelled=!1,this._isMoved=!1,this._distance=0,this._dragStartFired=!1,this._dragStartEventData=null}var a=n(1),r=n(2),o=n(9);i.prototype.destroy=function(){o.off(this.container,"mousedown",this._onMouseDown,this),this._isMoved=null,this.container=null},i.prototype._clearData=function(){this._cancelled=!1,this._distance=0,this._isMoved=!1,this._dragStartFired=!1,this._dragStartEventData=null},i.prototype._toggleDragEvent=function(e){var n,i,a=this.container;e?(n="on",i="disable"):(n="off",i="enable"),r[i+"TextSelection"](a),r[i+"ImageDrag"](a),o[n](t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp},this)},i.prototype._getEventData=function(e){return{target:e.target||e.srcElement,originEvent:e}},i.prototype._onMouseDown=function(e){var t=this.options,n=e.srcElement||e.target;if(0===o.getMouseButton(e)){if(t.exclude&&t.exclude(n))return void(this._cancelled=!0);this._clearData(),this._dragStartEventData=this._getEventData(e),this._toggleDragEvent(!0)}},i.prototype._onMouseMove=function(e){var t;return this._cancelled?void this._clearData():(t=this.options.distance,o.preventDefault(e),this._distancen[1]?i=n.slice(0):(r=c(t[0],r),r=h(n[0],r),i=[r,o]),i},i.prototype.start=function(e){var t,n=this.options,i=e.target,r=e.model,o=e.x,l=e.y;n.isResizeMode&&(t=this._getCoordByDate(r.getStarts()),o=t[0],l=t[1],a.extend(this.options,{top:parseInt(i.style.top,10)+"px",height:parseInt(i.style.height,10)+"px",bgColor:r.bgColor,borderColor:r.borderColor,label:r.title})),this.startCoord=[o,l],this.update(o,l)},i.prototype._updateGuides=function(e){a.forEach(e,function(e){var t=e.guide,n=r.classname("month-exceed-left"),i=r.classname("month-exceed-right");t.style.display="block",t.style.left=e.left+"%",t.style.width=e.width+"%",e.exceedL?l.addClass(t,n):l.removeClass(t,n),e.exceedR?l.addClass(t,i):l.removeClass(t,i)})},i.prototype._getOriginIndicate=function(e,t){var n,i,a=h(e[0],t[0]),r=c(e[0],t[0])+1;return t[1]>e[1]?(a=e[0],r=this.days,i=!0):t[1]e[1]?(a=0,n=!0):t[1]i)&&r.push(e)}),r},i.prototype.update=function(e,t){var n=this,i=this.startCoord,r=[e,t],o=this.options.isResizeMode?this._getLimitedCoord(r,i):r,l=a.keys(this.guideElements),s=a.range(h(i[1],o[1]),c(i[1],o[1])+1),u=this._getExcludesInRange(s,l),d={};this._removeGuideElements(u),a.forEach(s,function(e){var t,l=n._getGuideElement(e);l&&(t=e===i[1]?n._getOriginIndicate(i,o):e===r[1]?n._getMouseIndicate(i,r):n._getContainIndicate(),d[e]=a.extend({guide:l},t))}),this._updateGuides(d)},i.prototype.clear=function(){a.forEach(this.guideElements,function(e){l.remove(e)}),this.guideElements={}},e.exports=i},function(e,t,n){"use strict";function i(e){this.model=e,this.top=0,this.left=0,this.width=0,this.height=0,this.hasCollide=!1,this.extraSpace=0,this.hidden=!1,this.hasMultiDates=!1,this.renderStarts=null,this.exceedLeft=!1,this.renderEnds=null,this.exceedRight=!1}var a=n(1);i.create=function(e){return new i(e)},i.prototype.getStarts=function(){return this.renderStarts?this.renderStarts:this.model.start},i.prototype.getEnds=function(){return this.renderEnds?this.renderEnds:this.model.end},i.prototype.cid=function(){return a.stamp(this.model)},i.prototype.valueOf=function(){return this.model},i.prototype.duration=function(){return this.model.duration()},i.prototype.collidesWith=function(e){var t=this.getStarts(),n=this.getEnds(),i=e.getStarts(),a=e.getEnds();return i>t&&it&&a=n},e.exports=i},function(e,t,n){"use strict";function i(e,t,n){r.call(this,e,t),this.aboutMe=n||{}}var a=n(1),r=n(30),o=n(45),l=n(4),s=n(2),u=n(3),d=Math.max,c=Math.min;a.inherit(i,r),i.prototype.render=function(e){var t,n=this.options,i=this.container,r=this.aboutMe,l=r.name;this.viewType=n[l+"ViewType"]||"",t=this.getBaseViewModel(e),"toggle"===this.viewType&&(t.viewType=this.viewType,t.collapsed=this.collapsed?"collapsed":""),i.innerHTML=o(t),a.forEach(s.find(u.classname(".weekday-exceed-in-week"),i,!0),function(e){e.style.marginLeft=-(e.offsetWidth+6)+"px"}),a.forEach(s.find(u.classname(".weekday-collapse-btn"),i,!0),function(e){e.style.marginLeft=-(e.offsetWidth+6)+"px"}),this.fire("afterRender",t)},i.prototype._getMaxScheduleInDay=function(e){return d.apply(null,a.map(e,function(e){return Math.max.apply(null,a.map(e,function(e){return e.length}))}))},i.prototype._getMinHeight=function(e){var t=this.options,n=e*t.scheduleHeight+(e-1)*t.scheduleGutter;return this.collapsed&&this.aboutMe.maxHeight>=n+t.containerBottomGutter&&(n+=t.containerBottomGutter),n},i.prototype._updateExceedDate=function(e,t,n){for(var i,a=l.clone(t);a<=n;a.setDate(a.getDate()+1))i=l.format(a,"YYYYMMDD"),e[i]?e[i]+=1:e[i]=1},i.prototype._excludeExceedSchedules=function(e,t,n){return t>=n?e:e.map(function(e){return e.map(function(e){return e.length>t?e.filter(function(e){return e.top0?e.length-1:0;return a.forEach(t,function(e,t){var n=e.ymd;0!==i[n]&&r>=i[n]&&(r=i[n],o=t)}),o},i.prototype._calculateFloatingBtnTop=function(e,t){var n=this.options.scheduleHeight+this.options.scheduleGutter;return!this.collapsed&&t>this.aboutMe.maxExpandCount?(e-.5)*n:(e-1)*n},e.exports=i},function(e,t,n){"use strict";function i(e,t){t=o.appendHTMLElement("div",t,r.classname("weekday")),this.options=a.extend({containerHeight:40,containerBottomGutter:8,scheduleHeight:18,scheduleGutter:2,narrowWeekend:!1,startDayOfWeek:0,workweek:!1},e),this._cacheParentViewModel=null,u.call(this,t)}var a=n(1),r=n(3),o=n(2),l=n(4),s=n(5).Date,u=n(8);a.inherit(i,u),i.prototype.getRenderDateRange=function(){return this._cacheParentViewModel.range},i.prototype.getRenderDateGrids=function(){return this._cacheParentViewModel.grids},i.prototype.getBaseViewModel=function(e){var t=this.options,n=e.range,i=l.format(new s,"YYYYMMDD"),r=100/n.length,o=e.grids,u=e.exceedDate||{};return this._cacheParentViewModel=e,{width:r,scheduleHeight:t.scheduleHeight,scheduleBlockHeight:t.scheduleHeight+t.scheduleGutter,scheduleBlockGutter:t.scheduleGutter,dates:a.map(n,function(e,t){var n=e.getDay(),a=l.format(e,"YYYYMMDD");return{date:l.format(e,"YYYY-MM-DD"),month:e.getMonth()+1,day:n,isToday:a===i,ymd:a,hiddenSchedules:u[a]||0,width:o[t]?o[t].width:0,left:o[t]?o[t].left:0}})}},i.prototype.getExceedDate=function(e,t,n){var i=this._initExceedDate(n);return a.forEach(t,function(t){a.forEach(t,function(t){a.forEach(t,function(t){var n;!t||t.top\n'},3:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
    '+d((o=null!=(o=n.label||(null!=t?t.label:t))?o:s,typeof o===u?o.call(l,{name:"label",hash:{},data:a}):o))+'
    \n
     
    \n
    \n'},4:function(e,t,n,i,a){return"display:none"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.if.call(l,null!=t?t.isCreationMode:t,{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return" border-left:3px solid "+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n "},3:function(e,t,n,i,a){var r,o=null!=t?t:e.nullContext||{},l=n.helperMissing,s="function",u=e.escapeExpression;return' \n'},5:function(e,t,n,i,a){var r;return" "+(null!=(r=(n["allday-tmpl"]||t&&t["allday-tmpl"]||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:a}))?r:"")+"\n"},7:function(e,t,n,i,a){var r;return" "+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.model:t)?r.isAllDay:r,{name:"unless",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n'+(null!=(r=n.if.call(l,null!=(r=null!=t?t.model:t)?r.isAllDay:r,{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.program(7,a,0),data:a}))?r:"")+"
    \n
    \n\n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n \n '+(null!=(r=(n["monthDayname-tmpl"]||t&&t["monthDayname-tmpl"]||s).call(l,t,{name:"monthDayname-tmpl",hash:{},data:a}))?r:"")+"\n \n
    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.each.call(l,null!=t?t.daynames:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n'},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return null!=(r=(n.fi||t&&t.fi||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.model:t)?r.isAllDay:r,"||",null!=t?t.hasMultiDates:t,{name:"fi",hash:{},fn:e.program(2,a,0),inverse:e.program(7,a,0),data:a}))?r:""},2:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u=e.escapeExpression,d=e.lambda,c="function";return'
    \n '+(null!=(r=(n["allday-tmpl"]||t&&t["allday-tmpl"]||s).call(l,null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:a}))?r:"")+"\n
    \n"},3:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color: #ffffff; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; border-left:3px solid "+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n"},5:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.bgColor:r,t))+"; border-left:3px solid "+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+"\n"},7:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u=e.escapeExpression,d=e.lambda,c="function";return'
    \n \n '+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||s).call(l,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"\n
    \n"},8:function(e,t,n,i,a){return"\n background: #ffffff\n"},10:function(e,t,n,i,a){var r;return" background:"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.color:r,t))+"\n "},12:function(e,t,n,i,a){var r;return"\n color: #ffffff;\n background-color: "+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.color:r,t))+"\n"},14:function(e,t,n,i,a){return" color:#333;\n "},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
    \n '+(null!=(r=(n["monthMoreTitleDate-tmpl"]||t&&t["monthMoreTitleDate-tmpl"]||s).call(l,null!=t?t.date:t,{name:"monthMoreTitleDate-tmpl",hash:{},data:a}))?r:"")+'\n \n
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.schedules:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
    \n '+(null!=(r=(n["monthGridHeader-tmpl"]||t&&t["monthGridHeader-tmpl"]||s).call(l,t,{name:"monthGridHeader-tmpl",hash:{},data:a}))?r:"")+"\n"+(null!=(r=n.if.call(l,null!=t?t.hiddenSchedules:t,{name:"if",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n '+(null!=(r=(n["monthGridFooter-tmpl"]||t&&t["monthGridFooter-tmpl"]||s).call(l,t,{name:"monthGridFooter-tmpl",hash:{},data:a}))?r:"")+"\n"+(null!=(r=n.if.call(l,null!=t?t.hiddenSchedules:t,{name:"if",hash:{},fn:e.program(10,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n
    \n"},2:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"near-month-day"},4:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"today"},6:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"extra-date"},8:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return' '+(null!=(r=(n["monthGridHeaderExceed-tmpl"]||t&&t["monthGridHeaderExceed-tmpl"]||s).call(l,null!=t?t.hiddenSchedules:t,{name:"monthGridHeaderExceed-tmpl",hash:{},data:a}))?r:"")+"\n"},10:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return' '+(null!=(r=(n["monthGridFooterExceed-tmpl"]||t&&t["monthGridFooterExceed-tmpl"]||s).call(l,null!=t?t.hiddenSchedules:t,{name:"monthGridFooterExceed-tmpl",hash:{},data:a}))?r:"")+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.dates:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n'},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a}))?r:""},2:function(e,t,n,i,a){var r;return"\n"+(null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a}))?r:"")},3:function(e,t,n,i,a){var r;return"\n"+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a}))?r:"")},4:function(e,t,n,i,a){var r;return"\n"+(null!=(r=(n.fi||t&&t.fi||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.top:t,"<",(r=a&&a.root)&&r.renderLimitIdx,{name:"fi",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a}))?r:"")},5:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u=e.escapeExpression,d="function";return'
    \n'+(null!=(r=(n.fi||t&&t.fi||s).call(l,null!=(r=null!=t?t.model:t)?r.isAllDay:r,"||",null!=t?t.hasMultiDates:t,{name:"fi",hash:{},fn:e.program(10,a,0),inverse:e.program(19,a,0),data:a}))?r:"")+"
    \n"},6:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-exceed-left"},8:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-exceed-right"},10:function(e,t,n,i,a){var r,o,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},d=n.helperMissing,c="function";return'
    \n '+(null!=(r=(n["allday-tmpl"]||t&&t["allday-tmpl"]||d).call(u,null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:a}))?r:"")+"\n "+(null!=(r=n.unless.call(u,null!=(r=null!=t?t.model:t)?r.isReadOnly:r,{name:"unless",hash:{},fn:e.program(17,a,0),inverse:e.noop,data:a}))?r:"")+"\n
    \n"},11:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-schedule-focused "},13:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color: #ffffff; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+";\n"},15:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.bgColor:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n"},17:function(e,t,n,i,a){var r;return' '},19:function(e,t,n,i,a){var r,o,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},d=n.helperMissing,c="function";return'
    \n \n '+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||d).call(u,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"\n
    \n"},20:function(e,t,n,i,a){return" background: #ffffff\n"},22:function(e,t,n,i,a){var r;return" background:"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.color:r,t))+"\n"},24:function(e,t,n,i,a){var r;return" color: #ffffff;\n background-color: "+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.color:r,t))+"\n"},26:function(e,t,n,i,a){return" color:#333;\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.matrices:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:""},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n '+(null!=(o=null!=(o=n["alldayTitle-tmpl"]||(null!=t?t["alldayTitle-tmpl"]:t))?o:s,r=typeof o===u?o.call(l,{name:"alldayTitle-tmpl",hash:{},data:a}):o)?r:"")+'\n
    \n
    \n
    \n
    \n'},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n \n '+(null!=(r=(n["weekDayname-tmpl"]||t&&t["weekDayname-tmpl"]||s).call(l,t,{name:"weekDayname-tmpl",hash:{},data:a}))?r:"")+"\n \n
    \n"},2:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"today"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{};return'
    \n'+(null!=(r=n.each.call(l,t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o=null!=t?t:e.nullContext||{},l=n.helperMissing,s="function",u=e.escapeExpression;return'
    \n'},3:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
      \n'+(null!=(r=n.each.call(l,null!=t?t.items:t,{name:"each",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n
    \n"},4:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"today"},6:function(e,t,n,i,a){var r,o,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},d=n.helperMissing;return'
  • \n '+(null!=(r=(n["milestone-tmpl"]||t&&t["milestone-tmpl"]||d).call(u,null!=t?t.model:t,{name:"milestone-tmpl",hash:{},data:a}))?r:"")+"\n
  • \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n '+(null!=(o=null!=(o=n["milestoneTitle-tmpl"]||(null!=t?t["milestoneTitle-tmpl"]:t))?o:s,r=typeof o===u?o.call(l,{name:"milestoneTitle-tmpl",hash:{},data:a}):o)?r:"")+'\n
    \n
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.schedules:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.schedules:t,{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n '+(null!=(o=null!=(o=n["taskTitle-tmpl"]||(null!=t?t["taskTitle-tmpl"]:t))?o:s,r=typeof o===u?o.call(l,{name:"taskTitle-tmpl",hash:{},data:a}):o)?r:"")+'\n
    \n
    \n
    \n
    '},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a}))?r:""},2:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a}))?r:""},3:function(e,t,n,i,a){var r;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a}))?r:""},4:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression,c=e.lambda;return'
    \n
    '+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||s).call(l,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"
    \n "+(null!=(r=n.unless.call(l,null!=t?t.cropped:t,{name:"unless",hash:{},fn:e.program(13,a,0),inverse:e.noop,data:a}))?r:"")+"\n
    \n"},5:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"time-date-schedule-block-pending"},7:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"time-schedule-focused "},9:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color: #ffffff; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+";\n"},11:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.bgColor:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n"},13:function(e,t,n,i,a){var r;return'
     
    '},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{};return'
    \n'+(null!=(r=n.each.call(l,null!=t?t.matrices:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n '+d((o=null!=(o=n.hours||(null!=t?t.hours:t))?o:s,typeof o===u?o.call(l,{name:"hours",hash:{},data:a}):o))+"\n
    \n"},2:function(e,t,n,i,a){return"display:none"},4:function(e,t,n,i,a){var r;return'
    \n'},6:function(e,t,n,i,a){var r,o=null!=t?t:e.nullContext||{},l=n.helperMissing,s="function",u=e.escapeExpression;return'
    \n
    \n
    '+u((r=null!=(r=n.hourmarkerText||(null!=t?t.hourmarkerText:t))?r:l,typeof r===s?r.call(o,{name:"hourmarkerText",hash:{},data:a}):r))+'
    \n
    \n
    today
    \n
    \n
    \n
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.each.call(l,null!=t?t.hoursLabels:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.hoursLabels:t,{name:"each",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n
    \n
    \n\n'+(null!=(r=n.if.call(l,null!=t?t.showHourMarker:t,{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return'
     
    '},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression,c=e.lambda;return'
    \n
    '+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||s).call(l,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"
    \n "+(null!=(r=n.unless.call(l,null!=t?t.cropped:t,{name:"unless",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+"\n
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'},2:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"today"},4:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a}))?r:""},5:function(e,t,n,i,a){var r;return"\n "+(null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a}))?r:"")},6:function(e,t,n,i,a){var r;return"\n "+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a}))?r:"")},7:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u=e.escapeExpression,d="function",c=e.lambda;return'\n
    \n
    \n'+(null!=(r=(n.fi||t&&t.fi||s).call(l,null!=(r=null!=t?t.model:t)?r.category:r,"===","task",{name:"fi",hash:{},fn:e.program(18,a,0),inverse:e.program(20,a,0),data:a}))?r:"")+" "+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.model:t)?r.isReadOnly:r,{name:"unless",hash:{},fn:e.program(22,a,0),inverse:e.noop,data:a}))?r:"")+"\n
    \n
    \n"},8:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-exceed-left"},10:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-exceed-right"},12:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-schedule-focused "},14:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color: #ffffff; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+";\n"},16:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.bgColor:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n"},18:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing;return' '+(null!=(r=(n["task-tmpl"]||t&&t["task-tmpl"]||s).call(l,null!=t?t.model:t,{name:"task-tmpl",hash:{},data:a}))?r:"")+"\n"},20:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing;return' '+(null!=(r=(n["allday-tmpl"]||t&&t["allday-tmpl"]||s).call(l,null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:a}))?r:"")+"\n"},22:function(e,t,n,i,a){var r;return' '},24:function(e,t,n,i,a){var r;return null!=(r=(n.fi||t&&t.fi||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.viewType:t,"===","toggle",{name:"fi",hash:{},fn:e.program(25,a,0),inverse:e.noop,data:a}))?r:""},25:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.dates:t,{name:"each",hash:{},fn:e.program(26,a,0),inverse:e.noop,data:a}))?r:""},26:function(e,t,n,i,a){var r;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},(r=a&&a.root)&&r.collapsed,{name:"if",hash:{},fn:e.program(27,a,0),inverse:e.program(30,a,0),data:a}))?r:""},27:function(e,t,n,i,a){var r;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.hiddenSchedules:t,{name:"if",hash:{},fn:e.program(28,a,0),inverse:e.noop,data:a}))?r:""},28:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return' '+d((n["weekGridFooterExceed-tmpl"]||t&&t["weekGridFooterExceed-tmpl"]||s).call(l,null!=t?t.hiddenSchedules:t,{name:"weekGridFooterExceed-tmpl",hash:{},data:a}))+"\n"},30:function(e,t,n,i,a){var r;return null!=(r=(n.fi||t&&t.fi||n.helperMissing).call(null!=t?t:e.nullContext||{},a&&a.key,"===",(r=a&&a.root)&&r.minHiddenScheduleIndex,{name:"fi",hash:{},fn:e.program(31,a,0),inverse:e.noop,data:a}))?r:""},31:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    '+(null!=(o=null!=(o=n["alldayCollapseBtnTitle-tmpl"]||(null!=t?t["alldayCollapseBtnTitle-tmpl"]:t))?o:s,r=typeof o===u?o.call(l,{name:"alldayCollapseBtnTitle-tmpl",hash:{},data:a}):o)?r:"")+"
    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.each.call(l,null!=t?t.dates:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n
    \n \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.matrices:t,{name:"each",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a}))?r:"")+(null!=(r=(n.fi||t&&t.fi||s).call(l,null!=t?t.panelName:t,"===","allday",{name:"fi",hash:{},fn:e.program(24,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(){var e=new l.HandlebarsEnvironment;return p.extend(e,l),e.SafeString=u.default,e.Exception=c.default,e.Utils=p,e.escapeExpression=p.escapeExpression,e.VM=m,e.template=function(t){return m.template(t,e)},e}t.__esModule=!0;var o=n(22),l=a(o),s=n(60),u=i(s),d=n(13),c=i(d),h=n(10),p=a(h),f=n(59),m=a(f),g=n(58),y=i(g),v=r();v.create=r,y.default(v),v.default=v,t.default=v,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){o.default(e)}t.__esModule=!0,t.registerDefaultDecorators=a;var r=n(48),o=i(r)},function(e,t,n){"use strict";t.__esModule=!0;var i=n(10);t.default=function(e){e.registerDecorator("inline",function(e,t,n,a){var r=e;return t.partials||(t.partials={},r=function(a,r){var o=n.partials;n.partials=i.extend({},o,t.partials);var l=e(a,r);return n.partials=o,l}),t.partials[a.args[0]]=a.fn,r})},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){o.default(e),s.default(e),d.default(e),h.default(e),f.default(e),g.default(e),v.default(e)}t.__esModule=!0,t.registerDefaultHelpers=a;var r=n(50),o=i(r),l=n(51),s=i(l),u=n(52),d=i(u),c=n(53),h=i(c),p=n(54),f=i(p),m=n(55),g=i(m),y=n(56),v=i(y)},function(e,t,n){"use strict";t.__esModule=!0;var i=n(10);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,n){var a=n.inverse,r=n.fn;if(t===!0)return r(this);if(t===!1||null==t)return a(this);if(i.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):a(this);if(n.data&&n.ids){var o=i.createFrame(n.data);o.contextPath=i.appendContextPath(n.data.contextPath,n.name),n={data:o}}return r(t,n)})},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(10),r=n(13),o=i(r);t.default=function(e){e.registerHelper("each",function(e,t){function n(t,n,r){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!r,d&&(u.contextPath=d+t)),s+=i(e[t],{data:u,blockParams:a.blockParams([e[t],t],[d+t,null])})}if(!t)throw new o.default("Must pass iterator to #each");var i=t.fn,r=t.inverse,l=0,s="",u=void 0,d=void 0;if(t.data&&t.ids&&(d=a.appendContextPath(t.data.contextPath,t.ids[0])+"."),a.isFunction(e)&&(e=e.call(this)),t.data&&(u=a.createFrame(t.data)),e&&"object"==typeof e)if(a.isArray(e))for(var c=e.length;l=0?t:parseInt(e,10)}return e},log:function(e){if(e=a.lookupLevel(e),"undefined"!=typeof console&&a.lookupLevel(a.level)<=e){var t=a.methodMap[e];console[t]||(t="log");for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;rMath.ceil(t[0]),e.offsetHeight>Math.ceil(t[1])]},i.prototype.isOnScrollbar=function(e,t){var n=this.getRealSize(e),i=r.getMousePosition(t,e),a=!1;return a=n[0]-d=t.top&&n.y<=t.bottom&&n.x>=t.left&&n.x<=t.right?void(this._direction=i.DIRECTION.INSIDE):n.yt.bottom?(this._direction=i.DIRECTION.BOTTOM,void(this._offset=n.y-t.bottom)):n.x0;)if(n-=1,!i.isUndefined(e[n][t]))return n;return!1},getMatrices:function(e,t){var n=[],r=d.getLastRowInColumn;return a(t,function(t){var o=[[]];a(t,function(t){for(var n,a,l=e.items[t],s=0,u=!1;!u;)a=r(o,s),a===!1?(o[0].push(l),u=!0):l.collidesWith(o[a][s])||(n=a+1,i.isUndefined(o[n])&&(o[n]=[]),o[n][s]=l,u=!0),s+=1}),n.push(o)}),n},getScheduleInDateRangeFilter:function(e,t){return function(n){var i=n.getStarts(),a=n.getEnds();return!(at)}},positionViewModels:function(e,t,n,r){var l;l=i.map(o.range(e,t,o.MILLISECONDS_PER_DAY),function(e){return o.format(e,"YYYYMMDD")}),a(n,function(e){a(e,function(e){a(e,function(e,t){var n,a;e&&(n=o.format(e.getStarts(),"YYYYMMDD"),a=o.range(o.start(e.getStarts()),o.end(e.getEnds()),o.MILLISECONDS_PER_DAY).length,e.top=t,e.left=i.inArray(n,l),e.width=a,r&&r(e))})})})},limitRenderRange:function(e,t,n){function i(n){return n.getStarts()t&&(n.exceedRight=!0,n.renderEnds=new l(t.getTime())),n}return n.constructor===s?(n.each(i),null):i(n)},convertToViewModel:function(e){var t;return t=new s(function(e){return e.cid()}),e.each(function(e){t.add(u.create(e))}),t}};e.exports=d},function(e,t,n){"use strict";var i=n(1),a=n(14),r=n(4),o=n(12),l=Math.max,s={_onlyTimeFilter:function(e){return!e.model.isAllDay&&!e.hasMultiDates},_onlyAlldayFilter:function(e){return e.model.isAllDay||e.hasMultiDates},_weightTopValue:function(e){e.top=e.top||0,e.top+=1},_adjustRenderRange:function(e,t,n){var i=this.Core;n.each(function(n){(n.model.isAllDay||n.hasMultiDates)&&i.limitRenderRange(e,t,n)})},_getAlldayMaxTopIndexAtYMD:function(e,t){var n=this.dateMatrix,a=[];return i.forEach(n[e],function(e){t.doWhenHas(e,function(e){a.push(e.top)})}),a.length>0?l.apply(null,a):0},_adjustTimeTopIndex:function(e){var t=this.Month,n=t._getAlldayMaxTopIndexAtYMD,o=e.find(t._onlyAlldayFilter),l=e.find(t._onlyTimeFilter).sort(a.compare.schedule.asc),s={};l.forEach(function(e){var t=r.format(e.getStarts(),"YYYYMMDD"),a=s[t];i.isUndefined(a)&&(a=s[t]=n(t,o)),s[t]=e.top=a+1})},_stackTimeFromTop:function(e){var t=this.Month,n=e.find(t._onlyAlldayFilter),o=e.find(t._onlyTimeFilter).sort(a.compare.schedule.asc),s={},u=this.dateMatrix;o.forEach(function(e){var t,a,o=r.format(e.getStarts(),"YYYYMMDD"),d=s[o];if(i.isUndefined(d)&&(d=s[o]=[],i.forEach(u[o],function(e){n.doWhenHas(e,function(e){d.push(e.top)})})),i.inArray(e.top,d)>=0)for(t=l.apply(null,d)+1,a=1;a<=t&&(e.top=a,!(i.inArray(e.top,d)<0));a+=1);d.push(e.top)})},_addMultiDatesInfo:function(e){e.each(function(e){var t=e.model,n=t.getStarts(),i=t.getEnds();e.hasMultiDates=!r.isSameDate(n,i),!t.isAllDay&&e.hasMultiDates&&(e.renderStarts=r.start(n),e.renderEnds=r.end(i))})},findByDateRange:function(e,t,n,i){var r,l,s,u,d,c=this.Core,h=this.Month,p=c.getScheduleInDateRangeFilter(e,t);return i=i||!1,n=n||[],p=o.and.apply(null,[p].concat(n)),r=this.schedules.find(p),l=c.convertToViewModel(r),h._addMultiDatesInfo(l),h._adjustRenderRange(e,t,l),s=l.sort(a.compare.schedule.asc),u=c.getCollisionGroup(s),d=c.getMatrices(l,u),c.positionViewModels(e,t,d,h._weightTopValue),i?h._adjustTimeTopIndex(l):h._stackTimeFromTop(l),d}};e.exports=s},function(e,t,n){"use strict";var i=n(1),a=n(12),r=n(14),o=n(4),l={generateTimeArrayInRow:function(e){var t,n,a,r=[],o=[],l=Math.max.apply(null,i.map(e,function(e){return e.length}));for(n=1;nl.MILLISECONDS_PER_DAY?"allday":t.category},controller:null,defaultView:"week",taskView:!0,scheduleView:!0,defaultDate:new p,template:a.extend({allday:null,time:null},a.pick(t,"template")||{}),week:a.extend({},a.pick(t,"week")||{}),month:a.extend({},a.pick(t,"month")||{}),schedules:[]},t),this.options.week=a.extend({startDayOfWeek:0,workweek:!1},a.pick(this.options,"week")||{}),this.options.month=a.extend({scheduleFilter:function(e){return Boolean(e.isVisible)&&("allday"===e.category||"time"===e.category)}},a.pick(t,"month")||{}),this.calendarColor=n.calendarColor,this.container=e,this.renderDate=n.defaultDate,this.renderRange={start:null,end:null},this.controller=n.controller||this.createController(),this.layout=new s(e),this.dragHandler=new u({ -distance:10},this.layout.container),this.viewName=n.defaultView,this.prevViewName=this.viewName,this.refreshMethod=null,this.scrollToNowMethod=null,this.initialize()}var a=n(1),r=n(21),o=n(15),l=n(4),s=n(95),u=n(26),d=n(70),c=n(72),h=n(71),p=n(5).Date,f=n(3),m=n(5),g=Math.min;i.prototype.createController=function(){return d(this.options)},i.prototype.createWeekView=function(e,t,n,i){return c(e,t,n,i)},i.prototype.createMonthView=function(e,t,n,i){return h(e,t,n,i)},i.prototype.destroy=function(){this.dragHandler.destroy(),this.controller.off(),this.layout.clear(),this.layout.destroy(),a.forEach(this.options.template,function(e,t){e&&r.unregisterHelper(t+"-tmpl")}),this.options=this.renderDate=this.controller=this.layout=this.dragHandler=this.viewName=this.prevViewName=this.refreshMethod=this.scrollToNowMethod=null},i.prototype.initialize=function(){var e=this.controller,t=this.viewName,n=this.options;this.layout.controller=e,n.schedules&&n.schedules.length&&this.createSchedules(n.schedules,!0),a.forEach(n.template,function(e,t){e&&r.registerHelper(t+"-tmpl",e)}),this.toggleView(t,!0)},i.prototype.createSchedules=function(e,t){var n=this.calendarColor;a.forEach(e,function(e){var t=n[e.calendarId];t&&(e.color=t.color,e.bgColor=t.bgColor,e.borderColor=t.borderColor)}),this.controller.createSchedules(e,t),t||this.render()},i.prototype.getSchedule=function(e,t){return this.controller.schedules.single(function(n){return n.id===e&&n.calendarId===t})},i.prototype.updateSchedule=function(e,t,n){var i=this.controller,a=i.schedules,r=a.single(function(n){return n.id===e&&n.calendarId===t});r&&(i.updateSchedule(r,n),this.render())},i.prototype.deleteSchedule=function(e,t){var n=this.controller,i=n.schedules,a=i.single(function(n){return n.id===e&&n.calendarId===t});a&&(this.fire("beforeDeleteSchedule",{schedule:a}),n.deleteSchedule(a),this.render())},i.prototype.setOptionRecurseively=function(e,t){e.recursive(function(e){var n=e.options;n&&t(n)})},i.prototype.getWeekDayRange=function(e,t,n){var i,r,o,s,u=l.millisecondsFrom;return t=t||0,e=a.isDate(e)?e:new p(e),i=e.getDay(),r=new p(Number(e)-u("day",i)+u("day",t)),o=new p(Number(r)+u("day",6)),i0,o=Math.max(0,t.fromLeft),r=t.fromLeft*-1+(h+t.fromRight),l=n?r+t.fromLeft:r,l=i?l-t.fromRight:l,s=p[o]?p[o].left:0,u=a(o,l,p),this.refreshGuideElement(s,u,n,i))},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.alldayView=t,this.baseController=n,this._dragStart=null,e.on({dragStart:this._onDragStart},this),this.guide=new d(this)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(6),u=n(17),d=n(78),c=n(5).Date;i.prototype.destroy=function(){this.guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.alldayView=this.baseController=this.guide=this._dragStart=null},i.prototype.checkExpectedCondition=function(e){var t,n=l.getClass(e);return!!~n.indexOf(r.classname("weekday-resize-handle"))&&(!!(e=l.closest(e,r.classname(".weekday")))&&(n=l.getClass(e),t=n.match(r.allday.getViewIDRegExp),!(!t||t.length<2)&&a.pick(this.alldayView.children.items,t[1])))},i.prototype._onDragStart=function(e){var t,n,i,o,s,u=e.target,d=this.checkExpectedCondition(u),c=this.baseController;d&&(t=l.closest(u,r.classname(".weekday-schedule-block")),n=l.getData(t,"id"),i=c.schedules.items[n],i&&(o=this._retriveScheduleData(this.alldayView,e.originEvent),this.getScheduleDataFunc=o,s=this._dragStart=o(e.originEvent),a.extend(s,{scheduleBlockElement:t,model:i}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("alldayResizeDragstart",s)))},i.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.fire("alldayResizeDrag",t(e.originEvent))},i.prototype._updateSchedule=function(e){var t=e.targetModel,n=e.xIndex-e.dragStartXIndex,i=new c(t.end.getTime());i=new c(i.setDate(i.getDate()+n)),i=new c(Math.max(o.end(t.start).getTime(),i.getTime())),this.fire("beforeUpdateSchedule",{schedule:t,start:t.getStarts(),end:i})},i.prototype._onDragEnd=function(e,t,n){var i,r=this.getScheduleDataFunc,o=this._dragStart;r&&o&&(this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),i=r(e.originEvent),a.extend(i,{targetModel:o.model}),n||this._updateSchedule(i),this.fire(t||"alldayResizeDragend",i),this.getScheduleDataFunc=this._dragStart=null)},i.prototype._onClick=function(e){this._onDragEnd(e,"alldayResizeClick",!0)},s.mixin(u,i),a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e){this.alldayResize=e,this.scheduleContainer=null,this.getScheduleDataFunc=null,this.guideElement=null,e.on({alldayResizeDragstart:this._onDragStart,alldayResizeDrag:this._onDrag,alldayResizeDragend:this._clearGuideElement,alldayResizeClick:this._clearGuideElement},this)}var a=n(1),r=n(3),o=n(2),l=n(4),s=n(11),u=n(5).Date;i.prototype.destroy=function(){this._clearGuideElement(),this.alldayResize.off(this),this.alldayResize=this.scheduleContainer=this.getScheduleDataFunc=this.guideElement=null},i.prototype._clearGuideElement=function(){o.remove(this.guideElement),a.browser.msie||o.removeClass(t.document.body,r.classname("resizing-x")),this.getScheduleDataFunc=null},i.prototype.refreshGuideElement=function(e){var t=this.guideElement;s.requestAnimFrame(function(){t.style.width=e+"%"})},i.prototype.getGuideElementWidthFunc=function(e){var t=e.model,n=this.alldayResize.alldayView.options,i=new u(t.start.getTime()-l.parse(n.renderStartDate))/l.MILLISECONDS_PER_DAY|0,a=e.grids;return function(e){var t=0,n=0,r=a.length;for(t+=a[i]?a[i].width:0;ni&&n<=e&&(t+=a[n]?a[n].width:0);return t}},i.prototype._onDragStart=function(e){var n,i=this.alldayResize.alldayView.container,l=this.guideElement=e.scheduleBlockElement.cloneNode(!0);a.browser.msie||o.addClass(t.document.body,r.classname("resizing-x")),n=o.find(r.classname(".weekday-schedules"),i),o.addClass(l,r.classname("allday-guide-move")),n.appendChild(l),this.getScheduleDataFunc=this.getGuideElementWidthFunc(e)},i.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.refreshGuideElement(t(e.xIndex))},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.milestoneView=t,this.baseController=n,e.on({click:this._onClick},this)}var a=n(1),r=n(3),o=n(2);i.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.milestoneView=this.baseController=null},i.prototype.checkExpectedCondition=function(e){return e=o.closest(e,r.classname(".milestone-item")),!!e&&o.getData(e,"id")},i.prototype._onClick=function(e){var t=this,n=this.checkExpectedCondition(e.target);n&&this.baseController.schedules.doWhenHas(n,function(n){t.fire("clickSchedule",{schedule:n,event:e.originEvent})})},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,e.on({click:this._onClick},this)}var a=n(1),r=n(3),o=n(4),l=n(2);i.prototype.destroy=function(){this.dragHandler.off(this),this.monthView=this.baseController=this.dragHandler=null},i.prototype._onClick=function(e){var t,n=this,i=this.baseController.schedules,a=l.closest(e.target,r.classname(".weekday-schedule-block"))||l.closest(e.target,r.classname(".month-more-schedule"));t=l.closest(e.target,r.classname(".weekday-exceed-in-month")),t&&n.fire("clickMore",{date:o.parse(l.getData(t,"ymd")),target:t,ymd:l.getData(t,"ymd")}),a&&i.doWhenHas(l.getData(a,"id"),function(t){n.fire("clickSchedule",{schedule:t,event:e.originEvent})})},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new h(this),this._requestOnClick=!1,e.on("dragStart",this._onDragStart,this),e.on("click",this._onClick,this),d.on(t.container,"dblclick",this._onDblClick,this)}function a(e){return u.closest(e,o.classname(".weekday-grid"))&&!u.closest(e,o.classname(".weekday-exceed-in-month"))}var r=n(1),o=n(3),l=n(4),s=n(14),u=n(2),d=n(9),c=n(18),h=n(82),p=n(5).Date,f=300;i.prototype.destroy=function(){this.dragHandler.off(this),this.guide.destroy(),this.monthView&&this.monthView.container&&d.off(this.monthView.container,"dblclick",this._onDblClick,this),this.dragHandler=this.monthView=this.baseController=this.getScheduleData=this._cache=this.guide=null},i.prototype._createSchedule=function(e){this.fire("beforeCreateSchedule",{isAllDay:e.isAllDay,start:e.start,end:e.end,guide:this.guide.guide,triggerEventName:e.triggerEvent})},i.prototype._onDragStart=function(e){var t;a(e.target)&&(this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=c(this.monthView),t=this.getScheduleData(e.originEvent),this._cache={start:new p(Number(t.date))},this.fire("monthCreationDragstart",t))},i.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&this.fire("monthCreationDrag",t))},i.prototype._onDragEnd=function(e){var t,n,i=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&(i.end=new p(Number(t.date)),i.isAllDay=!0,n=[Number(i.start),Number(i.end)].sort(s.compare.num.asc),i.start=new p(n[0]),i.end=l.end(new p(n[1])),this._createSchedule(i)),this.fire("monthCreationDragend",t),this.getScheduleData=this._cache=null)},i.prototype._onDblClick=function(e){var t,n;a(e.target)&&(t=c(this.monthView)(e),this.fire("monthCreationClick",t),n=this._adjustStartAndEndTime(new p(Number(t.date)),new p(Number(t.date))),this._createSchedule({start:n.start,end:n.end,isAllDay:!1,triggerEvent:t.triggerEvent}),this._requestOnClick=!1)},i.prototype._onClick=function(e){var t,n,i=this;a(e.target)&&(t=c(this.monthView)(e.originEvent),this._requestOnClick=!0,setTimeout(function(){i._requestOnClick&&(i.fire("monthCreationClick",t),n=i._adjustStartAndEndTime(new p(Number(t.date)),new p(Number(t.date))),i._createSchedule({start:n.start,end:n.end,isAllDay:!1,triggerEvent:t.triggerEvent})),i._requestOnClick=!1},f))},i.prototype._adjustStartAndEndTime=function(e,t){var n=new p,i=n.getHours(),a=n.getMinutes();return a=a<=30?0:30,e.setHours(i,a,0,0),t.setHours(i+1,a,0,0),{start:e,end:t}},r.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e){this.monthCreation=e,this.guide=null,e.on({monthCreationDragstart:this._createGuideElement,monthCreationDrag:this._onDrag,monthCreationDragend:this._onDragEnd,monthCreationClick:this._createGuideElement},this)}var a=n(27);i.prototype.destroy=function(){this.monthCreation.off(this),this.guide&&this.guide.destroy(),this.guide=this.monthCreation=null},i.prototype._createGuideElement=function(e){var t={isCreationMode:!0,height:"100%",top:0};this.guide=new a(t,this.monthCreation.monthView),this.guide.start(e)},i.prototype._onDrag=function(e){this.guide.update(e.x,e.y)},i.prototype._onDragEnd=function(){this.guide=null},e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new u(this),e.on("dragStart",this._onDragStart,this)}var a=n(1),r=n(3),o=n(2),l=n(4),s=n(18),u=n(84),d=n(5).Date;i.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},i.prototype.updateSchedule=function(e){var t=e.model,n=t.duration().getTime(),i=l.raw(t.start),a=Number(e.end),r=new d(a);r.setHours(i.h,i.m,i.s,i.ms),this.fire("beforeUpdateSchedule",{schedule:t,start:r,end:new d(r.getTime()+n)})},i.prototype.getMonthScheduleBlock=function(e){var t=r.classname(".weekday-schedule-block");return o.closest(e,t)},i.prototype.getMoreLayerScheduleBlock=function(e){var t=r.classname(".month-more-schedule");return o.closest(e,t)},i.prototype.hasPermissionToHandle=function(e){var t,n=null;return o.hasClass(e,r.classname("weekday-resize-handle"))?null:(t=this.getMonthScheduleBlock(e),t?n=o.getData(t,"id"):(t=this.getMoreLayerScheduleBlock(e),t&&(n=o.getData(t,"id"),this.fire("monthMoveStart_from_morelayer"))),n)},i.prototype._onDragStart=function(e){var t,n,i=e.target,a=this.hasPermissionToHandle(i);a&&(t=this.baseController.schedules.items[a],t.isReadOnly||(this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=s(this.monthView),n=this.getScheduleData(e.originEvent),n.originEvent=e.originEvent,n.target=this.getMonthScheduleBlock(i),n.model=t,this._cache={model:t,target:i,start:new d(Number(n.date))},this.fire("monthMoveDragstart",n)))},i.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=a.extend({originEvent:e.originEvent},this.getScheduleData(e.originEvent)),t&&this.fire("monthMoveDrag",t))},i.prototype._onDragEnd=function(e){var t,n=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&(n.end=new d(Number(t.date)),this.updateSchedule(n)),this.fire("monthMoveDragend",t),this.getScheduleData=this._cache=null)},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e){this.monthMove=e,this.elements=null, -this.layer=null,e.on({monthMoveDragstart:this._onDragStart,monthMoveDrag:this._onDrag,monthMoveDragend:this._onDragEnd},this)}var a=n(1),r=n(3),o=n(2),l=n(9),s=n(16),u=n(33),d=n(20);i.prototype.destroy=function(){this.monthMove.off(this),this._clearGridBgColor(),this.layer&&this.layer.destroy(),this.element&&o.remove(this.element),this.monthMove=this.elements=this.layer=null},i.prototype._hideOriginScheduleBlocks=function(e){var t=r.classname("weekday-schedule-block-dragging-dim");this.elements=o.find(r.classname(".weekday-schedule-block-"+e),this.monthMove.monthView.container,!0),a.forEach(this.elements,function(e){o.addClass(e,t)})},i.prototype._showOriginScheduleBlocks=function(){var e=r.classname("weekday-schedule-block-dragging-dim");a.forEach(this.elements,function(t){o.removeClass(t,e)})},i.prototype._getHighlightColorModel=function(e){return{bgColor:e.color}},i.prototype._clearGridBgColor=function(){var e=r.classname(".weekday-filled"),t=r.classname("weekday-filled"),n=o.find(e,this.monthMove.monthView.container);n&&o.removeClass(n,t)},i.prototype._updateGridBgColor=function(e){var t=o.find(r.classname(".weekday-grid-line"),this.monthMove.monthView.container,!0),n=r.classname("weekday-filled"),i=e.x+e.sizeX*e.y;this._clearGridBgColor(),t&&t[i]&&o.addClass(t[i],n)},i.prototype._onDragStart=function(e){var n=this.monthMove.monthView,i=n.children.single(),c=i.options,h=100/i.getRenderDateRange().length,p=c.scheduleGutter+c.scheduleHeight,f=n.container,m=l.getMousePosition(e.originEvent,f),g=e.model,y=new s(null,f);this._hideOriginScheduleBlocks(g.cid()),this.layer=y,y.setSize(h+"%",p),y.setPosition(m[0],m[1]),y.setContent(u({model:a.extend(d.create(g),g,this._getHighlightColorModel(g))})),y.show(),a.browser.msie||o.addClass(t.document.body,r.classname("dragging"))},i.prototype._onDrag=function(e){var t=this.monthMove.monthView.container,n=l.getMousePosition(e.originEvent,t);this._updateGridBgColor(e),this.layer&&this.layer.setPosition(n[0],n[1])},i.prototype._onDragEnd=function(){this._showOriginScheduleBlocks(),a.browser.msie||o.removeClass(t.document.body,r.classname("dragging")),this._clearGridBgColor(),this.layer.destroy(),this.layer=null},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new u(this),e.on("dragStart",this._onDragStart,this)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(18),u=n(86),d=n(5).Date;i.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},i.prototype._updateSchedule=function(e){var t=o.end(new d(Number(e.end))),n=e.schedule;this.fire("beforeUpdateSchedule",{schedule:n,start:new d(Number(n.getStarts())),end:t})},i.prototype._onDragStart=function(e){var t,n,i,a=e.target;l.hasClass(a,r.classname("weekday-resize-handle"))&&(a=l.closest(a,r.classname(".weekday-schedule-block")),a&&(t=l.getData(a,"id"),n=this.baseController.schedules.items[t],this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=s(this.monthView),i=this.getScheduleData(e.originEvent),i.target=a,i.model=n,this._cache={schedule:n,target:a,start:new d(Number(i.date))},this.fire("monthResizeDragstart",i)))},i.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&this.fire("monthResizeDrag",t))},i.prototype._onDragEnd=function(e){var t,n=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&(n.end=new d(Number(t.date)),this._updateSchedule(n)),this.fire("monthResizeDragend",t),this.getScheduleData=this._cache=null)},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e){this.monthResize=e,this.elements=null,this.guide=null,e.on({monthResizeDragstart:this._onDragStart,monthResizeDrag:this._onDrag,monthResizeDragend:this._onDragEnd},this)}var a=n(1),r=n(3),o=n(2),l=n(27);i.prototype.destroy=function(){this.monthResize.off(this),this.guide.destroy(),this.guide=this.monthResize=null},i.prototype._hideScheduleBlocks=function(e){this.elements=o.find(r.classname(".weekday-schedule-block-"+e),this.monthResize.monthView.container,!0),a.forEach(this.elements,function(e){e.style.display="none"})},i.prototype._showScheduleBlocks=function(){a.forEach(this.elements,function(e){e.style.display="block"})},i.prototype._onDragStart=function(e){this.guide=new l({isResizeMode:!0},this.monthResize.monthView),this._hideScheduleBlocks(e.model.cid()),this.guide.start(e),a.browser.msie||o.addClass(t.document.body,r.classname("resizing-x"))},i.prototype._onDrag=function(e){this.guide.update(e.x,e.y)},i.prototype._onDragEnd=function(){this._showScheduleBlocks(),this.guide.destroy(),this.elements=this.guide=null,a.browser.msie||o.removeClass(t.document.body,r.classname("resizing-x"))},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,e.on({click:this._onClick},this)}var a=n(1),r=n(3),o=n(2);i.prototype.destroy=function(){this.dragHandler.off(this),this.timeGridView=this.baseController=this.dragHandler=null},i.prototype.checkExpectCondition=function(e){var t,n;return!!(t=o.closest(e,r.classname(".time-date")))&&(n=o.getClass(t).match(r.time.getViewIDRegExp),!(!n||n.length<2)&&a.pick(this.timeGridView.children.items,Number(n[1])))},i.prototype._onClick=function(e){var t=this,n=e.target,i=this.checkExpectCondition(n),a=o.closest(n,r.classname(".time-date-schedule-block")),l=this.baseController.schedules;i&&a&&l.doWhenHas(o.getData(a,"id"),function(n){t.fire("clickSchedule",{schedule:n,event:e.originEvent})})},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.dayNameView=t,this.baseController=n,e.on({click:this._onClick},this)}var a=n(1),r=n(3),o=n(2);i.prototype.destroy=function(){this.dragHandler.off(this),this.dayNameView=this.baseController=this.dragHandler=null},i.prototype.checkExpectCondition=function(e){var t=o.closest(e,r.classname(".dayname-date-area"));return!!t},i.prototype._onClick=function(e){var t=this,n=e.target,i=this.checkExpectCondition(n),a=o.closest(n,r.classname(".dayname"));i&&a&&t.fire("clickDayname",{date:o.getData(a,"date")})},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this.guide=new d(this),this._getScheduleDataFunc=null,this._dragStart=null,this._requestOnClick=!1,e.on("dragStart",this._onDragStart,this),e.on("click",this._onClick,this),u.on(t.container,"dblclick",this._onDblClick,this)}var a=n(1),r=n(3),o=n(14),l=n(4),s=n(2),u=n(9),d=n(90),c=n(5).Date,h=n(19),p=300;i.prototype.destroy=function(){var e=this.timeGridView;this.guide.destroy(),this.dragHandler.off(this),e&&e.container&&u.off(e.container,"dblclick",this._onDblClick,this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this.guide=null},i.prototype.checkExpectedCondition=function(e){var t,n=s.getClass(e);return n===r.classname("time-date-schedule-block-wrap")&&(e=e.parentNode,n=s.getClass(e)),t=n.match(r.time.getViewIDRegExp),!(!t||t.length<2)&&a.pick(this.timeGridView.children.items,t[1])},i.prototype._onDragStart=function(e,t,n){var i,a,r=e.target,o=this.checkExpectedCondition(r);o&&(i=this._getScheduleDataFunc=this._retriveScheduleData(o),a=this._dragStart=i(e.originEvent),n&&n(a),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.fire(t||"timeCreationDragstart",a))},i.prototype._onDrag=function(e,t,n){var i,a=this._getScheduleDataFunc;a&&(i=a(e.originEvent),n&&n(i),this.fire(t||"timeCreationDrag",i))},i.prototype._createSchedule=function(e){var t,n,i,a,r,o=e.relatedView,s=e.createRange,u=e.nearestGridTimeY;s||(s=[u,u+l.millisecondsFrom("minutes",30)]),t=new c(o.getDate()),n=l.start(t),i=l.end(t),a=Math.max(n.getTime(),s[0]),r=Math.min(i.getTime(),s[1]),this.fire("beforeCreateSchedule",{isAllDay:!1,start:new c(a),end:new c(r),guide:this.guide,triggerEventName:e.triggerEvent})},i.prototype._onDragEnd=function(e){function t(e){var t=[i.nearestGridTimeY,e.nearestGridTimeY].sort(o.compare.num.asc);t[1]+=l.millisecondsFrom("hour",.5),e.createRange=t,n._createSchedule(e)}var n=this,i=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this._onDrag(e,"timeCreationDragend",t),this._dragStart=this._getScheduleDataFunc=null},i.prototype._onClick=function(e){var t,n,i,a=this;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),t=this.checkExpectedCondition(e.target),t&&(n=this._retriveScheduleData(t),i=n(e.originEvent),this._requestOnClick=!0,setTimeout(function(){a._requestOnClick&&(a.fire("timeCreationClick",i),a._createSchedule(i)),a._requestOnClick=!1},p),this._dragStart=this._getScheduleDataFunc=null)},i.prototype._onDblClick=function(e){var t,n,i;t=this.checkExpectedCondition(e.target),t&&(n=this._retriveScheduleData(t),i=n(e),this.fire("timeCreationClick",i),this._createSchedule(i),this._requestOnClick=!1)},h.mixin(i),a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e){this.guideElement=t.document.createElement("div"),this.guideTimeElement=l.appendHTMLElement("span",this.guideElement,o.classname("time-guide-creation-label")),l.addClass(this.guideElement,o.classname("time-guide-creation")),this.timeCreation=e,this._styleUnit=null,this._styleStart=null,this._styleFunc=null,e.on({timeCreationDragstart:this._createGuideElement,timeCreationDrag:this._onDrag,timeCreationClick:this._createGuideElement},this)}var a=n(6),r=n(4),o=n(3),l=n(2),s=n(11),u=n(6).ratio,d=n(5).Date,c=30*r.MILLISECONDS_PER_MINUTES;i.prototype.destroy=function(){this.clearGuideElement(),this.timeCreation.off(this),this.timeCreation=this._styleUnit=this._styleStart=this._styleFunc=this.guideElement=this.guideTimeElement=null},i.prototype.clearGuideElement=function(){var e=this.guideElement,t=this.guideTimeElement;l.remove(e),s.requestAnimFrame(function(){e.style.display="none",e.style.top="",e.style.height="",t.innerHTML=""})},i.prototype._refreshGuideElement=function(e,t,n,i,a){var s=this.guideElement,u=this.guideTimeElement;s.style.top=e+"px",s.style.height=t+"px",s.style.display="block",u.innerHTML=r.format(new d(n),"HH:mm")+" - "+r.format(new d(i),"HH:mm"),a?l.removeClass(u,o.classname("time-guide-bottom")):l.addClass(u,o.classname("time-guide-bottom"))},i.prototype._getUnitData=function(e){var t=e.options,n=e.getViewBound().height,i=t.hourEnd-t.hourStart,a=r.parse(t.ymd),o=r.end(a);return a.setHours(0,0,0,0),a.setHours(t.hourStart),[n,i,Number(a),Number(o),n/i]},i.prototype._limitStyleData=function(e,t,n,i){var r=this._styleUnit;return e=a.limit(e,[0],[r[0]]),t=a.limit(e+t,[0],[r[0]])-e,n=a.limit(n,[r[2]],[r[3]]),i=a.limit(i,[r[2]],[r[3]]),[e,t,n,i]},i.prototype._getStyleDataFunc=function(e,t,n){function i(i){var r,l,s=i.nearestGridY,d=i.nearestGridTimeY;return r=a.limit(u(t,e,s),[0],[e]),l=a.limit(d,[n],[o]),[r,l]}var o=Number(r.end(new d(Number(n))));return i},i.prototype._createGuideElement=function(e){var t,n,i,a,r=e.relatedView;t=this._styleUnit=this._getUnitData(r),n=this._styleFunc=this._getStyleDataFunc.apply(this,t),i=this._styleStart=n(e),a=this._limitStyleData(i[0],t[4]/2,i[1],i[1]+c),this._refreshGuideElement.apply(this,a),r.container.appendChild(this.guideElement)},i.prototype._onDrag=function(e){var t,n,i,a=this._styleFunc,r=this._styleUnit,o=this._styleStart,l=this._refreshGuideElement.bind(this);a&&r&&o&&(t=r[4]/2,n=a(e),n[0]>o[0]?i=this._limitStyleData(o[0],n[0]-o[0]+t,o[1],n[1]+c):(i=this._limitStyleData(n[0],o[0]-n[0]+t,n[1],o[1]+c),i.push(!0)),s.requestAnimFrame(function(){l.apply(null,i)}))},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this._getScheduleDataFunc=null,this._dragStart=null,this._guide=new d(this),e.on("dragStart",this._onDragStart,this)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(5).Date,u=n(19),d=n(92);i.prototype.destroy=function(){this._guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this._guide=null},i.prototype.checkExpectCondition=function(e){return!!l.closest(e,r.classname(".time-schedule"))&&this._getTimeView(e)},i.prototype._getTimeView=function(e){var t,n=l.closest(e,r.classname(".time-date"));return!!n&&(t=l.getClass(n).match(r.time.getViewIDRegExp),!(!t||t.length<2)&&a.pick(this.timeGridView.children.items,Number(t[1])))},i.prototype._onDragStart=function(e){var t,n,i,a,o=e.target,s=this.checkExpectCondition(o),u=l.closest(o,r.classname(".time-date-schedule-block")),d=this.baseController;s&&u&&(i=l.getData(u,"id"),a=d.schedules.items[i],a.isReadOnly||(t=this._getScheduleDataFunc=this._retriveScheduleData(s),n=this._dragStart=t(e.originEvent,{targetModelID:i,model:a}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("timeMoveDragstart",n)))},i.prototype._onDrag=function(e,t,n){var i,a=this._getScheduleDataFunc,r=this._getTimeView(e.target),o=this._dragStart;r&&a&&o&&(i=a(e.originEvent,{currentView:r,targetModelID:o.targetModelID}),n&&n(i),this.fire(t||"timeMoveDrag",i))},i.prototype._updateSchedule=function(e){var t,n,i,a,r,l,u=this.baseController,d=e.targetModelID,c=e.nearestRange,h=c[1]-c[0],p=0,f=u.schedules.items[d],m=e.relatedView,g=e.currentView;f&&g&&(h-=o.millisecondsFrom("minutes",30),l=new s(m.getDate()),n=o.start(l),i=o.end(l),a=new s(f.getStarts().getTime()+h),r=new s(f.getEnds().getTime()+h),t=f.duration(),g&&(p=g.getDate()-m.getDate()),ai&&(r=new s(i.getTime()),a=new s(r.getTime()-t.getTime())),a=new s(a.getTime()+p),r=new s(r.getTime()+p),this.fire("beforeUpdateSchedule",{schedule:f,start:a,end:r}))},i.prototype._onDragEnd=function(e){var t,n=this._getScheduleDataFunc,i=this._getTimeView(e.target),a=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),n&&a&&(t=n(e.originEvent,{currentView:i,targetModelID:a.targetModelID}),t.range=[a.timeY,t.timeY+o.millisecondsFrom("hour",.5)],t.nearestRange=[a.nearestGridTimeY,t.nearestGridTimeY+o.millisecondsFrom("hour",.5)],this._updateSchedule(t),this.fire("timeMoveDragend",t))},i.prototype._onClick=function(e){var t,n=this._getScheduleDataFunc,i=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),n&&i&&(t=n(e.originEvent,{targetModelID:i.targetModelID}),this.fire("timeMoveClick",t))},u.mixin(i),a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e){this._guideLayer=null,this._model=null,this._lastDrag=null,this.guideElement=null,this.timeMove=e,this._container=null,this._getTopFunc=null,this._startGridY=0,this._startTopPixel=0,e.on({timeMoveDragstart:this._onDragStart,timeMoveDrag:this._onDrag,timeMoveDragend:this._clearGuideElement,timeMoveClick:this._clearGuideElement},this)}var a=n(1),r=n(3),o=n(2),l=n(11),s=n(6).ratio,u=n(16),d=n(44),c=n(5).Date,h=n(20);i.prototype.destroy=function(){this._clearGuideElement(),this.timeMove.off(this),this._guideLayer&&this._guideLayer.destroy(),this.guideElement=this.timeMove=this._container=this._guideLayer=this._lastDrag=this._getTopFunc=this._startGridY=this._startTopPixel=null},i.prototype._clearGuideElement=function(){a.browser.msie||o.removeClass(t.document.body,r.classname("dragging")),this._guideLayer&&this._guideLayer.destroy(),this._showOriginScheduleBlocks(),this.guideElement=this._getTopFunc=this._guideLayer=this._model=this._lastDrag=this._startGridY=this._startTopPixel=null},i.prototype._hideOriginScheduleBlocks=function(){var e=r.classname("time-date-schedule-block-dragging-dim");this.guideElement&&o.addClass(this.guideElement,e)},i.prototype._showOriginScheduleBlocks=function(){var e=r.classname("time-date-schedule-block-dragging-dim");this.guideElement&&o.removeClass(this.guideElement,e)},i.prototype._getHighlightColorModel=function(e){return{bgColor:e.color}},i.prototype._refreshGuideElement=function(e,t){var n=this;l.requestAnimFrame(function(){n._guideLayer&&(n._guideLayer.setPosition(0,e),n._guideLayer.setContent(d({model:t})))})},i.prototype._onDragStart=function(e){var t=o.closest(e.target,r.classname(".time-date-schedule-block"));t&&(this._startTopPixel=parseFloat(t.style.top),this._startGridY=e.nearestGridY,this.guideElement=t,this._container=e.relatedView.container,this._model=a.extend(h.create(e.model),e.model,this._getHighlightColorModel(e.model)),this._lastDrag=e,this._resetGuideLayer(),this._hideOriginScheduleBlocks())},i.prototype._onDrag=function(e){var n,i,l=e.currentView,u=l.options,d=l.getViewBound().height,h=parseFloat(this.guideElement.style.height),p=u.hourEnd-u.hourStart,f=e.nearestGridY-this._startGridY,m=s(p,d,f),g=e.nearestGridTimeY-this._lastDrag.nearestGridTimeY;a.browser.msie||o.addClass(t.document.body,r.classname("dragging")),this._container!==l.container&&(this._container=l.container,this._resetGuideLayer()),i=this._startTopPixel+m,n=d-h,i=Math.max(i,0),i=Math.min(i,n),this._model.start=new c(this._model.getStarts().getTime()+g),this._model.end=new c(this._model.getEnds().getTime()+g),this._lastDrag=e,this._refreshGuideElement(i,this._model)},i.prototype._resetGuideLayer=function(){this._guideLayer&&(this._guideLayer.destroy(),this._guideLayer=null),this._guideLayer=new u(null,this._container),this._guideLayer.setSize(this._container.getBoundingClientRect().width,this.guideElement.style.height),this._guideLayer.setPosition(0,this.guideElement.style.top),this._guideLayer.setContent(d({model:this._model})),this._guideLayer.show()},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this._getScheduleDataFunc=null,this._dragStart=null,this._guide=new d(this),e.on("dragStart",this._onDragStart,this)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(5).Date,u=n(19),d=n(94);i.prototype.destroy=function(){this._guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this._guide=null},i.prototype.checkExpectCondition=function(e){var t,n;return!!l.hasClass(e,r.classname("time-resize-handle"))&&(!!(t=l.closest(e,r.classname(".time-date")))&&(n=l.getClass(t).match(r.time.getViewIDRegExp),!(!n||n.length<2)&&a.pick(this.timeGridView.children.items,Number(n[1]))))},i.prototype._onDragStart=function(e){var t,n,i=e.target,a=this.checkExpectCondition(i),o=l.closest(i,r.classname(".time-date-schedule-block"));a&&o&&(t=this._getScheduleDataFunc=this._retriveScheduleData(a),n=this._dragStart=t(e.originEvent,{targetModelID:l.getData(o,"id")}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("timeResizeDragstart",n))},i.prototype._onDrag=function(e,t,n){var i,a=this._getScheduleDataFunc,r=this._dragStart;a&&r&&(i=a(e.originEvent,{targetModelID:r.targetModelID}),n&&n(i),this.fire(t||"timeResizeDrag",i))},i.prototype._updateSchedule=function(e){var t,n,i,a=this.baseController,r=e.targetModelID,l=e.nearestRange,u=l[1]-l[0],d=a.schedules.items[r],c=e.relatedView;d&&(u-=o.millisecondsFrom("minutes",30),i=new s(c.getDate()),t=o.end(i),n=new s(d.getEnds().getTime()+u),n>t&&(n=new s(t.getTime())),n.getTime()-d.getStarts().getTime() '+u.stripTags(e.title)},"milestoneTitle-tmpl":function(){return"마일스톤"},"task-tmpl":function(e){return' '+u.stripTags(e.title)},"taskTitle-tmpl":function(){return"업무"},"alldayTitle-tmpl":function(){return"종일"},"alldayCollapseBtnTitle-tmpl":function(){return"∧"},"allday-tmpl":function(e){return u.stripTags(e.title)},"time-tmpl":function(e){return u.stripTags(e.title)},"monthMoreTitleDate-tmpl":function(e){return e},"monthMoreClose-tmpl":function(){return"close"},"monthGridHeader-tmpl":function(e){return''+e.date+""},"monthGridHeaderExceed-tmpl":function(e){return""},"monthGridFooter-tmpl":function(){return""},"monthGridFooterExceed-tmpl":function(e){return""},"weekDayname-tmpl":function(e){return''+e.date+" "+e.dayName},"monthDayname-tmpl":function(e){return e.label},"weekGridFooterExceed-tmpl":function(e){return"+"+e}})},function(e,t,n){"use strict";function i(e,t,n){t=o.appendHTMLElement("div",t,r.classname("allday-container")),this.options=a.extend({ -title:"All-day",renderStartDate:"",renderEndDate:"",containerBottomGutter:18,scheduleHeight:18,scheduleGutter:2,scheduleContainerTop:1,getViewModelFunc:function(e){return e.schedulesInDateRange.allday}},e),this.contentHeight=0,this.viewType=e.alldayViewType||"scroll",this.collapsed="toggle"===this.viewType,this.aboutMe=a.extend(n,{name:"allday"}),this.maxScheduleInDay=0,l.call(this,t)}var a=n(1),r=n(3),o=n(2),l=n(8),s=n(29),u=n(38);a.inherit(i,l),i.prototype.render=function(e){var t,n=this.container,i=this.options.scheduleContainerTop,a=this;n.innerHTML=u(this.options),this.children.clear(),t=new s(this.options,o.find(r.classname(".weekday-container"),n),this.aboutMe),t.collapsed=this.collapsed,t.on("afterRender",function(e){a.contentHeight=e.minHeight+i,a.maxScheduleInDay=e.maxScheduleInDay}),this.addChild(t),this.children.each(function(t){t.collapsed=this.collapsed,t.render(e)},this),this.fire("afterRender",e)},i.prototype.getExpandMaxHeight=function(){var e=this.options.scheduleHeight+this.options.scheduleGutter,t=this.aboutMe.maxExpandCount;return this.maxScheduleInDay>t?e*(t+.5):e*t},e.exports=i},function(e,t,n){"use strict";function i(e,t){t=s.appendHTMLElement("div",t,r.classname("dayname-container")),this.options=a.extend({daynames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},e),u.call(this,t)}var a=n(1),r=n(3),o=n(4),l=n(5).Date,s=n(2),u=n(8),d=n(39);a.inherit(i,u),i.prototype._getBaseViewModel=function(e,t,n){var i,r=this.options.daynames;return i=a.map(o.range(o.start(e),o.end(t),o.MILLISECONDS_PER_DAY),function(e,t){var i=e.getDay();return{day:i,dayName:r[i],isToday:o.isSameDate(e,new l),date:e.getDate(),left:n[t]?n[t].left:0,width:n[t]?n[t].width:0,renderDate:o.format(e,"YYYY-MM-DD")}})},i.prototype.render=function(e){var t=this._getBaseViewModel(e.renderStartDate,e.renderEndDate,e.grids);this.container.innerHTML=d(t)},e.exports=i},function(e,t,n){"use strict";function i(e,t){t=l.appendHTMLElement("div",t,r.classname("milestone-container")),u.call(this,t),this.options=a.extend({renderStartDate:"",renderEndDate:""},e)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(5).Date,u=n(8),d=n(40),c=17,h=1;a.inherit(i,u),i.prototype._getBaseViewModel=function(e){var t,n={},i=e.range,r=o.format(new s,"YYYY-MM-DD"),l=a.pick(e.schedulesInDateRange,"milestone"),u=e.grids,d=0;return a.forEach(i,function(e){n[o.format(e,"YYYY-MM-DD")]={length:0}}),a.extend(n,l),a.forEach(n,function(e,t){e.isToday=t===r,e.left=u[d]?u[d].left:0,e.width=u[d]?u[d].width:0,d+=1}),t=h,t+=Math.max.apply(null,a.map(n,function(e){return e.length}))*c,{schedules:n,height:t}},i.prototype.render=function(e){var t=this.container,n=this._getBaseViewModel(e);t.style.minHeight=this.options.minHeight+"px",t.innerHTML=d(n),a.forEach(l.find("li",t,!0),function(e){e.offsetWidths&&(r=s-o,u=!0),d&&(u=!0),{top:o,left:t.baseLeft[t.columnIndex],width:i,height:Math.max(r,this.options.minHeight)-this.options.defaultMarginBottom,cropped:u}},i.prototype._getBaseViewModel=function(e,t){var n,i,r,l=this,s=this.options,u=s.hourStart,d=s.hourEnd;n=this.getViewBound().height,i=this._parseDateGroup(e),i.setHours(u),r=o.millisecondsFrom("hour",d-u),c(t,function(e){var t,o,s,u;for(t=Math.max.apply(null,a.map(e,function(e){return e.length})),o=100/t,s=[],u=0;u40&&(s=o+1)),l.map(function(e){return{hours:e,hidden:s===e}})}function a(e,t){t=s.appendHTMLElement("div",t,o.classname("timegrid-container")),h.call(this,t),r.browser.safari||(this._autoScroll=new f(t)),this.options=r.extend({renderStartDate:"",renderEndDate:"",hourStart:0,hourEnd:24},e),this.intervalID=0,this.timerID=0,this._scrolled=!1,this._cacheParentViewModel=null,this.attachEvent()}var r=n(1),o=n(3),l=n(6),s=n(2),u=n(4),d=n(5).Date,c=n(11),h=n(8),p=n(104),f=n(61),m=n(43),g=6e4,y=60;r.inherit(a,h),a.prototype.viewName="timegrid",a.prototype._beforeDestroy=function(){clearInterval(this.intervalID),clearTimeout(this.timerID),this._autoScroll&&this._autoScroll.destroy(),this._autoScroll=this.hourmarker=this.intervalID=this.timerID=this._cacheParentViewModel=null},a.prototype._getTopPercentByTime=function(e){var t,n=this.options,i=u.raw(e||new d),a=r.range(n.hourStart,n.hourEnd).length,o=a*u.MILLISECONDS_PER_HOUR,s=u.millisecondsFrom("hour",i.h)+u.millisecondsFrom("minutes",i.m)+u.millisecondsFrom("seconds",i.s)+i.ms;return t=l.ratio(o,100,s),t-=l.ratio(o,100,u.millisecondsFrom("hour",n.hourStart)),l.limit(t,[0],[100])},a.prototype._getHourmarkerViewModel=function(e,t,n){var i,a=-1;return e=e||new d,r.forEach(n,function(n,i){u.isSameDate(e,n)&&(a=t[i]?t[i].left:0)}),i={currentHours:e.getHours(),hourmarkerTop:this._getTopPercentByTime(e),hourmarkerText:u.format(e,"HH:mm"),todaymarkerLeft:a}},a.prototype._getBaseViewModel=function(e,t){var n=this.options,a=this._getHourmarkerViewModel(new d,e,t);return a.hoursLabels=i(n.hourStart,n.hourEnd,a.todaymarkerLeft>=0),a},a.prototype._renderChildren=function(e,t,n){var i,a,l,c=this,h=this.options,f=u.format(new d,"YYYYMMDD"),m=0;n.innerHTML="",this.children.clear(),r.forEach(e,function(e,r){l=r===f,i={index:m,left:t[m]?t[m].left:0,width:t[m]?t[m].width:0,ymd:r,isToday:l,isPending:h.isPending,isFocused:h.isFocused,hourStart:h.hourStart,hourEnd:h.hourEnd},a=new p(i,s.appendHTMLElement("div",n,o.classname("time-date"))),a.render(r,e),c.addChild(a),m+=1})},a.prototype.render=function(e){var t=e.schedulesInDateRange.time,n=this.container,i=e.grids,a=e.range,l=this._getBaseViewModel(i,a),u=r.keys(t).length;this._cacheParentViewModel=e,u&&(l.showHourMarker=l.todaymarkerLeft>=0,n.innerHTML=m(l),this._renderChildren(t,i,s.find(o.classname(".timegrid-schedules-container"),n)),this._hourLabels=s.find("ul",n),this.hourmarker=s.find(o.classname(".timegrid-hourmarker"),n),this._scrolled||(this._scrolled=!0,this.scrollToNow()))},a.prototype.refreshHourmarker=function(){var e,t,n=this.hourmarker,i=this._cacheParentViewModel?this._cacheParentViewModel.grids:null,a=this._cacheParentViewModel?this._cacheParentViewModel.range:null,r=this._getHourmarkerViewModel(new d,i,a);n&&r&&(e=s.find(o.classname(".timegrid-todaymarker"),n),t=s.find(o.classname(".timegrid-hourmarker-time"),n),c.requestAnimFrame(function(){n.style.display="block",n.style.top=r.hourmarkerTop+"%",e.style.display=r.todaymarkerLeft>=0?"block":"none",t.innerHTML=r.hourmarkerText}))},a.prototype.attachEvent=function(){clearInterval(this.intervalID),clearTimeout(this.timerID),this.intervalID=this.timerID=null,this.timerID=setTimeout(r.bind(this.onTick,this),1e3*(y-(new d).getSeconds()))},a.prototype.scrollToNow=function(){var e,t,n,i,a,r,o=this,l=this.container;o.hourmarker&&(e=this.hourmarker.offsetTop,t=this.getViewBound(),n=e,i=t.height/4,a=10,r=function(){n>e-i?(n-=a,l.scrollTop=n,c.requestAnimFrame(r)):l.scrollTop=e-i},c.requestAnimFrame(r))},a.prototype.onTick=function(){this.timerID&&(clearTimeout(this.timerID),this.timerID=null),this.intervalID||(this.intervalID=setInterval(r.bind(this.onTick,this),g)),this.refreshHourmarker()},e.exports=a},function(e,t,n){"use strict";function i(e){return 10===e.length?s.parse(e):new u(e)}function a(e,t,n){var i;n=l.appendHTMLElement("div",n),d.call(this,n),l.addClass(n,o.classname("week-container")),i=this._getRenderDateRange(new u),this.options=r.extend({scheduleFilter:function(e){return Boolean(e.isVisible)},renderStartDate:s.format(i.start,"YYYY-MM-DD"),renderEndDate:s.format(i.end,"YYYY-MM-DD"),narrowWeekend:!1,startDayOfWeek:0,workweek:!1},t),this.controller=e}var r=n(1),o=n(3),l=n(2),s=n(4),u=n(5).Date,d=n(8);r.inherit(a,d),a.prototype.render=function(){var e,t,n,a,o,l,u=this.options,d=u.scheduleFilter,c=u.narrowWeekend,h=u.startDayOfWeek,p=u.workweek;e=i(u.renderStartDate),t=i(u.renderEndDate),l=s.range(s.start(e),s.end(t),s.MILLISECONDS_PER_DAY),u.workweek&&s.compare(e,t)&&(l=r.filter(l,function(e){return!s.isWeekend(e.getDay())}),e=l[0],t=l[l.length-1]),n=this.controller.findByDateRange(s.start(e),s.end(t),d),o=s.getGridLeftAndWidth(l.length,c,h,p),a={schedulesInDateRange:n,renderStartDate:e,renderEndDate:t,grids:o,range:l},this.children.each(function(e){e.render(a)}),this.fire("afterRender")},a.prototype.viewName="week",a.prototype._getRenderDateRange=function(e){var t=s.start(e),n=new u(Number(t)),i=new u(Number(t));return n.setDate(n.getDate()-3),i.setDate(i.getDate()+3),{start:n,end:i}},r.CustomEvents.mixin(a),e.exports=a}])}); +this},i.prototype.subtract=function(e){return this.clone()._subtract(i.n(e))},i.prototype._subtract=function(e){return this.x-=e.x,this.y-=e.y,this},i.prototype.divideBy=function(e){return this.clone()._divideBy(e)},i.prototype._divideBy=function(e){return this.x/=e,this.y/=e,this},i.prototype.multiplyBy=function(e){return this.clone()._multiplyBy(e)},i.prototype._multiplyBy=function(e){return this.x*=e,this.y*=e,this},i.prototype.round=function(){return this.clone()._round()},i.prototype._round=function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},i.prototype.reverse=function(){return this.clone()._reverse()},i.prototype._reverse=function(){return this.x*=-1,this.y*=-1,this},i.prototype.floor=function(){return this.clone()._floor()},i.prototype._floor=function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},i.prototype.ceil=function(){return this.clone()._ceil()},i.prototype._ceil=function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},i.prototype.rotate=function(e,t,n,i){return this.clone()._rotate(e,t,n,i)},i.prototype._rotate=function(e,t,n,i){var a,r,o=e*(Math.PI/180);return n=n||parseFloat(Math.cos(o).toFixed(8)),i=i||parseFloat(Math.sin(o).toFixed(8)),this._subtract(t),a=this.x,r=this.y,this.x=a*n-r*i,this.y=a*i+r*n,this._add(t),this},i.prototype.distanceTo=function(e){var t,n;return e=i.n(e),t=e.x-this.x,n=e.y-this.y,Math.sqrt(t*t+n*n)},i.prototype.equals=function(e){return e=i.n(e),e.x===this.x&&e.y===this.y},i.prototype.toString=function(){return"Point("+this.x+", "+this.y+")"},i.prototype.toArray=function(){return[this.x,this.y]},e.exports=i},function(e,t,n){"use strict";function i(e,t){var n,o;return this instanceof i?(u.call(this,t),l.addClass(t,r.classname("vlayout-container")),n=this.options=a.extend({panels:[],panelHeights:[]},e),this.panels=[],this._drag=new c({distance:10,exclude:function(e){return!l.hasClass(e,r.classname("splitter"))}},t),this._drag.on({dragStart:this._onDragStart,drag:this._onDrag,dragEnd:this._onDragEnd},this),this._dragData=null,n.panels.length&&(n.panelHeights.length&&(o=n.panelHeights.slice(),a.forEach(n.panels,function(e){e.isSplitter||e.autoHeight||(e.height=o.shift())})),this.addPanels(n.panels,this.container)),void this.refresh()):new i(e,t)}var a=n(1),r=n(3),o=n(6),l=n(2),s=n(9),u=n(8),d=n(64),c=n(26),h=Math.abs;a.inherit(i,u),i.prototype.getLayoutData=function(){var e=[];return a.forEach(this.panels,function(t){t.isSplitter()||t.options.autoHeight||e.push(t.getHeight())}),e},i.prototype.setLayoutData=function(e){e.length&&(a.forEach(this.panels,function(t){t.isSplitter()||t.options.autoHeight||t.setHeight(null,e.shift())}),this.refresh())},i.prototype.nextPanel=function(e){return this.panels[e.index+1]},i.prototype.prevPanel=function(e){return this.panels[e.index-1]},i.prototype._initializeGuideElement=function(e,t){var n=e.cloneNode(!0);return l.addClass(n,r.classname("splitter-guide")),this._refreshGuideElement(n,t),this.container.appendChild(n),n},i.prototype._refreshGuideElement=function(e,t){e.style.top=t+"px"},i.prototype._clearGuideElement=function(e){l.remove(e)},i.prototype._resize=function(e,t,n){var i,r,o=t-n,l=h(o),s=[],u=n>t,d=u?"prevPanel":"nextPanel",c=u?"nextPanel":"prevPanel";for(i=this[d](e),r=i.getResizeInfoByGrowth(l),s.push([i,r[0]]),i=this[c](i);a.isExisty(i);i=this[c](i))i.isSplitter()||(r=i.getResizeInfoByGrowth(-l),s.push([i,r[0]]),l-=r[1]);a.forEach(s,function(e){e[0].setHeight(null,e[1],!0),e[0].fire("resize")})},i.prototype._getMouseYAdditionalLimit=function(e){var t,n=0,i=0,r=function(e){return e.isSplitter()?e.getHeight():e.options.minHeight};for(t=this.prevPanel(e);a.isExisty(t);t=this.prevPanel(t))n+=r(t);for(t=this.nextPanel(e);a.isExisty(t);t=this.nextPanel(t))i+=r(t);return[n,i]},i.prototype._onDragStart=function(e){var t=e.originEvent,n=e.target,i=l.getData(n,"panelIndex"),o=this.panels[i],u=o.getHeight(),d=s.getMousePosition(t,n)[1],c=s.getMousePosition(t,this.container)[1],h=this._initializeGuideElement(n,c);o.addClass(r.classname("splitter-focused")),this._dragData={splPanel:o,splOffsetY:d,guideElement:h,startY:c-d,minY:0,maxY:this.getViewBound().height-u},a.browser.msie||l.addClass(document.body,r.classname("resizing"))},i.prototype._onDrag=function(e){var t=this._dragData,n=s.getMousePosition(e.originEvent,this.container)[1];n=o.limit(n-t.splOffsetY,[t.minY],[t.maxY]),this._refreshGuideElement(t.guideElement,n)},i.prototype._onDragEnd=function(e){var t=this._dragData,n=this._getMouseYAdditionalLimit(t.splPanel),i=s.getMousePosition(e.originEvent,this.container)[1];i=o.limit(i-t.splOffsetY,[t.minY+n[0]],[t.maxY-n[1]]),this._resize(t.splPanel,t.startY,i),this.fire("resize",{layoutData:this.getLayoutData()}),this._dragData=null,this._clearGuideElement(t.guideElement),t.splPanel.removeClass(r.classname("splitter-focused")),l.removeClass(document.body,r.classname("resizing"))},i.prototype.refresh=function(){var e,t=[],n=this.getViewBound().height,i=0;n&&(a.forEach(this.panels,function(e){e.options.autoHeight?t.push(e):i+=e.getHeight()}),e=(n-i)/t.length,a.forEach(t,function(t){t.setHeight(null,e)}))},i.prototype.addPanel=function(e,t){var n=document.createElement("div"),i=this.panels,r=i.length;e=a.extend({index:r},e),i.push(new d(e,n)),t.appendChild(n)},i.prototype.addPanels=function(e,t){var n=this,i=document.createDocumentFragment();a.forEach(e,function(e){n.addPanel(e,i)}),t.appendChild(i)},i.prototype.getPanelByName=function(e){var t;return a.forEach(this.panels,function(n){n.name===e&&(t=n)}),t},e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.alldayView=t,this.baseController=n,this._dragStart=null,e.on({dragStart:this._onDragStart},this),this.guide=new u(this)}var a=n(1),r=n(3),o=n(6),l=n(2),s=n(17),u=n(76),d=n(5).Date;i.prototype.destroy=function(){this.guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.alldayView=this.baseController=this.guide=this._dragStart=null},i.prototype.checkExpectedCondition=function(e){var t,n,i=l.getClass(e);return!~i.indexOf(r.classname("weekday-resize-handle"))&&(!!(t=l.closest(e,r.classname(".weekday")))&&(i=l.getClass(t),n=i.match(r.allday.getViewIDRegExp),!(!n||n.length<2)&&a.pick(this.alldayView.children.items,n[1])))},i.prototype._onDragStart=function(e){var t,n,i,o,s,u=e.target,d=this.checkExpectedCondition(u),c=this.baseController,h=!0;d&&(t=l.closest(u,r.classname(".weekday-schedule-block"),h),t&&(n=l.getData(t,"id"),i=c.schedules.items[n],i&&(i.isReadOnly||(o=this._retriveScheduleData(this.alldayView,e.originEvent),this.getScheduleDataFunc=o,s=this._dragStart=o(e.originEvent),a.extend(s,{scheduleBlockElement:t,model:i}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("alldayMoveDragstart",s)))))},i.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.fire("alldayMoveDrag",t(e.originEvent))},i.prototype._updateSchedule=function(e){var t=e.targetModel,n=e.xIndex-e.dragStartXIndex,i=new d(t.start.getTime()),a=new d(t.end.getTime());i=new d(i.setDate(i.getDate()+n)),a=new d(a.setDate(a.getDate()+n)),this.fire("beforeUpdateSchedule",{schedule:t,start:i,end:a})},i.prototype._onDragEnd=function(e,t,n){var i,r=this.getScheduleDataFunc,o=this._dragStart;r&&o&&(this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),i=r(e.originEvent),a.extend(i,{targetModel:o.model}),n||this._updateSchedule(i),this.fire(t||"alldayMoveDragend",i),this.getScheduleDataFunc=this._dragStart=null)},i.prototype._onClick=function(e){this._onDragEnd(e,"alldayMoveClick",!0)},o.mixin(s,i),a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e,t){o.on(t,"mousedown",this._onMouseDown,this),this.options=a.extend({distance:10,exclude:null},e),this.container=t,this._cancelled=!1,this._isMoved=!1,this._distance=0,this._dragStartFired=!1,this._dragStartEventData=null}var a=n(1),r=n(2),o=n(9);i.prototype.destroy=function(){o.off(this.container,"mousedown",this._onMouseDown,this),this._isMoved=null,this.container=null},i.prototype._clearData=function(){this._cancelled=!1,this._distance=0,this._isMoved=!1,this._dragStartFired=!1,this._dragStartEventData=null},i.prototype._toggleDragEvent=function(e){var n,i,a=this.container;e?(n="on",i="disable"):(n="off",i="enable"),r[i+"TextSelection"](a),r[i+"ImageDrag"](a),o[n](t.document,{mousemove:this._onMouseMove,mouseup:this._onMouseUp},this)},i.prototype._getEventData=function(e){return{target:e.target||e.srcElement,originEvent:e}},i.prototype._onMouseDown=function(e){var t=this.options,n=e.srcElement||e.target;if(0===o.getMouseButton(e)){if(t.exclude&&t.exclude(n))return void(this._cancelled=!0);this._clearData(),this._dragStartEventData=this._getEventData(e),this._toggleDragEvent(!0)}},i.prototype._onMouseMove=function(e){var t;return this._cancelled?void this._clearData():(t=this.options.distance,o.preventDefault(e),this._distancen[1]?i=n.slice(0):(r=c(t[0],r),r=h(n[0],r),i=[r,o]),i},i.prototype.start=function(e){var t,n=this.options,i=e.target,r=e.model,o=e.x,l=e.y;n.isResizeMode&&(t=this._getCoordByDate(r.getStarts()),o=t[0],l=t[1],a.extend(this.options,{top:parseInt(i.style.top,10)+"px",height:parseInt(i.style.height,10)+"px",bgColor:r.bgColor,borderColor:r.borderColor,label:r.title})),this.startCoord=[o,l],this.update(o,l)},i.prototype._updateGuides=function(e){a.forEach(e,function(e){var t=e.guide,n=r.classname("month-exceed-left"),i=r.classname("month-exceed-right");t.style.display="block",t.style.left=e.left+"%",t.style.width=e.width+"%",e.exceedL?l.addClass(t,n):l.removeClass(t,n),e.exceedR?l.addClass(t,i):l.removeClass(t,i)})},i.prototype._getOriginIndicate=function(e,t){var n,i,a=h(e[0],t[0]),r=c(e[0],t[0])+1;return t[1]>e[1]?(a=e[0],r=this.days,i=!0):t[1]e[1]?(a=0,n=!0):t[1]i)&&r.push(e)}),r},i.prototype.update=function(e,t){var n=this,i=this.startCoord,r=[e,t],o=this.options.isResizeMode?this._getLimitedCoord(r,i):r,l=a.keys(this.guideElements),s=a.range(h(i[1],o[1]),c(i[1],o[1])+1),u=this._getExcludesInRange(s,l),d={};this._removeGuideElements(u),a.forEach(s,function(e){var t,l=n._getGuideElement(e);l&&(t=e===i[1]?n._getOriginIndicate(i,o):e===r[1]?n._getMouseIndicate(i,r):n._getContainIndicate(),d[e]=a.extend({guide:l},t))}),this._updateGuides(d)},i.prototype.clear=function(){a.forEach(this.guideElements,function(e){l.remove(e)}),this.guideElements={}},e.exports=i},function(e,t,n){"use strict";function i(e){this.model=e,this.top=0,this.left=0,this.width=0,this.height=0,this.hasCollide=!1,this.extraSpace=0,this.hidden=!1,this.hasMultiDates=!1,this.renderStarts=null,this.exceedLeft=!1,this.renderEnds=null,this.exceedRight=!1}var a=n(1);i.create=function(e){return new i(e)},i.prototype.getStarts=function(){return this.renderStarts?this.renderStarts:this.model.start},i.prototype.getEnds=function(){return this.renderEnds?this.renderEnds:this.model.end},i.prototype.cid=function(){return a.stamp(this.model)},i.prototype.valueOf=function(){return this.model},i.prototype.duration=function(){return this.model.duration()},i.prototype.collidesWith=function(e){var t=this.getStarts(),n=this.getEnds(),i=e.getStarts(),a=e.getEnds();return i>t&&it&&a=n},e.exports=i},function(e,t,n){"use strict";function i(e,t,n){r.call(this,e,t),this.aboutMe=n||{}}var a=n(1),r=n(30),o=n(45),l=n(4),s=n(2),u=n(3),d=Math.max,c=Math.min;a.inherit(i,r),i.prototype.render=function(e){var t,n=this.options,i=this.container,r=this.aboutMe,l=r.name;this.viewType=n[l+"ViewType"]||"",t=this.getBaseViewModel(e),"toggle"===this.viewType&&(t.viewType=this.viewType,t.collapsed=this.collapsed?"collapsed":"",t.collapseBtnIndex=r.collapseBtnIndex),i.innerHTML=o(t),a.forEach(s.find(u.classname(".weekday-exceed-in-week"),i,!0),function(e){e.style.marginLeft=-(e.offsetWidth+6)+"px"}),a.forEach(s.find(u.classname(".weekday-collapse-btn"),i,!0),function(e){e.style.marginLeft=-(e.offsetWidth+6)+"px"}),this.fire("afterRender",t)},i.prototype._getMaxScheduleInDay=function(e){return d.apply(null,a.map(e,function(e){return Math.max.apply(null,a.map(e,function(e){return e.length}))}))},i.prototype._getMinHeight=function(e){var t=this.options,n=e*t.scheduleHeight+(e-1)*t.scheduleGutter;return this.collapsed&&this.aboutMe.maxHeight>=n+t.containerBottomGutter&&(n+=t.containerBottomGutter),n},i.prototype._updateExceedDate=function(e,t,n){for(var i,a=l.clone(t);a<=n;a.setDate(a.getDate()+1))i=l.format(a,"YYYYMMDD"),e[i]?e[i]+=1:e[i]=1},i.prototype._excludeExceedSchedules=function(e,t,n){return t>=n?e:e.map(function(e){return e.map(function(e){return e.length>t?e.filter(function(e){return e.topthis.aboutMe.maxExpandCount?(e-.5)*n:(e-1)*n},e.exports=i},function(e,t,n){"use strict";function i(e,t){t=o.appendHTMLElement("div",t,r.classname("weekday")),this.options=a.extend({containerHeight:40,containerBottomGutter:8,scheduleHeight:18,scheduleGutter:2,narrowWeekend:!1,startDayOfWeek:0,workweek:!1},e),this._cacheParentViewModel=null,u.call(this,t)}var a=n(1),r=n(3),o=n(2),l=n(4),s=n(5).Date,u=n(8);a.inherit(i,u),i.prototype.getRenderDateRange=function(){return this._cacheParentViewModel.range},i.prototype.getRenderDateGrids=function(){return this._cacheParentViewModel.grids},i.prototype.getBaseViewModel=function(e){var t=this.options,n=e.range,i=l.format(new s,"YYYYMMDD"),r=100/n.length,o=e.grids,u=e.exceedDate||{};return this._cacheParentViewModel=e,{width:r,scheduleHeight:t.scheduleHeight,scheduleBlockHeight:t.scheduleHeight+t.scheduleGutter,scheduleBlockGutter:t.scheduleGutter,dates:a.map(n,function(e,t){var n=e.getDay(),a=l.format(e,"YYYYMMDD");return{date:l.format(e,"YYYY-MM-DD"),month:e.getMonth()+1,day:n,isToday:a===i,ymd:a,hiddenSchedules:u[a]||0,width:o[t]?o[t].width:0,left:o[t]?o[t].left:0}})}},i.prototype.getExceedDate=function(e,t,n){var i=this._initExceedDate(n);return a.forEach(t,function(t){a.forEach(t,function(t){a.forEach(t,function(t){var n;!t||t.top\n'},3:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
    '+d((o=null!=(o=n.label||(null!=t?t.label:t))?o:s,typeof o===u?o.call(l,{name:"label",hash:{},data:a}):o))+'
    \n
     
    \n
    \n'},4:function(e,t,n,i,a){return"display:none"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.if.call(l,null!=t?t.isCreationMode:t,{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return" border-left:3px solid "+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n "},3:function(e,t,n,i,a){var r,o=null!=t?t:e.nullContext||{},l=n.helperMissing,s="function",u=e.escapeExpression;return' \n'},5:function(e,t,n,i,a){var r;return" "+(null!=(r=(n["allday-tmpl"]||t&&t["allday-tmpl"]||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:a}))?r:"")+"\n"},7:function(e,t,n,i,a){var r;return" "+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.model:t)?r.isAllDay:r,{name:"unless",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n'+(null!=(r=n.if.call(l,null!=(r=null!=t?t.model:t)?r.isAllDay:r,{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.program(7,a,0),data:a}))?r:"")+"
    \n
    \n\n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n \n '+(null!=(r=(n["monthDayname-tmpl"]||t&&t["monthDayname-tmpl"]||s).call(l,t,{name:"monthDayname-tmpl",hash:{},data:a}))?r:"")+"\n \n
    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.each.call(l,null!=t?t.daynames:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n'},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return null!=(r=(n.fi||t&&t.fi||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.model:t)?r.isAllDay:r,"||",null!=t?t.hasMultiDates:t,{name:"fi",hash:{},fn:e.program(2,a,0),inverse:e.program(7,a,0),data:a}))?r:""},2:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u=e.escapeExpression,d=e.lambda,c="function";return'
    \n '+(null!=(r=(n["allday-tmpl"]||t&&t["allday-tmpl"]||s).call(l,null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:a}))?r:"")+"\n
    \n"},3:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color: #ffffff; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; border-left:3px solid "+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n"},5:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.bgColor:r,t))+"; border-left:3px solid "+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+"\n"},7:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u=e.escapeExpression,d=e.lambda,c="function";return'
    \n \n '+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||s).call(l,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"\n
    \n"},8:function(e,t,n,i,a){return"\n background: #ffffff\n"},10:function(e,t,n,i,a){var r;return" background:"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.color:r,t))+"\n "},12:function(e,t,n,i,a){var r;return"\n color: #ffffff;\n background-color: "+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.color:r,t))+"\n"},14:function(e,t,n,i,a){return" color:#333;\n "},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
    \n '+(null!=(r=(n["monthMoreTitleDate-tmpl"]||t&&t["monthMoreTitleDate-tmpl"]||s).call(l,null!=t?t.date:t,{name:"monthMoreTitleDate-tmpl",hash:{},data:a}))?r:"")+'\n \n
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.schedules:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
    \n '+(null!=(r=(n["monthGridHeader-tmpl"]||t&&t["monthGridHeader-tmpl"]||s).call(l,t,{name:"monthGridHeader-tmpl",hash:{},data:a}))?r:"")+"\n"+(null!=(r=n.if.call(l,null!=t?t.hiddenSchedules:t,{name:"if",hash:{},fn:e.program(8,a,0),inverse:e.noop, +data:a}))?r:"")+'
    \n
    \n '+(null!=(r=(n["monthGridFooter-tmpl"]||t&&t["monthGridFooter-tmpl"]||s).call(l,t,{name:"monthGridFooter-tmpl",hash:{},data:a}))?r:"")+"\n"+(null!=(r=n.if.call(l,null!=t?t.hiddenSchedules:t,{name:"if",hash:{},fn:e.program(10,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n
    \n"},2:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"near-month-day"},4:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"today"},6:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"extra-date"},8:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return' '+(null!=(r=(n["monthGridHeaderExceed-tmpl"]||t&&t["monthGridHeaderExceed-tmpl"]||s).call(l,null!=t?t.hiddenSchedules:t,{name:"monthGridHeaderExceed-tmpl",hash:{},data:a}))?r:"")+"\n"},10:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return' '+(null!=(r=(n["monthGridFooterExceed-tmpl"]||t&&t["monthGridFooterExceed-tmpl"]||s).call(l,null!=t?t.hiddenSchedules:t,{name:"monthGridFooterExceed-tmpl",hash:{},data:a}))?r:"")+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.dates:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n'},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a}))?r:""},2:function(e,t,n,i,a){var r;return"\n"+(null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a}))?r:"")},3:function(e,t,n,i,a){var r;return"\n"+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a}))?r:"")},4:function(e,t,n,i,a){var r;return"\n"+(null!=(r=(n.fi||t&&t.fi||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.top:t,"<",(r=a&&a.root)&&r.renderLimitIdx,{name:"fi",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a}))?r:"")},5:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u=e.escapeExpression,d="function";return'
    \n'+(null!=(r=(n.fi||t&&t.fi||s).call(l,null!=(r=null!=t?t.model:t)?r.isAllDay:r,"||",null!=t?t.hasMultiDates:t,{name:"fi",hash:{},fn:e.program(10,a,0),inverse:e.program(19,a,0),data:a}))?r:"")+"
    \n"},6:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-exceed-left"},8:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-exceed-right"},10:function(e,t,n,i,a){var r,o,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},d=n.helperMissing,c="function";return'
    \n '+(null!=(r=(n["allday-tmpl"]||t&&t["allday-tmpl"]||d).call(u,null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:a}))?r:"")+"\n "+(null!=(r=n.unless.call(u,null!=(r=null!=t?t.model:t)?r.isReadOnly:r,{name:"unless",hash:{},fn:e.program(17,a,0),inverse:e.noop,data:a}))?r:"")+"\n
    \n"},11:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-schedule-focused "},13:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color: #ffffff; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+";\n"},15:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.bgColor:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n"},17:function(e,t,n,i,a){var r;return' '},19:function(e,t,n,i,a){var r,o,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},d=n.helperMissing,c="function";return'
    \n \n '+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||d).call(u,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"\n
    \n"},20:function(e,t,n,i,a){return" background: #ffffff\n"},22:function(e,t,n,i,a){var r;return" background:"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.color:r,t))+"\n"},24:function(e,t,n,i,a){var r;return" color: #ffffff;\n background-color: "+e.escapeExpression(e.lambda(null!=(r=null!=t?t.model:t)?r.color:r,t))+"\n"},26:function(e,t,n,i,a){return" color:#333;\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.matrices:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:""},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n '+(null!=(o=null!=(o=n["alldayTitle-tmpl"]||(null!=t?t["alldayTitle-tmpl"]:t))?o:s,r=typeof o===u?o.call(l,{name:"alldayTitle-tmpl",hash:{},data:a}):o)?r:"")+'\n
    \n
    \n
    \n
    \n'},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n \n '+(null!=(r=(n["weekDayname-tmpl"]||t&&t["weekDayname-tmpl"]||s).call(l,t,{name:"weekDayname-tmpl",hash:{},data:a}))?r:"")+"\n \n
    \n"},2:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"today"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{};return'
    \n'+(null!=(r=n.each.call(l,t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o=null!=t?t:e.nullContext||{},l=n.helperMissing,s="function",u=e.escapeExpression;return'
    \n'},3:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n
      \n'+(null!=(r=n.each.call(l,null!=t?t.items:t,{name:"each",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n
    \n"},4:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"today"},6:function(e,t,n,i,a){var r,o,l=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{},d=n.helperMissing;return'
  • \n '+(null!=(r=(n["milestone-tmpl"]||t&&t["milestone-tmpl"]||d).call(u,null!=t?t.model:t,{name:"milestone-tmpl",hash:{},data:a}))?r:"")+"\n
  • \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n '+(null!=(o=null!=(o=n["milestoneTitle-tmpl"]||(null!=t?t["milestoneTitle-tmpl"]:t))?o:s,r=typeof o===u?o.call(l,{name:"milestoneTitle-tmpl",hash:{},data:a}):o)?r:"")+'\n
    \n
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.schedules:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.schedules:t,{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n '+(null!=(o=null!=(o=n["taskTitle-tmpl"]||(null!=t?t["taskTitle-tmpl"]:t))?o:s,r=typeof o===u?o.call(l,{name:"taskTitle-tmpl",hash:{},data:a}):o)?r:"")+'\n
    \n
    \n
    \n
    '},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a}))?r:""},2:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a}))?r:""},3:function(e,t,n,i,a){var r;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a}))?r:""},4:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression,c=e.lambda;return'
    \n
    '+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||s).call(l,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"
    \n "+(null!=(r=n.unless.call(l,null!=t?t.cropped:t,{name:"unless",hash:{},fn:e.program(13,a,0),inverse:e.noop,data:a}))?r:"")+"\n
    \n"},5:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"time-date-schedule-block-pending"},7:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"time-schedule-focused "},9:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color: #ffffff; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+";\n"},11:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.bgColor:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n"},13:function(e,t,n,i,a){var r;return'
     
    '},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{};return'
    \n'+(null!=(r=n.each.call(l,null!=t?t.matrices:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n '+d((o=null!=(o=n.hours||(null!=t?t.hours:t))?o:s,typeof o===u?o.call(l,{name:"hours",hash:{},data:a}):o))+"\n
    \n"},2:function(e,t,n,i,a){return"display:none"},4:function(e,t,n,i,a){var r;return'
    \n'},6:function(e,t,n,i,a){var r,o=null!=t?t:e.nullContext||{},l=n.helperMissing,s="function",u=e.escapeExpression;return'
    \n
    \n
    '+u((r=null!=(r=n.hourmarkerText||(null!=t?t.hourmarkerText:t))?r:l,typeof r===s?r.call(o,{name:"hourmarkerText",hash:{},data:a}):r))+'
    \n
    \n
    today
    \n
    \n
    \n
    \n'},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.each.call(l,null!=t?t.hoursLabels:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.hoursLabels:t,{name:"each",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n
    \n
    \n\n'+(null!=(r=n.if.call(l,null!=t?t.showHourMarker:t,{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r;return'
     
    '},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression,c=e.lambda;return'
    \n
    '+(null!=(r=(n["time-tmpl"]||t&&t["time-tmpl"]||s).call(l,null!=t?t.model:t,{name:"time-tmpl",hash:{},data:a}))?r:"")+"
    \n "+(null!=(r=n.unless.call(l,null!=t?t.cropped:t,{name:"unless",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+"\n
    \n"},useData:!0})},function(e,t,n){var i=n(7);e.exports=(i.default||i).template({1:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'},2:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"today"},4:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a}))?r:""},5:function(e,t,n,i,a){var r;return"\n "+(null!=(r=n.each.call(null!=t?t:e.nullContext||{},t,{name:"each",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a}))?r:"")},6:function(e,t,n,i,a){var r;return"\n "+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a}))?r:"")},7:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u=e.escapeExpression,d="function",c=e.lambda;return'\n
    \n
    \n'+(null!=(r=(n.fi||t&&t.fi||s).call(l,null!=(r=null!=t?t.model:t)?r.category:r,"===","task",{name:"fi",hash:{},fn:e.program(18,a,0),inverse:e.program(20,a,0),data:a}))?r:"")+" "+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.model:t)?r.isReadOnly:r,{name:"unless",hash:{},fn:e.program(22,a,0),inverse:e.noop,data:a}))?r:"")+"\n
    \n
    \n"},8:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-exceed-left"},10:function(e,t,n,i,a){var r;return" "+e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-exceed-right"},12:function(e,t,n,i,a){var r;return e.escapeExpression((r=null!=(r=n.CSS_PREFIX||(null!=t?t.CSS_PREFIX:t))?r:n.helperMissing,"function"==typeof r?r.call(null!=t?t:e.nullContext||{},{name:"CSS_PREFIX",hash:{},data:a}):r))+"weekday-schedule-focused "},14:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color: #ffffff; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+";\n"},16:function(e,t,n,i,a){var r,o=e.lambda,l=e.escapeExpression;return" color:"+l(o(null!=(r=null!=t?t.model:t)?r.color:r,t))+"; background-color:"+l(o(null!=(r=null!=t?t.model:t)?r.bgColor:r,t))+"; border-color:"+l(o(null!=(r=null!=t?t.model:t)?r.borderColor:r,t))+";\n"},18:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing;return' '+(null!=(r=(n["task-tmpl"]||t&&t["task-tmpl"]||s).call(l,null!=t?t.model:t,{name:"task-tmpl",hash:{},data:a}))?r:"")+"\n"},20:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing;return' '+(null!=(r=(n["allday-tmpl"]||t&&t["allday-tmpl"]||s).call(l,null!=t?t.model:t,{name:"allday-tmpl",hash:{},data:a}))?r:"")+"\n"},22:function(e,t,n,i,a){var r;return' '},24:function(e,t,n,i,a){var r;return null!=(r=(n.fi||t&&t.fi||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.viewType:t,"===","toggle",{name:"fi",hash:{},fn:e.program(25,a,0),inverse:e.noop,data:a}))?r:""},25:function(e,t,n,i,a){var r;return null!=(r=n.each.call(null!=t?t:e.nullContext||{},null!=t?t.dates:t,{name:"each",hash:{},fn:e.program(26,a,0),inverse:e.noop,data:a}))?r:""},26:function(e,t,n,i,a){var r;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},(r=a&&a.root)&&r.collapsed,{name:"if",hash:{},fn:e.program(27,a,0),inverse:e.program(30,a,0),data:a}))?r:""},27:function(e,t,n,i,a){var r;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.hiddenSchedules:t,{name:"if",hash:{},fn:e.program(28,a,0),inverse:e.noop,data:a}))?r:""},28:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return' '+d((n["weekGridFooterExceed-tmpl"]||t&&t["weekGridFooterExceed-tmpl"]||s).call(l,null!=t?t.hiddenSchedules:t,{name:"weekGridFooterExceed-tmpl",hash:{},data:a}))+"\n"},30:function(e,t,n,i,a){var r;return null!=(r=(n.fi||t&&t.fi||n.helperMissing).call(null!=t?t:e.nullContext||{},a&&a.key,"===",(r=a&&a.root)&&r.collapseBtnIndex,{name:"fi",hash:{},fn:e.program(31,a,0),inverse:e.noop,data:a}))?r:""},31:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    '+(null!=(o=null!=(o=n["alldayCollapseBtnTitle-tmpl"]||(null!=t?t["alldayCollapseBtnTitle-tmpl"]:t))?o:s,r=typeof o===u?o.call(l,{name:"alldayCollapseBtnTitle-tmpl",hash:{},data:a}):o)?r:"")+"
    \n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,i,a){var r,o,l=null!=t?t:e.nullContext||{},s=n.helperMissing,u="function",d=e.escapeExpression;return'
    \n'+(null!=(r=n.each.call(l,null!=t?t.dates:t,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?r:"")+'
    \n
    \n
    \n \n
    \n'+(null!=(r=n.each.call(l,null!=t?t.matrices:t,{name:"each",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a}))?r:"")+(null!=(r=(n.fi||t&&t.fi||s).call(l,null!=t?t.panelName:t,"===","allday",{name:"fi",hash:{},fn:e.program(24,a,0),inverse:e.noop,data:a}))?r:"")+"
    \n"},useData:!0})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function r(){var e=new l.HandlebarsEnvironment;return p.extend(e,l),e.SafeString=u.default,e.Exception=c.default,e.Utils=p,e.escapeExpression=p.escapeExpression,e.VM=m,e.template=function(t){return m.template(t,e)},e}t.__esModule=!0;var o=n(22),l=a(o),s=n(60),u=i(s),d=n(13),c=i(d),h=n(10),p=a(h),f=n(59),m=a(f),g=n(58),y=i(g),v=r();v.create=r,y.default(v),v.default=v,t.default=v,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){o.default(e)}t.__esModule=!0,t.registerDefaultDecorators=a;var r=n(48),o=i(r)},function(e,t,n){"use strict";t.__esModule=!0;var i=n(10);t.default=function(e){e.registerDecorator("inline",function(e,t,n,a){var r=e;return t.partials||(t.partials={},r=function(a,r){var o=n.partials;n.partials=i.extend({},o,t.partials);var l=e(a,r);return n.partials=o,l}),t.partials[a.args[0]]=a.fn,r})},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function a(e){o.default(e),s.default(e),d.default(e),h.default(e),f.default(e),g.default(e),v.default(e)}t.__esModule=!0,t.registerDefaultHelpers=a;var r=n(50),o=i(r),l=n(51),s=i(l),u=n(52),d=i(u),c=n(53),h=i(c),p=n(54),f=i(p),m=n(55),g=i(m),y=n(56),v=i(y)},function(e,t,n){"use strict";t.__esModule=!0;var i=n(10);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,n){var a=n.inverse,r=n.fn;if(t===!0)return r(this);if(t===!1||null==t)return a(this);if(i.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):a(this);if(n.data&&n.ids){var o=i.createFrame(n.data);o.contextPath=i.appendContextPath(n.data.contextPath,n.name),n={data:o}}return r(t,n)})},e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(10),r=n(13),o=i(r);t.default=function(e){e.registerHelper("each",function(e,t){function n(t,n,r){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!r,d&&(u.contextPath=d+t)),s+=i(e[t],{data:u,blockParams:a.blockParams([e[t],t],[d+t,null])})}if(!t)throw new o.default("Must pass iterator to #each");var i=t.fn,r=t.inverse,l=0,s="",u=void 0,d=void 0;if(t.data&&t.ids&&(d=a.appendContextPath(t.data.contextPath,t.ids[0])+"."),a.isFunction(e)&&(e=e.call(this)),t.data&&(u=a.createFrame(t.data)),e&&"object"==typeof e)if(a.isArray(e))for(var c=e.length;l=0?t:parseInt(e,10)}return e},log:function(e){if(e=a.lookupLevel(e),"undefined"!=typeof console&&a.lookupLevel(a.level)<=e){var t=a.methodMap[e];console[t]||(t="log");for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;rMath.ceil(t[0]),e.offsetHeight>Math.ceil(t[1])]},i.prototype.isOnScrollbar=function(e,t){var n=this.getRealSize(e),i=r.getMousePosition(t,e),a=!1;return a=n[0]-d=t.top&&n.y<=t.bottom&&n.x>=t.left&&n.x<=t.right?void(this._direction=i.DIRECTION.INSIDE):n.yt.bottom?(this._direction=i.DIRECTION.BOTTOM,void(this._offset=n.y-t.bottom)):n.x0;)if(n-=1,!i.isUndefined(e[n][t]))return n;return!1},getMatrices:function(e,t){var n=[],r=d.getLastRowInColumn;return a(t,function(t){var o=[[]];a(t,function(t){for(var n,a,l=e.items[t],s=0,u=!1;!u;)a=r(o,s),a===!1?(o[0].push(l),u=!0):l.collidesWith(o[a][s])||(n=a+1,i.isUndefined(o[n])&&(o[n]=[]),o[n][s]=l,u=!0),s+=1}),n.push(o)}),n},getScheduleInDateRangeFilter:function(e,t){return function(n){var i=n.getStarts(),a=n.getEnds();return!(at)}},positionViewModels:function(e,t,n,r){var l;l=i.map(o.range(e,t,o.MILLISECONDS_PER_DAY),function(e){return o.format(e,"YYYYMMDD")}),a(n,function(e){a(e,function(e){a(e,function(e,t){var n,a;e&&(n=o.format(e.getStarts(),"YYYYMMDD"),a=o.range(o.start(e.getStarts()),o.end(e.getEnds()),o.MILLISECONDS_PER_DAY).length,e.top=t,e.left=i.inArray(n,l),e.width=a,r&&r(e))})})})},limitRenderRange:function(e,t,n){function i(n){return n.getStarts()t&&(n.exceedRight=!0,n.renderEnds=new l(t.getTime())),n}return n.constructor===s?(n.each(i),null):i(n)},convertToViewModel:function(e){var t;return t=new s(function(e){return e.cid()}),e.each(function(e){t.add(u.create(e))}),t}};e.exports=d},function(e,t,n){"use strict";var i=n(1),a=n(14),r=n(4),o=n(12),l=Math.max,s={_onlyTimeFilter:function(e){return!e.model.isAllDay&&!e.hasMultiDates},_onlyAlldayFilter:function(e){return e.model.isAllDay||e.hasMultiDates},_weightTopValue:function(e){e.top=e.top||0,e.top+=1},_adjustRenderRange:function(e,t,n){var i=this.Core;n.each(function(n){(n.model.isAllDay||n.hasMultiDates)&&i.limitRenderRange(e,t,n)})},_getAlldayMaxTopIndexAtYMD:function(e,t){var n=this.dateMatrix,a=[];return i.forEach(n[e],function(e){t.doWhenHas(e,function(e){a.push(e.top)})}),a.length>0?l.apply(null,a):0},_adjustTimeTopIndex:function(e){var t=this.Month,n=t._getAlldayMaxTopIndexAtYMD,o=e.find(t._onlyAlldayFilter),l=e.find(t._onlyTimeFilter).sort(a.compare.schedule.asc),s={};l.forEach(function(e){var t=r.format(e.getStarts(),"YYYYMMDD"),a=s[t];i.isUndefined(a)&&(a=s[t]=n(t,o)),s[t]=e.top=a+1})},_stackTimeFromTop:function(e){var t=this.Month,n=e.find(t._onlyAlldayFilter),o=e.find(t._onlyTimeFilter).sort(a.compare.schedule.asc),s={},u=this.dateMatrix;o.forEach(function(e){var t,a,o=r.format(e.getStarts(),"YYYYMMDD"),d=s[o];if(i.isUndefined(d)&&(d=s[o]=[],i.forEach(u[o],function(e){n.doWhenHas(e,function(e){d.push(e.top)})})),i.inArray(e.top,d)>=0)for(t=l.apply(null,d)+1,a=1;a<=t&&(e.top=a,!(i.inArray(e.top,d)<0));a+=1);d.push(e.top)})},_addMultiDatesInfo:function(e){e.each(function(e){var t=e.model,n=t.getStarts(),i=t.getEnds();e.hasMultiDates=!r.isSameDate(n,i),!t.isAllDay&&e.hasMultiDates&&(e.renderStarts=r.start(n),e.renderEnds=r.end(i))})},findByDateRange:function(e,t,n,i){var r,l,s,u,d,c=this.Core,h=this.Month,p=c.getScheduleInDateRangeFilter(e,t);return i=i||!1,n=n||[],p=o.and.apply(null,[p].concat(n)),r=this.schedules.find(p),l=c.convertToViewModel(r),h._addMultiDatesInfo(l),h._adjustRenderRange(e,t,l),s=l.sort(a.compare.schedule.asc),u=c.getCollisionGroup(s),d=c.getMatrices(l,u),c.positionViewModels(e,t,d,h._weightTopValue),i?h._adjustTimeTopIndex(l):h._stackTimeFromTop(l),d}};e.exports=s},function(e,t,n){"use strict";var i=n(1),a=n(12),r=n(14),o=n(4),l={generateTimeArrayInRow:function(e){var t,n,a,r=[],o=[],l=Math.max.apply(null,i.map(e,function(e){return e.length}));for(n=1;nl.MILLISECONDS_PER_DAY?"allday":t.category},controller:null,defaultView:"week",taskView:!0,scheduleView:!0,defaultDate:new p,template:a.extend({allday:null,time:null},a.pick(t,"template")||{}),week:a.extend({},a.pick(t,"week")||{}),month:a.extend({},a.pick(t,"month")||{}),schedules:[]},t),this.options.week=a.extend({startDayOfWeek:0,workweek:!1},a.pick(this.options,"week")||{}),this.options.month=a.extend({scheduleFilter:function(e){return Boolean(e.isVisible)&&("allday"===e.category||"time"===e.category)}},a.pick(t,"month")||{}),this.calendarColor=n.calendarColor,this.container=e,this.renderDate=n.defaultDate,this.renderRange={start:null,end:null},this.controller=n.controller||this.createController(),this.layout=new s(e),this.dragHandler=new u({distance:10},this.layout.container),this.viewName=n.defaultView,this.prevViewName=this.viewName,this.refreshMethod=null,this.scrollToNowMethod=null, +this.initialize()}var a=n(1),r=n(21),o=n(15),l=n(4),s=n(95),u=n(26),d=n(70),c=n(72),h=n(71),p=n(5).Date,f=n(3),m=n(5),g=Math.min;i.prototype.createController=function(){return d(this.options)},i.prototype.createWeekView=function(e,t,n,i){return c(e,t,n,i)},i.prototype.createMonthView=function(e,t,n,i){return h(e,t,n,i)},i.prototype.destroy=function(){this.dragHandler.destroy(),this.controller.off(),this.layout.clear(),this.layout.destroy(),a.forEach(this.options.template,function(e,t){e&&r.unregisterHelper(t+"-tmpl")}),this.options=this.renderDate=this.controller=this.layout=this.dragHandler=this.viewName=this.prevViewName=this.refreshMethod=this.scrollToNowMethod=null},i.prototype.initialize=function(){var e=this.controller,t=this.viewName,n=this.options;this.layout.controller=e,n.schedules&&n.schedules.length&&this.createSchedules(n.schedules,!0),a.forEach(n.template,function(e,t){e&&r.registerHelper(t+"-tmpl",e)}),this.toggleView(t,!0)},i.prototype.createSchedules=function(e,t){var n=this.calendarColor;a.forEach(e,function(e){var t=n[e.calendarId];t&&(e.color=t.color,e.bgColor=t.bgColor,e.borderColor=t.borderColor)}),this.controller.createSchedules(e,t),t||this.render()},i.prototype.getSchedule=function(e,t){return this.controller.schedules.single(function(n){return n.id===e&&n.calendarId===t})},i.prototype.updateSchedule=function(e,t,n){var i=this.controller,a=i.schedules,r=a.single(function(n){return n.id===e&&n.calendarId===t});r&&(i.updateSchedule(r,n),this.render())},i.prototype.deleteSchedule=function(e,t){var n=this.controller,i=n.schedules,a=i.single(function(n){return n.id===e&&n.calendarId===t});a&&(this.fire("beforeDeleteSchedule",{schedule:a}),n.deleteSchedule(a),this.render())},i.prototype.setOptionRecurseively=function(e,t){e.recursive(function(e){var n=e.options;n&&t(n)})},i.prototype.getWeekDayRange=function(e,t,n){var i,r,o,s,u=l.millisecondsFrom;return t=t||0,e=a.isDate(e)?e:new p(e),i=e.getDay(),r=new p(Number(e)-u("day",i)+u("day",t)),o=new p(Number(r)+u("day",6)),i0,o=Math.max(0,t.fromLeft),r=t.fromLeft*-1+(h+t.fromRight),l=n?r+t.fromLeft:r,l=i?l-t.fromRight:l,s=p[o]?p[o].left:0,u=a(o,l,p),this.refreshGuideElement(s,u,n,i))},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.alldayView=t,this.baseController=n,this._dragStart=null,e.on({dragStart:this._onDragStart},this),this.guide=new d(this)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(6),u=n(17),d=n(78),c=n(5).Date;i.prototype.destroy=function(){this.guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.alldayView=this.baseController=this.guide=this._dragStart=null},i.prototype.checkExpectedCondition=function(e){var t,n=l.getClass(e);return!!~n.indexOf(r.classname("weekday-resize-handle"))&&(!!(e=l.closest(e,r.classname(".weekday")))&&(n=l.getClass(e),t=n.match(r.allday.getViewIDRegExp),!(!t||t.length<2)&&a.pick(this.alldayView.children.items,t[1])))},i.prototype._onDragStart=function(e){var t,n,i,o,s,u=e.target,d=this.checkExpectedCondition(u),c=this.baseController;d&&(t=l.closest(u,r.classname(".weekday-schedule-block")),n=l.getData(t,"id"),i=c.schedules.items[n],i&&(o=this._retriveScheduleData(this.alldayView,e.originEvent),this.getScheduleDataFunc=o,s=this._dragStart=o(e.originEvent),a.extend(s,{scheduleBlockElement:t,model:i}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("alldayResizeDragstart",s)))},i.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.fire("alldayResizeDrag",t(e.originEvent))},i.prototype._updateSchedule=function(e){var t=e.targetModel,n=e.xIndex-e.dragStartXIndex,i=new c(t.end.getTime());i=new c(i.setDate(i.getDate()+n)),i=new c(Math.max(o.end(t.start).getTime(),i.getTime())),this.fire("beforeUpdateSchedule",{schedule:t,start:t.getStarts(),end:i})},i.prototype._onDragEnd=function(e,t,n){var i,r=this.getScheduleDataFunc,o=this._dragStart;r&&o&&(this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),i=r(e.originEvent),a.extend(i,{targetModel:o.model}),n||this._updateSchedule(i),this.fire(t||"alldayResizeDragend",i),this.getScheduleDataFunc=this._dragStart=null)},i.prototype._onClick=function(e){this._onDragEnd(e,"alldayResizeClick",!0)},s.mixin(u,i),a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e){this.alldayResize=e,this.scheduleContainer=null,this.getScheduleDataFunc=null,this.guideElement=null,e.on({alldayResizeDragstart:this._onDragStart,alldayResizeDrag:this._onDrag,alldayResizeDragend:this._clearGuideElement,alldayResizeClick:this._clearGuideElement},this)}var a=n(1),r=n(3),o=n(2),l=n(4),s=n(11),u=n(5).Date;i.prototype.destroy=function(){this._clearGuideElement(),this.alldayResize.off(this),this.alldayResize=this.scheduleContainer=this.getScheduleDataFunc=this.guideElement=null},i.prototype._clearGuideElement=function(){o.remove(this.guideElement),a.browser.msie||o.removeClass(t.document.body,r.classname("resizing-x")),this.getScheduleDataFunc=null},i.prototype.refreshGuideElement=function(e){var t=this.guideElement;s.requestAnimFrame(function(){t.style.width=e+"%"})},i.prototype.getGuideElementWidthFunc=function(e){var t=e.model,n=this.alldayResize.alldayView.options,i=new u(t.start.getTime()-l.parse(n.renderStartDate))/l.MILLISECONDS_PER_DAY|0,a=e.grids;return function(e){var t=0,n=0,r=a.length;for(t+=a[i]?a[i].width:0;ni&&n<=e&&(t+=a[n]?a[n].width:0);return t}},i.prototype._onDragStart=function(e){var n,i=this.alldayResize.alldayView.container,l=this.guideElement=e.scheduleBlockElement.cloneNode(!0);a.browser.msie||o.addClass(t.document.body,r.classname("resizing-x")),n=o.find(r.classname(".weekday-schedules"),i),o.addClass(l,r.classname("allday-guide-move")),n.appendChild(l),this.getScheduleDataFunc=this.getGuideElementWidthFunc(e)},i.prototype._onDrag=function(e){var t=this.getScheduleDataFunc;t&&this.refreshGuideElement(t(e.xIndex))},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.milestoneView=t,this.baseController=n,e.on({click:this._onClick},this)}var a=n(1),r=n(3),o=n(2);i.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.milestoneView=this.baseController=null},i.prototype.checkExpectedCondition=function(e){return e=o.closest(e,r.classname(".milestone-item")),!!e&&o.getData(e,"id")},i.prototype._onClick=function(e){var t=this,n=this.checkExpectedCondition(e.target);n&&this.baseController.schedules.doWhenHas(n,function(n){t.fire("clickSchedule",{schedule:n,event:e.originEvent})})},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,e.on({click:this._onClick},this)}var a=n(1),r=n(3),o=n(4),l=n(2);i.prototype.destroy=function(){this.dragHandler.off(this),this.monthView=this.baseController=this.dragHandler=null},i.prototype._onClick=function(e){var t,n=this,i=this.baseController.schedules,a=l.closest(e.target,r.classname(".weekday-schedule-block"))||l.closest(e.target,r.classname(".month-more-schedule"));t=l.closest(e.target,r.classname(".weekday-exceed-in-month")),t&&n.fire("clickMore",{date:o.parse(l.getData(t,"ymd")),target:t,ymd:l.getData(t,"ymd")}),a&&i.doWhenHas(l.getData(a,"id"),function(t){n.fire("clickSchedule",{schedule:t,event:e.originEvent})})},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new h(this),this._requestOnClick=!1,e.on("dragStart",this._onDragStart,this),e.on("click",this._onClick,this),d.on(t.container,"dblclick",this._onDblClick,this)}function a(e){return u.closest(e,o.classname(".weekday-grid"))&&!u.closest(e,o.classname(".weekday-exceed-in-month"))}var r=n(1),o=n(3),l=n(4),s=n(14),u=n(2),d=n(9),c=n(18),h=n(82),p=n(5).Date,f=300;i.prototype.destroy=function(){this.dragHandler.off(this),this.guide.destroy(),this.monthView&&this.monthView.container&&d.off(this.monthView.container,"dblclick",this._onDblClick,this),this.dragHandler=this.monthView=this.baseController=this.getScheduleData=this._cache=this.guide=null},i.prototype._createSchedule=function(e){this.fire("beforeCreateSchedule",{isAllDay:e.isAllDay,start:e.start,end:e.end,guide:this.guide.guide,triggerEventName:e.triggerEvent})},i.prototype._onDragStart=function(e){var t;a(e.target)&&(this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=c(this.monthView),t=this.getScheduleData(e.originEvent),this._cache={start:new p(Number(t.date))},this.fire("monthCreationDragstart",t))},i.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&this.fire("monthCreationDrag",t))},i.prototype._onDragEnd=function(e){var t,n,i=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&(i.end=new p(Number(t.date)),i.isAllDay=!0,n=[Number(i.start),Number(i.end)].sort(s.compare.num.asc),i.start=new p(n[0]),i.end=l.end(new p(n[1])),this._createSchedule(i)),this.fire("monthCreationDragend",t),this.getScheduleData=this._cache=null)},i.prototype._onDblClick=function(e){var t,n;a(e.target)&&(t=c(this.monthView)(e),this.fire("monthCreationClick",t),n=this._adjustStartAndEndTime(new p(Number(t.date)),new p(Number(t.date))),this._createSchedule({start:n.start,end:n.end,isAllDay:!1,triggerEvent:t.triggerEvent}),this._requestOnClick=!1)},i.prototype._onClick=function(e){var t,n,i=this;a(e.target)&&(t=c(this.monthView)(e.originEvent),this._requestOnClick=!0,setTimeout(function(){i._requestOnClick&&(i.fire("monthCreationClick",t),n=i._adjustStartAndEndTime(new p(Number(t.date)),new p(Number(t.date))),i._createSchedule({start:n.start,end:n.end,isAllDay:!1,triggerEvent:t.triggerEvent})),i._requestOnClick=!1},f))},i.prototype._adjustStartAndEndTime=function(e,t){var n=new p,i=n.getHours(),a=n.getMinutes();return a=a<=30?0:30,e.setHours(i,a,0,0),t.setHours(i+1,a,0,0),{start:e,end:t}},r.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e){this.monthCreation=e,this.guide=null,e.on({monthCreationDragstart:this._createGuideElement,monthCreationDrag:this._onDrag,monthCreationDragend:this._onDragEnd,monthCreationClick:this._createGuideElement},this)}var a=n(27);i.prototype.destroy=function(){this.monthCreation.off(this),this.guide&&this.guide.destroy(),this.guide=this.monthCreation=null},i.prototype._createGuideElement=function(e){var t={isCreationMode:!0,height:"100%",top:0};this.guide=new a(t,this.monthCreation.monthView),this.guide.start(e)},i.prototype._onDrag=function(e){this.guide.update(e.x,e.y)},i.prototype._onDragEnd=function(){this.guide=null},e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new u(this),e.on("dragStart",this._onDragStart,this)}var a=n(1),r=n(3),o=n(2),l=n(4),s=n(18),u=n(84),d=n(5).Date;i.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},i.prototype.updateSchedule=function(e){var t=e.model,n=t.duration().getTime(),i=l.raw(t.start),a=Number(e.end),r=new d(a);r.setHours(i.h,i.m,i.s,i.ms),this.fire("beforeUpdateSchedule",{schedule:t,start:r,end:new d(r.getTime()+n)})},i.prototype.getMonthScheduleBlock=function(e){var t=r.classname(".weekday-schedule-block");return o.closest(e,t)},i.prototype.getMoreLayerScheduleBlock=function(e){var t=r.classname(".month-more-schedule");return o.closest(e,t)},i.prototype.hasPermissionToHandle=function(e){var t,n=null;return o.hasClass(e,r.classname("weekday-resize-handle"))?null:(t=this.getMonthScheduleBlock(e),t?n=o.getData(t,"id"):(t=this.getMoreLayerScheduleBlock(e),t&&(n=o.getData(t,"id"),this.fire("monthMoveStart_from_morelayer"))),n)},i.prototype._onDragStart=function(e){var t,n,i=e.target,a=this.hasPermissionToHandle(i);a&&(t=this.baseController.schedules.items[a],t.isReadOnly||(this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=s(this.monthView),n=this.getScheduleData(e.originEvent),n.originEvent=e.originEvent,n.target=this.getMonthScheduleBlock(i),n.model=t,this._cache={model:t,target:i,start:new d(Number(n.date))},this.fire("monthMoveDragstart",n)))},i.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=a.extend({originEvent:e.originEvent},this.getScheduleData(e.originEvent)),t&&this.fire("monthMoveDrag",t))},i.prototype._onDragEnd=function(e){var t,n=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&(n.end=new d(Number(t.date)),this.updateSchedule(n)),this.fire("monthMoveDragend",t),this.getScheduleData=this._cache=null)},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){ +(function(t){"use strict";function i(e){this.monthMove=e,this.elements=null,this.layer=null,e.on({monthMoveDragstart:this._onDragStart,monthMoveDrag:this._onDrag,monthMoveDragend:this._onDragEnd},this)}var a=n(1),r=n(3),o=n(2),l=n(9),s=n(16),u=n(33),d=n(20);i.prototype.destroy=function(){this.monthMove.off(this),this._clearGridBgColor(),this.layer&&this.layer.destroy(),this.element&&o.remove(this.element),this.monthMove=this.elements=this.layer=null},i.prototype._hideOriginScheduleBlocks=function(e){var t=r.classname("weekday-schedule-block-dragging-dim");this.elements=o.find(r.classname(".weekday-schedule-block-"+e),this.monthMove.monthView.container,!0),a.forEach(this.elements,function(e){o.addClass(e,t)})},i.prototype._showOriginScheduleBlocks=function(){var e=r.classname("weekday-schedule-block-dragging-dim");a.forEach(this.elements,function(t){o.removeClass(t,e)})},i.prototype._getHighlightColorModel=function(e){return{bgColor:e.color}},i.prototype._clearGridBgColor=function(){var e=r.classname(".weekday-filled"),t=r.classname("weekday-filled"),n=o.find(e,this.monthMove.monthView.container);n&&o.removeClass(n,t)},i.prototype._updateGridBgColor=function(e){var t=o.find(r.classname(".weekday-grid-line"),this.monthMove.monthView.container,!0),n=r.classname("weekday-filled"),i=e.x+e.sizeX*e.y;this._clearGridBgColor(),t&&t[i]&&o.addClass(t[i],n)},i.prototype._onDragStart=function(e){var n=this.monthMove.monthView,i=n.children.single(),c=i.options,h=100/i.getRenderDateRange().length,p=c.scheduleGutter+c.scheduleHeight,f=n.container,m=l.getMousePosition(e.originEvent,f),g=e.model,y=new s(null,f);this._hideOriginScheduleBlocks(g.cid()),this.layer=y,y.setSize(h+"%",p),y.setPosition(m[0],m[1]),y.setContent(u({model:a.extend(d.create(g),g,this._getHighlightColorModel(g))})),y.show(),a.browser.msie||o.addClass(t.document.body,r.classname("dragging"))},i.prototype._onDrag=function(e){var t=this.monthMove.monthView.container,n=l.getMousePosition(e.originEvent,t);this._updateGridBgColor(e),this.layer&&this.layer.setPosition(n[0],n[1])},i.prototype._onDragEnd=function(){this._showOriginScheduleBlocks(),a.browser.msie||o.removeClass(t.document.body,r.classname("dragging")),this._clearGridBgColor(),this.layer.destroy(),this.layer=null},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.monthView=t,this.baseController=n,this.getScheduleData=null,this._cache=null,this.guide=new u(this),e.on("dragStart",this._onDragStart,this)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(18),u=n(86),d=n(5).Date;i.prototype.destroy=function(){this.dragHandler.off(this),this.dragHandler=this.monthView=this.baseController=null},i.prototype._updateSchedule=function(e){var t=o.end(new d(Number(e.end))),n=e.schedule;this.fire("beforeUpdateSchedule",{schedule:n,start:new d(Number(n.getStarts())),end:t})},i.prototype._onDragStart=function(e){var t,n,i,a=e.target;l.hasClass(a,r.classname("weekday-resize-handle"))&&(a=l.closest(a,r.classname(".weekday-schedule-block")),a&&(t=l.getData(a,"id"),n=this.baseController.schedules.items[t],this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData=s(this.monthView),i=this.getScheduleData(e.originEvent),i.target=a,i.model=n,this._cache={schedule:n,target:a,start:new d(Number(i.date))},this.fire("monthResizeDragstart",i)))},i.prototype._onDrag=function(e){var t;this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&this.fire("monthResizeDrag",t))},i.prototype._onDragEnd=function(e){var t,n=this._cache;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.getScheduleData&&(t=this.getScheduleData(e.originEvent),t&&(n.end=new d(Number(t.date)),this._updateSchedule(n)),this.fire("monthResizeDragend",t),this.getScheduleData=this._cache=null)},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e){this.monthResize=e,this.elements=null,this.guide=null,e.on({monthResizeDragstart:this._onDragStart,monthResizeDrag:this._onDrag,monthResizeDragend:this._onDragEnd},this)}var a=n(1),r=n(3),o=n(2),l=n(27);i.prototype.destroy=function(){this.monthResize.off(this),this.guide.destroy(),this.guide=this.monthResize=null},i.prototype._hideScheduleBlocks=function(e){this.elements=o.find(r.classname(".weekday-schedule-block-"+e),this.monthResize.monthView.container,!0),a.forEach(this.elements,function(e){e.style.display="none"})},i.prototype._showScheduleBlocks=function(){a.forEach(this.elements,function(e){e.style.display="block"})},i.prototype._onDragStart=function(e){this.guide=new l({isResizeMode:!0},this.monthResize.monthView),this._hideScheduleBlocks(e.model.cid()),this.guide.start(e),a.browser.msie||o.addClass(t.document.body,r.classname("resizing-x"))},i.prototype._onDrag=function(e){this.guide.update(e.x,e.y)},i.prototype._onDragEnd=function(){this._showScheduleBlocks(),this.guide.destroy(),this.elements=this.guide=null,a.browser.msie||o.removeClass(t.document.body,r.classname("resizing-x"))},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,e.on({click:this._onClick},this)}var a=n(1),r=n(3),o=n(2);i.prototype.destroy=function(){this.dragHandler.off(this),this.timeGridView=this.baseController=this.dragHandler=null},i.prototype.checkExpectCondition=function(e){var t,n;return!!(t=o.closest(e,r.classname(".time-date")))&&(n=o.getClass(t).match(r.time.getViewIDRegExp),!(!n||n.length<2)&&a.pick(this.timeGridView.children.items,Number(n[1])))},i.prototype._onClick=function(e){var t=this,n=e.target,i=this.checkExpectCondition(n),a=o.closest(n,r.classname(".time-date-schedule-block")),l=this.baseController.schedules;i&&a&&l.doWhenHas(o.getData(a,"id"),function(n){t.fire("clickSchedule",{schedule:n,event:e.originEvent})})},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.dayNameView=t,this.baseController=n,e.on({click:this._onClick},this)}var a=n(1),r=n(3),o=n(2);i.prototype.destroy=function(){this.dragHandler.off(this),this.dayNameView=this.baseController=this.dragHandler=null},i.prototype.checkExpectCondition=function(e){var t=o.closest(e,r.classname(".dayname-date-area"));return!!t},i.prototype._onClick=function(e){var t=this,n=e.target,i=this.checkExpectCondition(n),a=o.closest(n,r.classname(".dayname"));i&&a&&t.fire("clickDayname",{date:o.getData(a,"date")})},a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this.guide=new d(this),this._getScheduleDataFunc=null,this._dragStart=null,this._requestOnClick=!1,e.on("dragStart",this._onDragStart,this),e.on("click",this._onClick,this),u.on(t.container,"dblclick",this._onDblClick,this)}var a=n(1),r=n(3),o=n(14),l=n(4),s=n(2),u=n(9),d=n(90),c=n(5).Date,h=n(19),p=300;i.prototype.destroy=function(){var e=this.timeGridView;this.guide.destroy(),this.dragHandler.off(this),e&&e.container&&u.off(e.container,"dblclick",this._onDblClick,this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this.guide=null},i.prototype.checkExpectedCondition=function(e){var t,n=s.getClass(e);return n===r.classname("time-date-schedule-block-wrap")&&(e=e.parentNode,n=s.getClass(e)),t=n.match(r.time.getViewIDRegExp),!(!t||t.length<2)&&a.pick(this.timeGridView.children.items,t[1])},i.prototype._onDragStart=function(e,t,n){var i,a,r=e.target,o=this.checkExpectedCondition(r);o&&(i=this._getScheduleDataFunc=this._retriveScheduleData(o),a=this._dragStart=i(e.originEvent),n&&n(a),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd},this),this.fire(t||"timeCreationDragstart",a))},i.prototype._onDrag=function(e,t,n){var i,a=this._getScheduleDataFunc;a&&(i=a(e.originEvent),n&&n(i),this.fire(t||"timeCreationDrag",i))},i.prototype._createSchedule=function(e){var t,n,i,a,r,o=e.relatedView,s=e.createRange,u=e.nearestGridTimeY;s||(s=[u,u+l.millisecondsFrom("minutes",30)]),t=new c(o.getDate()),n=l.start(t),i=l.end(t),a=Math.max(n.getTime(),s[0]),r=Math.min(i.getTime(),s[1]),this.fire("beforeCreateSchedule",{isAllDay:!1,start:new c(a),end:new c(r),guide:this.guide,triggerEventName:e.triggerEvent})},i.prototype._onDragEnd=function(e){function t(e){var t=[i.nearestGridTimeY,e.nearestGridTimeY].sort(o.compare.num.asc);t[1]+=l.millisecondsFrom("hour",.5),e.createRange=t,n._createSchedule(e)}var n=this,i=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),this._onDrag(e,"timeCreationDragend",t),this._dragStart=this._getScheduleDataFunc=null},i.prototype._onClick=function(e){var t,n,i,a=this;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd},this),t=this.checkExpectedCondition(e.target),t&&(n=this._retriveScheduleData(t),i=n(e.originEvent),this._requestOnClick=!0,setTimeout(function(){a._requestOnClick&&(a.fire("timeCreationClick",i),a._createSchedule(i)),a._requestOnClick=!1},p),this._dragStart=this._getScheduleDataFunc=null)},i.prototype._onDblClick=function(e){var t,n,i;t=this.checkExpectedCondition(e.target),t&&(n=this._retriveScheduleData(t),i=n(e),this.fire("timeCreationClick",i),this._createSchedule(i),this._requestOnClick=!1)},h.mixin(i),a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e){this.guideElement=t.document.createElement("div"),this.guideTimeElement=l.appendHTMLElement("span",this.guideElement,o.classname("time-guide-creation-label")),l.addClass(this.guideElement,o.classname("time-guide-creation")),this.timeCreation=e,this._styleUnit=null,this._styleStart=null,this._styleFunc=null,e.on({timeCreationDragstart:this._createGuideElement,timeCreationDrag:this._onDrag,timeCreationClick:this._createGuideElement},this)}var a=n(6),r=n(4),o=n(3),l=n(2),s=n(11),u=n(6).ratio,d=n(5).Date,c=30*r.MILLISECONDS_PER_MINUTES;i.prototype.destroy=function(){this.clearGuideElement(),this.timeCreation.off(this),this.timeCreation=this._styleUnit=this._styleStart=this._styleFunc=this.guideElement=this.guideTimeElement=null},i.prototype.clearGuideElement=function(){var e=this.guideElement,t=this.guideTimeElement;l.remove(e),s.requestAnimFrame(function(){e.style.display="none",e.style.top="",e.style.height="",t.innerHTML=""})},i.prototype._refreshGuideElement=function(e,t,n,i,a){var s=this.guideElement,u=this.guideTimeElement;s.style.top=e+"px",s.style.height=t+"px",s.style.display="block",u.innerHTML=r.format(new d(n),"HH:mm")+" - "+r.format(new d(i),"HH:mm"),a?l.removeClass(u,o.classname("time-guide-bottom")):l.addClass(u,o.classname("time-guide-bottom"))},i.prototype._getUnitData=function(e){var t=e.options,n=e.getViewBound().height,i=t.hourEnd-t.hourStart,a=r.parse(t.ymd),o=r.end(a);return a.setHours(0,0,0,0),a.setHours(t.hourStart),[n,i,Number(a),Number(o),n/i]},i.prototype._limitStyleData=function(e,t,n,i){var r=this._styleUnit;return e=a.limit(e,[0],[r[0]]),t=a.limit(e+t,[0],[r[0]])-e,n=a.limit(n,[r[2]],[r[3]]),i=a.limit(i,[r[2]],[r[3]]),[e,t,n,i]},i.prototype._getStyleDataFunc=function(e,t,n){function i(i){var r,l,s=i.nearestGridY,d=i.nearestGridTimeY;return r=a.limit(u(t,e,s),[0],[e]),l=a.limit(d,[n],[o]),[r,l]}var o=Number(r.end(new d(Number(n))));return i},i.prototype._createGuideElement=function(e){var t,n,i,a,r=e.relatedView;t=this._styleUnit=this._getUnitData(r),n=this._styleFunc=this._getStyleDataFunc.apply(this,t),i=this._styleStart=n(e),a=this._limitStyleData(i[0],t[4]/2,i[1],i[1]+c),this._refreshGuideElement.apply(this,a),r.container.appendChild(this.guideElement)},i.prototype._onDrag=function(e){var t,n,i,a=this._styleFunc,r=this._styleUnit,o=this._styleStart,l=this._refreshGuideElement.bind(this);a&&r&&o&&(t=r[4]/2,n=a(e),n[0]>o[0]?i=this._limitStyleData(o[0],n[0]-o[0]+t,o[1],n[1]+c):(i=this._limitStyleData(n[0],o[0]-n[0]+t,n[1],o[1]+c),i.push(!0)),s.requestAnimFrame(function(){l.apply(null,i)}))},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this._getScheduleDataFunc=null,this._dragStart=null,this._guide=new d(this),e.on("dragStart",this._onDragStart,this)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(5).Date,u=n(19),d=n(92);i.prototype.destroy=function(){this._guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this._guide=null},i.prototype.checkExpectCondition=function(e){return!!l.closest(e,r.classname(".time-schedule"))&&this._getTimeView(e)},i.prototype._getTimeView=function(e){var t,n=l.closest(e,r.classname(".time-date"));return!!n&&(t=l.getClass(n).match(r.time.getViewIDRegExp),!(!t||t.length<2)&&a.pick(this.timeGridView.children.items,Number(t[1])))},i.prototype._onDragStart=function(e){var t,n,i,a,o=e.target,s=this.checkExpectCondition(o),u=l.closest(o,r.classname(".time-date-schedule-block")),d=this.baseController;s&&u&&(i=l.getData(u,"id"),a=d.schedules.items[i],a.isReadOnly||(t=this._getScheduleDataFunc=this._retriveScheduleData(s),n=this._dragStart=t(e.originEvent,{targetModelID:i,model:a}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("timeMoveDragstart",n)))},i.prototype._onDrag=function(e,t,n){var i,a=this._getScheduleDataFunc,r=this._getTimeView(e.target),o=this._dragStart;r&&a&&o&&(i=a(e.originEvent,{currentView:r,targetModelID:o.targetModelID}),n&&n(i),this.fire(t||"timeMoveDrag",i))},i.prototype._updateSchedule=function(e){var t,n,i,a,r,l,u=this.baseController,d=e.targetModelID,c=e.nearestRange,h=c[1]-c[0],p=0,f=u.schedules.items[d],m=e.relatedView,g=e.currentView;f&&g&&(h-=o.millisecondsFrom("minutes",30),l=new s(m.getDate()),n=o.start(l),i=o.end(l),a=new s(f.getStarts().getTime()+h),r=new s(f.getEnds().getTime()+h),t=f.duration(),g&&(p=g.getDate()-m.getDate()),ai&&(r=new s(i.getTime()),a=new s(r.getTime()-t.getTime())),a=new s(a.getTime()+p),r=new s(r.getTime()+p),this.fire("beforeUpdateSchedule",{schedule:f,start:a,end:r}))},i.prototype._onDragEnd=function(e){var t,n=this._getScheduleDataFunc,i=this._getTimeView(e.target),a=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),n&&a&&(t=n(e.originEvent,{currentView:i,targetModelID:a.targetModelID}),t.range=[a.timeY,t.timeY+o.millisecondsFrom("hour",.5)],t.nearestRange=[a.nearestGridTimeY,t.nearestGridTimeY+o.millisecondsFrom("hour",.5)],this._updateSchedule(t),this.fire("timeMoveDragend",t))},i.prototype._onClick=function(e){var t,n=this._getScheduleDataFunc,i=this._dragStart;this.dragHandler.off({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),n&&i&&(t=n(e.originEvent,{targetModelID:i.targetModelID}),this.fire("timeMoveClick",t))},u.mixin(i),a.CustomEvents.mixin(i),e.exports=i},function(e,t,n){(function(t){"use strict";function i(e){this._guideLayer=null,this._model=null,this._lastDrag=null,this.guideElement=null,this.timeMove=e,this._container=null,this._getTopFunc=null,this._startGridY=0,this._startTopPixel=0,e.on({timeMoveDragstart:this._onDragStart,timeMoveDrag:this._onDrag,timeMoveDragend:this._clearGuideElement,timeMoveClick:this._clearGuideElement},this)}var a=n(1),r=n(3),o=n(2),l=n(11),s=n(6).ratio,u=n(16),d=n(44),c=n(5).Date,h=n(20);i.prototype.destroy=function(){this._clearGuideElement(),this.timeMove.off(this),this._guideLayer&&this._guideLayer.destroy(),this.guideElement=this.timeMove=this._container=this._guideLayer=this._lastDrag=this._getTopFunc=this._startGridY=this._startTopPixel=null},i.prototype._clearGuideElement=function(){a.browser.msie||o.removeClass(t.document.body,r.classname("dragging")),this._guideLayer&&this._guideLayer.destroy(),this._showOriginScheduleBlocks(),this.guideElement=this._getTopFunc=this._guideLayer=this._model=this._lastDrag=this._startGridY=this._startTopPixel=null},i.prototype._hideOriginScheduleBlocks=function(){var e=r.classname("time-date-schedule-block-dragging-dim");this.guideElement&&o.addClass(this.guideElement,e)},i.prototype._showOriginScheduleBlocks=function(){var e=r.classname("time-date-schedule-block-dragging-dim");this.guideElement&&o.removeClass(this.guideElement,e)},i.prototype._getHighlightColorModel=function(e){return{bgColor:e.color}},i.prototype._refreshGuideElement=function(e,t){var n=this;l.requestAnimFrame(function(){n._guideLayer&&(n._guideLayer.setPosition(0,e),n._guideLayer.setContent(d({model:t})))})},i.prototype._onDragStart=function(e){var t=o.closest(e.target,r.classname(".time-date-schedule-block"));t&&(this._startTopPixel=parseFloat(t.style.top),this._startGridY=e.nearestGridY,this.guideElement=t,this._container=e.relatedView.container,this._model=a.extend(h.create(e.model),e.model,this._getHighlightColorModel(e.model)),this._lastDrag=e,this._resetGuideLayer(),this._hideOriginScheduleBlocks())},i.prototype._onDrag=function(e){var n,i,l=e.currentView,u=l.options,d=l.getViewBound().height,h=parseFloat(this.guideElement.style.height),p=u.hourEnd-u.hourStart,f=e.nearestGridY-this._startGridY,m=s(p,d,f),g=e.nearestGridTimeY-this._lastDrag.nearestGridTimeY;a.browser.msie||o.addClass(t.document.body,r.classname("dragging")),this._container!==l.container&&(this._container=l.container,this._resetGuideLayer()),i=this._startTopPixel+m,n=d-h,i=Math.max(i,0),i=Math.min(i,n),this._model.start=new c(this._model.getStarts().getTime()+g),this._model.end=new c(this._model.getEnds().getTime()+g),this._lastDrag=e,this._refreshGuideElement(i,this._model)},i.prototype._resetGuideLayer=function(){this._guideLayer&&(this._guideLayer.destroy(),this._guideLayer=null),this._guideLayer=new u(null,this._container),this._guideLayer.setSize(this._container.getBoundingClientRect().width,this.guideElement.style.height),this._guideLayer.setPosition(0,this.guideElement.style.top),this._guideLayer.setContent(d({model:this._model})),this._guideLayer.show()},e.exports=i}).call(t,function(){return this}())},function(e,t,n){"use strict";function i(e,t,n){this.dragHandler=e,this.timeGridView=t,this.baseController=n,this._getScheduleDataFunc=null,this._dragStart=null,this._guide=new d(this),e.on("dragStart",this._onDragStart,this)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(5).Date,u=n(19),d=n(94);i.prototype.destroy=function(){this._guide.destroy(),this.dragHandler.off(this),this.dragHandler=this.timeGridView=this.baseController=this._getScheduleDataFunc=this._dragStart=this._guide=null},i.prototype.checkExpectCondition=function(e){var t,n;return!!l.hasClass(e,r.classname("time-resize-handle"))&&(!!(t=l.closest(e,r.classname(".time-date")))&&(n=l.getClass(t).match(r.time.getViewIDRegExp),!(!n||n.length<2)&&a.pick(this.timeGridView.children.items,Number(n[1]))))},i.prototype._onDragStart=function(e){var t,n,i=e.target,a=this.checkExpectCondition(i),o=l.closest(i,r.classname(".time-date-schedule-block"));a&&o&&(t=this._getScheduleDataFunc=this._retriveScheduleData(a),n=this._dragStart=t(e.originEvent,{targetModelID:l.getData(o,"id")}),this.dragHandler.on({drag:this._onDrag,dragEnd:this._onDragEnd,click:this._onClick},this),this.fire("timeResizeDragstart",n))},i.prototype._onDrag=function(e,t,n){var i,a=this._getScheduleDataFunc,r=this._dragStart;a&&r&&(i=a(e.originEvent,{targetModelID:r.targetModelID}),n&&n(i),this.fire(t||"timeResizeDrag",i))},i.prototype._updateSchedule=function(e){var t,n,i,a=this.baseController,r=e.targetModelID,l=e.nearestRange,u=l[1]-l[0],d=a.schedules.items[r],c=e.relatedView;d&&(u-=o.millisecondsFrom("minutes",30),i=new s(c.getDate()),t=o.end(i),n=new s(d.getEnds().getTime()+u),n>t&&(n=new s(t.getTime())),n.getTime()-d.getStarts().getTime() '+u.stripTags(e.title)},"milestoneTitle-tmpl":function(){return"마일스톤"},"task-tmpl":function(e){return' '+u.stripTags(e.title)},"taskTitle-tmpl":function(){return"업무"},"alldayTitle-tmpl":function(){return"종일"},"alldayCollapseBtnTitle-tmpl":function(){return"∧"},"allday-tmpl":function(e){return u.stripTags(e.title)},"time-tmpl":function(e){return u.stripTags(e.title)},"monthMoreTitleDate-tmpl":function(e){return e},"monthMoreClose-tmpl":function(){return"close"},"monthGridHeader-tmpl":function(e){return''+e.date+""},"monthGridHeaderExceed-tmpl":function(e){return""},"monthGridFooter-tmpl":function(){return""},"monthGridFooterExceed-tmpl":function(e){return""},"weekDayname-tmpl":function(e){return''+e.date+" "+e.dayName},"monthDayname-tmpl":function(e){return e.label},"weekGridFooterExceed-tmpl":function(e){return"+"+e}})},function(e,t,n){"use strict";function i(e,t,n){ +t=o.appendHTMLElement("div",t,r.classname("allday-container")),this.options=a.extend({title:"All-day",renderStartDate:"",renderEndDate:"",containerBottomGutter:18,scheduleHeight:18,scheduleGutter:2,scheduleContainerTop:1,getViewModelFunc:function(e){return e.schedulesInDateRange.allday}},e),this.contentHeight=0,this.viewType=e.alldayViewType||"scroll",this.collapsed="toggle"===this.viewType,this.aboutMe=a.extend(n,{name:"allday"}),this.maxScheduleInDay=0,l.call(this,t)}var a=n(1),r=n(3),o=n(2),l=n(8),s=n(29),u=n(38);a.inherit(i,l),i.prototype.render=function(e){var t,n=this.container,i=this.options.scheduleContainerTop,a=this;n.innerHTML=u(this.options),this.children.clear(),t=new s(this.options,o.find(r.classname(".weekday-container"),n),this.aboutMe),t.collapsed=this.collapsed,t.on("afterRender",function(e){a.contentHeight=e.minHeight+i,a.maxScheduleInDay=e.maxScheduleInDay}),this.addChild(t),this.children.each(function(t){t.collapsed=this.collapsed,t.render(e)},this),this.fire("afterRender",e)},i.prototype.getExpandMaxHeight=function(){var e=this.options.scheduleHeight+this.options.scheduleGutter,t=this.aboutMe.maxExpandCount;return this.maxScheduleInDay>t?e*(t+.5):e*t},e.exports=i},function(e,t,n){"use strict";function i(e,t){t=s.appendHTMLElement("div",t,r.classname("dayname-container")),this.options=a.extend({daynames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},e),u.call(this,t)}var a=n(1),r=n(3),o=n(4),l=n(5).Date,s=n(2),u=n(8),d=n(39);a.inherit(i,u),i.prototype._getBaseViewModel=function(e,t,n){var i,r=this.options.daynames;return i=a.map(o.range(o.start(e),o.end(t),o.MILLISECONDS_PER_DAY),function(e,t){var i=e.getDay();return{day:i,dayName:r[i],isToday:o.isSameDate(e,new l),date:e.getDate(),left:n[t]?n[t].left:0,width:n[t]?n[t].width:0,renderDate:o.format(e,"YYYY-MM-DD")}})},i.prototype.render=function(e){var t=this._getBaseViewModel(e.renderStartDate,e.renderEndDate,e.grids);this.container.innerHTML=d(t)},e.exports=i},function(e,t,n){"use strict";function i(e,t){t=l.appendHTMLElement("div",t,r.classname("milestone-container")),u.call(this,t),this.options=a.extend({renderStartDate:"",renderEndDate:""},e)}var a=n(1),r=n(3),o=n(4),l=n(2),s=n(5).Date,u=n(8),d=n(40),c=17,h=1;a.inherit(i,u),i.prototype._getBaseViewModel=function(e){var t,n={},i=e.range,r=o.format(new s,"YYYY-MM-DD"),l=a.pick(e.schedulesInDateRange,"milestone"),u=e.grids,d=0;return a.forEach(i,function(e){n[o.format(e,"YYYY-MM-DD")]={length:0}}),a.extend(n,l),a.forEach(n,function(e,t){e.isToday=t===r,e.left=u[d]?u[d].left:0,e.width=u[d]?u[d].width:0,d+=1}),t=h,t+=Math.max.apply(null,a.map(n,function(e){return e.length}))*c,{schedules:n,height:t}},i.prototype.render=function(e){var t=this.container,n=this._getBaseViewModel(e);t.style.minHeight=this.options.minHeight+"px",t.innerHTML=d(n),a.forEach(l.find("li",t,!0),function(e){e.offsetWidths&&(r=s-o,u=!0),d&&(u=!0),{top:o,left:t.baseLeft[t.columnIndex],width:i,height:Math.max(r,this.options.minHeight)-this.options.defaultMarginBottom,cropped:u}},i.prototype._getBaseViewModel=function(e,t){var n,i,r,l=this,s=this.options,u=s.hourStart,d=s.hourEnd;n=this.getViewBound().height,i=this._parseDateGroup(e),i.setHours(u),r=o.millisecondsFrom("hour",d-u),c(t,function(e){var t,o,s,u;for(t=Math.max.apply(null,a.map(e,function(e){return e.length})),o=100/t,s=[],u=0;u40&&(s=o+1)),l.map(function(e){return{hours:e,hidden:s===e}})}function a(e,t){t=s.appendHTMLElement("div",t,o.classname("timegrid-container")),h.call(this,t),r.browser.safari||(this._autoScroll=new f(t)),this.options=r.extend({renderStartDate:"",renderEndDate:"",hourStart:0,hourEnd:24},e),this.intervalID=0,this.timerID=0,this._scrolled=!1,this._cacheParentViewModel=null,this.attachEvent()}var r=n(1),o=n(3),l=n(6),s=n(2),u=n(4),d=n(5).Date,c=n(11),h=n(8),p=n(104),f=n(61),m=n(43),g=6e4,y=60;r.inherit(a,h),a.prototype.viewName="timegrid",a.prototype._beforeDestroy=function(){clearInterval(this.intervalID),clearTimeout(this.timerID),this._autoScroll&&this._autoScroll.destroy(),this._autoScroll=this.hourmarker=this.intervalID=this.timerID=this._cacheParentViewModel=null},a.prototype._getTopPercentByTime=function(e){var t,n=this.options,i=u.raw(e||new d),a=r.range(n.hourStart,n.hourEnd).length,o=a*u.MILLISECONDS_PER_HOUR,s=u.millisecondsFrom("hour",i.h)+u.millisecondsFrom("minutes",i.m)+u.millisecondsFrom("seconds",i.s)+i.ms;return t=l.ratio(o,100,s),t-=l.ratio(o,100,u.millisecondsFrom("hour",n.hourStart)),l.limit(t,[0],[100])},a.prototype._getHourmarkerViewModel=function(e,t,n){var i,a=-1;return e=e||new d,r.forEach(n,function(n,i){u.isSameDate(e,n)&&(a=t[i]?t[i].left:0)}),i={currentHours:e.getHours(),hourmarkerTop:this._getTopPercentByTime(e),hourmarkerText:u.format(e,"HH:mm"),todaymarkerLeft:a}},a.prototype._getBaseViewModel=function(e,t){var n=this.options,a=this._getHourmarkerViewModel(new d,e,t);return a.hoursLabels=i(n.hourStart,n.hourEnd,a.todaymarkerLeft>=0),a},a.prototype._renderChildren=function(e,t,n){var i,a,l,c=this,h=this.options,f=u.format(new d,"YYYYMMDD"),m=0;n.innerHTML="",this.children.clear(),r.forEach(e,function(e,r){l=r===f,i={index:m,left:t[m]?t[m].left:0,width:t[m]?t[m].width:0,ymd:r,isToday:l,isPending:h.isPending,isFocused:h.isFocused,hourStart:h.hourStart,hourEnd:h.hourEnd},a=new p(i,s.appendHTMLElement("div",n,o.classname("time-date"))),a.render(r,e),c.addChild(a),m+=1})},a.prototype.render=function(e){var t=e.schedulesInDateRange.time,n=this.container,i=e.grids,a=e.range,l=this._getBaseViewModel(i,a),u=r.keys(t).length;this._cacheParentViewModel=e,u&&(l.showHourMarker=l.todaymarkerLeft>=0,n.innerHTML=m(l),this._renderChildren(t,i,s.find(o.classname(".timegrid-schedules-container"),n)),this._hourLabels=s.find("ul",n),this.hourmarker=s.find(o.classname(".timegrid-hourmarker"),n),this._scrolled||(this._scrolled=!0,this.scrollToNow()))},a.prototype.refreshHourmarker=function(){var e,t,n=this.hourmarker,i=this._cacheParentViewModel?this._cacheParentViewModel.grids:null,a=this._cacheParentViewModel?this._cacheParentViewModel.range:null,r=this._getHourmarkerViewModel(new d,i,a);n&&r&&(e=s.find(o.classname(".timegrid-todaymarker"),n),t=s.find(o.classname(".timegrid-hourmarker-time"),n),c.requestAnimFrame(function(){n.style.display="block",n.style.top=r.hourmarkerTop+"%",e.style.display=r.todaymarkerLeft>=0?"block":"none",t.innerHTML=r.hourmarkerText}))},a.prototype.attachEvent=function(){clearInterval(this.intervalID),clearTimeout(this.timerID),this.intervalID=this.timerID=null,this.timerID=setTimeout(r.bind(this.onTick,this),1e3*(y-(new d).getSeconds()))},a.prototype.scrollToNow=function(){var e,t,n,i,a,r,o=this,l=this.container;o.hourmarker&&(e=this.hourmarker.offsetTop,t=this.getViewBound(),n=e,i=t.height/4,a=10,r=function(){n>e-i?(n-=a,l.scrollTop=n,c.requestAnimFrame(r)):l.scrollTop=e-i},c.requestAnimFrame(r))},a.prototype.onTick=function(){this.timerID&&(clearTimeout(this.timerID),this.timerID=null),this.intervalID||(this.intervalID=setInterval(r.bind(this.onTick,this),g)),this.refreshHourmarker()},e.exports=a},function(e,t,n){"use strict";function i(e){return 10===e.length?s.parse(e):new u(e)}function a(e,t,n){var i;n=l.appendHTMLElement("div",n),d.call(this,n),l.addClass(n,o.classname("week-container")),i=this._getRenderDateRange(new u),this.options=r.extend({scheduleFilter:function(e){return Boolean(e.isVisible)},renderStartDate:s.format(i.start,"YYYY-MM-DD"),renderEndDate:s.format(i.end,"YYYY-MM-DD"),narrowWeekend:!1,startDayOfWeek:0,workweek:!1},t),this.controller=e}var r=n(1),o=n(3),l=n(2),s=n(4),u=n(5).Date,d=n(8);r.inherit(a,d),a.prototype.render=function(){var e,t,n,a,o,l,u=this.options,d=u.scheduleFilter,c=u.narrowWeekend,h=u.startDayOfWeek,p=u.workweek;e=i(u.renderStartDate),t=i(u.renderEndDate),l=s.range(s.start(e),s.end(t),s.MILLISECONDS_PER_DAY),u.workweek&&s.compare(e,t)&&(l=r.filter(l,function(e){return!s.isWeekend(e.getDay())}),e=l[0],t=l[l.length-1]),n=this.controller.findByDateRange(s.start(e),s.end(t),d),o=s.getGridLeftAndWidth(l.length,c,h,p),a={schedulesInDateRange:n,renderStartDate:e,renderEndDate:t,grids:o,range:l},this.children.each(function(e){e.render(a)}),this.fire("afterRender")},a.prototype.viewName="week",a.prototype._getRenderDateRange=function(e){var t=s.start(e),n=new u(Number(t)),i=new u(Number(t));return n.setDate(n.getDate()-3),i.setDate(i.getDate()+3),{start:n,end:i}},r.CustomEvents.mixin(a),e.exports=a}])}); //# sourceMappingURL=tui-calendar.min.js.map \ No newline at end of file diff --git a/dist/tui-calendar.min.js.map b/dist/tui-calendar.min.js.map index 07391b24e..bc6a37e96 100644 --- a/dist/tui-calendar.min.js.map +++ b/dist/tui-calendar.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///tui-calendar.min.js","webpack:///webpack/bootstrap 20d044aee2b168ab76ef","webpack:///./src/index.js","webpack:///external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}","webpack:///./src/js/common/domutil.js","webpack:///./src/js/config.js","webpack:///./src/js/common/datetime.js","webpack:///./src/js/common/timezone.js","webpack:///./src/js/common/common.js","webpack:///./~/handlebars/runtime.js","webpack:///./src/js/view/view.js","webpack:///./src/js/common/domevent.js","webpack:///./~/handlebars/dist/cjs/handlebars/utils.js","webpack:///./src/js/common/reqAnimFrame.js","webpack:///./src/js/common/collection.js","webpack:///./~/handlebars/dist/cjs/handlebars/exception.js","webpack:///./src/js/common/array.js","webpack:///./src/js/common/dw.js","webpack:///./src/js/common/floatingLayer.js","webpack:///./src/js/handler/allday/core.js","webpack:///./src/js/handler/month/core.js","webpack:///./src/js/handler/time/core.js","webpack:///./src/js/model/schedule.js","webpack:///./~/handlebars-template-loader/runtime/index.js","webpack:///./~/handlebars/dist/cjs/handlebars/base.js","webpack:///./src/js/common/point.js","webpack:///./src/js/common/vlayout.js","webpack:///./src/js/handler/allday/move.js","webpack:///./src/js/handler/drag.js","webpack:///./src/js/handler/month/guide.js","webpack:///./src/js/model/viewModel/scheduleViewModel.js","webpack:///./src/js/view/week/weekdayInWeek.js","webpack:///./src/js/view/weekday.js","webpack:///./src/js/handler/month/guide.hbs","webpack:///./src/js/handler/month/moveGuide.hbs","webpack:///./src/js/view/month/month.hbs","webpack:///./src/js/view/month/more.hbs","webpack:///./src/js/view/month/weekdayInMonth.hbs","webpack:///./src/js/view/month/weekdayInMonthSchedule.hbs","webpack:///./src/js/view/template/week/allday.hbs","webpack:///./src/js/view/template/week/daynames.hbs","webpack:///./src/js/view/template/week/milestone.hbs","webpack:///./src/js/view/template/week/taskview.hbs","webpack:///./src/js/view/template/week/time.hbs","webpack:///./src/js/view/template/week/timeGrid.hbs","webpack:///./src/js/view/template/week/timeMoveGuide.hbs","webpack:///./src/js/view/week/weekdayInWeek.hbs","webpack:///./~/handlebars/dist/cjs/handlebars.runtime.js","webpack:///./~/handlebars/dist/cjs/handlebars/decorators.js","webpack:///./~/handlebars/dist/cjs/handlebars/decorators/inline.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/each.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/helper-missing.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/if.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/log.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/lookup.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/with.js","webpack:///./~/handlebars/dist/cjs/handlebars/logger.js","webpack:///./~/handlebars/dist/cjs/handlebars/no-conflict.js","webpack:///./~/handlebars/dist/cjs/handlebars/runtime.js","webpack:///./~/handlebars/dist/cjs/handlebars/safe-string.js","webpack:///./src/js/common/autoScroll.js","webpack:///./src/js/common/dirty.js","webpack:///./src/js/common/model.js","webpack:///./src/js/common/vpanel.js","webpack:///./src/js/controller/base.js","webpack:///./src/js/controller/viewMixin/core.js","webpack:///./src/js/controller/viewMixin/month.js","webpack:///./src/js/controller/viewMixin/week.js","webpack:///./src/js/factory/calendar.js","webpack:///./src/js/factory/controller.js","webpack:///./src/js/factory/monthView.js","webpack:///./src/js/factory/weekView.js","webpack:///./src/js/handler/allday/click.js","webpack:///./src/js/handler/allday/creation.js","webpack:///./src/js/handler/allday/creationGuide.js","webpack:///./src/js/handler/allday/moveGuide.js","webpack:///./src/js/handler/allday/resize.js","webpack:///./src/js/handler/allday/resizeGuide.js","webpack:///./src/js/handler/milestone/click.js","webpack:///./src/js/handler/month/click.js","webpack:///./src/js/handler/month/creation.js","webpack:///./src/js/handler/month/creationGuide.js","webpack:///./src/js/handler/month/move.js","webpack:///./src/js/handler/month/moveGuide.js","webpack:///./src/js/handler/month/resize.js","webpack:///./src/js/handler/month/resizeGuide.js","webpack:///./src/js/handler/time/click.js","webpack:///./src/js/handler/time/clickDayname.js","webpack:///./src/js/handler/time/creation.js","webpack:///./src/js/handler/time/creationGuide.js","webpack:///./src/js/handler/time/move.js","webpack:///./src/js/handler/time/moveGuide.js","webpack:///./src/js/handler/time/resize.js","webpack:///./src/js/handler/time/resizeGuide.js","webpack:///./src/js/view/layout.js","webpack:///./src/js/view/month/month.js","webpack:///./src/js/view/month/more.js","webpack:///./src/js/view/month/weekdayInMonth.js","webpack:///./src/js/view/template/helper.js","webpack:///./src/js/view/week/allday.js","webpack:///./src/js/view/week/dayname.js","webpack:///./src/js/view/week/milestone.js","webpack:///./src/js/view/week/taskview.js","webpack:///./src/js/view/week/time.js","webpack:///./src/js/view/week/timeGrid.js","webpack:///./src/js/view/week/week.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_1__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","trim","str","replace","domutil","domevent","Collection","util","posKey","CSS_AUTO_REGEX","appendHTMLElement","tagName","container","className","el","document","createElement","appendChild","body","remove","parentNode","removeChild","get","getElementById","_matcher","selector","cssClassSelector","idSelector","test","hasClass","nodeName","toLowerCase","find","multiple","recurse","cursor","childNodes","i","len","length","isFilter","result","push","isFirst","found","isUndefined","isFunction","isString","window","closest","excludeEl","parent","text","ret","nodeType","textContent","firstChild","nextSibling","nodeValue","setData","key","data","dataset","setAttribute","getData","getAttribute","name","classList","getClass","RegExp","contains","addClass","setClass","forEachArray","split","value","add","baseVal","removeClass","removed","getStyle","style","css","currentStyle","defaultView","getComputedStyle","getPropertyValue","prop","re","arguments","toUpperCase","setPosition","x","y","left","isNumber","top","setLTRB","ltrb","props","forEach","getPosition","clear","bound","getBoundingClientRect","parseFloat","getSize","width","height","isNull","offsetWidth","offsetHeight","getBCRect","rect","extend","testProp","documentElement","getFormData","formElement","groupedByName","noDisabledFilter","disabled","output","apply","concat","groupBy","elements","each","type","checked","toArray","pop","opt","selected","map","userSelectProperty","supportSelectStart","prevSelectStyle","disableTextSelection","dom","on","preventDefault","enableTextSelection","off","disableImageDrag","enableImageDrag","cssPrefix","alldayGetViewID","alldayCheckPermission","timeGetViewID","config","throwError","msg","alert","classname","charAt","slice","allday","getViewIDRegExp","checkCondRegExp","time","global","datetime","tokenFunc","TZDate","Date","dw","dateFormatRx","memo","millisecondsTo","millisecondsFrom","YYYYMMDD","date","getFullYear","leadingZero","getMonth","getDate","join","YYYY","String","MM","DD","HH:mm","hour","getHours","minutes","getMinutes","MILLISECONDS_PER_DAY","MILLISECONDS_PER_HOUR","MILLISECONDS_PER_MINUTES","_convMilliseconds","iteratee","conv","index","day","seconds","isNaN","reduce","cache","v","range","start","end","step","startTime","getTime","endTime","d","addDate","clone","compare","d1","d2","_d1","_d2","isSameMonth","isSameDate","sameMonth","isValid","toUTC","l","offset","getTimezoneOffset","number","zero","parse","fixMonth","separator","ymd","hms","matches","match","indexOf","splice","substr","Number","raw","M","h","s","getSeconds","ms","getMilliseconds","setHours","format","forEachOwnProperties","converter","token","startDateOfMonth","startDate","setDate","endDateOfMonth","endDate","setMonth","arr2dCalendar","month","options","weekArr","startIndex","endIndex","totalDate","afterDates","week","calendar","startDayOfWeek","isAlways6Week","visibleWeeksCount","workweek","inArray","getDay","isWeekend","getGridLeftAndWidth","days","narrowWeekend","limitDaysToApplyNarrowWeekend","uniformWidth","wideWidth","accumulatedWidth","dates","filter","model","timestamp","now","MIN_TO_MS","getCustomTimezoneOffset","timezoneOffsetCallback","customOffsetMs","createDateWithMultipleArgs","args","utc","UTC","createDateWithSingleArg","arg","Error","_date","getterMethods","setterMethods","prototype","setTime","valueOf","methodName","setOffset","setOffsetCallback","callback","restoreOffset","scheduleIDGetter","schedule","cid","aps","Array","createScheduleCollection","initItems","collection","ratio","a","b","nearest","diff","Math","abs","nearestIndex","min","pick2","obj","paths","pick","val","then","fn","mixin","from","to","limit","minArr","maxArr","max","stripTags","firstIn2dArray","arr2d","lastIn2dArray","lastRow","lastCol","setAutoEllipsis","scrollWidth","View","stamp","cssprefix","children","view","addChild","items","render","childView","recursive","skipThis","resize","_onResize","_beforeDestroy","_destroy","innerHTML","destroy","isChildView","getViewBound","position","size","CustomEvents","browser","eventKey","DRAG","START","END","mousedown","touchstart","pointerdown","MSPointerDown","MOVE","types","context","_on","handler","originHandler","e","event","_checkMouse","addEventListener","attachEvent","_off","removeEventListener","detachEvent","keys","msie","version","once","onceHandler","self","isObject","stopPropagation","cancelBubble","returnValue","stop","disableScrollPropagation","disableClickPropagation","getMousePosition","mouseEvent","relativeElement","clientX","clientLeft","clientY","clientTop","getWheelDelta","delta","wheelDelta","detail","related","relatedTarget","err","trigger","eventData","rMouseEvent","exec","dispatchEvent","fireEvent","eventObj","evt","bubbles","cancelable","screenX","screenY","ctrlKey","altKey","shiftKey","metaKey","button","undefined","createEvent","initMouseEvent","createEventObject","propName","0","1","2","getMouseButton","primary","secondary","wheel","implementation","hasFeature","escapeChar","chr","escape","Object","hasOwnProperty","array","escapeExpression","string","toHTML","possible","badChars","isEmpty","isArray","createFrame","object","frame","_parent","blockParams","params","ids","path","appendContextPath","contextPath","__esModule","&","<",">","\"","'","`","=","toString","getPrefixed","requestFn","cancelFn","requestAnimationFrame","cancelAnimationFrame","requestAnimFrame","bind","cancelAnimFrame","getItemIDFn","isFunc","getItemID","forEachProp","forEachArr","isObj","and","filters","cnt","item","or","merge","collections","cols","newItems","merged","col","_id","ownItems","o","itemToRemove","has","isExisty","doWhenHas","groupFunc","baseValue","keyIsFunc","k","single","useFilter","sort","compareFunction","arr","Exception","message","node","loc","line","column","tmp","constructor","idx","errorProps","captureStackTrace","lineNumber","defineProperty","enumerable","nop","bsearch","search","currentIndex","comp","minIndex","maxIndex","stringASC","booleanASC","booleanDESC","numberASC","_a","_b","numberDESC","stringDESC","stringASCIgnoreCase","stringDESCIgnoreCase","scheduleASC","durationA","durationB","allDayCompare","startsCompare","modelA","modelB","isAllDay","hasMultiDates","getStarts","duration","asc","bool","desc","num","ascIgnoreCase","descIgnoreCase","DW","safe","addMonth","prevMonth","prevYear","isBetween","FloatingLayer","layerContainer","sibling","PROP_KEY","zIndex","getLargestZIndex","INIT_ZINDEX","display","inherit","isVisible","setSize","w","setContent","html","zIndexes","layer","focus","zIndexForShow","show","hide","getX","grids","grid","common","mmax","mmin","alldayCore","_retriveScheduleData","alldayView","datesInRange","containerWidth","mousePos","dragStartXIndex","weekdayView","getRenderDateRange","getRenderDateGrids","pos","mouseX","xIndex","relatedView","triggerEvent","getMousePosDate","monthView","relativeContainer","mfloor","weekCount","weeks","sizeX","dayCount","sizeY","weekColl","vLayout","panels","floor","Point","timeCore","_calcGridYIndex","baseMil","floored","timeView","viewHeight","viewTime","hourLength","hourEnd","hourStart","mouseY","n","gridY","timeY","nearestGridY","nearestGridTimeY","target","srcElement","originEvent","proto","method","Schedule","title","color","bgColor","borderColor","calendarId","category","dueDateClass","customStyle","isPending","isFocused","isReadOnly","dirty","SCHEDULE_CATEGORY","MILESTONE","TASK","ALLDAY","TIME","schema","required","dateRange","create","inst","init","setAllDayPeriod","setTimePeriod","substring","setMinutes","getEnds","equals","collidesWith","ownStarts","ownEnds","_interopRequireDefault","default","HandlebarsEnvironment","helpers","partials","decorators","_helpers","registerDefaultHelpers","_decorators","registerDefaultDecorators","_utils","_exception","_exception2","_logger","_logger2","VERSION","COMPILER_REVISION","REVISION_CHANGES","3","4","5","6","7","objectType","logger","log","registerHelper","unregisterHelper","registerPartial","partial","unregisterPartial","registerDecorator","unregisterDecorator","useRound","round","getRatio","point","factor","toFactor","multiplyBy","_divideBy","_add","subtract","_subtract","divideBy","_multiplyBy","_round","reverse","_reverse","_floor","ceil","_ceil","rotate","deg","center","cos","sin","_rotate","rad","PI","toFixed","distanceTo","sqrt","VLayout","tempHeights","panelHeights","_drag","Drag","distance","exclude","dragStart","_onDragStart","drag","_onDrag","dragEnd","_onDragEnd","_dragData","panelOpt","isSplitter","autoHeight","shift","addPanels","refresh","VPanel","mAbs","getLayoutData","heightList","panel","getHeight","setLayoutData","setHeight","nextPanel","prevPanel","_initializeGuideElement","element","cloned","cloneNode","_refreshGuideElement","_clearGuideElement","_resize","splPanel","startY","resizeInfo","diffY","resizedHeight","resizeMap","toDown","backwardMethod","forwardMethod","getResizeInfoByGrowth","pair","fire","_getMouseYAdditionalLimit","upper","below","func","minHeight","oEvent","splIndex","splHeight","splOffsetY","guideElement","minY","maxY","dragData","asideMinMax","layoutData","remainHeight","panelToFillHeight","layoutHeight","usedHeight","addPanel","frag","createDocumentFragment","option","getPanelByName","AlldayMove","dragHandler","baseController","_dragStart","guide","AlldayMoveGuide","AlldayCore","checkExpectedCondition","parentView","cssClass","dragStartEventData","scheduleBlockElement","modelID","targetModel","getScheduleDataFunc","scheduleData","controller","excludeTarget","schedules","click","_onClick","dragEventData","_updateSchedule","dateOffset","newStarts","newEnds","dragEndEventData","overrideEventName","skipUpdate","clickEventData","_onMouseDown","_cancelled","_isMoved","_distance","_dragStartFired","_dragStartEventData","_clearData","_toggleDragEvent","toBind","domMethod","mousemove","_onMouseMove","mouseup","_onMouseUp","_getEventData","mouseDownEvent","mouseMoveEvent","invoke","mouseUpEvent","MonthGuide","label","isResizeMode","isCreationMode","startCoord","guideElements","tmpl","mabs","clearGuideElement","_getRatioValueInWeek","_createGuideElement","_getGuideElement","_getCoordByDate","getIdxFromDiff","monthStart","renderStartDate","isBefore","dateDW","startDW","endDW","_getLimitedCoord","coord","toIndex","dragStartEvent","temp","parseInt","update","_updateGuides","inds","ind","exceedLClass","exceedRClass","exceedL","exceedR","_getOriginIndicate","mouseCoord","right","_getMouseIndicate","_getContainIndicate","_removeGuideElements","yCoords","guides","_getExcludesInRange","numbers","excludes","limitedCoord","renderedYIndex","yCoordsToUpdate","yCoordsToRemove","renderIndication","guideYCoord","indicate","ScheduleViewModel","hasCollide","extraSpace","hidden","renderStarts","exceedLeft","renderEnds","exceedRight","viewModel","WeekdayInWeek","aboutMe","Weekday","baseViewModel","viewType","getBaseViewModel","collapsed","marginLeft","_getMaxScheduleInDay","matrices","matrix","row","_getMinHeight","maxScheduleInDay","contentHeight","scheduleHeight","scheduleGutter","maxHeight","containerBottomGutter","_updateExceedDate","exceedDate","_excludeExceedSchedules","visibleScheduleCount","panelHeight","maxHiddenScheduleCount","getViewModelFunc","forcedLayout","maxExpandCount","getExceedDate","schedulesInDateRange","scheduleContainerTop","minHiddenScheduleIndex","_getCollapseBtnIndex","floatingButtonTop","_calculateFloatingBtnTop","panelName","maxHiddenCount","minHiddenScheduleCount","btnIndex","containerHeight","_cacheParentViewModel","today","gridWidth","scheduleBlockHeight","scheduleBlockGutter","isToday","hiddenSchedules","maxCount","eventsInDateRange","_initExceedDate","period","Handlebars","template","depth0","helper","CSS_PREFIX","helperMissing","nullContext","hash","stack1","alias1","alias2","alias3","alias4","unless","program","inverse","noop","compiler","main","useData","lambda","holiday","daynames","fi","alias5","8","10","12","14","isOtherMonth","renderLimitIdx","gridHeaderHeight","11","13","15","17","19","20","22","24","26","renderDate","cropped","9","hours","hourmarkerTop","hourmarkerText","todaymarkerLeft","hoursLabels","showHourMarker","multiply","16","18","25","27","28","30","31","_interopRequireWildcard","newObj","hb","base","Utils","SafeString","_handlebarsSafeString2","_handlebarsException2","VM","runtime","spec","_handlebarsBase","_handlebarsSafeString","_handlebarsException","_handlebarsUtils","_handlebarsRuntime","_handlebarsNoConflict","_handlebarsNoConflict2","instance","_decoratorsInline2","_decoratorsInline","original","_helpersBlockHelperMissing2","_helpersEach2","_helpersHelperMissing2","_helpersIf2","_helpersLog2","_helpersLookup2","_helpersWith2","_helpersBlockHelperMissing","_helpersEach","_helpersHelperMissing","_helpersIf","_helpersLog","_helpersLookup","_helpersWith","execIteration","field","last","first","j","priorKey","conditional","includeZero","level","methodMap","lookupLevel","levelMap","console","_len","_key","$Handlebars","noConflict","checkRevision","compilerInfo","compilerRevision","currentRevision","_base","runtimeVersions","compilerVersions","templateSpec","env","invokePartialWrapper","resolvePartial","invokePartial","compile","compilerOptions","indent","lines","depths","_setup","initData","useBlockParams","useDepths","executeDecorators","decorator","main_d","strict","lookup","current","programs","declaredBlockParams","programWrapper","wrapProgram","depth","param","seal","isTop","usePartial","useDecorators","_child","prog","currentDepths","currentPartialBlock","partialBlock","Function","AutoScroll","_direction","DIRECTION","INSIDE","_offset","_intervalID","SCROLL_INTERVAL","SCROLL_MAX","SCROLL_CLICK_INCREASED","TOP","RIGHT","BOTTOM","LEFT","clearInterval","_getEdgePositions","clientRect","bottom","getRealSize","border","padding","computed","clientWidth","clientHeight","hasScrollbar","realSize","isOnScrollbar","mouseInScrollbar","setInterval","_onTick","edge","direction","scrollTop","scrollLeft","existy","set","originValue","_changed","_dirty","isDirty","toDirty","deleteProp","isPropChanged","methodFilterR","wrap","flag","_flag","_name","_wrapper","_fn","flagToSet","_wrapped","spaceRx","validators","fields","valid","fieldName","validator","values","validatorName","parameterize","isHeightForcedSet","_initPanel","newHeight","force","growth","resizeTo","Base","dateMatrix","_getContainDatesInSchedule","createSchedule","silent","addSchedule","createSchedules","dataList","updateSchedule","origin","_removeFromMatrix","_addToMatrix","deleteSchedule","ownMatrix","containDates","splitScheduleByDateRange","scheduleCollection","findByDateRange","viewModels","ownSchedules","dformat","clearSchedules","Core","getCollisionGroup","previousScheduleList","collisionGroups","foundPrevCollisionSchedule","previous","group","getLastRowInColumn","getMatrices","scheduleID","nextRow","lastRowInColumn","getScheduleInDateRangeFilter","positionViewModels","ymdListToRender","dateLength","limitRenderRange","viewModelColl","convertToViewModel","modelColl","Month","_onlyTimeFilter","_onlyAlldayFilter","_weightTopValue","_adjustRenderRange","vColl","ctrlCore","_getAlldayMaxTopIndexAtYMD","vAlldayColl","topIndexesInDate","_adjustTimeTopIndex","ctrlMonth","getAlldayMaxTopIndexAtYMD","sortedTimeSchedules","maxIndexInYMD","timeViewModel","scheduleYMD","alldayMaxTopInYMD","_stackTimeFromTop","indiceInYMD","maxTopInYMD","topArrayInYMD","_addMultiDatesInfo","andFilters","alldayFirstMode","coll","vList","collisionGroup","Week","generateTimeArrayInRow","maxColLen","startStart","startEnd","endStart","endEnd","getFunc","block","getCollides","binaryMap","maxRowLength","getViewModelForTimeView","ymdSplitted","getViewModelForAlldayView","ctrlWeek","task","Calendar","querySelector","calendarColor","taskView","scheduleView","defaultDate","scheduleFilter","Boolean","renderRange","createController","layout","Layout","viewName","prevViewName","refreshMethod","scrollToNowMethod","initialize","controllerFactory","weekViewFactory","monthViewFactory","timezone","createWeekView","createMonthView","toggleView","calColor","getSchedule","ctrl","setOptionRecurseively","getWeekDayRange","msFrom","isDate","weekday","_toggleSchedulesByCalendarID","toHide","scrollToNow","refreshChildView","_setViewName","move","tempDate","datetimeOptions","getCurrentView","recursiveSet","renderMonth","renderEndDate","next","prev","setCalendarColor","ownColor","showSchedulesByCalendarID","hideSchedulesByCalendarID","clickScheduleData","_onClickDayname","_onBeforeCreate","createScheduleData","_onBeforeUpdate","updateScheduleData","_onResizePanel","resizeScheduleData","_toggleViewSchedule","isAttach","isMonthView","clickHandler","dayname","creation","creationHandler","moveHandler","resizeHandler","newViewName","created","toggleTaskView","enabled","toggleScheduleView","getElement","scheduleId","setTimezoneOffset","setTimezoneOffsetCallback","propertyName","ymdRange","originQuery","groupedByYMD","getViewModelForMoreLayer","layoutContainer","monthViewContainer","moreView","clearSchedulesHandler","onUpdateSchedule","More","MonthClick","MonthCreation","MonthResize","MonthMove","clickMoreSchedule","reqAnimFrame","DayName","TimeGrid","Allday","Milestone","TaskView","AlldayClick","AlldayCreation","AlldayResize","DayNameClick","TimeClick","TimeCreation","TimeMove","TimeResize","MilestoneClick","DEFAULT_VIEW_SEQUENCE","DEFAULT_VIEWS","Task","AllDay","weekView","dayNameContainer","dayNameView","vLayoutContainer","milestoneView","timeGridView","alldayPanel","viewSequence","views","isAllDayPanelFirstRender","milestone","getExpandMaxHeight","prevMaxHeight","weekViewHeight","daynameViewHeight","checkExpectCondition","clickEvent","blockElement","moreElement","scheduleElement","collapseElement","AlldayCreationGuide","_requestOnClick","_onDblClick","CLICK_DELAY","schedulesElement","_createSchedule","startXIndex","triggerEventName","setTimeout","alldayCreation","scheduleContainer","initializeGuideElement","alldayCreationDragstart","alldayCreationDrag","alldayCreationClick","_getGuideWidth","dragStartIndex","dragEndIndex","defer","setStyle","leftPercent","widthPercent","dragEndXIndex","alldayContainerElement","alldayMove","_dragStartXIndex","alldayMoveDragstart","alldayMoveDrag","alldayMoveDragend","alldayMoveClick","getScheduleBlockWidth","_showOriginScheduleBlocks","_hideOriginScheduleBlocks","scheduleBlocks","_highlightScheduleBlocks","margin","backgroundColor","borderLeftColor","refreshGuideElement","isExceededLeft","isExceededRight","_getScheduleBlockDataFunc","baseWidthPercent","originScheduleStarts","originScheduleEnds","fromLeft","fromRight","indexOffset","alldayViewContainer","originLength","leftIndex","newLeft","newWidth","AlldayResizeGuide","alldayResize","alldayResizeDragstart","alldayResizeDrag","alldayResizeDragend","alldayResizeClick","getGuideElementWidthFunc","viewOptions","getScheduleData","_cache","Guide","isElementWeekdayGrid","dragEvent","dragEndEvent","times","_adjustStartAndEndTime","MonthCreationGuide","monthCreation","monthCreationDragstart","monthCreationDrag","monthCreationDragend","monthCreationClick","MonthMoveGuide","getMousePosData","scheduleCache","startDateRaw","dragEndTime","newStartDate","getMonthScheduleBlock","blockSelector","getMoreLayerScheduleBlock","hasPermissionToHandle","monthMove","monthMoveDragstart","monthMoveDrag","monthMoveDragend","_clearGridBgColor","_getHighlightColorModel","beforeGridElement","_updateGridBgColor","gridElements","targetIndex","firstWeekdayView","weekdayOptions","MonthResizeGuide","newEnd","monthResize","monthResizeDragstart","monthResizeDrag","monthResizeDragend","_hideScheduleBlocks","_showScheduleBlocks","schedulesCollection","daynameView","TimeCreationGuide","_getScheduleDataFunc","revise","baseDate","dateStart","dateEnd","createRange","reviseFunc","condResult","timeCreation","guideTimeElement","_styleUnit","_styleStart","_styleFunc","timeCreationDragstart","timeCreationDrag","timeCreationClick","MIN30","timeElement","bottomLabel","_getUnitData","viewOpt","todayStart","todayEnd","_limitStyleData","unitData","_getStyleDataFunc","getStyleData","gridTimeY","styleFunc","styleData","heightOfHalfHour","endStyle","startStyle","_guide","TimeMoveGuide","_getTimeView","targetModelID","currentView","scheduleDuration","nearestRange","timeDiff","dateDiff","timeMove","_guideLayer","_model","_lastDrag","_container","_getTopFunc","_startGridY","_startTopPixel","timeMoveDragstart","timeMoveDrag","timeMoveDragend","timeMoveClick","_resetGuideLayer","bottomLimit","guideHeight","gridYOffset","gridYOffsetPixel","TimeResizeGuide","startScheduleData","timeResize","_originScheduleElement","_startHeightPixel","timeResizeDragstart","timeResizeDrag","timeResizeDragend","timeResizeClick","originElement","guideTop","toggleChildView","prefix","header","footer","WeekdayInMonth","_getMonthCalendar","renderMonthStr","_renderChildren","heightPercent","gridOption","weekdayViewContainer","daynameViewModel","daynameModel","_viewModel","moreLayerSize","OUT_PADDING","moreLayer","_getRenderPosition","weekItem","containerSize","optMoreLayerSize","parentElement","lastElementChild","debounce","setIsOtherMonthFlag","dateObj","baseTmpl","scheduleTmpl","_getRenderLimitIndex","count","gridFooterHeight","contentStr","getElSize","postfix","getElLeft","getElWidth","equal","oper","hhmm","common-width","grid-left","grid-width","time-scheduleBlock","month-scheduleBlock","blockHeight","paddingTop","divide","milestone-tmpl","milestoneTitle-tmpl","task-tmpl","taskTitle-tmpl","alldayTitle-tmpl","alldayCollapseBtnTitle-tmpl","allday-tmpl","time-tmpl","monthMoreTitleDate-tmpl","monthMoreClose-tmpl","monthGridHeader-tmpl","monthGridHeaderExceed-tmpl","monthGridFooter-tmpl","monthGridFooterExceed-tmpl","weekDayname-tmpl","dayName","monthDayname-tmpl","weekGridFooterExceed-tmpl","alldayViewType","weekdayViewModel","daynameTmpl","_getBaseViewModel","ITEM_HEIGHT","LIST_PADDING_TOP","viewModelSchedules","Time","pending","defaultMarginBottom","timeTmpl","_parseDateGroup","getScheduleViewBound","offsetStart","baseMS","baseHeight","baseWidth","baseLeft","columnIndex","leftPercents","viewBound","getHoursLabels","hasHourMarker","nowMinutes","nowHours","hoursRange","nowAroundHours","safari","_autoScroll","intervalID","timerID","_scrolled","mainTmpl","HOURMARKER_REFRESH_INTERVAL","SIXTY_SECONDS","clearTimeout","hourmarker","_getTopPercentByTime","topPercent","maxMilliseconds","hmsMilliseconds","_getHourmarkerViewModel","currentHours","childOption","child","scheduleLen","_hourLabels","refreshHourmarker","todaymarker","onTick","offsetTop","scrollAmount","scrollBy","scrollFn","parseRangeDateString","dateString","_getRenderDateRange"],"mappings":";;;;;;CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,qBACA,kBAAAC,gBAAAC,IACAD,QAAA,oBAAAJ,GACA,gBAAAC,SACAA,QAAA,SAAAD,EAAAG,QAAA,sBAEAJ,EAAA,IAAAA,EAAA,QAAiCA,EAAA,aAAAC,EAAAD,EAAA,KAAAA,EAAA,YAChCO,KAAA,SAAAC,GACD,MCMgB,UAAUC,GCZ1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAT,OAGA,IAAAC,GAAAS,EAAAD,IACAT,WACAW,GAAAF,EACA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AA,GAAAtC,GAAAuE,OAAAsyB,GAKA,OAHAx0B,GAAAiD,QAAAjD,EAAAzB,UAAA,GACA0B,EAAAgD,QAAAhD,EAAA1B,UAAA,IAGAyB,QACAC,QAIAnM,EAAAsW,aAAApC,MAAA66B,GAEArwC,EAAAD,QAAAswC","file":"tui-calendar.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"tui-code-snippet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"tui-code-snippet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Calendar\"] = factory(require(\"tui-code-snippet\"));\n\telse\n\t\troot[\"tui\"] = root[\"tui\"] || {}, root[\"tui\"][\"Calendar\"] = factory(root[\"tui\"][\"util\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","/*!\n * tui-calendar.min\n * @version 0.9.3 | Thu Mar 29 2018\n * @author NHNEnt FE Development Lab \n * @license undefined\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"tui-code-snippet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"tui-code-snippet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Calendar\"] = factory(require(\"tui-code-snippet\"));\n\telse\n\t\troot[\"tui\"] = root[\"tui\"] || {}, root[\"tui\"][\"Calendar\"] = factory((root[\"tui\"] && root[\"tui\"][\"util\"]));\n})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/dist\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview The entry file of fullcalendar\n\t * @author NHN Ent. FE Development Team\n\t */\n\t\n\t'use strict';\n\t\n\t__webpack_require__(31);\n\t__webpack_require__(99);\n\t\n\tmodule.exports = __webpack_require__(69);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n\t/**\n\t * @fileoverview Utility modules for manipulate DOM elements.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar domevent = __webpack_require__(9);\n\tvar Collection = __webpack_require__(12);\n\tvar util = __webpack_require__(1);\n\t\n\tvar posKey = '_pos',\n\t domutil;\n\t\n\tvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\t\n\t/**\n\t * Trim leading, trailing whitespace\n\t * @param {string} str - string to trim\n\t * @returns {string} trimmed string\n\t */\n\tfunction trim(str) {\n\t return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n\t}\n\t\n\tdomutil = {\n\t /**\n\t * Create DOM element and return it.\n\t * @param {string} tagName Tag name to append.\n\t * @param {HTMLElement} [container] HTML element will be parent to created element.\n\t * if not supplied, will use **document.body**\n\t * @param {string} [className] Design class names to appling created element.\n\t * @returns {HTMLElement} HTML element created.\n\t */\n\t appendHTMLElement: function(tagName, container, className) {\n\t var el;\n\t\n\t className = className || '';\n\t\n\t el = document.createElement(tagName);\n\t el.className = className;\n\t\n\t if (container) {\n\t container.appendChild(el);\n\t } else {\n\t document.body.appendChild(el);\n\t }\n\t\n\t return el;\n\t },\n\t\n\t /**\n\t * Remove element from parent node.\n\t * @param {HTMLElement} el - element to remove.\n\t */\n\t remove: function(el) {\n\t if (el && el.parentNode) {\n\t el.parentNode.removeChild(el);\n\t }\n\t },\n\t\n\t /**\n\t * Get element by id\n\t * @param {string} id element id attribute\n\t * @returns {HTMLElement} element\n\t */\n\t get: function(id) {\n\t return document.getElementById(id);\n\t },\n\t\n\t /**\n\t * Check supplied element is matched selector.\n\t * @param {HTMLElement} el - element to check\n\t * @param {string} selector - selector string to check\n\t * @returns {boolean} match?\n\t */\n\t _matcher: function(el, selector) {\n\t var cssClassSelector = /^\\./,\n\t idSelector = /^#/;\n\t\n\t if (cssClassSelector.test(selector)) {\n\t return domutil.hasClass(el, selector.replace('.', ''));\n\t }\n\t if (idSelector.test(selector)) {\n\t return el.id === selector.replace('#', '');\n\t }\n\t\n\t return el.nodeName.toLowerCase() === selector.toLowerCase();\n\t },\n\t\n\t /**\n\t * Find DOM element by specific selectors.\n\t * below three selector only supported.\n\t *\n\t * 1. css selector\n\t * 2. id selector\n\t * 3. nodeName selector\n\t * @param {string} selector selector\n\t * @param {(HTMLElement|string)} [root] You can assign root element to find\n\t * if not supplied, document.body will use.\n\t * @param {boolean|function} [multiple=false] - set true then return all\n\t * elements that meet condition, if set function then use it filter function.\n\t * @returns {HTMLElement} HTML element finded.\n\t */\n\t find: function(selector, root, multiple) {\n\t var result = [],\n\t found = false,\n\t isFirst = util.isUndefined(multiple) || multiple === false,\n\t isFilter = util.isFunction(multiple);\n\t\n\t if (util.isString(root)) {\n\t root = domutil.get(root);\n\t }\n\t\n\t root = root || window.document.body;\n\t\n\t /**\n\t * Function for recursive find specific node\n\t * @param {HTMLElement} el - element to search\n\t * @param {string} selector - selector\n\t */\n\t function recurse(el, selector) {\n\t var childNodes = el.childNodes,\n\t i = 0,\n\t len = childNodes.length,\n\t cursor;\n\t\n\t for (; i < len; i += 1) {\n\t cursor = childNodes[i];\n\t\n\t if (cursor.nodeName === '#text') {\n\t continue;\n\t }\n\t\n\t if (domutil._matcher(cursor, selector)) {\n\t if ((isFilter && multiple(cursor)) || !isFilter) {\n\t result.push(cursor);\n\t }\n\t\n\t if (isFirst) {\n\t found = true;\n\t break;\n\t }\n\t } else if (cursor.childNodes.length > 0) {\n\t recurse(cursor, selector);\n\t if (found) {\n\t break;\n\t }\n\t }\n\t }\n\t }\n\t\n\t recurse(root, selector);\n\t\n\t return isFirst ? (result[0] || null) : result;\n\t },\n\t\n\t /**\n\t * Find parent element recursively.\n\t * @param {HTMLElement} el - base element to start find.\n\t * @param {string} selector - selector string for find\n\t * @param {boolean} excludeEl - exclude the base element to find\n\t * @returns {HTMLElement} - element finded or null.\n\t */\n\t closest: function(el, selector, excludeEl) {\n\t var parent = el.parentNode;\n\t\n\t if (!excludeEl && domutil._matcher(el, selector)) {\n\t return el;\n\t }\n\t\n\t while (parent && parent !== window.document.body) {\n\t if (domutil._matcher(parent, selector)) {\n\t return parent;\n\t }\n\t\n\t parent = parent.parentNode;\n\t }\n\t\n\t return null;\n\t },\n\t\n\t /**\n\t * Return texts inside element.\n\t * @param {HTMLElement} el target element\n\t * @returns {string} text inside node\n\t */\n\t text: function(el) {\n\t var ret = '',\n\t i = 0,\n\t nodeType = el.nodeType;\n\t\n\t if (nodeType) {\n\t if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n\t // nodes that available contain other nodes\n\t if (typeof el.textContent === 'string') {\n\t return el.textContent;\n\t }\n\t\n\t for (el = el.firstChild; el; el = el.nextSibling) {\n\t ret += domutil.text(el);\n\t }\n\t } else if (nodeType === 3 || nodeType === 4) {\n\t // TEXT, CDATA SECTION\n\t return el.nodeValue;\n\t }\n\t } else {\n\t for (; el[i]; i += 1) {\n\t ret += domutil.text(el[i]);\n\t }\n\t }\n\t\n\t return ret;\n\t },\n\t\n\t /**\n\t * Set data attribute to target element\n\t * @param {HTMLElement} el - element to set data attribute\n\t * @param {string} key - key\n\t * @param {string|number} data - data value\n\t */\n\t setData: function(el, key, data) {\n\t if ('dataset' in el) {\n\t el.dataset[key] = data;\n\t\n\t return;\n\t }\n\t\n\t el.setAttribute('data-' + key, data);\n\t },\n\t\n\t /**\n\t * Get data value from data-attribute\n\t * @param {HTMLElement} el - target element\n\t * @param {string} key - key\n\t * @returns {string} value\n\t */\n\t getData: function(el, key) {\n\t if ('dataset' in el) {\n\t return el.dataset[key];\n\t }\n\t\n\t return el.getAttribute('data-' + key);\n\t },\n\t\n\t /**\n\t * Check element has specific design class name.\n\t * @param {HTMLElement} el target element\n\t * @param {string} name css class\n\t * @returns {boolean} return true when element has that css class name\n\t */\n\t hasClass: function(el, name) {\n\t var className;\n\t\n\t if (!util.isUndefined(el.classList)) {\n\t return el.classList.contains(name);\n\t }\n\t\n\t className = domutil.getClass(el);\n\t\n\t return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n\t },\n\t\n\t /**\n\t * Add design class to HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {string} name css class name\n\t */\n\t addClass: function(el, name) {\n\t var className;\n\t\n\t if (!util.isUndefined(el.classList)) {\n\t util.forEachArray(name.split(' '), function(value) {\n\t el.classList.add(value);\n\t });\n\t } else if (!domutil.hasClass(el, name)) {\n\t className = domutil.getClass(el);\n\t domutil.setClass(el, (className ? className + ' ' : '') + name);\n\t }\n\t },\n\t\n\t /**\n\t *\n\t * Overwrite design class to HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {string} name css class name\n\t */\n\t setClass: function(el, name) {\n\t if (util.isUndefined(el.className.baseVal)) {\n\t el.className = name;\n\t } else {\n\t el.className.baseVal = name;\n\t }\n\t },\n\t\n\t /**\n\t * Element에 cssClass속성을 제거하는 메서드\n\t * Remove specific design class from HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {string} name class name to remove\n\t */\n\t removeClass: function(el, name) {\n\t var removed = '';\n\t\n\t if (!util.isUndefined(el.classList)) {\n\t el.classList.remove(name);\n\t } else {\n\t removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n\t domutil.setClass(el, trim(removed));\n\t }\n\t },\n\t\n\t /**\n\t * Get HTML element's design classes.\n\t * @param {HTMLElement} el target element\n\t * @returns {string} element css class name\n\t */\n\t getClass: function(el) {\n\t if (!el || !el.className) {\n\t return '';\n\t }\n\t\n\t return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n\t },\n\t\n\t /**\n\t * Get specific CSS style value from HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {string} style css attribute name\n\t * @returns {(string|null)} css style value\n\t */\n\t getStyle: function(el, style) {\n\t var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n\t css;\n\t\n\t if ((!value || value === 'auto') && document.defaultView) {\n\t css = document.defaultView.getComputedStyle(el, null);\n\t value = css ? css[style] : null;\n\t }\n\t\n\t return value === 'auto' ? null : value;\n\t },\n\t\n\t /**\n\t * get element's computed style values.\n\t *\n\t * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n\t * @param {HTMLElement} el - element want to get style.\n\t * @returns {object} virtual CSSStyleDeclaration object.\n\t */\n\t getComputedStyle: function(el) {\n\t var defaultView = document.defaultView;\n\t\n\t if (!defaultView || !defaultView.getComputedStyle) {\n\t return {\n\t getPropertyValue: function(prop) {\n\t /* eslint-disable no-useless-escape */\n\t var re = /(\\-([a-z]){1})/g;\n\t if (prop === 'float') {\n\t prop = 'styleFloat';\n\t }\n\t\n\t if (re.test(prop)) {\n\t prop = prop.replace(re, function() {\n\t return arguments[2].toUpperCase();\n\t });\n\t }\n\t\n\t return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n\t }\n\t };\n\t }\n\t\n\t return document.defaultView.getComputedStyle(el);\n\t },\n\t\n\t /**\n\t * Set position CSS style.\n\t * @param {HTMLElement} el target element\n\t * @param {number} [x=0] left pixel value.\n\t * @param {number} [y=0] top pixel value.\n\t */\n\t setPosition: function(el, x, y) {\n\t x = util.isUndefined(x) ? 0 : x;\n\t y = util.isUndefined(y) ? 0 : y;\n\t\n\t el[posKey] = [x, y];\n\t\n\t el.style.left = util.isNumber(x) ? (x + 'px') : x;\n\t el.style.top = util.isNumber(y) ? (y + 'px') : y;\n\t },\n\t\n\t /**\n\t * Set position CSS style with left, top, right, bottom\n\t * @param {HTMLElement} el target element\n\t * @param {object} ltrb object of left, top, right, bottom\n\t * @param {number} [ltrb.left] left pixel value.\n\t * @param {number} [ltrb.top] top pixel value.\n\t * @param {number} [ltrb.right] right pixel value.\n\t * @param {number} [ltrb.bottom] bottom pixel value.\n\t */\n\t setLTRB: function(el, ltrb) {\n\t var props = ['left', 'top', 'right', 'bottom'];\n\t var value;\n\t props.forEach(function(prop) {\n\t value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n\t el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n\t });\n\t },\n\t\n\t /**\n\t * Get position from HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {boolean} [clear=false] clear cache before calculating position.\n\t * @returns {number[]} point\n\t */\n\t getPosition: function(el, clear) {\n\t var left,\n\t top,\n\t bound;\n\t\n\t if (clear) {\n\t el[posKey] = null;\n\t }\n\t\n\t if (el[posKey]) {\n\t return el[posKey];\n\t }\n\t\n\t left = 0;\n\t top = 0;\n\t\n\t if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n\t 'getBoundingClientRect' in el) {\n\t // 엘리먼트의 left또는 top이 'auto'일 때 수단\n\t bound = el.getBoundingClientRect();\n\t\n\t left = bound.left;\n\t top = bound.top;\n\t } else {\n\t left = parseFloat(el.style.left || 0);\n\t top = parseFloat(el.style.top || 0);\n\t }\n\t\n\t return [left, top];\n\t },\n\t\n\t /**\n\t * Return element's size\n\t * @param {HTMLElement} el target element\n\t * @returns {number[]} width, height\n\t */\n\t getSize: function(el) {\n\t var bound,\n\t width = domutil.getStyle(el, 'width'),\n\t height = domutil.getStyle(el, 'height');\n\t\n\t if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n\t util.isNull(width) || util.isNull(height)) &&\n\t 'getBoundingClientRect' in el) {\n\t bound = el.getBoundingClientRect();\n\t width = bound.width || el.offsetWidth;\n\t height = bound.height || el.offsetHeight;\n\t } else {\n\t width = parseFloat(width || 0);\n\t height = parseFloat(height || 0);\n\t }\n\t\n\t return [width, height];\n\t },\n\t\n\t /**\n\t * Fallback of getBoundingClientRect\n\t * @param {HTMLElement} el - element\n\t * @returns {object} rect\n\t */\n\t getBCRect: function(el) {\n\t var rect = el.getBoundingClientRect();\n\t\n\t rect = util.extend({\n\t width: el.offsetWidth,\n\t height: el.offsetHeight\n\t }, rect);\n\t\n\t return rect;\n\t },\n\t\n\t /**\n\t * Check specific CSS style is available.\n\t * @param {array} props property name to testing\n\t * @returns {(string|boolean)} return true when property is available\n\t * @example\n\t * var props = ['transform', '-webkit-transform'];\n\t * domutil.testProp(props); // 'transform'\n\t */\n\t testProp: function(props) {\n\t var style = document.documentElement.style,\n\t i = 0,\n\t len = props.length;\n\t\n\t for (; i < len; i += 1) {\n\t if (props[i] in style) {\n\t return props[i];\n\t }\n\t }\n\t\n\t return false;\n\t },\n\t\n\t /**\n\t * Get form data\n\t * @param {HTMLFormElement} formElement - form element to extract data\n\t * @returns {object} form data\n\t */\n\t getFormData: function(formElement) {\n\t var groupedByName = new Collection(function() {\n\t return this.length;\n\t }),\n\t noDisabledFilter = function(el) {\n\t return !el.disabled;\n\t },\n\t output = {};\n\t\n\t groupedByName.add.apply(\n\t groupedByName,\n\t domutil.find('input', formElement, noDisabledFilter)\n\t .concat(domutil.find('select', formElement, noDisabledFilter))\n\t .concat(domutil.find('textarea', formElement, noDisabledFilter))\n\t );\n\t\n\t groupedByName = groupedByName.groupBy(function(el) {\n\t return (el && el.getAttribute('name')) || '_other';\n\t });\n\t\n\t util.forEach(groupedByName, function(elements, name) {\n\t if (name === '_other') {\n\t return;\n\t }\n\t\n\t elements.each(function(el) {\n\t var nodeName = el.nodeName.toLowerCase(),\n\t type = el.type,\n\t result = [];\n\t\n\t if (type === 'radio') {\n\t result = [elements.find(function(el) {\n\t return el.checked;\n\t }).toArray().pop()];\n\t } else if (type === 'checkbox') {\n\t result = elements.find(function(el) {\n\t return el.checked;\n\t }).toArray();\n\t } else if (nodeName === 'select') {\n\t elements.find(function(el) {\n\t return !!el.childNodes.length;\n\t }).each(function(el) {\n\t result = result.concat(\n\t domutil.find('option', el, function(opt) {\n\t return opt.selected;\n\t })\n\t );\n\t });\n\t } else {\n\t result = elements.find(function(el) {\n\t return el.value !== '';\n\t }).toArray();\n\t }\n\t\n\t result = util.map(result, function(el) {\n\t return el.value;\n\t });\n\t\n\t if (!result.length) {\n\t result = '';\n\t } else if (result.length === 1) {\n\t result = result[0];\n\t }\n\t\n\t output[name] = result;\n\t });\n\t });\n\t\n\t return output;\n\t }\n\t};\n\t\n\t/*eslint-disable*/\n\tvar userSelectProperty = domutil.testProp([\n\t 'userSelect',\n\t 'WebkitUserSelect',\n\t 'OUserSelect',\n\t 'MozUserSelect',\n\t 'msUserSelect'\n\t]);\n\tvar supportSelectStart = 'onselectstart' in document;\n\tvar prevSelectStyle = '';\n\t/* eslint-enable*/\n\t\n\t/**\n\t * Disable browser's text selection behaviors.\n\t * @method\n\t */\n\tdomutil.disableTextSelection = (function() {\n\t if (supportSelectStart) {\n\t return function(dom) {\n\t domevent.on(dom, 'selectstart', domevent.preventDefault);\n\t };\n\t }\n\t\n\t return function(dom) {\n\t var style = dom.style;\n\t prevSelectStyle = style[userSelectProperty];\n\t style[userSelectProperty] = 'none';\n\t };\n\t})();\n\t\n\t/**\n\t * Enable browser's text selection behaviors.\n\t * @method\n\t */\n\tdomutil.enableTextSelection = (function() {\n\t if (supportSelectStart) {\n\t return function() {\n\t domevent.off(window, 'selectstart', domevent.preventDefault);\n\t };\n\t }\n\t\n\t return function() {\n\t document.documentElement.style[userSelectProperty] = prevSelectStyle;\n\t };\n\t})();\n\t\n\t/**\n\t * Disable browser's image drag behaviors.\n\t */\n\tdomutil.disableImageDrag = function() {\n\t domevent.on(window, 'dragstart', domevent.preventDefault);\n\t};\n\t\n\t/**\n\t * Enable browser's image drag behaviors.\n\t */\n\tdomutil.enableImageDrag = function() {\n\t domevent.off(window, 'dragstart', domevent.preventDefault);\n\t};\n\t\n\tmodule.exports = domutil;\n\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar cssPrefix = 'tui-full-calendar-',\n\t alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n\t alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n\t timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\t\n\tvar config = {\n\t throwError: function(msg) {\n\t alert(msg);\n\t },\n\t\n\t cssPrefix: cssPrefix,\n\t\n\t classname: function(str) {\n\t str = str || '';\n\t\n\t if (str.charAt(0) === '.') {\n\t return '.' + config.cssPrefix + str.slice(1);\n\t }\n\t\n\t return config.cssPrefix + str;\n\t },\n\t\n\t allday: {\n\t getViewIDRegExp: alldayGetViewID,\n\t checkCondRegExp: alldayCheckPermission\n\t },\n\t\n\t time: {\n\t getViewIDRegExp: timeGetViewID\n\t }\n\t};\n\t\n\tmodule.exports = config;\n\t\n\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview datetime utility module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar TZDate = __webpack_require__(5).Date,\n\t dw = __webpack_require__(15);\n\tvar util = __webpack_require__(1);\n\t/* eslint-disable no-useless-escape */\n\tvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\n\tvar datetime, tokenFunc;\n\t\n\tvar memo = {\n\t millisecondsTo: {},\n\t millisecondsFrom: {}\n\t};\n\t\n\ttokenFunc = {\n\t /**\n\t * @param {TZDate} date date object.\n\t * @returns {string} YYYYMMDD\n\t */\n\t 'YYYYMMDD': function(date) {\n\t return [\n\t date.getFullYear(),\n\t datetime.leadingZero(date.getMonth() + 1, 2),\n\t datetime.leadingZero(date.getDate(), 2)\n\t ].join('');\n\t },\n\t /**\n\t * @param {TZDate} date date object\n\t * @returns {string} four digit year number\n\t */\n\t 'YYYY': function(date) {\n\t return String(date.getFullYear());\n\t },\n\t\n\t /**\n\t * @param {TZDate} date date object\n\t * @returns {string} two digit month number\n\t */\n\t 'MM': function(date) {\n\t return datetime.leadingZero(date.getMonth() + 1, 2);\n\t },\n\t\n\t /**\n\t * @param {TZDate} date date object\n\t * @returns {string} two digit date number\n\t */\n\t 'DD': function(date) {\n\t return datetime.leadingZero(date.getDate(), 2);\n\t },\n\t\n\t /**\n\t * @param {TZDate} date date object\n\t * @returns {string} HH:mm\n\t */\n\t 'HH:mm': function(date) {\n\t var hour = date.getHours(),\n\t minutes = date.getMinutes();\n\t\n\t return datetime.leadingZero(hour, 2) + ':' +\n\t datetime.leadingZero(minutes, 2);\n\t }\n\t};\n\t\n\tdatetime = {\n\t /**\n\t * The number of milliseconds one day.\n\t * @type {number}\n\t */\n\t MILLISECONDS_PER_DAY: 86400000,\n\t\n\t /**\n\t * The number of milliseconds one hour.\n\t * @type {number}\n\t */\n\t MILLISECONDS_PER_HOUR: 3600000,\n\t\n\t /**\n\t * The number of milliseconds one minutes.\n\t * @type {number}\n\t */\n\t MILLISECONDS_PER_MINUTES: 60000,\n\t\n\t /**\n\t * convert milliseconds\n\t * @param {string} type - type of value.\n\t * @param {number} value - value to convert.\n\t * @param {function} iteratee - iteratee function to use reduce.\n\t * @returns {number} converted value.\n\t */\n\t _convMilliseconds: function(type, value, iteratee) {\n\t var conv = [24, 60, 60, 1000],\n\t index = {\n\t day: 0,\n\t hour: 1,\n\t minutes: 2,\n\t seconds: 3\n\t };\n\t\n\t if (!(type in index) || global.isNaN(value)) {\n\t return false;\n\t }\n\t\n\t return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n\t },\n\t\n\t /**\n\t * Convert milliseconds value to other type\n\t * @param {type} type convert to type want to. support \"day\", \"hour\",\n\t * \"minutes\", \"seconds\" only.\n\t * @param {value} value - value to convert.\n\t * @returns {number} converted value.\n\t */\n\t millisecondsTo: function(type, value) {\n\t var cache = memo.millisecondsTo,\n\t key = type + value;\n\t\n\t if (cache[key]) {\n\t return cache[key];\n\t }\n\t\n\t cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n\t return m / v;\n\t });\n\t\n\t return cache[key];\n\t },\n\t\n\t /**\n\t * Convert value to milliseconds\n\t * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n\t * @param {value} value - value to convert.\n\t * @returns {number} converted value.\n\t */\n\t millisecondsFrom: function(type, value) {\n\t var cache = memo.millisecondsFrom,\n\t key = type + value;\n\t\n\t if (cache[key]) {\n\t return cache[key];\n\t }\n\t\n\t cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n\t return m * v;\n\t });\n\t\n\t return cache[key];\n\t },\n\t\n\t /**\n\t * Make date array from supplied paramters.\n\t * @param {TZDate} start Start date.\n\t * @param {TZDate} end End date.\n\t * @param {number} step The number of milliseconds to use increment.\n\t * @returns {array} Date array.\n\t */\n\t range: function(start, end, step) {\n\t var startTime = start.getTime();\n\t var endTime = end.getTime();\n\t var cursor = startTime;\n\t var date = dw(startTime);\n\t var result = [];\n\t\n\t while (cursor <= endTime && endTime > date.d.getTime()) {\n\t result.push(new TZDate(date.d));\n\t cursor = cursor + step;\n\t date.addDate(1);\n\t }\n\t\n\t return result;\n\t },\n\t\n\t /**\n\t * Clone supplied date.\n\t * @param {TZDate} date date object to clone.\n\t * @returns {TZDate} Cloned date object\n\t */\n\t clone: function(date) {\n\t return new TZDate(date.getTime());\n\t },\n\t\n\t /**\n\t * Compare two dates.\n\t *\n\t * when first date is latest then seconds then return -1.\n\t *\n\t * return +1 reverse, and return 0 is same.\n\t * @param {TZDate} d1 Date object to compare.\n\t * @param {TZDate} d2 Date object to compare.\n\t * @returns {number} result of compare\n\t */\n\t compare: function(d1, d2) {\n\t var _d1 = d1.getTime(),\n\t _d2 = d2.getTime();\n\t\n\t if (_d1 < _d2) {\n\t return -1;\n\t }\n\t if (_d1 > _d2) {\n\t return 1;\n\t }\n\t\n\t return 0;\n\t },\n\t\n\t /**\n\t * @param {TZDate} d1 - date one\n\t * @param {TZDate} d2 - date two\n\t * @returns {boolean} is two date are same year, month?\n\t */\n\t isSameMonth: function(d1, d2) {\n\t return (d1.getFullYear() === d2.getFullYear() &&\n\t d1.getMonth() === d2.getMonth());\n\t },\n\t\n\t /**\n\t * @param {TZDate} d1 - date one\n\t * @param {TZDate} d2 - date two\n\t * @returns {boolean} is two date are same year, month, date?\n\t */\n\t isSameDate: function(d1, d2) {\n\t var sameMonth = datetime.isSameMonth(d1, d2);\n\t\n\t return sameMonth && (d1.getDate() === d2.getDate());\n\t },\n\t\n\t /**\n\t * Check supplied parameter is valid date object.\n\t * @param {*} d Object to validate.\n\t * @returns {boolean} return true when parameter is valid date object.\n\t */\n\t isValid: function(d) {\n\t if (d instanceof TZDate) {\n\t return !window.isNaN(d.getTime());\n\t }\n\t\n\t return false;\n\t },\n\t\n\t /**\n\t * convert non local date to UTC date.\n\t * @param {TZDate} d Date to convert UTC.\n\t * @returns {TZDate} The UTC Date.\n\t */\n\t toUTC: function(d) {\n\t var l = d.getTime(),\n\t offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\t\n\t return new TZDate(l + offset);\n\t },\n\t\n\t /**\n\t * pad left zero characters.\n\t * @param {number} number number value to pad zero.\n\t * @param {number} length pad length to want.\n\t * @returns {string} padded string.\n\t */\n\t leadingZero: function(number, length) {\n\t var zero = '',\n\t i = 0;\n\t\n\t if (String(number).length > length) {\n\t return String(number);\n\t }\n\t\n\t for (; i < (length - 1); i += 1) {\n\t zero += '0';\n\t }\n\t\n\t return (zero + number).slice(length * -1);\n\t },\n\t\n\t /**\n\t * Convert date string to date object.\n\t *\n\t * Only listed below formats avaliable.\n\t *\n\t * - YYYYMMDD\n\t * - YYYY/MM/DD\n\t * - YYYY-MM-DD\n\t * - YYYY/MM/DD HH:mm:SS\n\t * - YYYY-MM-DD HH:mm:SS\n\t *\n\t * @param {string} str Formatted string.\n\t * @param {number} [fixMonth=-1] - number for fix month calculating.\n\t * @returns {(Date|boolean)} Converted Date object. when supplied str is not available then return false.\n\t */\n\t parse: function(str, fixMonth) {\n\t var separator,\n\t matches = str.match(dateFormatRx),\n\t ymd,\n\t hms;\n\t\n\t if (util.isUndefined(fixMonth)) {\n\t fixMonth = -1;\n\t }\n\t\n\t if (!matches) {\n\t return false;\n\t }\n\t\n\t if (str.length > 8) {\n\t // YYYY/MM/DD\n\t // YYYY-MM-DD\n\t // YYYY/MM/DD HH:mm:SS\n\t // YYYY-MM-DD HH:mm:SS\n\t separator = ~str.indexOf('/') ? '/' : '-';\n\t matches = matches.splice(1);\n\t\n\t ymd = matches[0].split(separator);\n\t hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n\t } else {\n\t // YYYYMMDD\n\t matches = matches[0];\n\t ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n\t hms = [0, 0, 0];\n\t }\n\t\n\t return new TZDate(\n\t Number(ymd[0]),\n\t Number(ymd[1]) + fixMonth,\n\t Number(ymd[2]),\n\t Number(hms[0]),\n\t Number(hms[1]),\n\t Number(hms[2])\n\t );\n\t },\n\t\n\t /**\n\t * Return date object from Date.\n\t * @param {TZDate} date date\n\t * @returns {object} Date object.\n\t */\n\t raw: function(date) {\n\t return {\n\t y: date.getFullYear(),\n\t M: date.getMonth(),\n\t d: date.getDate(),\n\t h: date.getHours(),\n\t m: date.getMinutes(),\n\t s: date.getSeconds(),\n\t ms: date.getMilliseconds()\n\t };\n\t },\n\t\n\t /**\n\t * Return 00:00:00 supplied date.\n\t * @param {TZDate} date date.\n\t * @returns {TZDate} start date.\n\t */\n\t start: function(date) {\n\t var d = new TZDate(date.getTime());\n\t d.setHours(0, 0, 0, 0);\n\t\n\t return d;\n\t },\n\t\n\t /**\n\t * Return 23:59:59 supplied date.\n\t * @param {TZDate} date date.\n\t * @returns {TZDate} end date.\n\t */\n\t end: function(date) {\n\t var d = new TZDate(date.getTime());\n\t d.setHours(23, 59, 59, 0);\n\t\n\t return d;\n\t },\n\t\n\t /**\n\t * Return formatted string as basis of supplied string.\n\t *\n\t * Supported Token Lists.\n\t *\n\t * - YYYY => 1988\n\t * - MM => 01 ~ 12\n\t * - DD => 01 ~ 31\n\t * - YYYYMMDD => 19880925\n\t * @param {TZDate} date String want to formatted.\n\t * @param {string} format format str.\n\t * @returns {string} Formatted date string.\n\t */\n\t format: function(date, format) {\n\t var result = format;\n\t util.forEachOwnProperties(tokenFunc, function(converter, token) {\n\t result = result.replace(token, converter(date));\n\t });\n\t\n\t return result;\n\t },\n\t\n\t /**\n\t * Get start date of specific month\n\t * @param {TZDate} date - date to get start date\n\t * @returns {TZDate} start date of supplied month\n\t */\n\t startDateOfMonth: function(date) {\n\t var startDate = new TZDate(Number(date));\n\t\n\t startDate.setDate(1);\n\t startDate.setHours(0, 0, 0, 0);\n\t\n\t return startDate;\n\t },\n\t\n\t /**\n\t * Get end date of specific month\n\t * @param {TZDate} date - date to get end date\n\t * @returns {TZDate} end date of supplied month\n\t */\n\t endDateOfMonth: function(date) {\n\t var endDate = datetime.startDateOfMonth(date);\n\t\n\t endDate.setMonth(endDate.getMonth() + 1);\n\t endDate.setDate(endDate.getDate() - 1);\n\t endDate.setHours(23, 59, 59);\n\t\n\t return endDate;\n\t },\n\t\n\t /**\n\t * Return 2-dimensional array month calendar\n\t *\n\t * dates that different month with given date are negative values\n\t * @param {TZDate} month - date want to calculate month calendar\n\t * @param {object} options - options\n\t * @param {number} [options.startDayOfWeek=0] - start day of week\n\t * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n\t * @param {number} options.visibleWeeksCount visible weeks count\n\t * @param {boolean} options.workweek - only show work week\n\t * @param {function} [iteratee] - iteratee for customizing calendar object\n\t * @returns {Array.} calendar 2d array\n\t */\n\t arr2dCalendar: function(month, options, iteratee) {\n\t var weekArr,\n\t start, end,\n\t startIndex, endIndex,\n\t totalDate, afterDates,\n\t cursor, week,\n\t calendar = [],\n\t startDayOfWeek = options.startDayOfWeek,\n\t isAlways6Week = options.isAlways6Week,\n\t visibleWeeksCount = options.visibleWeeksCount,\n\t workweek = options.workweek;\n\t\n\t if (visibleWeeksCount) {\n\t start = new TZDate(month);\n\t end = dw(new TZDate(month));\n\t end.addDate(7 * (visibleWeeksCount - 1));\n\t end = end.d;\n\t } else {\n\t start = datetime.startDateOfMonth(month);\n\t end = datetime.endDateOfMonth(month);\n\t }\n\t\n\t // create day number array by startDayOfWeek number\n\t // 4 -> [4, 5, 6, 0, 1, 2, 3]\n\t // 2 -> [2, 3, 4, 5, 6, 0, 1]\n\t weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n\t startIndex = util.inArray(start.getDay(), weekArr);\n\t endIndex = util.inArray(end.getDay(), weekArr);\n\t // free dates after last date of this month\n\t afterDates = 7 - (endIndex + 1);\n\t\n\t if (visibleWeeksCount) {\n\t totalDate = 7 * visibleWeeksCount;\n\t } else {\n\t totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n\t }\n\t cursor = new TZDate(new TZDate(start).setDate(start.getDate() - startIndex));\n\t // iteratee all dates to render\n\t util.forEachArray(util.range(totalDate), function(i) {\n\t var date;\n\t\n\t if (!(i % 7)) {\n\t // group each date by week\n\t week = calendar[i / 7] = [];\n\t }\n\t\n\t date = new TZDate(cursor);\n\t date = iteratee ? iteratee(date) : date;\n\t if (!workweek || !datetime.isWeekend(date.getDay())) {\n\t week.push(date);\n\t }\n\t\n\t // add date\n\t cursor.setDate(cursor.getDate() + 1);\n\t });\n\t\n\t return calendar;\n\t },\n\t\n\t /**\n\t * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n\t *\n\t * @param {number} days - day length of week\n\t * @param {boolean} narrowWeekend - narrow weekend\n\t * @param {number} startDayOfWeek - start day of week\n\t * @param {boolean} workweek - only show work week\n\t * @returns {Array} day, left, width\n\t */\n\t getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n\t var limitDaysToApplyNarrowWeekend = 5;\n\t var uniformWidth = 100 / days;\n\t var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n\t var accumulatedWidth = 0;\n\t var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\t\n\t if (workweek) {\n\t dates = util.filter(dates, function(day) {\n\t return !datetime.isWeekend(day);\n\t });\n\t }\n\t\n\t narrowWeekend = workweek ? false : narrowWeekend;\n\t\n\t return util.map(dates, function(day) {\n\t var model;\n\t var width = narrowWeekend ? wideWidth : uniformWidth;\n\t if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n\t width = wideWidth / 2;\n\t }\n\t\n\t model = {\n\t day: day,\n\t width: width,\n\t left: accumulatedWidth\n\t };\n\t\n\t accumulatedWidth += width;\n\t\n\t return model;\n\t });\n\t },\n\t\n\t /**\n\t * Get that day is weekend\n\t * @param {number} day number\n\t * @returns {boolean} true if weekend or false\n\t */\n\t isWeekend: function(day) {\n\t return day === 0 || day === 6;\n\t }\n\t};\n\t\n\tmodule.exports = datetime;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @fileoverview timezone\n\t * @author NHN Ent. FE Development Lab \n\t */\n\t'use strict';\n\t\n\tvar MIN_TO_MS = 60 * 1000;\n\tvar customOffsetMs = getTimezoneOffset();\n\tvar timezoneOffsetCallback = null;\n\t\n\tvar getterMethods = [\n\t 'getDate',\n\t 'getDay',\n\t 'getFullYear',\n\t 'getHours',\n\t 'getMilliseconds',\n\t 'getMinutes',\n\t 'getMonth',\n\t 'getSeconds'\n\t];\n\t\n\tvar setterMethods = [\n\t 'setDate',\n\t 'setFullYear',\n\t 'setHours',\n\t 'setMilliseconds',\n\t 'setMinutes',\n\t 'setMonth',\n\t 'setSeconds'\n\t];\n\t\n\t/**\n\t * Get the timezone offset by timestampe\n\t * @param {number} timestamp - timestamp\n\t * @returns {number} timezone offset\n\t */\n\tfunction getTimezoneOffset(timestamp) {\n\t timestamp = timestamp || Date.now();\n\t\n\t return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n\t}\n\t\n\t/**\n\t * Get the custome timezone offset by timestampe\n\t * @param {number} timestamp - timestamp\n\t * @returns {number} timezone offset\n\t */\n\tfunction getCustomTimezoneOffset(timestamp) {\n\t if (timezoneOffsetCallback) {\n\t return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n\t }\n\t\n\t return customOffsetMs;\n\t}\n\t\n\t/**\n\t * Create a Date instance with multiple arguments\n\t * @param {Array} args - arguments\n\t * @returns {Date}\n\t */\n\tfunction createDateWithMultipleArgs(args) {\n\t var utc = Date.UTC.apply(null, args);\n\t\n\t return new Date(utc + getTimezoneOffset(utc));\n\t}\n\t\n\t/**\n\t * Create a Date instance with argument\n\t * @param {Date|TZDate|string|number} arg - arguments\n\t * @returns {Date}\n\t */\n\tfunction createDateWithSingleArg(arg) {\n\t var time;\n\t\n\t if (arg instanceof Date || arg instanceof TZDate) {\n\t time = arg.getTime();\n\t } else if ((typeof arg) === 'string') {\n\t time = Date.parse(arg);\n\t } else if ((typeof arg) === 'number') {\n\t time = arg;\n\t } else if (arg === null) {\n\t time = 0;\n\t } else {\n\t throw new Error('Invalid Type');\n\t }\n\t\n\t return new Date(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n\t}\n\t\n\t/**\n\t * Date Class\n\t */\n\tfunction TZDate() {\n\t var date;\n\t\n\t switch (arguments.length) {\n\t case 0:\n\t date = createDateWithSingleArg(Date.now());\n\t break;\n\t case 1:\n\t date = createDateWithSingleArg(arguments[0]);\n\t break;\n\t default:\n\t date = createDateWithMultipleArgs(arguments);\n\t }\n\t\n\t this._date = date;\n\t}\n\t\n\tTZDate.prototype.setTime = function(time) {\n\t return this._date.setTime(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n\t};\n\t\n\tTZDate.prototype.getTime = function() {\n\t var time = this._date.getTime();\n\t\n\t return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n\t};\n\t\n\tTZDate.prototype.valueOf = function() {\n\t return this.getTime();\n\t};\n\t\n\tgetterMethods.forEach(function(methodName) {\n\t TZDate.prototype[methodName] = function() {\n\t return this._date[methodName].apply(this._date, arguments);\n\t };\n\t});\n\t\n\tsetterMethods.forEach(function(methodName) {\n\t TZDate.prototype[methodName] = function() {\n\t this._date[methodName].apply(this._date, arguments);\n\t\n\t return this.getTime();\n\t };\n\t});\n\t\n\tmodule.exports = {\n\t Date: TZDate,\n\t\n\t /**\n\t * Set offset\n\t * @param {number} offset - timezone offset based on minutes\n\t */\n\t setOffset: function(offset) {\n\t customOffsetMs = offset * MIN_TO_MS;\n\t },\n\t\n\t /**\n\t * Set a callback function to get timezone offset by timestamp\n\t * @param {function} callback - callback function\n\t */\n\t setOffsetCallback: function(callback) {\n\t timezoneOffsetCallback = callback;\n\t },\n\t\n\t /**\n\t * (Use this method only for testing)\n\t * Reset system timezone and custom timezone\n\t */\n\t restoreOffset: function() {\n\t customOffsetMs = getTimezoneOffset();\n\t }\n\t};\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview common/general utilities.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar aps = Array.prototype.slice;\n\t\n\tvar domutil = __webpack_require__(2),\n\t Collection = __webpack_require__(12);\n\t\n\t/**\n\t * Default schedule id getter for collection\n\t * @param {Schedule} schedule - schedule instance\n\t * @returns {string} schedule id\n\t */\n\tfunction scheduleIDGetter(schedule) {\n\t return schedule.cid();\n\t}\n\t\n\tmodule.exports = {\n\t /**\n\t * @param {...*} initItems - items to add newly created collection.\n\t * @returns {Collection} new collection for schedule models.\n\t */\n\t createScheduleCollection: function(initItems) { // eslint-disable-line\n\t var collection = new Collection(scheduleIDGetter);\n\t\n\t if (arguments.length) {\n\t collection.add.apply(collection, arguments);\n\t }\n\t\n\t return collection;\n\t },\n\t\n\t /**\n\t * Get ratio value.\n\t *\n\t * a : b = y : X;\n\t *\n\t * =\n\t *\n\t * X = (b * y) / a;\n\t * @param {number} a - a\n\t * @param {number} b - b\n\t * @param {number} y - y\n\t * @returns {number} ratio value\n\t */\n\t ratio: function(a, b, y) {\n\t // a : b = y : x;\n\t return (b * y) / a;\n\t },\n\t\n\t /**\n\t * Find nearest value from supplied params.\n\t * @param {number} value - value to find.\n\t * @param {array} nearest - nearest array.\n\t * @returns {number} nearest value\n\t */\n\t nearest: function(value, nearest) {\n\t var diff = util.map(nearest, function(v) {\n\t return Math.abs(value - v);\n\t }),\n\t nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\t\n\t return nearest[nearestIndex];\n\t },\n\t\n\t /**\n\t * pick value from object then return utility object to treat it.\n\t * @param {object} obj - object to search supplied path property.\n\t * @param {...string} paths - rest parameter that string value to search property in object.\n\t * @returns {object} pick object.\n\t */\n\t pick2: function(obj, paths) { // eslint-disable-line\n\t var result = util.pick.apply(null, arguments),\n\t pick;\n\t\n\t pick = {\n\t /**\n\t * @returns {*} picked value.\n\t */\n\t val: function() {\n\t return result;\n\t },\n\t\n\t /**\n\t * invoke supplied function in picked object.\n\t *\n\t * the callback context is set picked object.\n\t * @param {string|function} fn - function to invoke in picked object.\n\t * @returns {*} result of invoke.\n\t */\n\t then: function(fn) {\n\t var args;\n\t\n\t if (!result) {\n\t return undefined; //eslint-disable-line\n\t }\n\t\n\t args = aps.call(arguments, 1);\n\t\n\t if (util.isString(fn)) {\n\t return (util.pick(result, fn) || function() {}).apply(result, args);\n\t }\n\t\n\t return fn.call(result, result);\n\t }\n\t };\n\t\n\t return pick;\n\t },\n\t\n\t /**\n\t * Mixin method.\n\t *\n\t * (extend methods except property name 'mixin')\n\t * @param {object} from - mixin object.\n\t * @param {object} to - object to mixin.\n\t */\n\t mixin: function(from, to) {\n\t util.extend(to.prototype, from);\n\t },\n\t\n\t /**\n\t * Limit supplied value base on `minArr`, `maxArr`\n\t * @param {number} value - value\n\t * @param {array} minArr - min\n\t * @param {array} maxArr - max\n\t * @returns {number} limited value\n\t */\n\t limit: function(value, minArr, maxArr) {\n\t var v = Math.max.apply(null, [value].concat(minArr));\n\t v = Math.min.apply(null, [v].concat(maxArr));\n\t\n\t return v;\n\t },\n\t\n\t stripTags: function(str) {\n\t return str.replace(/<([^>]+)>/ig, '');\n\t },\n\t\n\t /**\n\t * Get first value in 2-dimentional array.\n\t * @param {Array.} arr2d - 2-dimentional array\n\t * @returns {*} first value in 2d array\n\t */\n\t firstIn2dArray: function(arr2d) {\n\t return util.pick(arr2d, '0', '0');\n\t },\n\t\n\t /**\n\t * Get last value in 2-dimentional array.\n\t * @param {Array.} arr2d - 2-dimentional array\n\t * @returns {*} last value in 2d array\n\t */\n\t lastIn2dArray: function(arr2d) {\n\t var lastRow = arr2d.length - 1,\n\t lastCol = arr2d[lastRow].length - 1;\n\t\n\t return util.pick(arr2d, lastRow, lastCol);\n\t },\n\t\n\t /**\n\t * Set 'title' attribute for all element that has exceeded content in\n\t * container\n\t * @param {string} selector - CSS selector {@see domutil#find}\n\t * @param {HTMLElement} container - container element\n\t */\n\t setAutoEllipsis: function(selector, container) {\n\t util.forEach(domutil.find(selector, container, true), function(el) {\n\t if (el.offsetWidth < el.scrollWidth) {\n\t el.setAttribute('title', domutil.getData(el, 'title'));\n\t }\n\t });\n\t }\n\t};\n\t\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Create a simple path alias to allow browserify to resolve\n\t// the runtime on a supported path.\n\tmodule.exports = __webpack_require__(46)['default'];\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview The base class of views.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar domutil = __webpack_require__(2);\n\tvar Collection = __webpack_require__(12);\n\t\n\t/**\n\t * Base class of views.\n\t *\n\t * All views create own container element inside supplied container element.\n\t * @constructor\n\t * @param {HTMLElement} container Default container element for view.\n\t * you can use this element for this.container syntax.\n\t */\n\tfunction View(container) {\n\t var id = util.stamp(this);\n\t\n\t if (util.isUndefined(container)) {\n\t container = domutil.appendHTMLElement('div');\n\t }\n\t\n\t domutil.addClass(container, this.cssprefix(id));\n\t\n\t /**\n\t * unique id\n\t * @type {number}\n\t */\n\t this.id = id;\n\t\n\t /**\n\t * base element of view.\n\t * @type {HTMLDIVElement}\n\t */\n\t this.container = container;\n\t\n\t /*eslint-disable*/\n\t /**\n\t * child views.\n\t * @type {Collection}\n\t */\n\t this.children = new Collection(function(view) {\n\t return util.stamp(view);\n\t });\n\t /* eslint-enable*/\n\t\n\t /**\n\t * parent view instance.\n\t * @type {View}\n\t */\n\t this.parent = null;\n\t}\n\t\n\t/**\n\t * CSS classname prefix\n\t * @type {string}\n\t */\n\tView.prototype.cssPrefix = 'tui-view-';\n\t\n\t/**\n\t * Add child views.\n\t * @param {View} view The view instance to add.\n\t * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n\t */\n\tView.prototype.addChild = function(view, fn) {\n\t if (fn) {\n\t fn.call(view, this);\n\t }\n\t // add parent view\n\t view.parent = this;\n\t\n\t this.children.add(view);\n\t};\n\t\n\t/**\n\t * Remove added child view.\n\t * @param {(number|View)} id View id or instance itself to remove.\n\t * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n\t */\n\tView.prototype.removeChild = function(id, fn) {\n\t var view = util.isNumber(id) ? this.children.items[id] : id;\n\t\n\t id = util.stamp(view);\n\t\n\t if (fn) {\n\t fn.call(view, this);\n\t }\n\t\n\t this.children.remove(id);\n\t};\n\t\n\t/**\n\t * Render view recursively.\n\t */\n\tView.prototype.render = function() {\n\t this.children.each(function(childView) {\n\t childView.render();\n\t });\n\t};\n\t\n\t/**\n\t * Invoke function recursively.\n\t * @param {function} fn - function to invoke child view recursively\n\t * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n\t */\n\tView.prototype.recursive = function(fn, skipThis) {\n\t if (!util.isFunction(fn)) {\n\t return;\n\t }\n\t\n\t if (!skipThis) {\n\t fn(this);\n\t }\n\t\n\t this.children.each(function(childView) {\n\t childView.recursive(fn);\n\t });\n\t};\n\t\n\t/**\n\t * Resize view recursively to parent.\n\t */\n\tView.prototype.resize = function() {\n\t var args = Array.prototype.slice.call(arguments),\n\t parent = this.parent;\n\t\n\t while (parent) {\n\t if (util.isFunction(parent._onResize)) {\n\t parent._onResize.apply(parent, args);\n\t }\n\t\n\t parent = parent.parent;\n\t }\n\t};\n\t\n\t/**\n\t * Invoking method before destroying.\n\t */\n\tView.prototype._beforeDestroy = function() {};\n\t\n\t/**\n\t * Clear properties\n\t */\n\tView.prototype._destroy = function() {\n\t this._beforeDestroy();\n\t this.children.clear();\n\t this.container.innerHTML = '';\n\t\n\t this.id = this.parent = this.children = this.container = null;\n\t};\n\t\n\t/*eslint-disable*/\n\t/**\n\t * Destroy child view recursively.\n\t */\n\tView.prototype.destroy = function(isChildView) {\n\t this.children.each(function(childView) {\n\t childView.destroy(true);\n\t childView._destroy();\n\t });\n\t\n\t if (isChildView) {\n\t return;\n\t }\n\t\n\t this._destroy();\n\t};\n\t/* eslint-enable*/\n\t\n\t/**\n\t * Calculate view's container element bound.\n\t * @returns {object} The bound of container element.\n\t */\n\tView.prototype.getViewBound = function() {\n\t var container = this.container,\n\t position = domutil.getPosition(container),\n\t size = domutil.getSize(container);\n\t\n\t return {\n\t x: position[0],\n\t y: position[1],\n\t width: size[0],\n\t height: size[1]\n\t };\n\t};\n\t\n\t/**\n\t * Return view default CSS prefix\n\t * @param {string} [className] - if supplied then return prefix added class name\n\t * @returns {string} CSS prefix value\n\t */\n\tView.prototype.cssprefix = function(className) {\n\t return this.cssPrefix + (className || '');\n\t};\n\t\n\tutil.CustomEvents.mixin(View);\n\t\n\tmodule.exports = View;\n\t\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint complexity: 0 */\n\t/**\n\t * @fileoverview Utility module for handling DOM events.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar browser = util.browser,\n\t eventKey = '_evt',\n\t DRAG = {\n\t START: ['touchstart', 'mousedown'],\n\t END: {\n\t mousedown: 'mouseup',\n\t touchstart: 'touchend',\n\t pointerdown: 'touchend',\n\t MSPointerDown: 'touchend'\n\t },\n\t MOVE: {\n\t mousedown: 'mousemove',\n\t touchstart: 'touchmove',\n\t pointerdown: 'touchmove',\n\t MSPointerDown: 'touchmove'\n\t }\n\t };\n\t\n\tvar domevent = {\n\t /**\n\t * Bind dom events.\n\t * @param {HTMLElement} obj HTMLElement to bind events.\n\t * @param {(string|object)} types Space splitted events names or eventName:handler object.\n\t * @param {*} fn handler function or context for handler method.\n\t * @param {*} [context] context object for handler method.\n\t */\n\t on: function(obj, types, fn, context) {\n\t if (util.isString(types)) {\n\t util.forEach(types.split(' '), function(type) {\n\t domevent._on(obj, type, fn, context);\n\t });\n\t\n\t return;\n\t }\n\t\n\t util.forEachOwnProperties(types, function(handler, type) {\n\t domevent._on(obj, type, handler, fn);\n\t });\n\t },\n\t\n\t /**\n\t * DOM event binding.\n\t * @param {HTMLElement} obj HTMLElement to bind events.\n\t * @param {String} type The name of events.\n\t * @param {*} fn handler function\n\t * @param {*} [context] context object for handler method.\n\t * @private\n\t */\n\t _on: function(obj, type, fn, context) {\n\t var id,\n\t handler,\n\t originHandler;\n\t\n\t id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\t\n\t if (obj[eventKey] && obj[eventKey][id]) {\n\t return;\n\t }\n\t\n\t handler = function(e) {\n\t fn.call(context || obj, e || window.event);\n\t };\n\t\n\t originHandler = handler;\n\t\n\t if ('addEventListener' in obj) {\n\t if (type === 'mouseenter' || type === 'mouseleave') {\n\t handler = function(e) {\n\t e = e || window.event;\n\t if (!domevent._checkMouse(obj, e)) {\n\t return;\n\t }\n\t originHandler(e);\n\t };\n\t obj.addEventListener((type === 'mouseenter') ?\n\t 'mouseover' : 'mouseout', handler, false);\n\t } else {\n\t if (type === 'mousewheel') {\n\t obj.addEventListener('DOMMouseScroll', handler, false);\n\t }\n\t\n\t obj.addEventListener(type, handler, false);\n\t }\n\t } else if ('attachEvent' in obj) {\n\t obj.attachEvent('on' + type, handler);\n\t }\n\t\n\t obj[eventKey] = obj[eventKey] || {};\n\t obj[eventKey][id] = handler;\n\t },\n\t\n\t /**\n\t * Unbind DOM Event handler.\n\t * @param {HTMLElement} obj HTMLElement to unbind.\n\t * @param {(string|object)} types Space splitted events names or eventName:handler object.\n\t * @param {*} fn handler function or context for handler method.\n\t * @param {*} [context] context object for handler method.\n\t */\n\t off: function(obj, types, fn, context) {\n\t if (util.isString(types)) {\n\t util.forEach(types.split(' '), function(type) {\n\t domevent._off(obj, type, fn, context);\n\t });\n\t\n\t return;\n\t }\n\t\n\t util.forEachOwnProperties(types, function(handler, type) {\n\t domevent._off(obj, type, handler, fn);\n\t });\n\t },\n\t\n\t /**\n\t * Unbind DOM event handler.\n\t * @param {HTMLElement} obj HTMLElement to unbind.\n\t * @param {String} type The name of event to unbind.\n\t * @param {function()} fn Event handler that supplied when binding.\n\t * @param {*} context context object that supplied when binding.\n\t * @private\n\t */\n\t _off: function(obj, type, fn, context) {\n\t var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n\t handler = obj[eventKey] && obj[eventKey][id];\n\t\n\t if (!handler) {\n\t return;\n\t }\n\t\n\t if ('removeEventListener' in obj) {\n\t if (type === 'mouseenter' || type === 'mouseleave') {\n\t obj.removeEventListener((type === 'mouseenter') ?\n\t 'mouseover' : 'mouseout', handler, false);\n\t } else {\n\t if (type === 'mousewheel') {\n\t obj.removeEventListener('DOMMouseScroll', handler, false);\n\t }\n\t\n\t obj.removeEventListener(type, handler, false);\n\t }\n\t } else if ('detachEvent' in obj) {\n\t try {\n\t obj.detachEvent('on' + type, handler);\n\t } catch (e) {} //eslint-disable-line\n\t }\n\t\n\t delete obj[eventKey][id];\n\t\n\t if (util.keys(obj[eventKey]).length) {\n\t return;\n\t }\n\t\n\t // throw exception when deleting host object's property in below IE8\n\t if (util.browser.msie && util.browser.version < 9) {\n\t obj[eventKey] = null;\n\t\n\t return;\n\t }\n\t\n\t delete obj[eventKey];\n\t },\n\t\n\t /**\n\t * Bind DOM event. this event will unbind after invokes.\n\t * @param {HTMLElement} obj HTMLElement to bind events.\n\t * @param {(string|object)} types Space splitted events names or eventName:handler object.\n\t * @param {*} fn handler function or context for handler method.\n\t * @param {*} [context] context object for handler method.\n\t */\n\t once: function(obj, types, fn, context) {\n\t var self = this;\n\t\n\t if (util.isObject(types)) {\n\t util.forEachOwnProperties(types, function(handler, type) {\n\t domevent.once(obj, type, handler, fn);\n\t });\n\t\n\t return;\n\t }\n\t\n\t /**\n\t * Handler for temporary usage for once implementation\n\t */\n\t function onceHandler() {\n\t fn.apply(context || obj, arguments);\n\t self._off(obj, types, onceHandler, context);\n\t }\n\t\n\t domevent.on(obj, types, onceHandler, context);\n\t },\n\t\n\t /**\n\t * Cancel event bubbling.\n\t * @param {Event} e Event object.\n\t */\n\t stopPropagation: function(e) {\n\t if (e.stopPropagation) {\n\t e.stopPropagation();\n\t } else {\n\t e.cancelBubble = true;\n\t }\n\t },\n\t\n\t /**\n\t * Cancel browser default actions.\n\t * @param {Event} e Event object.\n\t */\n\t preventDefault: function(e) {\n\t if (e.preventDefault) {\n\t e.preventDefault();\n\t } else {\n\t e.returnValue = false;\n\t }\n\t },\n\t\n\t /**\n\t * Syntatic sugar of stopPropagation and preventDefault\n\t * @param {Event} e Event object.\n\t */\n\t stop: function(e) {\n\t domevent.preventDefault(e);\n\t domevent.stopPropagation(e);\n\t },\n\t\n\t /**\n\t * Stop scroll events.\n\t * @param {HTMLElement} el HTML element to prevent scroll.\n\t */\n\t disableScrollPropagation: function(el) {\n\t domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n\t },\n\t\n\t /**\n\t * Stop all events related with click.\n\t * @param {HTMLElement} el HTML element to prevent all event related with click.\n\t */\n\t disableClickPropagation: function(el) {\n\t domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n\t },\n\t\n\t /**\n\t * Get mouse position from mouse event.\n\t *\n\t * If supplied relatveElement parameter then return relative position based on element.\n\t * @param {Event} mouseEvent Mouse event object\n\t * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n\t * @returns {number[]} mouse position.\n\t */\n\t getMousePosition: function(mouseEvent, relativeElement) {\n\t var rect;\n\t\n\t if (!relativeElement) {\n\t return [mouseEvent.clientX, mouseEvent.clientY];\n\t }\n\t\n\t rect = relativeElement.getBoundingClientRect();\n\t\n\t return [\n\t mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n\t mouseEvent.clientY - rect.top - relativeElement.clientTop\n\t ];\n\t },\n\t\n\t /**\n\t * Normalize mouse wheel event that different each browsers.\n\t * @param {MouseEvent} e Mouse wheel event.\n\t * @returns {Number} delta\n\t */\n\t getWheelDelta: function(e) {\n\t var delta = 0;\n\t\n\t if (e.wheelDelta) {\n\t delta = e.wheelDelta / 120;\n\t }\n\t\n\t if (e.detail) {\n\t delta = -e.detail / 3;\n\t }\n\t\n\t return delta;\n\t },\n\t\n\t /**\n\t * prevent firing mouseleave event when mouse entered child elements.\n\t * @param {HTMLElement} el HTML element\n\t * @param {MouseEvent} e Mouse event\n\t * @returns {Boolean} leave?\n\t * @private\n\t */\n\t _checkMouse: function(el, e) {\n\t var related = e.relatedTarget;\n\t\n\t if (!related) {\n\t return true;\n\t }\n\t\n\t try {\n\t while (related && (related !== el)) {\n\t related = related.parentNode;\n\t }\n\t } catch (err) {\n\t return false;\n\t }\n\t\n\t return (related !== el);\n\t },\n\t\n\t /**\n\t * Trigger specific events to html element.\n\t * @param {HTMLElement} obj HTMLElement\n\t * @param {string} type Event type name\n\t * @param {object} [eventData] Event data\n\t */\n\t trigger: function(obj, type, eventData) {\n\t var rMouseEvent = /(mouse|click)/;\n\t if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n\t eventData = domevent.mouseEvent(type);\n\t }\n\t\n\t if (obj.dispatchEvent) {\n\t obj.dispatchEvent(eventData);\n\t } else if (obj.fireEvent) {\n\t obj.fireEvent('on' + type, eventData);\n\t }\n\t },\n\t\n\t /**\n\t * Create virtual mouse event.\n\t *\n\t * Tested at\n\t *\n\t * - IE7 ~ IE11\n\t * - Chrome\n\t * - Firefox\n\t * - Safari\n\t * @param {string} type Event type\n\t * @param {object} [eventObj] Event data\n\t * @returns {MouseEvent} Virtual mouse event.\n\t */\n\t mouseEvent: function(type, eventObj) {\n\t var evt,\n\t e;\n\t\n\t e = util.extend({\n\t bubbles: true,\n\t cancelable: (type !== 'mousemove'),\n\t view: window,\n\t wheelDelta: 0,\n\t detail: 0,\n\t screenX: 0,\n\t screenY: 0,\n\t clientX: 0,\n\t clientY: 0,\n\t ctrlKey: false,\n\t altKey: false,\n\t shiftKey: false,\n\t metaKey: false,\n\t button: 0,\n\t relatedTarget: undefined // eslint-disable-line\n\t }, eventObj);\n\t\n\t // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n\t if (browser.msie && browser.version < 9) {\n\t delete e.wheelDelta;\n\t }\n\t\n\t if (typeof document.createEvent === 'function') {\n\t evt = document.createEvent('MouseEvents');\n\t evt.initMouseEvent(type,\n\t e.bubbles, e.cancelable, e.view, e.detail,\n\t e.screenX, e.screenY, e.clientX, e.clientY,\n\t e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n\t e.button, document.body.parentNode\n\t );\n\t } else if (document.createEventObject) {\n\t evt = document.createEventObject();\n\t\n\t util.forEach(e, function(value, propName) {\n\t evt[propName] = value;\n\t }, this);\n\t evt.button = {0: 1,\n\t 1: 4,\n\t 2: 2}[evt.button] || evt.button;\n\t }\n\t\n\t return evt;\n\t },\n\t\n\t /**\n\t * Normalize mouse event's button attributes.\n\t *\n\t * Can detect which button is clicked by this method.\n\t *\n\t * Meaning of return numbers\n\t *\n\t * - 0: primary mouse button\n\t * - 1: wheel button or center button\n\t * - 2: secondary mouse button\n\t * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n\t * @returns {number} - The value of meaning which button is clicked?\n\t */\n\t getMouseButton: function(mouseEvent) {\n\t var button,\n\t primary = '0,1,3,5,7',\n\t secondary = '2,6',\n\t wheel = '4';\n\t\n\t /* istanbul ignore else */\n\t if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n\t return mouseEvent.button;\n\t }\n\t\n\t button = String(mouseEvent.button);\n\t if (primary.indexOf(button) > -1) {\n\t return 0;\n\t }\n\t if (secondary.indexOf(button) > -1) {\n\t return 2;\n\t }\n\t if (~wheel.indexOf(button)) {\n\t return 1;\n\t }\n\t\n\t return -1;\n\t }\n\t};\n\t\n\tmodule.exports = domevent;\n\t\n\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.extend = extend;\n\texports.indexOf = indexOf;\n\texports.escapeExpression = escapeExpression;\n\texports.isEmpty = isEmpty;\n\texports.createFrame = createFrame;\n\texports.blockParams = blockParams;\n\texports.appendContextPath = appendContextPath;\n\tvar escape = {\n\t '&': '&',\n\t '<': '<',\n\t '>': '>',\n\t '\"': '"',\n\t \"'\": ''',\n\t '`': '`',\n\t '=': '='\n\t};\n\t\n\tvar badChars = /[&<>\"'`=]/g,\n\t possible = /[&<>\"'`=]/;\n\t\n\tfunction escapeChar(chr) {\n\t return escape[chr];\n\t}\n\t\n\tfunction extend(obj /* , ...source */) {\n\t for (var i = 1; i < arguments.length; i++) {\n\t for (var key in arguments[i]) {\n\t if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n\t obj[key] = arguments[i][key];\n\t }\n\t }\n\t }\n\t\n\t return obj;\n\t}\n\t\n\tvar toString = Object.prototype.toString;\n\t\n\texports.toString = toString;\n\t// Sourced from lodash\n\t// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n\t/* eslint-disable func-style */\n\tvar isFunction = function isFunction(value) {\n\t return typeof value === 'function';\n\t};\n\t// fallback for older versions of Chrome and Safari\n\t/* istanbul ignore next */\n\tif (isFunction(/x/)) {\n\t exports.isFunction = isFunction = function (value) {\n\t return typeof value === 'function' && toString.call(value) === '[object Function]';\n\t };\n\t}\n\texports.isFunction = isFunction;\n\t\n\t/* eslint-enable func-style */\n\t\n\t/* istanbul ignore next */\n\tvar isArray = Array.isArray || function (value) {\n\t return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n\t};\n\t\n\texports.isArray = isArray;\n\t// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\t\n\tfunction indexOf(array, value) {\n\t for (var i = 0, len = array.length; i < len; i++) {\n\t if (array[i] === value) {\n\t return i;\n\t }\n\t }\n\t return -1;\n\t}\n\t\n\tfunction escapeExpression(string) {\n\t if (typeof string !== 'string') {\n\t // don't escape SafeStrings, since they're already safe\n\t if (string && string.toHTML) {\n\t return string.toHTML();\n\t } else if (string == null) {\n\t return '';\n\t } else if (!string) {\n\t return string + '';\n\t }\n\t\n\t // Force a string conversion as this will be done by the append regardless and\n\t // the regex test will do this transparently behind the scenes, causing issues if\n\t // an object's to string has escaped characters in it.\n\t string = '' + string;\n\t }\n\t\n\t if (!possible.test(string)) {\n\t return string;\n\t }\n\t return string.replace(badChars, escapeChar);\n\t}\n\t\n\tfunction isEmpty(value) {\n\t if (!value && value !== 0) {\n\t return true;\n\t } else if (isArray(value) && value.length === 0) {\n\t return true;\n\t } else {\n\t return false;\n\t }\n\t}\n\t\n\tfunction createFrame(object) {\n\t var frame = extend({}, object);\n\t frame._parent = object;\n\t return frame;\n\t}\n\t\n\tfunction blockParams(params, ids) {\n\t params.path = ids;\n\t return params;\n\t}\n\t\n\tfunction appendContextPath(contextPath, id) {\n\t return (contextPath ? contextPath + '.' : '') + id;\n\t}\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUF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1ZS5sZW5ndGggPT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZUZyYW1lKG9iamVjdCkge1xuICBsZXQgZnJhbWUgPSBleHRlbmQoe30sIG9iamVjdCk7XG4gIGZyYW1lLl9wYXJlbnQgPSBvYmplY3Q7XG4gIHJldHVybiBmcmFtZTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGJsb2NrUGFyYW1zKHBhcmFtcywgaWRzKSB7XG4gIHBhcmFtcy5wYXRoID0gaWRzO1xuICByZXR1cm4gcGFyYW1zO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXBwZW5kQ29udGV4dFBhdGgoY29udGV4dFBhdGgsIGlkKSB7XG4gIHJldHVybiAoY29udGV4dFBhdGggPyBjb250ZXh0UGF0aCArICcuJyA6ICcnKSArIGlkO1xufVxuIl19\n\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview RequestAnimFrame\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar requestFn,\n\t cancelFn;\n\t\n\t/**\n\t * Get name with vendor prefix\n\t * @param {string} name - name to prepend prefix\n\t * @returns {string} vendor prefixed name\n\t */\n\tfunction getPrefixed(name) {\n\t return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n\t}\n\t\n\trequestFn = global.requestAnimationFrame ||\n\t getPrefixed('RequestAnimationFrame') ||\n\t function(fn, context) {\n\t fn.call(context);\n\t };\n\t\n\tcancelFn = global.cancelAnimationFrame ||\n\t getPrefixed('CancelAnimationFrame') ||\n\t getPrefixed('CancelRequestAnimationFrame') ||\n\t function() {};\n\t\n\t/**\n\t * @module module:reqAnimFrame\n\t */\n\t\n\tmodule.exports = {\n\t /**\n\t * Shim of requestAnimationFrame\n\t * @param {function} fn callback function\n\t * @param {*} context context for callback\n\t * @returns {number} Unique id\n\t */\n\t requestAnimFrame: function(fn, context) {\n\t return requestFn.call(global, util.bind(fn, context));\n\t },\n\t\n\t /**\n\t * Shim of cancelAnimationFrame\n\t * @param {number} id requestAnimationFrame id\n\t */\n\t cancelAnimFrame: function(id) {\n\t if (!id) {\n\t return;\n\t }\n\t\n\t cancelFn.call(global, id);\n\t }\n\t};\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Common collections.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar forEachProp = util.forEachOwnProperties,\n\t forEachArr = util.forEachArray,\n\t isFunc = util.isFunction,\n\t isObj = util.isObject;\n\t\n\tvar aps = Array.prototype.slice;\n\t\n\t/**\n\t * Common collection.\n\t *\n\t * It need function for get model's unique id.\n\t *\n\t * if the function is not supplied then it use default function {@link Collection#getItemID}\n\t * @constructor\n\t * @param {function} [getItemIDFn] function for get model's id.\n\t */\n\tfunction Collection(getItemIDFn) {\n\t /**\n\t * @type {object.}\n\t */\n\t this.items = {};\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.length = 0;\n\t\n\t if (isFunc(getItemIDFn)) {\n\t /**\n\t * @type {function}\n\t */\n\t this.getItemID = getItemIDFn;\n\t }\n\t}\n\t\n\t/**********\n\t * static props\n\t **********/\n\t\n\t/**\n\t * Combind supplied function filters and condition.\n\t * @param {...function} filters - function filters\n\t * @returns {function} combined filter\n\t */\n\tCollection.and = function(filters) {\n\t var cnt;\n\t\n\t filters = aps.call(arguments);\n\t cnt = filters.length;\n\t\n\t return function(item) {\n\t var i = 0;\n\t\n\t for (; i < cnt; i += 1) {\n\t if (!filters[i].call(null, item)) {\n\t return false;\n\t }\n\t }\n\t\n\t return true;\n\t };\n\t};\n\t\n\t/**\n\t * Combine multiple function filters with OR clause.\n\t * @param {...function} filters - function filters\n\t * @returns {function} combined filter\n\t */\n\tCollection.or = function(filters) {\n\t var cnt;\n\t\n\t filters = aps.call(arguments);\n\t cnt = filters.length;\n\t\n\t return function(item) {\n\t var i = 1,\n\t result = filters[0].call(null, item);\n\t\n\t for (; i < cnt; i += 1) {\n\t result = (result || filters[i].call(null, item));\n\t }\n\t\n\t return result;\n\t };\n\t};\n\t\n\t/**\n\t * Merge several collections.\n\t *\n\t * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n\t * @param {...Collection} collections collection arguments to merge\n\t * @returns {Collection} merged collection.\n\t */\n\tCollection.merge = function(collections) { // eslint-disable-line\n\t var cols = aps.call(arguments),\n\t newItems = {},\n\t merged = new Collection(cols[0].getItemID),\n\t extend = util.extend;\n\t\n\t forEachArr(cols, function(col) {\n\t extend(newItems, col.items);\n\t });\n\t\n\t merged.items = newItems;\n\t merged.length = util.keys(merged.items).length;\n\t\n\t return merged;\n\t};\n\t\n\t/**********\n\t * prototype props\n\t **********/\n\t\n\t/**\n\t * get model's unique id.\n\t * @param {object} item model instance.\n\t * @returns {number} model unique id.\n\t */\n\tCollection.prototype.getItemID = function(item) {\n\t return String(item._id);\n\t};\n\t\n\t/**\n\t * add models.\n\t * @param {...*} item models to add this collection.\n\t */\n\tCollection.prototype.add = function(item) {\n\t var self = this,\n\t id,\n\t ownItems;\n\t\n\t if (arguments.length > 1) {\n\t forEachArr(aps.call(arguments), function(o) {\n\t self.add(o);\n\t });\n\t\n\t return;\n\t }\n\t\n\t id = this.getItemID(item);\n\t ownItems = this.items;\n\t\n\t if (!ownItems[id]) {\n\t this.length += 1;\n\t }\n\t ownItems[id] = item;\n\t};\n\t\n\t/**\n\t * remove models.\n\t * @param {...(object|string|number)} id model instance or unique id to delete.\n\t * @returns {array} deleted model list.\n\t */\n\tCollection.prototype.remove = function(id) {\n\t var self = this,\n\t removed = [],\n\t ownItems,\n\t itemToRemove;\n\t\n\t if (!this.length) {\n\t return removed;\n\t }\n\t\n\t if (arguments.length > 1) {\n\t removed = util.map(aps.call(arguments), function(_id) {\n\t return self.remove(_id);\n\t });\n\t\n\t return removed;\n\t }\n\t\n\t ownItems = this.items;\n\t\n\t if (isObj(id)) {\n\t id = this.getItemID(id);\n\t }\n\t\n\t if (!ownItems[id]) {\n\t return removed;\n\t }\n\t\n\t this.length -= 1;\n\t itemToRemove = ownItems[id];\n\t delete ownItems[id];\n\t\n\t return itemToRemove;\n\t};\n\t\n\t/**\n\t * remove all models in collection.\n\t */\n\tCollection.prototype.clear = function() {\n\t this.items = {};\n\t this.length = 0;\n\t};\n\t\n\t/**\n\t * check collection has specific model.\n\t * @param {(object|string|number|function)} id model instance or id or filter function to check\n\t * @returns {boolean} is has model?\n\t */\n\tCollection.prototype.has = function(id) {\n\t var isFilter,\n\t has;\n\t\n\t if (!this.length) {\n\t return false;\n\t }\n\t\n\t isFilter = isFunc(id);\n\t has = false;\n\t\n\t if (isFilter) {\n\t this.each(function(item) {\n\t if (id(item) === true) {\n\t has = true;\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t });\n\t } else {\n\t id = isObj(id) ? this.getItemID(id) : id;\n\t has = util.isExisty(this.items[id]);\n\t }\n\t\n\t return has;\n\t};\n\t\n\t/**\n\t * invoke callback when model exist in collection.\n\t * @param {(string|number)} id model unique id.\n\t * @param {function} fn the callback.\n\t * @param {*} [context] callback context.\n\t */\n\tCollection.prototype.doWhenHas = function(id, fn, context) {\n\t var item = this.items[id];\n\t\n\t if (!util.isExisty(item)) {\n\t return;\n\t }\n\t\n\t fn.call(context || this, item);\n\t};\n\t\n\t/**\n\t * Search model. and return new collection.\n\t * @param {function} filter filter function.\n\t * @returns {Collection} new collection with filtered models.\n\t * @example\n\t * collection.find(function(item) {\n\t * return item.edited === true;\n\t * });\n\t *\n\t * function filter1(item) {\n\t * return item.edited === false;\n\t * }\n\t *\n\t * function filter2(item) {\n\t * return item.disabled === false;\n\t * }\n\t *\n\t * collection.find(Collection.and(filter1, filter2));\n\t *\n\t * collection.find(Collection.or(filter1, filter2));\n\t */\n\tCollection.prototype.find = function(filter) {\n\t var result = new Collection();\n\t\n\t if (this.hasOwnProperty('getItemID')) {\n\t result.getItemID = this.getItemID;\n\t }\n\t\n\t this.each(function(item) {\n\t if (filter(item) === true) {\n\t result.add(item);\n\t }\n\t });\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * Group element by specific key values.\n\t *\n\t * if key parameter is function then invoke it and use returned value.\n\t * @param {(string|number|function|array)} key key property or getter function.\n\t * if string[] supplied, create each collection before grouping.\n\t * @param {function} [groupFunc] - function that return each group's key\n\t * @returns {object.} grouped object\n\t * @example\n\t *\n\t * // pass `string`, `number`, `boolean` type value then group by property value.\n\t * collection.groupBy('gender'); // group by 'gender' property value.\n\t * collection.groupBy(50); // group by '50' property value.\n\t *\n\t * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n\t * collection.groupBy(function(item) {\n\t * if (item.score > 60) {\n\t * return 'pass';\n\t * }\n\t * return 'fail';\n\t * });\n\t *\n\t * // pass `array` with first arguments then create each collection before grouping.\n\t * collection.groupBy(['go', 'ruby', 'javascript']);\n\t * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n\t *\n\t * // can pass `function` with `array` then group each elements.\n\t * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n\t * if (item.isFast) {\n\t * return 'go';\n\t * }\n\t *\n\t * return item.name;\n\t * });\n\t */\n\tCollection.prototype.groupBy = function(key, groupFunc) {\n\t var result = {},\n\t collection,\n\t baseValue,\n\t keyIsFunc = isFunc(key),\n\t getItemIDFn = this.getItemID;\n\t\n\t if (util.isArray(key)) {\n\t util.forEachArray(key, function(k) {\n\t result[String(k)] = new Collection(getItemIDFn);\n\t });\n\t\n\t if (!groupFunc) {\n\t return result;\n\t }\n\t\n\t key = groupFunc;\n\t keyIsFunc = true;\n\t }\n\t\n\t this.each(function(item) {\n\t if (keyIsFunc) {\n\t baseValue = key(item);\n\t } else {\n\t baseValue = item[key];\n\t\n\t if (isFunc(baseValue)) {\n\t baseValue = baseValue.apply(item);\n\t }\n\t }\n\t\n\t collection = result[baseValue];\n\t\n\t if (!collection) {\n\t collection = result[baseValue] = new Collection(getItemIDFn);\n\t }\n\t\n\t collection.add(item);\n\t });\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * Return single item in collection.\n\t *\n\t * Returned item is inserted in this collection firstly.\n\t * @param {function} [filter] - function filter\n\t * @returns {object} item.\n\t */\n\tCollection.prototype.single = function(filter) {\n\t var result,\n\t useFilter = util.isFunction(filter);\n\t\n\t this.each(function(item) {\n\t if (!useFilter) {\n\t result = item;\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t if (filter(item)) {\n\t result = item;\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t }, this);\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * sort a basis of supplied compare function.\n\t * @param {function} compareFunction compareFunction\n\t * @returns {array} sorted array.\n\t */\n\tCollection.prototype.sort = function(compareFunction) {\n\t var arr = [];\n\t\n\t this.each(function(item) {\n\t arr.push(item);\n\t });\n\t\n\t if (isFunc(compareFunction)) {\n\t arr = arr.sort(compareFunction);\n\t }\n\t\n\t return arr;\n\t};\n\t\n\t/**\n\t * iterate each model element.\n\t *\n\t * when iteratee return false then break the loop.\n\t * @param {function} iteratee iteratee(item, index, items)\n\t * @param {*} [context] context\n\t */\n\tCollection.prototype.each = function(iteratee, context) {\n\t forEachProp(this.items, iteratee, context || this);\n\t};\n\t\n\t/**\n\t * return new array with collection items.\n\t * @returns {array} new array.\n\t */\n\tCollection.prototype.toArray = function() {\n\t if (!this.length) {\n\t return [];\n\t }\n\t\n\t return util.map(this.items, function(item) {\n\t return item;\n\t });\n\t};\n\t\n\tmodule.exports = Collection;\n\t\n\n\n/***/ },\n/* 13 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\t\n\tfunction Exception(message, node) {\n\t var loc = node && node.loc,\n\t line = undefined,\n\t column = undefined;\n\t if (loc) {\n\t line = loc.start.line;\n\t column = loc.start.column;\n\t\n\t message += ' - ' + line + ':' + column;\n\t }\n\t\n\t var tmp = Error.prototype.constructor.call(this, message);\n\t\n\t // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n\t for (var idx = 0; idx < errorProps.length; idx++) {\n\t this[errorProps[idx]] = tmp[errorProps[idx]];\n\t }\n\t\n\t /* istanbul ignore else */\n\t if (Error.captureStackTrace) {\n\t Error.captureStackTrace(this, Exception);\n\t }\n\t\n\t try {\n\t if (loc) {\n\t this.lineNumber = line;\n\t\n\t // Work around issue under safari where we can't directly set the column value\n\t /* istanbul ignore next */\n\t if (Object.defineProperty) {\n\t Object.defineProperty(this, 'column', {\n\t value: column,\n\t enumerable: true\n\t });\n\t } else {\n\t this.column = column;\n\t }\n\t }\n\t } catch (nop) {\n\t /* Ignore if the browser is very particular */\n\t }\n\t}\n\t\n\tException.prototype = new Error();\n\t\n\texports['default'] = Exception;\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ0EsSUFBTSxVQUFVLEdBQUcsQ0FBQyxhQUFhLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxPQUFPLENBQUMsQ0FBQzs7QUFFbkcsU0FBUyxTQUFTLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRTtBQUNoQyxNQUFJLEdBQUcsR0FBRyxJQUFJLElBQUksSUFB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Wdub3JlIGVsc2UgKi9cbiAgaWYgKEVycm9yLmNhcHR1cmVTdGFja1RyYWNlKSB7XG4gICAgRXJyb3IuY2FwdHVyZVN0YWNrVHJhY2UodGhpcywgRXhjZXB0aW9uKTtcbiAgfVxuXG4gIHRyeSB7XG4gICAgaWYgKGxvYykge1xuICAgICAgdGhpcy5saW5lTnVtYmVyID0gbGluZTtcblxuICAgICAgLy8gV29yayBhcm91bmQgaXNzdWUgdW5kZXIgc2FmYXJpIHdoZXJlIHdlIGNhbid0IGRpcmVjdGx5IHNldCB0aGUgY29sdW1uIHZhbHVlXG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICAgICAgaWYgKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkge1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2NvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogY29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgIH1cbiAgICB9XG4gIH0gY2F0Y2ggKG5vcCkge1xuICAgIC8qIElnbm9yZSBpZiB0aGUgYnJvd3NlciBpcyB2ZXJ5IHBhcnRpY3VsYXIgKi9cbiAgfVxufVxuXG5FeGNlcHRpb24ucHJvdG90eXBlID0gbmV3IEVycm9yKCk7XG5cbmV4cG9ydCBkZWZhdWx0IEV4Y2VwdGlvbjtcbiJdfQ==\n\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Utility module for array sort, binary search.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar datetime = __webpack_require__(4);\n\t\n\t/**\n\t * A module for sorting array.\n\t * @module array\n\t */\n\t\n\t/**********\n\t * Search\n\t **********/\n\t\n\t/**\n\t * search item index using binary search algorithm.\n\t *\n\t * the array must be sorted.\n\t * @param {array} arr array to search.\n\t * @param {(string|number|boolean)} search value to search.\n\t * @param {function} [fn] iteratee for retrieve each element's value to search.\n\t * @param {function} [compare] compare function for specific sort status. default is string ascending.\n\t * @returns {number} The number of item index searched. return negative number when no exist that item.\n\t * It can use insert index after Math.abs()\n\t * @example\n\t *\n\t * var arr = [1, 3, 7, 11, 15, 23];\n\t *\n\t * function sortNumber(a, b) {\n\t * return a - b;\n\t * }\n\t *\n\t * bsearch(arr, 15, null, sortNumber); // 4\n\t * bsearch(arr, 21, null, sortNumber); // -5\n\t *\n\t * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n\t * // [1, 2, 7, 11, 15, 21, 23]\n\t */\n\tfunction bsearch(arr, search, fn, compare) {\n\t var minIndex = 0,\n\t maxIndex = arr.length - 1,\n\t currentIndex,\n\t value,\n\t comp;\n\t\n\t compare = compare || stringASC;\n\t\n\t while (minIndex <= maxIndex) {\n\t currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n\t value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n\t comp = compare(value, search);\n\t\n\t if (comp < 0) {\n\t minIndex = currentIndex + 1;\n\t } else if (comp > 0) {\n\t maxIndex = currentIndex - 1;\n\t } else {\n\t return currentIndex;\n\t }\n\t }\n\t\n\t return ~maxIndex;\n\t}\n\t\n\t/**********\n\t * Compare Functions\n\t **********/\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by ascending.\n\t * @param {boolean} a The boolean to compare\n\t * @param {boolean} b The boolean to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction booleanASC(a, b) {\n\t if (a !== b) {\n\t return a ? -1 : 1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by descending.\n\t * @param {boolean} a The boolean to compare\n\t * @param {boolean} b The boolean to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction booleanDESC(a, b) {\n\t if (a !== b) {\n\t return a ? 1 : -1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by number ascending.\n\t * @param {number} _a The number to compare.\n\t * @param {number} _b The number to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction numberASC(_a, _b) {\n\t var a = Number(_a),\n\t b = Number(_b);\n\t\n\t return a - b;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by number descending.\n\t * @param {number} _a The number to compare.\n\t * @param {number} _b The number to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction numberDESC(_a, _b) {\n\t var a = Number(_a),\n\t b = Number(_b);\n\t\n\t return b - a;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by string ascending\n\t * @param {string} _a The string to compare.\n\t * @param {string} _b The string to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction stringASC(_a, _b) {\n\t var a = String(_a),\n\t b = String(_b);\n\t\n\t if (a > b) {\n\t return 1;\n\t }\n\t if (a < b) {\n\t return -1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by string descending\n\t * @param {string} _a The string to compare.\n\t * @param {string} _b The string to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction stringDESC(_a, _b) {\n\t var a = String(_a),\n\t b = String(_b);\n\t\n\t if (a > b) {\n\t return -1;\n\t }\n\t if (a < b) {\n\t return 1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by string ascending with ignore case.\n\t * @param {string} _a The string to compare.\n\t * @param {string} _b The string to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction stringASCIgnoreCase(_a, _b) {\n\t var a = String(_a).toLowerCase(),\n\t b = String(_b).toLowerCase();\n\t\n\t if (a > b) {\n\t return 1;\n\t }\n\t if (a < b) {\n\t return -1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by string descending with ignore case.\n\t * @param {string} _a The string to compare.\n\t * @param {string} _b The string to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction stringDESCIgnoreCase(_a, _b) {\n\t var a = String(_a).toLowerCase(),\n\t b = String(_b).toLowerCase();\n\t\n\t if (a > b) {\n\t return -1;\n\t }\n\t if (a < b) {\n\t return 1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * Compare schedule models for sort.\n\t *\n\t * 1. all day schedule first.\n\t * 2. early start.\n\t * 3. longest duration.\n\t * 4. early created.\n\t * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n\t * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction scheduleASC(a, b) {\n\t var durationA, durationB;\n\t var allDayCompare, startsCompare;\n\t var modelA = a.valueOf();\n\t var modelB = b.valueOf();\n\t\n\t allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\t\n\t if (allDayCompare) {\n\t return allDayCompare;\n\t }\n\t\n\t startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\t\n\t if (startsCompare) {\n\t return startsCompare;\n\t }\n\t\n\t durationA = a.duration().getTime();\n\t durationB = b.duration().getTime();\n\t\n\t if (durationA < durationB) {\n\t return 1;\n\t }\n\t if (durationA > durationB) {\n\t return -1;\n\t }\n\t\n\t return util.stamp(modelA) - util.stamp(modelB);\n\t}\n\t\n\tmodule.exports = {\n\t bsearch: bsearch,\n\t compare: {\n\t schedule: {\n\t asc: scheduleASC\n\t },\n\t bool: {\n\t asc: booleanASC,\n\t desc: booleanDESC\n\t },\n\t num: {\n\t asc: numberASC,\n\t desc: numberDESC\n\t },\n\t str: {\n\t asc: stringASC,\n\t desc: stringDESC,\n\t ascIgnoreCase: stringASCIgnoreCase,\n\t descIgnoreCase: stringDESCIgnoreCase\n\t }\n\t }\n\t};\n\t\n\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Wrapper module for easy calc date object\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @param {Date} date to wrapping DW class\n\t */\n\tfunction DW(date) {\n\t if (!(this instanceof DW)) {\n\t return new DW(date);\n\t }\n\t\n\t if (!(date instanceof TZDate)) {\n\t date = new TZDate(date);\n\t }\n\t\n\t /**\n\t * @type {Date}\n\t */\n\t this.d = date;\n\t}\n\t\n\t/**\n\t * Return d property when supplied object is DW. else return itself\n\t * @param {*} obj - object\n\t * @returns {Date} date\n\t */\n\tDW.prototype.safe = function(obj) {\n\t if (obj.constructor === DW) {\n\t return obj.d;\n\t }\n\t\n\t return obj;\n\t};\n\t\n\t/**\n\t * Clone DW object\n\t * @returns {DW} cloned dwrap object\n\t */\n\tDW.prototype.clone = function() {\n\t return new DW(new TZDate(Number(this.d)));\n\t};\n\t\n\t/**\n\t * Add days\n\t * @param {number} day - day to add\n\t * @returns {DW} wrapper object\n\t */\n\tDW.prototype.addDate = function(day) {\n\t this.d.setDate(this.d.getDate() + day);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Add month. If month value is changed, date set to 1.\n\t * @param {number} m - month to add\n\t * @returns {DW} wrapper object\n\t */\n\tDW.prototype.addMonth = function(m) {\n\t var prevMonth = this.d.getMonth();\n\t var prevYear = this.d.getFullYear();\n\t this.d.setMonth(prevMonth + m);\n\t\n\t // move to first day on the month because plus 1 month on '2017-01-31' means '2017-03-01'\n\t // Don't do it on different year(Because december + 1month is ok)\n\t if (this.d.getFullYear() === prevYear && this.d.getMonth() !== prevMonth) {\n\t this.d.setMonth(prevMonth + m, 1);\n\t }\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Set hour, minutes, seconds, milliseconds\n\t * @param {number} h - hours\n\t * @param {number} m - minutes\n\t * @param {number} s - seconds\n\t * @param {number} ms - milliseconds\n\t * @returns {DW} wrapper object\n\t */\n\tDW.prototype.setHours = function(h, m, s, ms) {\n\t this.d.setHours(h, m, s, ms);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Whether date is between supplied dates?\n\t * @param {Date|DW} d1 - from date\n\t * @param {Date|DW} d2 - to date\n\t * @returns {boolean} is between?\n\t */\n\tDW.prototype.isBetween = function(d1, d2) {\n\t var safe = this.safe;\n\t\n\t return safe(d1) <= this.d && this.d <= safe(d2);\n\t};\n\t\n\tmodule.exports = DW;\n\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Floating layer module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options for floating layer module\n\t * @param {HTMLElement} container - parent continer for floating layer\n\t */\n\tfunction FloatingLayer(options, container) {\n\t var sibling = container[FloatingLayer.PROP_KEY],\n\t layerContainer;\n\t\n\t if (!sibling) {\n\t sibling = container[FloatingLayer.PROP_KEY] = [];\n\t }\n\t\n\t sibling.push(this);\n\t\n\t /**\n\t * @type {Collection}\n\t */\n\t this.sibling = sibling;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\t\n\t layerContainer = document.createElement('div');\n\t layerContainer.style.display = 'none';\n\t layerContainer.style.position = 'absolute';\n\t domutil.addClass(layerContainer, config.classname('floating-layer'));\n\t container.appendChild(layerContainer);\n\t\n\t View.call(this, layerContainer);\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.parent = container;\n\t}\n\t\n\tutil.inherit(FloatingLayer, View);\n\t\n\t/**\n\t * @const\n\t */\n\tFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\t\n\t/**\n\t * @const\n\t */\n\tFloatingLayer.INIT_ZINDEX = 999;\n\t\n\t/**\n\t * Destroy floating layer instance. if there no instnace in parent container\n\t *\n\t * remove instance cache property in container element\n\t */\n\tFloatingLayer.prototype.destroy = function() {\n\t var parent = this.parent,\n\t sibling = this.sibling,\n\t i = 0, cnt = sibling.length;\n\t\n\t for (; i < cnt; i += 1) {\n\t if (sibling[i] === this) {\n\t sibling.splice(i, 1);\n\t break;\n\t }\n\t }\n\t\n\t if (!sibling.length) {\n\t try {\n\t delete parent[FloatingLayer.PROP_KEY];\n\t } catch (e) {\n\t parent[FloatingLayer.PROP_KEY] = null;\n\t }\n\t\n\t parent.style.position = '';\n\t }\n\t\n\t domutil.remove(this.container);\n\t\n\t this.sibling = null;\n\t\n\t View.prototype.destroy.call(this);\n\t};\n\t\n\t/**\n\t * @returns {boolean} whether layer is visible?\n\t */\n\tFloatingLayer.prototype.isVisible = function() {\n\t return this.container.style.display !== 'none';\n\t};\n\t\n\t/**\n\t * Set layer position\n\t * @param {number} x - x coordinate of layer\n\t * @param {number} y - y coordinate of layer\n\t */\n\tFloatingLayer.prototype.setPosition = function(x, y) {\n\t domutil.setPosition(this.container, x, y);\n\t};\n\t\n\t/**\n\t * Set layer left, top, right, bottom position\n\t * @param {object} ltrb object of left, top, right, bottom\n\t * @param {number} [ltrb.left] left pixel value.\n\t * @param {number} [ltrb.top] top pixel value.\n\t * @param {number} [ltrb.right] right pixel value.\n\t * @param {number} [ltrb.bottom] bottom pixel value.\n\t */\n\tFloatingLayer.prototype.setLTRB = function(ltrb) {\n\t domutil.setLTRB(this.container, ltrb);\n\t};\n\t\n\t/**\n\t * Set layer size\n\t * @param {number|string} w - layer width\n\t * @param {number|string} h - layer height\n\t */\n\tFloatingLayer.prototype.setSize = function(w, h) {\n\t var container = this.container;\n\t\n\t w = util.isNumber(w) ? w + 'px' : w;\n\t h = util.isNumber(h) ? h + 'px' : h;\n\t\n\t container.style.width = w;\n\t container.style.height = h;\n\t};\n\t\n\t/**\n\t * Set layer content\n\t * @param {string} html - html string\n\t */\n\tFloatingLayer.prototype.setContent = function(html) {\n\t this.container.innerHTML = html;\n\t};\n\t\n\t/**\n\t * Get largest z-index from sibling layers\n\t * @returns {number} largest z-index value\n\t */\n\tFloatingLayer.prototype.getLargestZIndex = function() {\n\t var zIndexes = util.map(this.sibling, function(layer) {\n\t return layer.zIndex;\n\t });\n\t\n\t return Math.max.apply(null, zIndexes);\n\t};\n\t\n\t/**\n\t * Set focus to layer\n\t */\n\tFloatingLayer.prototype.focus = function() {\n\t var zIndexForShow = this.getLargestZIndex() + 1;\n\t this.container.style.zIndex = this.zIndex = zIndexForShow;\n\t};\n\t\n\t/**\n\t * Show layer\n\t */\n\tFloatingLayer.prototype.show = function() {\n\t this.focus();\n\t this.container.style.display = 'block';\n\t};\n\t\n\t/**\n\t * Hide layer\n\t */\n\tFloatingLayer.prototype.hide = function() {\n\t this.container.style.display = 'none';\n\t};\n\t\n\tmodule.exports = FloatingLayer;\n\t\n\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint no-shadow: 0 */\n\t/**\n\t * @fileoverview Base mixin object for handler/allday\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\tvar common = __webpack_require__(6);\n\t\n\tvar mmax = Math.max,\n\t mmin = Math.min;\n\t\n\t/**\n\t * @mixin Allday.Core\n\t */\n\tvar alldayCore = {\n\t /**\n\t * @param {Allday} alldayView - view instance of allday.\n\t * @param {MouseEvent} mouseEvent - mouse schedule object.\n\t * @returns {function|boolean} function that return schedule data by mouse events.\n\t */\n\t _retriveScheduleData: function(alldayView, mouseEvent) {\n\t var weekdayView = alldayView.children.single(),\n\t container,\n\t datesInRange,\n\t containerWidth,\n\t mousePos,\n\t dragStartXIndex,\n\t grids,\n\t range;\n\t\n\t if (!weekdayView) {\n\t return false;\n\t }\n\t\n\t container = weekdayView.container;\n\t range = weekdayView.getRenderDateRange();\n\t datesInRange = range.length;\n\t grids = weekdayView.getRenderDateGrids();\n\t\n\t containerWidth = domutil.getSize(container)[0];\n\t mousePos = domevent.getMousePosition(mouseEvent, container);\n\t dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\t\n\t /**\n\t * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n\t * @returns {object} schedule data.\n\t */\n\t return function(mouseEvent) {\n\t var pos = domevent.getMousePosition(mouseEvent, container),\n\t mouseX = pos[0],\n\t xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\t\n\t // apply limitation of creation schedule X index.\n\t xIndex = mmax(xIndex, 0);\n\t xIndex = mmin(xIndex, datesInRange - 1);\n\t\n\t return {\n\t relatedView: alldayView,\n\t dragStartXIndex: dragStartXIndex,\n\t datesInRange: datesInRange,\n\t xIndex: xIndex,\n\t triggerEvent: mouseEvent.type,\n\t grids: grids,\n\t range: range\n\t };\n\t };\n\t }\n\t};\n\t\n\t/**\n\t * Get the left index\n\t * @param {Array} grids - grid size information\n\t * @param {number} left - left position(percent)\n\t * @returns {number} grid left index\n\t */\n\tfunction getX(grids, left) {\n\t var i = 0;\n\t var length = grids.length;\n\t var grid;\n\t if (left < 0) {\n\t left = 0;\n\t }\n\t\n\t for (; i < length; i += 1) {\n\t grid = grids[i];\n\t if (grid.left <= left && left <= (grid.left + grid.width)) {\n\t return i;\n\t }\n\t }\n\t\n\t return i;\n\t}\n\t\n\tmodule.exports = alldayCore;\n\t\n\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Module for calculate date by month view and mouse event object\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t domevent = __webpack_require__(9);\n\tvar mfloor = Math.floor;\n\t\n\t/**\n\t * Get high order function that can calc date in mouse point\n\t * @param {Month} monthView - month view\n\t * @returns {function} function return event data by mouse event object\n\t */\n\tfunction getMousePosDate(monthView) {\n\t var weekColl = monthView.children,\n\t weeks = weekColl.sort(function(a, b) {\n\t return util.stamp(a) - util.stamp(b);\n\t }),\n\t weekCount = weekColl.length,\n\t days = weekColl.single().getRenderDateRange(),\n\t dayCount = days.length,\n\t relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n\t size = domutil.getSize(relativeContainer),\n\t grids = monthView.grids;\n\t\n\t /**\n\t * Get the left index\n\t * @param {number} left - left position(percent)\n\t * @returns {number} grid left index\n\t */\n\t function getX(left) {\n\t var i = 0;\n\t var length = grids.length;\n\t var grid;\n\t for (; i < length; i += 1) {\n\t grid = grids[i];\n\t if (grid.left <= left && left <= (grid.left + grid.width)) {\n\t return i;\n\t }\n\t }\n\t\n\t return i;\n\t }\n\t\n\t /**\n\t * Get date related with mouse event object\n\t * @param {object} mouseEvent - click event data\n\t * @returns {object} data related with mouse event\n\t */\n\t function getDate(mouseEvent) {\n\t var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n\t x = getX(common.ratio(size[0], 100, pos[0])),\n\t y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n\t weekdayView, date;\n\t\n\t weekdayView = util.pick(weeks, y);\n\t\n\t if (!weekdayView) {\n\t return null;\n\t }\n\t\n\t date = util.pick(weekdayView.getRenderDateRange(), x);\n\t\n\t if (!date) {\n\t return null;\n\t }\n\t\n\t return {\n\t x: x,\n\t y: y,\n\t sizeX: dayCount,\n\t sizeY: weekCount,\n\t date: date,\n\t weekdayView: weekdayView,\n\t triggerEvent: mouseEvent.type\n\t };\n\t }\n\t\n\t return getDate;\n\t}\n\t\n\tmodule.exports = getMousePosDate;\n\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Core methods for dragging actions\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar common = __webpack_require__(6);\n\tvar datetime = __webpack_require__(4);\n\tvar domevent = __webpack_require__(9);\n\tvar Point = __webpack_require__(23);\n\t\n\t/**\n\t * @mixin Time.Core\n\t */\n\tvar timeCore = {\n\t /**\n\t * Get Y index ratio(hour) in time grids by supplied parameters.\n\t * @param {number} baseMil - base milliseconds number for supplied height.\n\t * @param {number} height - container element height.\n\t * @param {number} y - Y coordinate to calculate hour ratio.\n\t * @returns {number} hour index ratio value.\n\t */\n\t _calcGridYIndex: function(baseMil, height, y) {\n\t // get ratio from right expression > point.y : x = session.height : baseMil\n\t // and convert milliseconds value to hours.\n\t var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n\t floored = result | 0,\n\t nearest = common.nearest(result - floored, [0, 1]);\n\t\n\t return floored + (nearest ? 0.5 : 0);\n\t },\n\t\n\t /**\n\t * Get function to makes event data from Time and mouseEvent\n\t * @param {Time} timeView - Instance of time view.\n\t * @returns {function} - Function that return event data from mouse event.\n\t */\n\t _retriveScheduleData: function(timeView) {\n\t var self = this,\n\t container = timeView.container,\n\t options = timeView.options,\n\t viewHeight = timeView.getViewBound().height,\n\t viewTime = Number(timeView.getDate()),\n\t hourLength = options.hourEnd - options.hourStart,\n\t baseMil = datetime.millisecondsFrom('hour', hourLength);\n\t\n\t /**\n\t * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n\t * @param {object} [extend] - object to extend event data before return.\n\t * @returns {object} - common event data for time.*\n\t */\n\t return util.bind(function(mouseEvent, extend) {\n\t var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n\t gridY = common.ratio(viewHeight, hourLength, mouseY),\n\t timeY = viewTime + datetime.millisecondsFrom('hour', gridY),\n\t nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n\t nearestGridTimeY = viewTime + datetime.millisecondsFrom('hour', nearestGridY + options.hourStart);\n\t\n\t return util.extend({\n\t target: mouseEvent.target || mouseEvent.srcElement,\n\t relatedView: timeView,\n\t originEvent: mouseEvent,\n\t mouseY: mouseY,\n\t gridY: gridY,\n\t timeY: timeY,\n\t nearestGridY: nearestGridY,\n\t nearestGridTimeY: nearestGridTimeY,\n\t triggerEvent: mouseEvent.type\n\t }, extend);\n\t }, this);\n\t },\n\t\n\t /**\n\t * Mixin method.\n\t * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n\t */\n\t mixin: function(obj) {\n\t var proto = obj.prototype;\n\t util.forEach(timeCore, function(method, methodName) {\n\t if (methodName === 'mixin') {\n\t return;\n\t }\n\t\n\t proto[methodName] = method;\n\t });\n\t }\n\t};\n\t\n\tmodule.exports = timeCore;\n\t\n\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint complexity: 0 */\n\t/**\n\t * @fileoverview Model of schedule.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar datetime = __webpack_require__(4);\n\tvar dirty = __webpack_require__(62);\n\tvar model = __webpack_require__(63);\n\t\n\t/**\n\t * 일정 카테고리\n\t * @readonly\n\t * @enum {string}\n\t */\n\tvar SCHEDULE_CATEGORY = {\n\t /** 마일스톤 */\n\t MILESTONE: 'milestone',\n\t\n\t /** 업무 */\n\t TASK: 'task',\n\t\n\t /** 종일일정 */\n\t ALLDAY: 'allday',\n\t\n\t /** 시간별 일정 */\n\t TIME: 'time'\n\t};\n\t\n\t/**\n\t * The model of calendar schedules.\n\t * @constructor\n\t * @mixes dirty\n\t * @mixes model\n\t */\n\tfunction Schedule() {\n\t /**\n\t * `Optional` unique id for various use.\n\t * @type {string}\n\t */\n\t this.id = '';\n\t\n\t /**\n\t * title for schedule.\n\t * @type {string}\n\t */\n\t this.title = '';\n\t\n\t /**\n\t * is schedule is all day schedule?\n\t * @type {boolean}\n\t */\n\t this.isAllDay = false;\n\t\n\t /**\n\t * schedule start\n\t * @type {TZDate}\n\t */\n\t this.start = null;\n\t\n\t /**\n\t * schedule end\n\t * @type {TZDate}\n\t */\n\t this.end = null;\n\t\n\t /**\n\t * schedule text color\n\t * @type {string}\n\t */\n\t this.color = '#000';\n\t\n\t /**\n\t * schedule block visibility\n\t * @type {boolean}\n\t */\n\t this.isVisible = true;\n\t\n\t /**\n\t * schedule background color\n\t * @type {string}\n\t */\n\t this.bgColor = '#a1b56c';\n\t\n\t /**\n\t * schedule left border color\n\t * @type {string}\n\t */\n\t this.borderColor = '#000';\n\t\n\t /**\n\t * 캘린더 ID\n\t * @type {string}\n\t */\n\t this.calendarId = '';\n\t\n\t /**\n\t * 일정 카테고리 (마일스톤, 업무, 종일일정, 시간별일정)\n\t * @type {string}\n\t */\n\t this.category = '';\n\t\n\t /**\n\t * 업무 일정의 경우 구분 (출근전, 점심전, 퇴근전)\n\t * @type {string}\n\t */\n\t this.dueDateClass = '';\n\t\n\t /**\n\t * 커스텀 스타일\n\t * @type {string}\n\t */\n\t this.customStyle = '';\n\t\n\t /**\n\t * in progress flag to do something\n\t * @type {boolean}\n\t */\n\t this.isPending = false;\n\t\n\t /**\n\t * focused schedule flag\n\t * @type {boolean}\n\t */\n\t this.isFocused = false;\n\t\n\t /**\n\t * read-only schedule flag\n\t * @type {boolean}\n\t */\n\t this.isReadOnly = false;\n\t\n\t /**\n\t * 렌더링과 관계 없는 별도 데이터 저장 공간.\n\t * @type {object}\n\t */\n\t this.raw = null;\n\t\n\t // initialize model id\n\t util.stamp(this);\n\t}\n\t\n\t/**********\n\t * static props\n\t **********/\n\t\n\tSchedule.schema = {\n\t required: ['title'],\n\t dateRange: ['start', 'end']\n\t};\n\t\n\t/**\n\t * create schedule model from json(object) data.\n\t * @param {object} data object for model.\n\t * @returns {Schedule} Schedule model instance.\n\t */\n\tSchedule.create = function(data) {\n\t var inst = new Schedule();\n\t inst.init(data);\n\t\n\t return inst;\n\t};\n\t\n\t/**********\n\t * prototype props\n\t **********/\n\t\n\t/**\n\t * Initialize schedule instance.\n\t * @param {object} options options.\n\t */\n\tSchedule.prototype.init = function(options) {\n\t options = util.extend({}, options);\n\t if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n\t options.isAllDay = true;\n\t }\n\t\n\t this.id = options.id || '';\n\t this.title = options.title || '';\n\t this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n\t this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\t\n\t this.color = options.color || this.color;\n\t this.bgColor = options.bgColor || this.bgColor;\n\t this.borderColor = options.borderColor || this.borderColor;\n\t this.calendarId = options.calendarId || '';\n\t this.category = options.category || '';\n\t this.dueDateClass = options.dueDateClass || '';\n\t this.customStyle = options.customStyle || '';\n\t this.isPending = options.isPending || false;\n\t this.isFocused = options.isFocused || false;\n\t this.isReadOnly = options.isReadOnly || false;\n\t\n\t if (this.isAllDay) {\n\t this.setAllDayPeriod(options.start, options.end);\n\t } else {\n\t this.setTimePeriod(options.start, options.end);\n\t }\n\t\n\t if (options.category === SCHEDULE_CATEGORY.MILESTONE ||\n\t options.category === SCHEDULE_CATEGORY.TASK) {\n\t this.start = new TZDate(this.end);\n\t }\n\t\n\t this.raw = options.raw || null;\n\t};\n\t\n\tSchedule.prototype.setAllDayPeriod = function(start, end) {\n\t // 종일일정인 경우 문자열의 날짜정보만 사용한다.\n\t if (util.isString(start)) {\n\t start = datetime.parse(start.substring(0, 10));\n\t }\n\t if (util.isString(end)) {\n\t end = datetime.parse(end.substring(0, 10));\n\t }\n\t\n\t this.start = start;\n\t this.start.setHours(0, 0, 0);\n\t this.end = end || new TZDate(this.start);\n\t this.end.setHours(23, 59, 59);\n\t};\n\t\n\tSchedule.prototype.setTimePeriod = function(start, end) {\n\t this.start = new TZDate(start || Date.now());\n\t this.end = new TZDate(end || this.start);\n\t\n\t if (!end) {\n\t this.end.setMinutes(this.end.getMinutes() + 30);\n\t }\n\t};\n\t\n\t/**\n\t * @returns {Date} render start date.\n\t */\n\tSchedule.prototype.getStarts = function() {\n\t return this.start;\n\t};\n\t\n\t/**\n\t * @returns {Date} render end date.\n\t */\n\tSchedule.prototype.getEnds = function() {\n\t return this.end;\n\t};\n\t\n\t/**\n\t * @returns {number} instance unique id.\n\t */\n\tSchedule.prototype.cid = function() {\n\t return util.stamp(this);\n\t};\n\t\n\t/**\n\t * Check two schedule are equals (means title, isAllDay, start, end are same)\n\t * @param {Schedule} schedule Schedule model instance to compare.\n\t * @returns {boolean} Return false when not same.\n\t */\n\tSchedule.prototype.equals = function(schedule) {\n\t if (this.id !== schedule.id) {\n\t return false;\n\t }\n\t\n\t if (this.title !== schedule.title) {\n\t return false;\n\t }\n\t\n\t if (this.isAllDay !== schedule.isAllDay) {\n\t return false;\n\t }\n\t\n\t if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n\t return false;\n\t }\n\t\n\t if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n\t return false;\n\t }\n\t\n\t if (this.color !== schedule.color) {\n\t return false;\n\t }\n\t\n\t if (this.bgColor !== schedule.bgColor) {\n\t return false;\n\t }\n\t\n\t if (this.borderColor !== schedule.borderColor) {\n\t return false;\n\t }\n\t\n\t return true;\n\t};\n\t\n\t/**\n\t * return duration between start and end.\n\t * @returns {Date} duration (UTC)\n\t */\n\tSchedule.prototype.duration = function() {\n\t var start = this.getStarts(),\n\t end = this.getEnds(),\n\t duration;\n\t\n\t if (this.isAllDay) {\n\t duration = new TZDate(datetime.end(end) - datetime.start(start));\n\t } else {\n\t duration = new TZDate(end - start);\n\t }\n\t\n\t return duration;\n\t};\n\t\n\t/**\n\t * Returns true if the given Schedule coincides with the same time as the\n\t * calling Schedule.\n\t * @param {Schedule} schedule The other schedule to compare with this Schedule.\n\t * @returns {boolean} If the other schedule occurs within the same time as the first object.\n\t */\n\tSchedule.prototype.collidesWith = function(schedule) {\n\t var ownStarts = this.getStarts(),\n\t ownEnds = this.getEnds(),\n\t start = schedule.getStarts(),\n\t end = schedule.getEnds();\n\t\n\t if ((start > ownStarts && start < ownEnds) ||\n\t (end > ownStarts && end < ownEnds) ||\n\t (start <= ownStarts && end >= ownEnds)) {\n\t return true;\n\t }\n\t\n\t return false;\n\t};\n\t\n\tmodel.mixin(Schedule.prototype);\n\tdirty.mixin(Schedule.prototype);\n\t\n\tmodule.exports = Schedule;\n\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(7);\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.HandlebarsEnvironment = HandlebarsEnvironment;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\tvar _exception = __webpack_require__(13);\n\t\n\tvar _exception2 = _interopRequireDefault(_exception);\n\t\n\tvar _helpers = __webpack_require__(49);\n\t\n\tvar _decorators = __webpack_require__(47);\n\t\n\tvar _logger = __webpack_require__(57);\n\t\n\tvar _logger2 = _interopRequireDefault(_logger);\n\t\n\tvar VERSION = '4.0.11';\n\texports.VERSION = VERSION;\n\tvar COMPILER_REVISION = 7;\n\t\n\texports.COMPILER_REVISION = COMPILER_REVISION;\n\tvar REVISION_CHANGES = {\n\t 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n\t 2: '== 1.0.0-rc.3',\n\t 3: '== 1.0.0-rc.4',\n\t 4: '== 1.x.x',\n\t 5: '== 2.0.0-alpha.x',\n\t 6: '>= 2.0.0-beta.1',\n\t 7: '>= 4.0.0'\n\t};\n\t\n\texports.REVISION_CHANGES = REVISION_CHANGES;\n\tvar objectType = '[object Object]';\n\t\n\tfunction HandlebarsEnvironment(helpers, partials, decorators) {\n\t this.helpers = helpers || {};\n\t this.partials = partials || {};\n\t this.decorators = decorators || {};\n\t\n\t _helpers.registerDefaultHelpers(this);\n\t _decorators.registerDefaultDecorators(this);\n\t}\n\t\n\tHandlebarsEnvironment.prototype = {\n\t constructor: HandlebarsEnvironment,\n\t\n\t logger: _logger2['default'],\n\t log: _logger2['default'].log,\n\t\n\t registerHelper: function registerHelper(name, fn) {\n\t if (_utils.toString.call(name) === objectType) {\n\t if (fn) {\n\t throw new _exception2['default']('Arg not supported with multiple helpers');\n\t }\n\t _utils.extend(this.helpers, name);\n\t } else {\n\t this.helpers[name] = fn;\n\t }\n\t },\n\t unregisterHelper: function unregisterHelper(name) {\n\t delete this.helpers[name];\n\t },\n\t\n\t registerPartial: function registerPartial(name, partial) {\n\t if (_utils.toString.call(name) === objectType) {\n\t _utils.extend(this.partials, name);\n\t } else {\n\t if (typeof partial === 'undefined') {\n\t throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n\t }\n\t this.partials[name] = partial;\n\t }\n\t },\n\t unregisterPartial: function unregisterPartial(name) {\n\t delete this.partials[name];\n\t },\n\t\n\t registerDecorator: function registerDecorator(name, fn) {\n\t if (_utils.toString.call(name) === objectType) {\n\t if (fn) {\n\t throw new _exception2['default']('Arg not supported with multiple decorators');\n\t }\n\t _utils.extend(this.decorators, name);\n\t } else {\n\t this.decorators[name] = fn;\n\t }\n\t },\n\t unregisterDecorator: function unregisterDecorator(name) {\n\t delete this.decorators[name];\n\t }\n\t};\n\t\n\tvar log = _logger2['default'].log;\n\t\n\texports.log = log;\n\texports.createFrame = _utils.createFrame;\n\texports.logger = _logger2['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQTRDLFNBQVM7O3lCQUMvQixhQUFhOzs7O3VCQUNFLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNuQyxVQUFVOzs7O0FBRXRCLElBQU0s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nZ2VyfTtcbiJdfQ==\n\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview\n\t * Class for represent two dimensional x, y coordinates.\n\t *\n\t * It suppliy a group of functions for manipulate coordinates.\n\t * @author NHN Ent. FE Development Team \n\t * @example\n\t * var p = point(10, 10);\n\t * var r1 = p.add(Point(5, 5));\n\t * console.log(p.toString()) // \"Point(10, 10)\"\n\t * console.log(r1.toString()) // \"Point(15, 15)\"\n\t *\n\t * var p2 = new Point(10, 10);\n\t * p2._add(point(5, 5));\n\t * console.log(p2.toString()) // \"Point(15, 15)\"\n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\t/**\n\t * Class for represent two dimentional x, y coordinates.\n\t * @constructor\n\t * @param {number} x The number of X coordinates.\n\t * @param {number} y The number of Y coordinates.\n\t * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n\t * @example\n\t * var t = new Point(13, 5);\n\t */\n\tfunction Point(x, y, useRound) {\n\t /**\n\t * @type {number}\n\t */\n\t this.x = (useRound ? Math.round(x) : x);\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.y = (useRound ? Math.round(y) : y);\n\t}\n\t\n\t/**********\n\t * static props\n\t **********/\n\t\n\t/**\n\t * Calculate point ratio.\n\t * @param {Point} point The instance of point.\n\t * @param {number} factor From factor\n\t * @param {number} toFactor To factor\n\t * @returns {Point} Point instance calculated.\n\t */\n\tPoint.getRatio = function(point, factor, toFactor) {\n\t if (factor === toFactor) {\n\t return point.clone();\n\t }\n\t\n\t return point.multiplyBy(toFactor)._divideBy(factor);\n\t};\n\t\n\t/**\n\t * Syntatic sugar of new Point()\n\t * @param {(Point|number|number[])} x X coordinate value.\n\t * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n\t * @param {boolean} [useRound] Set true then round initial coordinate values.\n\t * @returns {Point} The instance of point.\n\t * @example\n\t * var p1 = point(10, 15);\n\t * var p2 = point([10, 15]);\n\t */\n\tPoint.n = function(x, y, useRound) {\n\t if (x instanceof Point) {\n\t return x;\n\t }\n\t\n\t if (util.isArray(x)) {\n\t return new Point(x[0], x[1], y);\n\t }\n\t\n\t return new Point(x, y, useRound);\n\t};\n\t\n\t/**********\n\t * prototype props\n\t **********/\n\t\n\t/**\n\t * Clone points\n\t * @returns {Point} The point instance cloned.\n\t */\n\tPoint.prototype.clone = function() {\n\t return new Point(this.x, this.y);\n\t};\n\t\n\t/**\n\t * Add points.\n\t * @param {Point} point The point instance to add.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.add = function(point) {\n\t return this.clone()._add(Point.n(point));\n\t};\n\t\n\t/**\n\t * Add self points.\n\t * @param {Point} point The point instance to add.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._add = function(point) {\n\t this.x += point.x;\n\t this.y += point.y;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Subtract points.\n\t * @param {Point} point The point instance to subtract.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.subtract = function(point) {\n\t return this.clone()._subtract(Point.n(point));\n\t};\n\t\n\t/**\n\t * Subtract points. (manipulate self)\n\t * @param {Point} point The point instance to subtract.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._subtract = function(point) {\n\t this.x -= point.x;\n\t this.y -= point.y;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Divide points.\n\t * @param {number} num The number to divide.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.divideBy = function(num) {\n\t return this.clone()._divideBy(num);\n\t};\n\t\n\t/**\n\t * Divide points. (manipulate self)\n\t * @param {number} num The number to divide.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._divideBy = function(num) {\n\t this.x /= num;\n\t this.y /= num;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Multiply coordinates.\n\t * @param {number} num Thyen number to multiply\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.multiplyBy = function(num) {\n\t return this.clone()._multiplyBy(num);\n\t};\n\t\n\t/**\n\t * Multiply self coordinates.\n\t * @param {number} num The number to multiply.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._multiplyBy = function(num) {\n\t this.x *= num;\n\t this.y *= num;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Round coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.round = function() {\n\t return this.clone()._round();\n\t};\n\t\n\t/**\n\t * Round self coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._round = function() {\n\t this.x = Math.round(this.x);\n\t this.y = Math.round(this.y);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Reverse values between positive and negative.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.reverse = function() {\n\t return this.clone()._reverse();\n\t};\n\t\n\t/**\n\t * Reverse self values between positive and negative.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._reverse = function() {\n\t this.x *= -1;\n\t this.y *= -1;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Floor coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.floor = function() {\n\t return this.clone()._floor();\n\t};\n\t\n\t/**\n\t * Floor self coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._floor = function() {\n\t this.x = Math.floor(this.x);\n\t this.y = Math.floor(this.y);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Ceil coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.ceil = function() {\n\t return this.clone()._ceil();\n\t};\n\t\n\t/**\n\t * Ceil self coodinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._ceil = function() {\n\t this.x = Math.ceil(this.x);\n\t this.y = Math.ceil(this.y);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Rotate point.\n\t * @param {number} deg The number of rotate degree.\n\t * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n\t * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n\t * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n\t * @returns {Point} The point instance rotated.\n\t */\n\tPoint.prototype.rotate = function(deg, center, cos, sin) {\n\t return this.clone()._rotate(deg, center, cos, sin);\n\t};\n\t\n\t/**\n\t * Rotate self.\n\t * @param {number} deg The number of rotate degree.\n\t * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n\t * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n\t * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n\t * @returns {Point} The point instance rotated.\n\t */\n\tPoint.prototype._rotate = function(deg, center, cos, sin) {\n\t var rad = deg * (Math.PI / 180),\n\t x,\n\t y;\n\t\n\t cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n\t sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\t\n\t this._subtract(center);\n\t\n\t x = this.x;\n\t y = this.y;\n\t\n\t this.x = (x * cos) - (y * sin);\n\t this.y = (x * sin) + (y * cos);\n\t\n\t this._add(center);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Calculate distance between two points.\n\t * @param {Point} point Point instance.\n\t * @returns {number} The number of distance between two points.\n\t */\n\tPoint.prototype.distanceTo = function(point) {\n\t var x,\n\t y;\n\t\n\t point = Point.n(point);\n\t\n\t x = point.x - this.x;\n\t y = point.y - this.y;\n\t\n\t return Math.sqrt((x * x) + (y * y));\n\t};\n\t\n\t/**\n\t * Check point equals.\n\t * @param {Point} point Point instance to compare\n\t * @returns {boolean} equality\n\t */\n\tPoint.prototype.equals = function(point) {\n\t point = Point.n(point);\n\t\n\t return point.x === this.x && point.y === this.y;\n\t};\n\t\n\t/**\n\t * Return formatted string. 'Point(x, y)'\n\t * @returns {string} string\n\t */\n\tPoint.prototype.toString = function() {\n\t return 'Point(' + this.x + ', ' + this.y + ')';\n\t};\n\t\n\t/**\n\t * Return coodinates to array. [x, y]\n\t * @returns {number[]} coordinate array.\n\t */\n\tPoint.prototype.toArray = function() {\n\t return [this.x, this.y];\n\t};\n\t\n\tmodule.exports = Point;\n\t\n\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Layout module that supplied split height, resize height features.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t domevent = __webpack_require__(9),\n\t View = __webpack_require__(8),\n\t VPanel = __webpack_require__(64),\n\t Drag = __webpack_require__(26);\n\t\n\tvar mAbs = Math.abs;\n\t\n\t/**\n\t * @typedef PanelOptions\n\t * @type {object}\n\t * @property {number} [minHeight=0] - minimum height of panel\n\t * @property {number} [height=0] - current panel height\n\t * @property {boolean} [splitter=false] - is this panel uses splitter?\n\t * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n\t * @property {string} [className=''] - className string for add created element\n\t */\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options for VLayout module\n\t * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n\t * @param {number[]} [options.panelHeights] - panel height list\n\t * @param {HTMLElement} container - container element\n\t */\n\tfunction VLayout(options, container) {\n\t var opt, tempHeights;\n\t\n\t if (!(this instanceof VLayout)) {\n\t return new VLayout(options, container);\n\t }\n\t\n\t View.call(this, container);\n\t\n\t domutil.addClass(container, config.classname('vlayout-container'));\n\t\n\t /**\n\t * @type {object}\n\t */\n\t opt = this.options = util.extend({\n\t panels: [],\n\t panelHeights: []\n\t }, options);\n\t\n\t /**\n\t * @type {VPanel[]}\n\t */\n\t this.panels = [];\n\t\n\t /**\n\t * @type {Drag}\n\t */\n\t this._drag = new Drag({\n\t distance: 10,\n\t exclude: function(target) {\n\t return !domutil.hasClass(target, config.classname('splitter'));\n\t }\n\t }, container);\n\t\n\t this._drag.on({\n\t dragStart: this._onDragStart,\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._dragData = null;\n\t\n\t if (opt.panels.length) {\n\t if (opt.panelHeights.length) {\n\t tempHeights = opt.panelHeights.slice();\n\t util.forEach(opt.panels, function(panelOpt) {\n\t if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n\t panelOpt.height = tempHeights.shift();\n\t }\n\t });\n\t }\n\t\n\t this.addPanels(opt.panels, this.container);\n\t }\n\t\n\t this.refresh();\n\t}\n\t\n\tutil.inherit(VLayout, View);\n\t\n\t/**\n\t * Get current panels height in layout\n\t * @returns {number[]} height of panels with `autoHeight` false\n\t */\n\tVLayout.prototype.getLayoutData = function() {\n\t var heightList = [];\n\t\n\t util.forEach(this.panels, function(panel) {\n\t if (panel.isSplitter() || panel.options.autoHeight) {\n\t return;\n\t }\n\t\n\t heightList.push(panel.getHeight());\n\t });\n\t\n\t return heightList;\n\t};\n\t\n\t/**\n\t * Set panels height in layout\n\t * @param {number[]} heightList of panels with `autoHeight` false\n\t */\n\tVLayout.prototype.setLayoutData = function(heightList) {\n\t if (!heightList.length) {\n\t return;\n\t }\n\t\n\t util.forEach(this.panels, function(panel) {\n\t if (panel.isSplitter() || panel.options.autoHeight) {\n\t return;\n\t }\n\t\n\t panel.setHeight(null, heightList.shift());\n\t });\n\t\n\t this.refresh();\n\t};\n\t\n\t/**\n\t * Get next panel instance by specific panel\n\t * @param {VPanel} panel - panel instance\n\t * @returns {VPanel} next panel\n\t */\n\tVLayout.prototype.nextPanel = function(panel) {\n\t return this.panels[panel.index + 1];\n\t};\n\t\n\t/**\n\t * Get previous panel instance by specific panel\n\t * @param {VPanel} panel - panel instance\n\t * @returns {VPanel} previous panel\n\t */\n\tVLayout.prototype.prevPanel = function(panel) {\n\t return this.panels[panel.index - 1];\n\t};\n\t\n\t/**\n\t * Initialize resizing guide element\n\t * @param {HTMLElement} element - element to use guide element after cloned\n\t * @param {number} top - top pixel value for guide element\n\t * @returns {HTMLElement} cloned element == guide element\n\t */\n\tVLayout.prototype._initializeGuideElement = function(element, top) {\n\t var cloned = element.cloneNode(true);\n\t\n\t domutil.addClass(cloned, config.classname('splitter-guide'));\n\t this._refreshGuideElement(cloned, top);\n\t this.container.appendChild(cloned);\n\t\n\t return cloned;\n\t};\n\t\n\t/**\n\t * Refresh guide element position\n\t * @param {HTMLElement} element - guide element\n\t * @param {number} top - top pixel value for guide element\n\t */\n\tVLayout.prototype._refreshGuideElement = function(element, top) {\n\t element.style.top = top + 'px';\n\t};\n\t\n\t/**\n\t * Clear guide element position\n\t * @param {HTMLElement} element - guide element\n\t */\n\tVLayout.prototype._clearGuideElement = function(element) {\n\t domutil.remove(element);\n\t};\n\t\n\t/**\n\t * Resize overall panels size\n\t * @param {VPanel} splPanel - splitter panel instance\n\t * @param {number} startY - dragstart Y position\n\t * @param {number} mouseY - dragend Y position\n\t */\n\tVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n\t var diffY = startY - mouseY,\n\t resizedHeight = mAbs(diffY),\n\t resizeMap = [],\n\t toDown = mouseY > startY,\n\t backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n\t forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n\t cursor, resizeInfo;\n\t\n\t cursor = this[backwardMethod](splPanel);\n\t resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n\t resizeMap.push([cursor, resizeInfo[0]]);\n\t\n\t for (cursor = this[forwardMethod](cursor);\n\t util.isExisty(cursor);\n\t cursor = this[forwardMethod](cursor)) {\n\t if (cursor.isSplitter()) {\n\t continue;\n\t }\n\t\n\t resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n\t resizeMap.push([cursor, resizeInfo[0]]);\n\t resizedHeight -= resizeInfo[1];\n\t }\n\t\n\t util.forEach(resizeMap, function(pair) {\n\t pair[0].setHeight(null, pair[1], true);\n\t pair[0].fire('resize');\n\t });\n\t};\n\t\n\t/**\n\t * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n\t * @param {VPanel} splPanel - splitter panel instance\n\t * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n\t */\n\tVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n\t var upper = 0,\n\t below = 0,\n\t cursor,\n\t func = function(panel) {\n\t if (panel.isSplitter()) {\n\t return panel.getHeight();\n\t }\n\t\n\t return panel.options.minHeight;\n\t };\n\t\n\t for (cursor = this.prevPanel(splPanel);\n\t util.isExisty(cursor);\n\t cursor = this.prevPanel(cursor)) {\n\t upper += func(cursor);\n\t }\n\t\n\t for (cursor = this.nextPanel(splPanel);\n\t util.isExisty(cursor);\n\t cursor = this.nextPanel(cursor)) {\n\t below += func(cursor);\n\t }\n\t\n\t return [upper, below];\n\t};\n\t\n\t/**********\n\t * Drag Handlers\n\t **********/\n\t\n\t/**\n\t * Drag start schedule handler\n\t * @param {object} e - drag start schedule data\n\t */\n\tVLayout.prototype._onDragStart = function(e) {\n\t var oEvent = e.originEvent,\n\t target = e.target,\n\t splIndex = domutil.getData(target, 'panelIndex'),\n\t splPanel = this.panels[splIndex],\n\t splHeight = splPanel.getHeight(),\n\t splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n\t mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n\t guideElement = this._initializeGuideElement(target, mouseY);\n\t\n\t splPanel.addClass(config.classname('splitter-focused'));\n\t\n\t this._dragData = {\n\t splPanel: splPanel,\n\t splOffsetY: splOffsetY,\n\t guideElement: guideElement,\n\t startY: mouseY - splOffsetY,\n\t minY: 0,\n\t maxY: this.getViewBound().height - splHeight\n\t };\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(document.body, config.classname('resizing'));\n\t }\n\t};\n\t\n\t/**\n\t * Drag schedule handler\n\t * @param {object} e - drag schedule data\n\t */\n\tVLayout.prototype._onDrag = function(e) {\n\t var dragData = this._dragData,\n\t mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\t\n\t mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\t\n\t this._refreshGuideElement(dragData.guideElement, mouseY);\n\t};\n\t\n\t/**\n\t * Drag end schedule handler\n\t * @fires VLayout#resize\n\t * @param {object} e - dragend schedule data\n\t */\n\tVLayout.prototype._onDragEnd = function(e) {\n\t var dragData = this._dragData,\n\t asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n\t mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\t\n\t // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n\t mouseY = common.limit(\n\t mouseY - dragData.splOffsetY,\n\t [dragData.minY + asideMinMax[0]],\n\t [dragData.maxY - asideMinMax[1]]\n\t );\n\t\n\t this._resize(dragData.splPanel, dragData.startY, mouseY);\n\t\n\t /**\n\t * @event VLayout#resize\n\t * @type {object}\n\t * @property {number[]} layoutData - layout data after resized\n\t */\n\t this.fire('resize', {\n\t layoutData: this.getLayoutData()\n\t });\n\t\n\t this._dragData = null;\n\t this._clearGuideElement(dragData.guideElement);\n\t dragData.splPanel.removeClass(config.classname('splitter-focused'));\n\t domutil.removeClass(document.body, config.classname('resizing'));\n\t};\n\t\n\t/**********\n\t * Methods\n\t **********/\n\t\n\t/**\n\t * refresh each panels\n\t */\n\tVLayout.prototype.refresh = function() {\n\t var panelToFillHeight = [];\n\t var layoutHeight = this.getViewBound().height;\n\t var usedHeight = 0;\n\t var remainHeight;\n\t\n\t if (!layoutHeight) {\n\t return;\n\t }\n\t\n\t util.forEach(this.panels, function(panel) {\n\t if (panel.options.autoHeight) {\n\t panelToFillHeight.push(panel);\n\t } else {\n\t usedHeight += panel.getHeight();\n\t }\n\t });\n\t\n\t remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\t\n\t util.forEach(panelToFillHeight, function(panel) {\n\t panel.setHeight(null, remainHeight);\n\t });\n\t};\n\t\n\t/**\n\t * add panel\n\t * @param {PanelOptions} options - options for panel\n\t * @param {container} [container] - container element\n\t */\n\tVLayout.prototype.addPanel = function(options, container) {\n\t var element = document.createElement('div'),\n\t panels = this.panels,\n\t index = panels.length;\n\t\n\t options = util.extend({\n\t index: index\n\t }, options);\n\t\n\t panels.push(new VPanel(options, element));\n\t\n\t container.appendChild(element);\n\t};\n\t\n\t/**\n\t * Add multiple panel\n\t * @param {PanelOptions[]} options - panel options list\n\t * @param {HTMLElement} container - container element\n\t */\n\tVLayout.prototype.addPanels = function(options, container) {\n\t var self = this,\n\t frag = document.createDocumentFragment();\n\t\n\t util.forEach(options, function(option) {\n\t self.addPanel(option, frag);\n\t });\n\t\n\t container.appendChild(frag);\n\t};\n\t\n\t/**\n\t * Get a panel by name\n\t * @param {string} name - panel's name\n\t * @returns {VPanel}\n\t */\n\tVLayout.prototype.getPanelByName = function(name) {\n\t var found;\n\t util.forEach(this.panels, function(panel) {\n\t if (panel.name === name) {\n\t found = panel;\n\t }\n\t });\n\t\n\t return found;\n\t};\n\t\n\tmodule.exports = VLayout;\n\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Move handler for Allday view.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar common = __webpack_require__(6);\n\tvar domutil = __webpack_require__(2);\n\tvar AlldayCore = __webpack_require__(17);\n\tvar AlldayMoveGuide = __webpack_require__(76);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes AlldayCore\n\t * @mixes CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Allday} [alldayView] - Allday view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction AlldayMove(dragHandler, alldayView, baseController) {\n\t /**\n\t * Drag handler instance.\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * allday view instance.\n\t * @type {Allday}\n\t */\n\t this.alldayView = alldayView;\n\t\n\t /**\n\t * Base controller instance.\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * Temporary variable for dragstart event data.\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t dragHandler.on({\n\t dragStart: this._onDragStart\n\t }, this);\n\t\n\t /**\n\t * @type {AlldayMoveGuide}\n\t */\n\t this.guide = new AlldayMoveGuide(this);\n\t}\n\t\n\tAlldayMove.prototype.destroy = function() {\n\t this.guide.destroy();\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.alldayView = this.baseController =\n\t this.guide = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * Check dragstart target is expected conditions for this handler.\n\t * @param {HTMLElement} target - dragstart event handler's target element.\n\t * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n\t */\n\tAlldayMove.prototype.checkExpectedCondition = function(target) {\n\t var cssClass = domutil.getClass(target),\n\t parentView,\n\t matches;\n\t\n\t if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n\t return false;\n\t }\n\t\n\t parentView = domutil.closest(target, config.classname('.weekday'));\n\t\n\t if (!parentView) {\n\t return false;\n\t }\n\t\n\t cssClass = domutil.getClass(parentView);\n\t matches = cssClass.match(config.allday.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.alldayView.children.items, matches[1]);\n\t};\n\t\n\t/**\n\t * DragStart event handler method.\n\t * @emits AlldayMove#alldayMoveDragstart\n\t * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n\t */\n\tAlldayMove.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t result = this.checkExpectedCondition(target),\n\t controller = this.baseController,\n\t excludeTarget = true,\n\t scheduleBlockElement,\n\t modelID,\n\t targetModel,\n\t getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!result) {\n\t return;\n\t }\n\t\n\t scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n\t if (!scheduleBlockElement) {\n\t return;\n\t }\n\t\n\t modelID = domutil.getData(scheduleBlockElement, 'id');\n\t targetModel = controller.schedules.items[modelID];\n\t\n\t if (!targetModel) {\n\t return;\n\t }\n\t\n\t if (targetModel.isReadOnly) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n\t this.getScheduleDataFunc = getScheduleDataFunc;\n\t scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\t\n\t util.extend(scheduleData, {\n\t scheduleBlockElement: scheduleBlockElement,\n\t model: targetModel\n\t });\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event AlldayMove#alldayMoveDragstart\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t * @property {Schedule} model - data object of model isntance.\n\t * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n\t */\n\t this.fire('alldayMoveDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * Drag event handler method.\n\t * @emits AlldayMove#alldayMoveDrag\n\t * @param {object} dragEventData - Drag#drag event handler eventdata.\n\t */\n\tAlldayMove.prototype._onDrag = function(dragEventData) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t /**\n\t * @schedule AlldayMove#alldayMoveDrag\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire('alldayMoveDrag', getScheduleDataFunc(dragEventData.originEvent));\n\t};\n\t\n\t/**\n\t * Request update schedule model to base controller.\n\t * @fires AlldayMove#beforeUpdateSchedule\n\t * @param {object} scheduleData - schedule data from AlldayMove handler module.\n\t */\n\tAlldayMove.prototype._updateSchedule = function(scheduleData) {\n\t var schedule = scheduleData.targetModel,\n\t dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n\t newStarts = new TZDate(schedule.start.getTime()),\n\t newEnds = new TZDate(schedule.end.getTime());\n\t\n\t newStarts = new TZDate(newStarts.setDate(newStarts.getDate() + dateOffset));\n\t newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n\t\n\t /**\n\t * @event AlldayMove#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: newStarts,\n\t end: newEnds\n\t });\n\t};\n\t\n\t/**\n\t * DragEnd event hander method.\n\t * @emits AlldayMove#alldayMoveDragend\n\t * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {?boolean} skipUpdate - true then skip update schedule model.\n\t */\n\tAlldayMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc,\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\t util.extend(scheduleData, {\n\t targetModel: dragStart.model\n\t });\n\t\n\t if (!skipUpdate) {\n\t this._updateSchedule(scheduleData);\n\t }\n\t\n\t /**\n\t * @event AlldayMove#alldayMoveDragend\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire(overrideEventName || 'alldayMoveDragend', scheduleData);\n\t\n\t this.getScheduleDataFunc = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * Click event handler method.\n\t * @emits AlldayMove#alldayMoveClick\n\t * @param {object} clickEventData - Drag#Click event handler data.\n\t */\n\tAlldayMove.prototype._onClick = function(clickEventData) {\n\t /**\n\t * @event AlldayMove#alldayMoveClick\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this._onDragEnd(clickEventData, 'alldayMoveClick', true);\n\t};\n\t\n\tcommon.mixin(AlldayCore, AlldayMove);\n\tutil.CustomEvents.mixin(AlldayMove);\n\t\n\tmodule.exports = AlldayMove;\n\t\n\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Drag handler for calendar.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\t\n\t/**\n\t * @constructor\n\t * @mixes CustomEvents\n\t * @param {object} options - options for drag handler\n\t * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n\t * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n\t * @param {HTMLElement} container element to watching drag interaction.\n\t */\n\tfunction Drag(options, container) {\n\t domevent.on(container, 'mousedown', this._onMouseDown, this);\n\t\n\t this.options = util.extend({\n\t distance: 10,\n\t exclude: null\n\t }, options);\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.container = container;\n\t\n\t /**\n\t * Flag for represent current dragging session has been cancelled for exclude option.\n\t * @type {boolean}\n\t */\n\t this._cancelled = false;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._isMoved = false;\n\t\n\t /**\n\t * dragging distance in pixel between mousedown and firing dragStart events\n\t * @type {number}\n\t */\n\t this._distance = 0;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._dragStartFired = false;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._dragStartEventData = null;\n\t}\n\t\n\t/**\n\t * Destroy method.\n\t */\n\tDrag.prototype.destroy = function() {\n\t domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n\t this._isMoved = null;\n\t this.container = null;\n\t};\n\t\n\t/**\n\t * Clear cache data for single dragging session.\n\t */\n\tDrag.prototype._clearData = function() {\n\t this._cancelled = false;\n\t this._distance = 0;\n\t this._isMoved = false;\n\t this._dragStartFired = false;\n\t this._dragStartEventData = null;\n\t};\n\t\n\t/**\n\t * Toggle events for mouse dragging.\n\t * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n\t */\n\tDrag.prototype._toggleDragEvent = function(toBind) {\n\t var container = this.container,\n\t domMethod,\n\t method;\n\t\n\t if (toBind) {\n\t domMethod = 'on';\n\t method = 'disable';\n\t } else {\n\t domMethod = 'off';\n\t method = 'enable';\n\t }\n\t\n\t domutil[method + 'TextSelection'](container);\n\t domutil[method + 'ImageDrag'](container);\n\t domevent[domMethod](global.document, {\n\t mousemove: this._onMouseMove,\n\t mouseup: this._onMouseUp\n\t }, this);\n\t};\n\t\n\t/**\n\t * Normalize mouse event object.\n\t * @param {MouseEvent} mouseEvent - mouse event object.\n\t * @returns {object} normalized mouse event data.\n\t */\n\tDrag.prototype._getEventData = function(mouseEvent) {\n\t return {\n\t target: mouseEvent.target || mouseEvent.srcElement,\n\t originEvent: mouseEvent\n\t };\n\t};\n\t\n\t/**\n\t * MouseDown DOM event handler.\n\t * @param {MouseEvent} mouseDownEvent MouseDown event object.\n\t */\n\tDrag.prototype._onMouseDown = function(mouseDownEvent) {\n\t var opt = this.options,\n\t target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\t\n\t // only primary button can start drag.\n\t if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n\t return;\n\t }\n\t\n\t if (opt.exclude && opt.exclude(target)) {\n\t this._cancelled = true;\n\t\n\t return;\n\t }\n\t\n\t this._clearData();\n\t this._dragStartEventData = this._getEventData(mouseDownEvent);\n\t\n\t this._toggleDragEvent(true);\n\t};\n\t\n\t/**\n\t * MouseMove DOM event handler.\n\t * @emits Drag#drag\n\t * @emits Drag#dragStart\n\t * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n\t */\n\tDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n\t var distance;\n\t\n\t if (this._cancelled) {\n\t this._clearData();\n\t\n\t return;\n\t }\n\t\n\t distance = this.options.distance;\n\t // prevent automatic scrolling.\n\t domevent.preventDefault(mouseMoveEvent);\n\t\n\t if (this._distance < distance) {\n\t this._distance += 1;\n\t\n\t return;\n\t }\n\t this._isMoved = true;\n\t\n\t if (!this._dragStartFired) {\n\t this._dragStartFired = true;\n\t\n\t /**\n\t * Drag start events. cancelable.\n\t * @event Drag#dragStart\n\t * @type {object}\n\t * @property {HTMLElement} target - target element in this event.\n\t * @property {MouseEvent} originEvent - original mouse event object.\n\t */\n\t if (!this.invoke('dragStart', this._dragStartEventData)) {\n\t this._toggleDragEvent(false);\n\t this._clearData();\n\t\n\t return;\n\t }\n\t }\n\t\n\t /**\n\t * CalEvents while dragging.\n\t * @event Drag#drag\n\t * @type {object}\n\t * @property {HTMLElement} target - target element in this event.\n\t * @property {MouseEvent} originEvent - original mouse event object.\n\t */\n\t this.fire('drag', this._getEventData(mouseMoveEvent));\n\t};\n\t\n\t/**\n\t * MouseUp DOM event handler.\n\t * @param {MouseEvent} mouseUpEvent MouseUp event object.\n\t * @emits Drag#dragEnd\n\t * @emits Drag#click\n\t */\n\tDrag.prototype._onMouseUp = function(mouseUpEvent) {\n\t if (this._cancelled) {\n\t return;\n\t }\n\t\n\t this._toggleDragEvent(false);\n\t\n\t // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n\t if (this._isMoved) {\n\t this._isMoved = false;\n\t /**\n\t * Drag end events.\n\t * @event Drag#dragEnd\n\t * @type {MouseEvent}\n\t * @property {HTMLElement} target - target element in this event.\n\t * @property {MouseEvent} originEvent - original mouse event object.\n\t */\n\t this.fire('dragEnd', this._getEventData(mouseUpEvent));\n\t } else {\n\t /**\n\t * Click events.\n\t * @event Drag#click\n\t * @type {MouseEvent}\n\t * @property {HTMLElement} target - target element in this event.\n\t * @property {MouseEvent} originEvent - original mouse event object.\n\t */\n\t this.fire('click', this._getEventData(mouseUpEvent));\n\t }\n\t\n\t this._clearData();\n\t};\n\t\n\tutil.CustomEvents.mixin(Drag);\n\t\n\tmodule.exports = Drag;\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 27 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Guide element controller for creation, resize in month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t datetime = __webpack_require__(4),\n\t dw = __webpack_require__(15),\n\t tmpl = __webpack_require__(32);\n\tvar mmax = Math.max,\n\t mmin = Math.min,\n\t mabs = Math.abs,\n\t mfloor = Math.floor;\n\t\n\t/**\n\t * @constructor\n\t * @param {object} [options] - options\n\t * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n\t * guide element?\n\t * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n\t * @param {Month} monthView - Month view instance\n\t */\n\tfunction MonthGuide(options, monthView) {\n\t var self = this;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t top: 0,\n\t height: '20px',\n\t bgColor: '#f7ca88',\n\t label: '새 일정',\n\t isResizeMode: false,\n\t isCreationMode: false\n\t }, options);\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.view = monthView;\n\t\n\t /**\n\t * @type {WeekdayInMonth[]}\n\t */\n\t this.weeks = monthView.children.sort(function(a, b) {\n\t return util.stamp(a) - util.stamp(b);\n\t });\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.days = monthView.children.single().getRenderDateRange().length;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.ratio = util.bind(function(value) {\n\t return common.ratio(self.days, 100, value);\n\t });\n\t\n\t /**\n\t * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n\t * start lower than this coordinate.\n\t * @type {number[]}\n\t */\n\t this.startCoord = [0, 0];\n\t\n\t /**\n\t * @type {Object.}\n\t */\n\t this.guideElements = {};\n\t\n\t /**\n\t * horizontal grid information\n\t * @type {Object}\n\t */\n\t this.grids = monthView.grids;\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthGuide.prototype.destroy = function() {\n\t this.clear();\n\t\n\t this.options = this.view = this.weeks = this.days =\n\t this.ratio = this.startCoord = this.guideElements = null;\n\t};\n\t\n\tMonthGuide.prototype.clearGuideElement = function() {\n\t this.destroy();\n\t};\n\t\n\t/**\n\t * Get ratio value in week.\n\t * @param {number} value - value for calc ratio in week\n\t * @returns {number} percent value\n\t */\n\tMonthGuide.prototype._getRatioValueInWeek = function(value) {\n\t var grid = this.grids[value] || {left: 100};\n\t\n\t return grid.left;\n\t};\n\t\n\t/**\n\t * Create guide element\n\t * @returns {HTMLElement} guide element\n\t */\n\tMonthGuide.prototype._createGuideElement = function() {\n\t var guide = document.createElement('div');\n\t\n\t guide.innerHTML = tmpl(this.options);\n\t\n\t return guide.firstChild;\n\t};\n\t\n\t/**\n\t * Get guide element. if not exist then create one\n\t * @param {number} y - y coordinate\n\t * @returns {?HTMLElement} guide element\n\t */\n\tMonthGuide.prototype._getGuideElement = function(y) {\n\t var guideElements = this.guideElements,\n\t guide = guideElements[y],\n\t weekdayView = this.weeks[y],\n\t container;\n\t\n\t if (!weekdayView) {\n\t return null;\n\t }\n\t\n\t if (!guide) {\n\t guide = this._createGuideElement();\n\t container = weekdayView.container;\n\t container.appendChild(guide);\n\t guideElements[y] = guide;\n\t }\n\t\n\t return guide;\n\t};\n\t\n\t/**\n\t * Get coordinate by supplied date in month\n\t * @param {Date} date - date to find coordinate\n\t * @returns {number[]} coordinate (x, y)\n\t */\n\tMonthGuide.prototype._getCoordByDate = function(date) {\n\t var weeks = this.weeks,\n\t days = this.days,\n\t getIdxFromDiff = function(d1, d2) {\n\t return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n\t },\n\t monthStart = datetime.parse(weeks[0].options.renderStartDate),\n\t isBefore = date < monthStart,\n\t dateDW = dw(date),\n\t startDW = dw(monthStart),\n\t endDW = startDW.clone().addDate(isBefore ? -days : days),\n\t x = getIdxFromDiff(dateDW.d, startDW.d),\n\t y = 0;\n\t\n\t while (!dateDW.isBetween(startDW, endDW)) {\n\t startDW.addDate(isBefore ? -days : days);\n\t endDW = startDW.clone().addDate(days);\n\t x = getIdxFromDiff(dateDW.d, startDW.d);\n\t y += (isBefore ? -1 : 1);\n\t }\n\t\n\t return [x, y];\n\t};\n\t\n\t/**\n\t * Get limited coordinate by supplied coodinates\n\t * @param {number[]} coord - coordinate need to limit\n\t * @param {number[]} [min] - minimum limitaion of coordinate\n\t * @param {number[]} [max] - maximum limitation of coordinate\n\t * @returns {number[]} limited coordiate\n\t */\n\tMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n\t var toIndex = 1,\n\t x = coord[0],\n\t y = coord[1],\n\t result;\n\t\n\t min = min || [0, 0];\n\t max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\t\n\t if (y < min[1]) {\n\t result = min.slice(0);\n\t } else if (y > max[1]) {\n\t result = max.slice(0);\n\t } else {\n\t x = mmax(min[0], x);\n\t x = mmin(max[0], x);\n\t result = [x, y];\n\t }\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * Prepare guide element modification\n\t * @param {object} dragStartEvent - dragStart schedule data from *guide\n\t */\n\tMonthGuide.prototype.start = function(dragStartEvent) {\n\t var opt = this.options,\n\t target = dragStartEvent.target,\n\t model = dragStartEvent.model,\n\t x = dragStartEvent.x,\n\t y = dragStartEvent.y,\n\t temp;\n\t\n\t if (opt.isResizeMode) {\n\t temp = this._getCoordByDate(model.getStarts());\n\t x = temp[0];\n\t y = temp[1];\n\t\n\t util.extend(this.options, {\n\t top: parseInt(target.style.top, 10) + 'px',\n\t height: parseInt(target.style.height, 10) + 'px',\n\t bgColor: model.bgColor,\n\t borderColor: model.borderColor,\n\t label: model.title\n\t });\n\t }\n\t\n\t this.startCoord = [x, y];\n\t this.update(x, y);\n\t};\n\t\n\t/**\n\t * Data for update several guide elements\n\t * @typedef UpdateIndication\n\t * @type {object}\n\t * @property {HTMLElement} guide - guide element\n\t * @property {number} left - left style value\n\t * @property {number} width - width style value\n\t * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n\t * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n\t */\n\t\n\t/**\n\t * Modify HTML element that uses for guide element\n\t * @param {UpdateIndication[]} inds - indication of update severel guide element\n\t */\n\tMonthGuide.prototype._updateGuides = function(inds) {\n\t util.forEach(inds, function(ind) {\n\t var guide = ind.guide,\n\t exceedLClass = config.classname('month-exceed-left'),\n\t exceedRClass = config.classname('month-exceed-right');\n\t\n\t guide.style.display = 'block';\n\t guide.style.left = ind.left + '%';\n\t guide.style.width = ind.width + '%';\n\t\n\t if (ind.exceedL) {\n\t domutil.addClass(guide, exceedLClass);\n\t } else {\n\t domutil.removeClass(guide, exceedLClass);\n\t }\n\t\n\t if (ind.exceedR) {\n\t domutil.addClass(guide, exceedRClass);\n\t } else {\n\t domutil.removeClass(guide, exceedRClass);\n\t }\n\t });\n\t};\n\t\n\t/**\n\t * Get guide element indicate for origin week\n\t * @param {number[]} startCoord - drag start coordinate\n\t * @param {number[]} mouseCoord - mouse coordinate\n\t * @returns {object} indicate\n\t */\n\tMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n\t var left = mmin(startCoord[0], mouseCoord[0]),\n\t right = mmax(startCoord[0], mouseCoord[0]) + 1,\n\t exceedL, exceedR;\n\t\n\t if (mouseCoord[1] > startCoord[1]) {\n\t left = startCoord[0];\n\t right = this.days;\n\t exceedR = true;\n\t } else if (mouseCoord[1] < startCoord[1]) {\n\t left = 0;\n\t right = startCoord[0] + 1;\n\t exceedL = true;\n\t }\n\t\n\t return {\n\t left: this._getRatioValueInWeek(left),\n\t width: this._getRatioValueInWeek(right) -\n\t this._getRatioValueInWeek(left),\n\t exceedL: exceedL,\n\t exceedR: exceedR\n\t };\n\t};\n\t\n\t/**\n\t * Get guide element indicate for week related with mouse position\n\t * @param {number[]} startCoord - drag start coordinate\n\t * @param {number[]} mouseCoord - mouse coordinate\n\t * @returns {object} indicate\n\t */\n\tMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n\t var left = mouseCoord[0],\n\t right = mouseCoord[0] + 1,\n\t exceedL, exceedR;\n\t\n\t if (mouseCoord[1] > startCoord[1]) {\n\t left = 0;\n\t exceedL = true;\n\t } else if (mouseCoord[1] < startCoord[1]) {\n\t right = this.days;\n\t exceedR = true;\n\t }\n\t\n\t return {\n\t left: this._getRatioValueInWeek(left),\n\t width: this._getRatioValueInWeek(right) -\n\t this._getRatioValueInWeek(left),\n\t exceedL: exceedL,\n\t exceedR: exceedR\n\t };\n\t};\n\t\n\t/**\n\t * Get guide element indicate for contained weeks\n\t * @returns {object} indicate\n\t */\n\tMonthGuide.prototype._getContainIndicate = function() {\n\t return {\n\t left: 0,\n\t width: 100,\n\t exceedL: true,\n\t exceedR: true\n\t };\n\t};\n\t\n\t/**\n\t * Remove several guide element that supplied by parameter\n\t * @param {number[]} yCoords - array of y coordinate to remove guide element\n\t */\n\tMonthGuide.prototype._removeGuideElements = function(yCoords) {\n\t var guides = this.guideElements;\n\t\n\t util.forEach(yCoords, function(y) {\n\t domutil.remove(guides[y]);\n\t delete guides[y];\n\t });\n\t};\n\t\n\t/**\n\t * Get excluded numbers in range\n\t * @param {number[]} range - the range. value must be sequencial.\n\t * @param {number[]} numbers - numbers to check\n\t * @returns {number[]} excluded numbers\n\t */\n\tMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n\t var min = mmin.apply(null, range),\n\t max = mmax.apply(null, range),\n\t excludes = [];\n\t\n\t util.forEach(numbers, function(num) {\n\t num = parseInt(num, 10);\n\t if (num < min || num > max) {\n\t excludes.push(num);\n\t }\n\t });\n\t\n\t return excludes;\n\t};\n\t\n\t/**\n\t * Update guide elements by coordinate in month grid from mousemove event\n\t * @param {number} x - x coordinate\n\t * @param {number} y - y coordinate\n\t */\n\tMonthGuide.prototype.update = function(x, y) {\n\t var self = this,\n\t startCoord = this.startCoord,\n\t mouseCoord = [x, y],\n\t limitedCoord = this.options.isResizeMode ?\n\t this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n\t renderedYIndex = util.keys(this.guideElements),\n\t yCoordsToUpdate = util.range(\n\t mmin(startCoord[1], limitedCoord[1]),\n\t mmax(startCoord[1], limitedCoord[1]) + 1\n\t ),\n\t yCoordsToRemove = this._getExcludesInRange(\n\t yCoordsToUpdate,\n\t renderedYIndex\n\t ),\n\t renderIndication = {};\n\t\n\t this._removeGuideElements(yCoordsToRemove);\n\t\n\t util.forEach(yCoordsToUpdate, function(guideYCoord) {\n\t var guide = self._getGuideElement(guideYCoord),\n\t indicate;\n\t\n\t if (!guide) {\n\t return;\n\t }\n\t\n\t if (guideYCoord === startCoord[1]) {\n\t indicate = self._getOriginIndicate(startCoord, limitedCoord);\n\t } else if (guideYCoord === mouseCoord[1]) {\n\t indicate = self._getMouseIndicate(startCoord, mouseCoord);\n\t } else {\n\t indicate = self._getContainIndicate();\n\t }\n\t\n\t renderIndication[guideYCoord] = util.extend({\n\t guide: guide\n\t }, indicate);\n\t });\n\t\n\t this._updateGuides(renderIndication);\n\t};\n\t\n\t/**\n\t * Clear all guide elements\n\t */\n\tMonthGuide.prototype.clear = function() {\n\t util.forEach(this.guideElements, function(element) {\n\t domutil.remove(element);\n\t });\n\t\n\t this.guideElements = {};\n\t};\n\t\n\tmodule.exports = MonthGuide;\n\t\n\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Model for views\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\t/**\n\t * Schedule ViewModel\n\t * @constructor\n\t * @param {Schedule} schedule Schedule instance.\n\t */\n\tfunction ScheduleViewModel(schedule) {\n\t /**\n\t * The model of schedule.\n\t * @type {Schedule}\n\t */\n\t this.model = schedule;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.top = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.left = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.width = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.height = 0;\n\t\n\t /**\n\t * Represent schedule has collide with other schedules when rendering.\n\t * @type {boolean}\n\t */\n\t this.hasCollide = false;\n\t\n\t /**\n\t * Extra space at rigth side of this schedule.\n\t * @type {number}\n\t */\n\t this.extraSpace = 0;\n\t\n\t /**\n\t * represent this schedule block is not visible after rendered.\n\t *\n\t * in month view, some viewmodel in date need to hide when already rendered before dates.\n\t *\n\t * set true then it just shows empty space.\n\t * @type {boolean}\n\t */\n\t this.hidden = false;\n\t\n\t /**\n\t * whether the schedule includes multiple dates\n\t */\n\t this.hasMultiDates = false;\n\t\n\t /**\n\t * represent render start date used at rendering.\n\t *\n\t * if set null then use model's 'start' property.\n\t * @type {TZDate}\n\t */\n\t this.renderStarts = null;\n\t\n\t /**\n\t * whether the actual start-date is before the render-start-date\n\t * @type {boolean}\n\t */\n\t this.exceedLeft = false;\n\t\n\t /**\n\t * represent render end date used at rendering.\n\t *\n\t * if set null then use model's 'end' property.\n\t * @type {TZDate}\n\t */\n\t this.renderEnds = null;\n\t\n\t /**\n\t * whether the actual end-date is after the render-end-date\n\t * @type {boolean}\n\t */\n\t this.exceedRight = false;\n\t}\n\t\n\t/**********\n\t * static props\n\t **********/\n\t\n\t/**\n\t * ScheduleViewModel factory method.\n\t * @param {Schedule} schedule Schedule instance.\n\t * @returns {ScheduleViewModel} ScheduleViewModel instance.\n\t */\n\tScheduleViewModel.create = function(schedule) {\n\t return new ScheduleViewModel(schedule);\n\t};\n\t\n\t/**********\n\t * prototype props\n\t **********/\n\t\n\t/**\n\t * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n\t *\n\t * if renderStarts is not set. return model's start property.\n\t * @override\n\t * @returns {Date} render start date.\n\t */\n\tScheduleViewModel.prototype.getStarts = function() {\n\t if (this.renderStarts) {\n\t return this.renderStarts;\n\t }\n\t\n\t return this.model.start;\n\t};\n\t\n\t/**\n\t * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n\t *\n\t * if renderEnds is not set. return model's end property.\n\t * @override\n\t * @returns {Date} render end date.\n\t */\n\tScheduleViewModel.prototype.getEnds = function() {\n\t if (this.renderEnds) {\n\t return this.renderEnds;\n\t }\n\t\n\t return this.model.end;\n\t};\n\t\n\t/**\n\t * @returns {number} unique number for model.\n\t */\n\tScheduleViewModel.prototype.cid = function() {\n\t return util.stamp(this.model);\n\t};\n\t\n\t/**\n\t * Shadowing valueOf method for schedule sorting.\n\t * @returns {Schedule} The model of schedule.\n\t */\n\tScheduleViewModel.prototype.valueOf = function() {\n\t return this.model;\n\t};\n\t\n\t/**\n\t * Link duration method\n\t * @returns {number} Schedule#duration result.\n\t */\n\tScheduleViewModel.prototype.duration = function() {\n\t return this.model.duration();\n\t};\n\t\n\t/**\n\t * Link collidesWith method\n\t * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n\t * @returns {boolean} Schedule#collidesWith result.\n\t */\n\tScheduleViewModel.prototype.collidesWith = function(viewModel) {\n\t var ownStarts = this.getStarts(),\n\t ownEnds = this.getEnds(),\n\t start = viewModel.getStarts(),\n\t end = viewModel.getEnds();\n\t\n\t if ((start > ownStarts && start < ownEnds) ||\n\t (end > ownStarts && end < ownEnds) ||\n\t (start <= ownStarts && end >= ownEnds)) {\n\t return true;\n\t }\n\t\n\t return false;\n\t};\n\t\n\tmodule.exports = ScheduleViewModel;\n\t\n\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Weekday view for week\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar Weekday = __webpack_require__(30),\n\t tmpl = __webpack_require__(45),\n\t datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar config = __webpack_require__(3);\n\tvar mmax = Math.max,\n\t mmin = Math.min;\n\t\n\t/**\n\t * @constructor\n\t * @extends {Weekday}\n\t * @param {object} options - options for WeekdayInWeek view\n\t * @param {number} [options.containerHeight=40] - minimum height of schedule\n\t * container element.\n\t * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n\t * make create easy.\n\t * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n\t * @param {HTMLDIVElement} container - DOM element to use container for this\n\t * view.\n\t * @param {object} [aboutMe] - parent container info\n\t * @param {string} [aboutMe.name] - panel name ['Milestone'|'Task'|'AllDay'|'TimeGrid']\n\t * @param {boolean} [aboutMe.forcedLayout] - force layout height by dragging\n\t */\n\tfunction WeekdayInWeek(options, container, aboutMe) {\n\t Weekday.call(this, options, container);\n\t this.aboutMe = aboutMe || {};\n\t}\n\t\n\tutil.inherit(WeekdayInWeek, Weekday);\n\t\n\t/**\n\t * Render Weekday view\n\t * @override\n\t */\n\tWeekdayInWeek.prototype.render = function(viewModel) {\n\t var opt = this.options,\n\t container = this.container,\n\t aboutMe = this.aboutMe,\n\t name = aboutMe.name;\n\t var baseViewModel;\n\t\n\t this.viewType = opt[name + 'ViewType'] || '';\n\t\n\t baseViewModel = this.getBaseViewModel(viewModel);\n\t\n\t if (this.viewType === 'toggle') {\n\t baseViewModel.viewType = this.viewType;\n\t baseViewModel.collapsed = this.collapsed ? 'collapsed' : '';\n\t }\n\t\n\t container.innerHTML = tmpl(baseViewModel);\n\t\n\t util.forEach(domutil.find(config.classname('.weekday-exceed-in-week'), container, true), function(el) {\n\t el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n\t });\n\t\n\t util.forEach(domutil.find(config.classname('.weekday-collapse-btn'), container, true), function(el) {\n\t el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n\t });\n\t\n\t this.fire('afterRender', baseViewModel);\n\t};\n\t\n\t/**\n\t * returns maximum schedule count in day\n\t * @param {array} matrices - The matrices for schedule placing.\n\t * @returns {number} maximum schedule count in day\n\t */\n\tWeekdayInWeek.prototype._getMaxScheduleInDay = function(matrices) {\n\t return mmax.apply(\n\t null,\n\t util.map(matrices, function(matrix) {\n\t return Math.max.apply(null, util.map(matrix, function(row) {\n\t return row.length;\n\t }));\n\t })\n\t );\n\t};\n\t\n\t/**\n\t * returns minimum height for container.\n\t * @param {number} maxScheduleInDay - max schedule blocks in one day\n\t * @returns {number}\n\t */\n\tWeekdayInWeek.prototype._getMinHeight = function(maxScheduleInDay) {\n\t var opt = this.options;\n\t var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n\t + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\t\n\t if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n\t contentHeight += opt.containerBottomGutter;\n\t }\n\t\n\t return contentHeight;\n\t};\n\t\n\t/**\n\t * make and update data of exceed date\n\t * @param {object} exceedDate - data to have exceed date in a week\n\t * @param {TZDate} renderStarts - start date of a week\n\t * @param {TZDate} renderEnds - end date of a week\n\t */\n\tWeekdayInWeek.prototype._updateExceedDate = function(exceedDate, renderStarts, renderEnds) {\n\t var date = datetime.clone(renderStarts);\n\t var day;\n\t\n\t for (; date <= renderEnds; date.setDate(date.getDate() + 1)) {\n\t day = datetime.format(date, 'YYYYMMDD');\n\t if (!exceedDate[day]) {\n\t exceedDate[day] = 1;\n\t } else {\n\t exceedDate[day] += 1;\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * Exclude overflow schedules from matrices\n\t * @param {array} matrices - The matrices for schedule placing.\n\t * @param {number} visibleScheduleCount - maximum visible count on panel\n\t * @param {number} maxScheduleInDay - maximum number of schedules in day\n\t * @returns {array} - The matrices for schedule placing except overflowed schedules.\n\t */\n\tWeekdayInWeek.prototype._excludeExceedSchedules = function(matrices, visibleScheduleCount, maxScheduleInDay) {\n\t if (visibleScheduleCount >= maxScheduleInDay) {\n\t return matrices;\n\t }\n\t\n\t return matrices.map(function(matrix) {\n\t return matrix.map(function(row) {\n\t if (row.length > visibleScheduleCount) {\n\t return row.filter(function(item) {\n\t return item.top < visibleScheduleCount;\n\t }, this);\n\t }\n\t\n\t return row;\n\t }, this);\n\t }, this);\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel - schedules view models\n\t */\n\tWeekdayInWeek.prototype.getBaseViewModel = function(viewModel) {\n\t var opt = this.options;\n\t var matrices = opt.getViewModelFunc(viewModel);\n\t var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n\t var visibleScheduleCount = this.aboutMe.visibleScheduleCount;\n\t var aboutMe = this.aboutMe;\n\t var exceedDate = {};\n\t var baseViewModel, panelHeight, maxHiddenScheduleCount;\n\t\n\t if (this.viewType === 'toggle') {\n\t panelHeight = aboutMe.forcedLayout ? this.getViewBound().height : mmin(aboutMe.height, aboutMe.maxHeight);\n\t visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\t if (this.collapsed) {\n\t visibleScheduleCount = mmin(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n\t exceedDate =\n\t this.getExceedDate(visibleScheduleCount,\n\t viewModel.schedulesInDateRange[aboutMe.name],\n\t viewModel.range,\n\t maxScheduleInDay\n\t );\n\t matrices = this._excludeExceedSchedules(matrices, visibleScheduleCount, maxScheduleInDay);\n\t aboutMe.visibleScheduleCount = visibleScheduleCount;\n\t } else {\n\t maxHiddenScheduleCount = maxScheduleInDay - aboutMe.visibleScheduleCount;\n\t exceedDate =\n\t this.getExceedDate(\n\t mmin(maxScheduleInDay, aboutMe.maxExpandCount) - maxHiddenScheduleCount,\n\t viewModel.schedulesInDateRange[aboutMe.name],\n\t viewModel.range\n\t );\n\t visibleScheduleCount = mmax(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n\t }\n\t }\n\t\n\t viewModel = util.extend({\n\t exceedDate: exceedDate || {}\n\t }, viewModel);\n\t\n\t baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\t\n\t baseViewModel = util.extend({\n\t minHeight: this._getMinHeight(maxScheduleInDay),\n\t matrices: matrices,\n\t scheduleContainerTop: this.options.scheduleContainerTop,\n\t minHiddenScheduleIndex: this._getCollapseBtnIndex(viewModel.range,\n\t baseViewModel.dates,\n\t maxHiddenScheduleCount,\n\t exceedDate\n\t ),\n\t maxScheduleInDay: maxScheduleInDay,\n\t floatingButtonTop: this._calculateFloatingBtnTop(visibleScheduleCount, maxScheduleInDay),\n\t panelName: aboutMe.name\n\t }, baseViewModel);\n\t\n\t return baseViewModel;\n\t};\n\t\n\t/**\n\t * return weekday index to show collapse button\n\t * @param {Array.} range - view model\n\t * @param {Array.} dates - base view model\n\t * @param {number} maxHiddenCount - maximum hidden count when panel is collapsed\n\t * @param {array} exceedDate - overflowed schedule count in week\n\t * @returns {number} weekday index\n\t */\n\tWeekdayInWeek.prototype._getCollapseBtnIndex = function(range, dates, maxHiddenCount, exceedDate) {\n\t var minHiddenScheduleCount = maxHiddenCount;\n\t var btnIndex = range.length > 0 ? range.length - 1 : 0;\n\t\n\t util.forEach(dates, function(date, index) {\n\t var ymd = date.ymd;\n\t if (exceedDate[ymd] !== 0 && minHiddenScheduleCount >= exceedDate[ymd]) {\n\t minHiddenScheduleCount = exceedDate[ymd];\n\t btnIndex = index;\n\t }\n\t });\n\t\n\t return btnIndex;\n\t};\n\t\n\t/**\n\t * Calculate absolute top position of floating button layer\n\t * @param {number} visibleScheduleCount - maximum (row) number of schedules that panel can show\n\t * @param {number} maxScheduleInDay - maximum number of schedules in day\n\t * @returns {number} absolute top position of floating buttons in weekday panel\n\t */\n\tWeekdayInWeek.prototype._calculateFloatingBtnTop = function(visibleScheduleCount, maxScheduleInDay) {\n\t var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n\t\n\t if (!this.collapsed && maxScheduleInDay > this.aboutMe.maxExpandCount) {\n\t return (visibleScheduleCount - 0.5) * scheduleHeight;\n\t }\n\t\n\t return (visibleScheduleCount - 1) * scheduleHeight;\n\t};\n\t\n\tmodule.exports = WeekdayInWeek;\n\n\n/***/ },\n/* 30 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Weekday view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t datetime = __webpack_require__(4),\n\t TZDate = __webpack_require__(5).Date,\n\t View = __webpack_require__(8);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - view options.\n\t * @param {number} [options.containerHeight=40] - minimum height of schedule\n\t * container element.\n\t * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n\t * make create easy.\n\t * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n\t * @param {HTMLDIVElement} container - DOM element to use container for this\n\t * view.\n\t */\n\tfunction Weekday(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('weekday')\n\t );\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t containerHeight: 40,\n\t containerBottomGutter: 8,\n\t scheduleHeight: 18,\n\t scheduleGutter: 2,\n\t narrowWeekend: false,\n\t startDayOfWeek: 0,\n\t workweek: false\n\t }, options);\n\t\n\t /*\n\t * cache parent's view model\n\t * @type {object}\n\t */\n\t this._cacheParentViewModel = null;\n\t\n\t View.call(this, container);\n\t}\n\t\n\tutil.inherit(Weekday, View);\n\t\n\t/**\n\t * Get render date range\n\t * @returns {Date[]} rendered date range\n\t */\n\tWeekday.prototype.getRenderDateRange = function() {\n\t return this._cacheParentViewModel.range;\n\t};\n\t\n\t/**\n\t * Get render date grids information\n\t * @returns {Date[]} rendered date grids information\n\t */\n\tWeekday.prototype.getRenderDateGrids = function() {\n\t return this._cacheParentViewModel.grids;\n\t};\n\t\n\t/**\n\t * Get default view model.\n\t * @param {object} viewModel parent's view model\n\t * @returns {object} viewModel to rendering.\n\t */\n\tWeekday.prototype.getBaseViewModel = function(viewModel) {\n\t var opt = this.options;\n\t var range = viewModel.range;\n\t var today = datetime.format(new TZDate(), 'YYYYMMDD');\n\t var gridWidth = (100 / range.length);\n\t var grids = viewModel.grids;\n\t var exceedDate = viewModel.exceedDate || {};\n\t\n\t this._cacheParentViewModel = viewModel;\n\t\n\t return {\n\t width: gridWidth,\n\t scheduleHeight: opt.scheduleHeight,\n\t scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n\t scheduleBlockGutter: opt.scheduleGutter,\n\t dates: util.map(range, function(date, index) {\n\t var day = date.getDay();\n\t var ymd = datetime.format(date, 'YYYYMMDD');\n\t\n\t return {\n\t date: datetime.format(date, 'YYYY-MM-DD'),\n\t month: date.getMonth() + 1,\n\t day: day,\n\t isToday: ymd === today,\n\t ymd: ymd,\n\t hiddenSchedules: exceedDate[ymd] || 0,\n\t width: grids[index] ? grids[index].width : 0,\n\t left: grids[index] ? grids[index].left : 0\n\t };\n\t })\n\t };\n\t};\n\t\n\t/* eslint max-nested-callbacks: 0 */\n\t/**\n\t * Make exceed date information\n\t * @param {number} maxCount - exceed schedule count\n\t * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n\t * @param {Array.} range - date range of one week\n\t * @returns {object} exceedDate\n\t */\n\tWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n\t var exceedDate = this._initExceedDate(range);\n\t\n\t util.forEach(eventsInDateRange, function(matrix) {\n\t util.forEach(matrix, function(column) {\n\t util.forEach(column, function(viewModel) {\n\t var period;\n\t if (!viewModel || viewModel.top < maxCount) {\n\t return;\n\t }\n\t\n\t period = datetime.range(\n\t viewModel.getStarts(),\n\t viewModel.getEnds(),\n\t datetime.MILLISECONDS_PER_DAY\n\t );\n\t\n\t util.forEach(period, function(date) {\n\t var ymd = datetime.format(date, 'YYYYMMDD');\n\t exceedDate[ymd] += 1;\n\t });\n\t });\n\t });\n\t });\n\t\n\t return exceedDate;\n\t};\n\t\n\t/**\n\t * Initiate exceed date information\n\t * @param {Array.} range - date range of one week\n\t * @returns {Object} - initiated exceed date\n\t */\n\tWeekday.prototype._initExceedDate = function(range) {\n\t var exceedDate = {};\n\t\n\t util.forEach(range, function(date) {\n\t var ymd = datetime.format(date, 'YYYYMMDD');\n\t exceedDate[ymd] = 0;\n\t });\n\t\n\t return exceedDate;\n\t};\n\t\n\tmodule.exports = Weekday;\n\n\n/***/ },\n/* 31 */\n/***/ function(module, exports) {\n\n\t// removed by extract-text-webpack-plugin\n\n/***/ },\n/* 32 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \"
    \\n\";\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \"\n\t + alias4(((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"label\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"
    \\n
     
    \\n
    \\n\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t return \"display:none\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isCreationMode : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 33 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" border-left:3px solid \"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n \";\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \" \\n\";\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"7\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 34 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \\n \"\n\t + ((stack1 = (helpers[\"monthDayname-tmpl\"] || (depth0 && depth0[\"monthDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n \\n
    \\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.daynames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\");\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color: #ffffff; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; border-left:3px solid \"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n\";\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n\t + \"; border-left:3px solid \"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \"\\n\";\n\t},\"7\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\t\n\t return \"
    \\n \\n \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"8\":function(container,depth0,helpers,partials,data) {\n\t return \"\\n background: #ffffff\\n\";\n\t},\"10\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" background:\"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"\\n \";\n\t},\"12\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n color: #ffffff;\\n background-color: \"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"\\n\";\n\t},\"14\":function(container,depth0,helpers,partials,data) {\n\t return \" color:#333;\\n \";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \\n \"\n\t + ((stack1 = (helpers[\"monthMoreTitleDate-tmpl\"] || (depth0 && depth0[\"monthMoreTitleDate-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.date : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n \\n
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 36 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \\n \"\n\t + ((stack1 = (helpers[\"monthGridHeader-tmpl\"] || (depth0 && depth0[\"monthGridHeader-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n \"\n\t + ((stack1 = (helpers[\"monthGridFooter-tmpl\"] || (depth0 && depth0[\"monthGridFooter-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"near-month-day\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"today\";\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"extra-date\";\n\t},\"8\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"monthGridHeaderExceed-tmpl\"] || (depth0 && depth0[\"monthGridHeaderExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"10\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"monthGridFooterExceed-tmpl\"] || (depth0 && depth0[\"monthGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n\"\n\t + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n\"\n\t + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n\"\n\t + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.top : depth0),\"<\",((stack1 = (data && data.root)) && stack1.renderLimitIdx),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\";\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(19, data, 0),\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-exceed-left\";\n\t},\"8\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-exceed-right\";\n\t},\"10\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n \"\n\t + ((stack1 = helpers.unless.call(alias3,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"11\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-schedule-focused \";\n\t},\"13\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color: #ffffff; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \";\\n\";\n\t},\"15\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n\";\n\t},\"17\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \";\n\t},\"19\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\t\n\t return \"
    \\n \\n \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"20\":function(container,depth0,helpers,partials,data) {\n\t return \" background: #ffffff\\n\";\n\t},\"22\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" background:\"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"\\n\";\n\t},\"24\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" color: #ffffff;\\n background-color: \"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"\\n\";\n\t},\"26\":function(container,depth0,helpers,partials,data) {\n\t return \" color:#333;\\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"useData\":true});\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = ((helper = (helper = helpers[\"alldayTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n\t + \"\\n
    \\n
    \\n
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 39 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \\n \"\n\t + ((stack1 = (helpers[\"weekDayname-tmpl\"] || (depth0 && depth0[\"weekDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n \\n
    \\n\";\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"today\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\";\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
      \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.items : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"today\";\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing;\n\t\n\t return \"
  • \\n \"\n\t + ((stack1 = (helpers[\"milestone-tmpl\"] || (depth0 && depth0[\"milestone-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"milestone-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
  • \\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = ((helper = (helper = helpers[\"milestoneTitle-tmpl\"] || (depth0 != null ? depth0[\"milestoneTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"milestoneTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n\t + \"\\n
    \\n
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 41 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = ((helper = (helper = helpers[\"taskTitle-tmpl\"] || (depth0 != null ? depth0[\"taskTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"taskTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n\t + \"\\n
    \\n
    \\n
    \\n
    \";\n\t},\"useData\":true});\n\n/***/ },\n/* 42 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\t\n\t return \"
    \\n
    \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n \"\n\t + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"time-date-schedule-block-pending\";\n\t},\"7\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"time-schedule-focused \";\n\t},\"9\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color: #ffffff; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \";\\n\";\n\t},\"11\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n\";\n\t},\"13\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \"
     
    \";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \"\n\t + alias4(((helper = (helper = helpers.hours || (depth0 != null ? depth0.hours : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hours\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"\\n
    \\n\";\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t return \"display:none\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \"
    \\n\";\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \\n
    \"\n\t + alias4(((helper = (helper = helpers.hourmarkerText || (depth0 != null ? depth0.hourmarkerText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hourmarkerText\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"
    \\n
    \\n
    today
    \\n
    \\n
    \\n
    \\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n
    \\n
    \\n\\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.showHourMarker : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \"
     
    \";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\t\n\t return \"
    \\n
    \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n \"\n\t + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 45 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\";\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"today\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n \"\n\t + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n \"\n\t + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"7\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda;\n\t\n\t return \"\\n
    \\n
    \\n\"\n\t + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"task\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.program(20, data, 0),\"data\":data})) != null ? stack1 : \"\")\n\t + \" \"\n\t + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(22, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n
    \\n\";\n\t},\"8\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-exceed-left\";\n\t},\"10\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-exceed-right\";\n\t},\"12\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-schedule-focused \";\n\t},\"14\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color: #ffffff; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \";\\n\";\n\t},\"16\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n\";\n\t},\"18\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"task-tmpl\"] || (depth0 && depth0[\"task-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"task-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"20\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"22\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \";\n\t},\"24\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.viewType : depth0),\"===\",\"toggle\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(25, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"25\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"26\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && data.root)) && stack1.collapsed),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(27, data, 0),\"inverse\":container.program(30, data, 0),\"data\":data})) != null ? stack1 : \"\");\n\t},\"27\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"28\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \" \"\n\t + alias4((helpers[\"weekGridFooterExceed-tmpl\"] || (depth0 && depth0[\"weekGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data}))\n\t + \"\\n\";\n\t},\"30\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),\"===\",((stack1 = (data && data.root)) && stack1.minHiddenScheduleIndex),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(31, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"31\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \"\n\t + ((stack1 = ((helper = (helper = helpers[\"alldayCollapseBtnTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayCollapseBtnTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayCollapseBtnTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n
    \\n \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,(depth0 != null ? depth0.panelName : depth0),\"===\",\"allday\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 46 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\t\n\tvar _handlebarsBase = __webpack_require__(22);\n\t\n\tvar base = _interopRequireWildcard(_handlebarsBase);\n\t\n\t// Each of these augment the Handlebars object. No need to setup here.\n\t// (This is done to easily share code between commonjs and browse envs)\n\t\n\tvar _handlebarsSafeString = __webpack_require__(60);\n\t\n\tvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\t\n\tvar _handlebarsException = __webpack_require__(13);\n\t\n\tvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\t\n\tvar _handlebarsUtils = __webpack_require__(10);\n\t\n\tvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\t\n\tvar _handlebarsRuntime = __webpack_require__(59);\n\t\n\tvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\t\n\tvar _handlebarsNoConflict = __webpack_require__(58);\n\t\n\tvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\t\n\t// For compatibility and usage outside of module systems, make the Handlebars object a namespace\n\tfunction create() {\n\t var hb = new base.HandlebarsEnvironment();\n\t\n\t Utils.extend(hb, base);\n\t hb.SafeString = _handlebarsSafeString2['default'];\n\t hb.Exception = _handlebarsException2['default'];\n\t hb.Utils = Utils;\n\t hb.escapeExpression = Utils.escapeExpression;\n\t\n\t hb.VM = runtime;\n\t hb.template = function (spec) {\n\t return runtime.template(spec, hb);\n\t };\n\t\n\t return hb;\n\t}\n\t\n\tvar inst = create();\n\tinst.create = create;\n\t\n\t_handlebarsNoConflict2['default'](inst);\n\t\n\tinst['default'] = inst;\n\t\n\texports['default'] = inst;\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Oz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50ZW1wbGF0ZSA9IGZ1bmN0aW9uKHNwZWMpIHtcbiAgICByZXR1cm4gcnVudGltZS50ZW1wbGF0ZShzcGVjLCBoYik7XG4gIH07XG5cbiAgcmV0dXJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\n\n\n/***/ },\n/* 47 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.registerDefaultDecorators = registerDefaultDecorators;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _decoratorsInline = __webpack_require__(48);\n\t\n\tvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\t\n\tfunction registerDefaultDecorators(instance) {\n\t _decoratorsInline2['default'](instance);\n\t}\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ==\n\n\n/***/ },\n/* 48 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerDecorator('inline', function (fn, props, container, options) {\n\t var ret = fn;\n\t if (!props.partials) {\n\t props.partials = {};\n\t ret = function (context, options) {\n\t // Create a new partials stack frame prior to exec.\n\t var original = container.partials;\n\t container.partials = _utils.extend({}, original, props.partials);\n\t var ret = fn(context, options);\n\t container.partials = original;\n\t return ret;\n\t };\n\t }\n\t\n\t props.partials[options.args[0]] = options.fn;\n\t\n\t return ret;\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXFCLFVBQVU7O3FCQUVoQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9CLFlBQUksUUFBUSxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUM7QUFDbEMsaUJBQVMsQ0FBQyxRQUFRLEdBQUcsY0FBTyxFQU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LCBvcHRpb25zKTtcbiAgICAgICAgY29udGFpbmVyLnBhcnRpYWxzID0gb3JpZ2luYWw7XG4gICAgICAgIHJldHVybiByZXQ7XG4gICAgICB9O1xuICAgIH1cblxuICAgIHByb3BzLnBhcnRpYWxzW29wdGlvbnMuYXJnc1swXV0gPSBvcHRpb25zLmZuO1xuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n\n\n/***/ },\n/* 49 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.registerDefaultHelpers = registerDefaultHelpers;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _helpersBlockHelperMissing = __webpack_require__(50);\n\t\n\tvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\t\n\tvar _helpersEach = __webpack_require__(51);\n\t\n\tvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\t\n\tvar _helpersHelperMissing = __webpack_require__(52);\n\t\n\tvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\t\n\tvar _helpersIf = __webpack_require__(53);\n\t\n\tvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\t\n\tvar _helpersLog = __webpack_require__(54);\n\t\n\tvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\t\n\tvar _helpersLookup = __webpack_require__(55);\n\t\n\tvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\t\n\tvar _helpersWith = __webpack_require__(56);\n\t\n\tvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\t\n\tfunction registerDefaultHelpers(instance) {\n\t _helpersBlockHelperMissing2['default'](instance);\n\t _helpersEach2['default'](instance);\n\t _helpersHelperMissing2['default'](instance);\n\t _helpersIf2['default'](instance);\n\t _helpersLog2['default'](instance);\n\t _helpersLookup2['default'](instance);\n\t _helpersWith2['default'](instance);\n\t}\n\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y9sb29rdXAnO1xuaW1wb3J0IHJlZ2lzdGVyV2l0aCBmcm9tICcuL2hlbHBlcnMvd2l0aCc7XG5cbmV4cG9ydCBmdW5jdGlvbiByZWdpc3RlckRlZmF1bHRIZWxwZXJzKGluc3RhbmNlKSB7XG4gIHJlZ2lzdGVyQmxvY2tIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJFYWNoKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJJZihpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyTG9nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb29rdXAoaW5zdGFuY2UpO1xuICByZWdpc3RlcldpdGgoaW5zdGFuY2UpO1xufVxuIl19\n\n\n/***/ },\n/* 50 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('blockHelperMissing', function (context, options) {\n\t var inverse = options.inverse,\n\t fn = options.fn;\n\t\n\t if (context === true) {\n\t return fn(this);\n\t } else if (context === false || context == null) {\n\t return inverse(this);\n\t } else if (_utils.isArray(context)) {\n\t if (context.length > 0) {\n\t if (options.ids) {\n\t options.ids = [options.name];\n\t }\n\t\n\t return instance.helpers.each(context, options);\n\t } else {\n\t return inverse(this);\n\t }\n\t } else {\n\t if (options.data && options.ids) {\n\t var data = _utils.createFrame(options.data);\n\t data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n\t options = { data: data };\n\t }\n\t\n\t return fn(context, options);\n\t }\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staG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250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCwgb3B0aW9ucy5uYW1lKTtcbiAgICAgICAgb3B0aW9ucyA9IHtkYXRhOiBkYXRhfTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n\n\n/***/ },\n/* 51 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\tvar _exception = __webpack_require__(13);\n\t\n\tvar _exception2 = _interopRequireDefault(_exception);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('each', function (context, options) {\n\t if (!options) {\n\t throw new _exception2['default']('Must pass iterator to #each');\n\t }\n\t\n\t var fn = options.fn,\n\t inverse = options.inverse,\n\t i = 0,\n\t ret = '',\n\t data = undefined,\n\t contextPath = undefined;\n\t\n\t if (options.data && options.ids) {\n\t contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n\t }\n\t\n\t if (_utils.isFunction(context)) {\n\t context = context.call(this);\n\t }\n\t\n\t if (options.data) {\n\t data = _utils.createFrame(options.data);\n\t }\n\t\n\t function execIteration(field, index, last) {\n\t if (data) {\n\t data.key = field;\n\t data.index = index;\n\t data.first = index === 0;\n\t data.last = !!last;\n\t\n\t if (contextPath) {\n\t data.contextPath = contextPath + field;\n\t }\n\t }\n\t\n\t ret = ret + fn(context[field], {\n\t data: data,\n\t blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n\t });\n\t }\n\t\n\t if (context && typeof context === 'object') {\n\t if (_utils.isArray(context)) {\n\t for (var j = context.length; i < j; i++) {\n\t if (i in context) {\n\t execIteration(i, i, i === context.length - 1);\n\t }\n\t }\n\t } else {\n\t var priorKey = undefined;\n\t\n\t for (var key in context) {\n\t if (context.hasOwnProperty(key)) {\n\t // We're running the iterations one step out of sync so we can detect\n\t // the last iteration without have to scan the object twice and create\n\t // an itermediate keys array.\n\t if (priorKey !== undefined) {\n\t execIteration(priorKey, i - 1);\n\t }\n\t priorKey = key;\n\t i++;\n\t }\n\t }\n\t if (priorKey !== undefined) {\n\t execIteration(priorKey, i - 1, true);\n\t }\n\t }\n\t }\n\t\n\t if (i === 0) {\n\t ret = inverse(this);\n\t }\n\t\n\t return ret;\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQUErRSxVQUFVOzt5QkFDbkUsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3pELFFBQUksQ0FBQyxPQUFPLEVBQUU7QUFDWixZQUFNLDJCQUFjLDZCQUE2QixDQUFDLENBQUM7S0FDcEQ7O0FBRUQsUUFBSSxFQUFFLEdBQUcsT0FBTyxDQUFDLEVBQUU7UUFDZixPQUFPLEdBQUcsT0FBTyxDQ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RleHQpKSB7IGNvbnRleHQgPSBjb250ZXh0LmNhbGwodGhpcyk7IH1cblxuICAgIGlmIChvcHRpb25zLmRhdGEpIHtcbiAgICAgIGRhdGEgPSBjcmVhdGVGcmFtZShvcHRpb25zLmRhdGEpO1xuICAgIH1cblxuICAgIGZ1bmN0aW9uIGV4ZWNJdGVyYXRpb24oZmllbGQsIGluZGV4LCBsYXN0KSB7XG4gICAgICBpZiAoZGF0YSkge1xuICAgICAgICBkYXRhLmtleSA9IGZpZWxkO1xuICAgICAgICBkYXRhLmluZGV4ID0gaW5kZXg7XG4gICAgICAgIGRhdGEuZmlyc3QgPSBpbmRleCA9PT0gMDtcbiAgICAgICAgZGF0YS5sYXN0ID0gISFsYXN0O1xuXG4gICAgICAgIGlmIChjb250ZXh0UGF0aCkge1xuICAgICAgICAgIGRhdGEuY29udGV4dFBhdGggPSBjb250ZXh0UGF0aCArIGZpZWxkO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIHJldCA9IHJldCArIGZuKGNvbnRleHRbZmllbGRdLCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dFtmaWVsZF0sIGZpZWxkXSwgW2NvbnRleHRQYXRoICsgZmllbGQsIG51bGxdKVxuICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKGNvbnRleHQgJiYgdHlwZW9mIGNvbnRleHQgPT09ICdvYmplY3QnKSB7XG4gICAgICBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBpZiAoaSBpbiBjb250ZXh0KSB7XG4gICAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvbnRleHQubGVuZ3RoIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsZXQgcHJpb3JLZXk7XG5cbiAgICAgICAgZm9yIChsZXQga2V5IGluIGNvbnRleHQpIHtcbiAgICAgICAgICBpZiAoY29udGV4dC5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgICAgICAvLyBXZSdyZSBydW5uaW5nIHRoZSBpdGVyYXRpb25zIG9uZSBzdGVwIG91dCBvZiBzeW5jIHNvIHdlIGNhbiBkZXRlY3RcbiAgICAgICAgICAgIC8vIHRoZSBsYXN0IGl0ZXJhdGlvbiB3aXRob3V0IGhhdmUgdG8gc2NhbiB0aGUgb2JqZWN0IHR3aWNlIGFuZCBjcmVhdGVcbiAgICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgICBpZiAocHJpb3JLZXkgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBwcmlvcktleSA9IGtleTtcbiAgICAgICAgICAgIGkrKztcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n\n\n/***/ },\n/* 52 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _exception = __webpack_require__(13);\n\t\n\tvar _exception2 = _interopRequireDefault(_exception);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('helperMissing', function () /* [args, ]options */{\n\t if (arguments.length === 1) {\n\t // A missing field in a {{foo}} construct.\n\t return undefined;\n\t } else {\n\t // Someone is actually trying to call something, blow up.\n\t throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n\t }\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozt5QkFBc0IsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxlQUFlLEVBQUUsaUNBQWdDO0FBQ3ZFLFFBQUksU0FBUyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7O0FBRTFCLGFBQU8sU0FBUyxDQUFDO0tBQ2xCLE1BQU07O0FBRUwsWUFBTSwyQkFBYyxtQkFBbUIsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLENBQUM7S0FDdkY7R0FDRixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJoZWxwZXItbWlzc2luZy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBFeGNlcHRpb24gZnJvbSAnLi4vZXhjZXB0aW9uJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2hlbHBlck1pc3NpbmcnLCBmdW5jdGlvbigvKiBbYXJncywgXW9wdGlvbnMgKi8pIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgLy8gQSBtaXNzaW5nIGZpZWxkIGluIGEge3tmb299fSBjb25zdHJ1Y3QuXG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBTb21lb25lIGlzIGFjdHVhbGx5IHRyeWluZyB0byBjYWxsIHNvbWV0aGluZywgYmxvdyB1cC5cbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oJ01pc3NpbmcgaGVscGVyOiBcIicgKyBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdLm5hbWUgKyAnXCInKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('if', function (conditional, options) {\n\t if (_utils.isFunction(conditional)) {\n\t conditional = conditional.call(this);\n\t }\n\t\n\t // Default behavior is to render the positive path if the value is truthy and not empty.\n\t // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n\t // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n\t if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n\t return options.inverse(this);\n\t } else {\n\t return options.fn(this);\n\t }\n\t });\n\t\n\t instance.registerHelper('unless', function (conditional, options) {\n\t return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.hash });\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBa0MsVUFBVTs7cUJBRTdCLFVBQV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n\n\n/***/ },\n/* 54 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('log', function () /* message, options */{\n\t var args = [undefined],\n\t options = arguments[arguments.length - 1];\n\t for (var i = 0; i < arguments.length - 1; i++) {\n\t args.push(arguments[i]);\n\t }\n\t\n\t var level = 1;\n\t if (options.hash.level != null) {\n\t level = options.hash.level;\n\t } else if (options.data && options.data.level != null) {\n\t level = options.data.level;\n\t }\n\t args[0] = level;\n\t\n\t instance.log.apply(instance, args);\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ2xCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM5QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN0MsVUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztLQUN6Qjs7QUFFRCxRQUFJLEtBQUssR0FBRyxDQUFDLENBQUM7QUFDZCxRQUFJLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxJQUFJLElBQUksRUFBRTtBQUM5QixXQUFLLEdBQUcs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MF0gPSBsZXZlbDtcblxuICAgIGluc3RhbmNlLmxvZyguLi4gYXJncyk7XG4gIH0pO1xufVxuIl19\n\n\n/***/ },\n/* 55 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('lookup', function (obj, field) {\n\t return obj && obj[field];\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFO0FBQ3JELFdBQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQztHQUMxQixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJsb29rdXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihpbnN0YW5jZSkge1xuICBpbnN0YW5jZS5yZWdpc3RlckhlbHBlcignbG9va3VwJywgZnVuY3Rpb24ob2JqLCBmaWVsZCkge1xuICAgIHJldHVybiBvYmogJiYgb2JqW2ZpZWxkXTtcbiAgfSk7XG59XG4iXX0=\n\n\n/***/ },\n/* 56 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('with', function (context, options) {\n\t if (_utils.isFunction(context)) {\n\t context = context.call(this);\n\t }\n\t\n\t var fn = options.fn;\n\t\n\t if (!_utils.isEmpty(context)) {\n\t var data = options.data;\n\t if (options.data && options.ids) {\n\t data = _utils.createFrame(options.data);\n\t data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n\t }\n\t\n\t return fn(context, {\n\t data: data,\n\t blockParams: _utils.blockParams([context], [data && data.contextPath])\n\t });\n\t } else {\n\t return options.inverse(this);\n\t }\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUErRSxVQUFVOztxQkFFMUUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3pELFFBQUksa0JBQVcsT0FBTyxDQUFDLEVBQUU7QUFBRSxhQUFPLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUFFOztBQUUxRCxRQUFJLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLENBQUMsZUFBUSxPQUFPLENBQUMsRUFBRTtBQUNyQixVQUFJLElBQUksR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDO0FBQ3hCLFVBQUksT0FBTyxDQUFDLElBQUksSUFBSSxPQUFPLENBQUMsR0FBRyxFQUFFO0FBQy9CLFlBQUksR0FBRyxtQkFBWSxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDakMsWUFBSSxDQUFDLFdBQVcsR0FBRyx5QkFBa0IsT0FBTyxDQUFDLElBQUksQ0FBQyxXQUFXLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDO09BQ2hGOztBQUVELGFB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h0LCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dF0sIFtkYXRhICYmIGRhdGEuY29udGV4dFBhdGhdKVxuICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmludmVyc2UodGhpcyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\n\n\n/***/ },\n/* 57 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\tvar logger = {\n\t methodMap: ['debug', 'info', 'warn', 'error'],\n\t level: 'info',\n\t\n\t // Maps a given level value to the `methodMap` indexes above.\n\t lookupLevel: function lookupLevel(level) {\n\t if (typeof level === 'string') {\n\t var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n\t if (levelMap >= 0) {\n\t level = levelMap;\n\t } else {\n\t level = parseInt(level, 10);\n\t }\n\t }\n\t\n\t return level;\n\t },\n\t\n\t // Can be overridden in the host environment\n\t log: function log(level) {\n\t level = logger.lookupLevel(level);\n\t\n\t if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n\t var method = logger.methodMap[level];\n\t if (!console[method]) {\n\t // eslint-disable-line no-console\n\t method = 'log';\n\t }\n\t\n\t for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n\t message[_key - 1] = arguments[_key];\n\t }\n\t\n\t console[method].apply(console, message); // eslint-disable-line no-console\n\t }\n\t }\n\t};\n\t\n\texports['default'] = logger;\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUFzQix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dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIGlmICghY29uc29sZVttZXRob2RdKSB7ICAgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgICAgIG1ldGhvZCA9ICdsb2cnO1xuICAgICAgfVxuICAgICAgY29uc29sZVttZXRob2RdKC4uLm1lc3NhZ2UpOyAgICAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGVcbiAgICB9XG4gIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IGxvZ2dlcjtcbiJdfQ==\n\n\n/***/ },\n/* 58 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/* global window */\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\texports['default'] = function (Handlebars) {\n\t /* istanbul ignore next */\n\t var root = typeof global !== 'undefined' ? global : window,\n\t $Handlebars = root.Handlebars;\n\t /* istanbul ignore next */\n\t Handlebars.noConflict = function () {\n\t if (root.Handlebars === Handlebars) {\n\t root.Handlebars = $Handlebars;\n\t }\n\t return Handlebars;\n\t };\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O3FCQUNlLFVBQVMsVUFBVSxFQUFFOztBQUVsQyxNQUFJLElBQUksR0FBRyxPQUFPLE1BQU0sS0FBSyxXQUFXLEdBQUcsTUFBTSxHQUFHLE1BQU07TUFDdEQsV0FBVyxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUM7O0FBRWxDLFlBQVUsQ0FBQyxVQUFVLEdBQUcsWUFBVztBQUNqQyxRQUFJLElBQUksQ0FBQyxVQUFVLEtBQUssVUFBVSxFQUFFO0FBQ2xDLFVBQUksQ0FBQyxVQUFVLEdBQUcsV0FBVyxDQUFDO0tBQy9CO0FBQ0QsV0FBTyxVQUFVLENBQUM7R0FDbkIsQ0FBQztDQUNIIiwiZmlsZSI6Im5vLWNvbmZsaWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFsIHdpbmRvdyAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oSGFuZGxlYmFycykge1xuICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICBsZXQgcm9vdCA9IHR5cGVvZiBnbG9iYWwgIT09ICd1bmRlZmluZWQnID8gZ2xvYmFsIDogd2luZG93LFxuICAgICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ==\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 59 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.checkRevision = checkRevision;\n\texports.template = template;\n\texports.wrapProgram = wrapProgram;\n\texports.resolvePartial = resolvePartial;\n\texports.invokePartial = invokePartial;\n\texports.noop = noop;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\tvar Utils = _interopRequireWildcard(_utils);\n\t\n\tvar _exception = __webpack_require__(13);\n\t\n\tvar _exception2 = _interopRequireDefault(_exception);\n\t\n\tvar _base = __webpack_require__(22);\n\t\n\tfunction checkRevision(compilerInfo) {\n\t var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n\t currentRevision = _base.COMPILER_REVISION;\n\t\n\t if (compilerRevision !== currentRevision) {\n\t if (compilerRevision < currentRevision) {\n\t var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n\t compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n\t throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n\t } else {\n\t // Use the embedded version info since the runtime doesn't know about this revision yet\n\t throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n\t }\n\t }\n\t}\n\t\n\tfunction template(templateSpec, env) {\n\t /* istanbul ignore next */\n\t if (!env) {\n\t throw new _exception2['default']('No environment passed to template');\n\t }\n\t if (!templateSpec || !templateSpec.main) {\n\t throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n\t }\n\t\n\t templateSpec.main.decorator = templateSpec.main_d;\n\t\n\t // Note: Using env.VM references rather than local var references throughout this section to allow\n\t // for external users to override these as psuedo-supported APIs.\n\t env.VM.checkRevision(templateSpec.compiler);\n\t\n\t function invokePartialWrapper(partial, context, options) {\n\t if (options.hash) {\n\t context = Utils.extend({}, context, options.hash);\n\t if (options.ids) {\n\t options.ids[0] = true;\n\t }\n\t }\n\t\n\t partial = env.VM.resolvePartial.call(this, partial, context, options);\n\t var result = env.VM.invokePartial.call(this, partial, context, options);\n\t\n\t if (result == null && env.compile) {\n\t options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n\t result = options.partials[options.name](context, options);\n\t }\n\t if (result != null) {\n\t if (options.indent) {\n\t var lines = result.split('\\n');\n\t for (var i = 0, l = lines.length; i < l; i++) {\n\t if (!lines[i] && i + 1 === l) {\n\t break;\n\t }\n\t\n\t lines[i] = options.indent + lines[i];\n\t }\n\t result = lines.join('\\n');\n\t }\n\t return result;\n\t } else {\n\t throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n\t }\n\t }\n\t\n\t // Just add water\n\t var container = {\n\t strict: function strict(obj, name) {\n\t if (!(name in obj)) {\n\t throw new _exception2['default']('\"' + name + '\" not defined in ' + obj);\n\t }\n\t return obj[name];\n\t },\n\t lookup: function lookup(depths, name) {\n\t var len = depths.length;\n\t for (var i = 0; i < len; i++) {\n\t if (depths[i] && depths[i][name] != null) {\n\t return depths[i][name];\n\t }\n\t }\n\t },\n\t lambda: function lambda(current, context) {\n\t return typeof current === 'function' ? current.call(context) : current;\n\t },\n\t\n\t escapeExpression: Utils.escapeExpression,\n\t invokePartial: invokePartialWrapper,\n\t\n\t fn: function fn(i) {\n\t var ret = templateSpec[i];\n\t ret.decorator = templateSpec[i + '_d'];\n\t return ret;\n\t },\n\t\n\t programs: [],\n\t program: function program(i, data, declaredBlockParams, blockParams, depths) {\n\t var programWrapper = this.programs[i],\n\t fn = this.fn(i);\n\t if (data || depths || blockParams || declaredBlockParams) {\n\t programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n\t } else if (!programWrapper) {\n\t programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n\t }\n\t return programWrapper;\n\t },\n\t\n\t data: function data(value, depth) {\n\t while (value && depth--) {\n\t value = value._parent;\n\t }\n\t return value;\n\t },\n\t merge: function merge(param, common) {\n\t var obj = param || common;\n\t\n\t if (param && common && param !== common) {\n\t obj = Utils.extend({}, common, param);\n\t }\n\t\n\t return obj;\n\t },\n\t // An empty object to use as replacement for null-contexts\n\t nullContext: Object.seal({}),\n\t\n\t noop: env.VM.noop,\n\t compilerInfo: templateSpec.compiler\n\t };\n\t\n\t function ret(context) {\n\t var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\t\n\t var data = options.data;\n\t\n\t ret._setup(options);\n\t if (!options.partial && templateSpec.useData) {\n\t data = initData(context, data);\n\t }\n\t var depths = undefined,\n\t blockParams = templateSpec.useBlockParams ? [] : undefined;\n\t if (templateSpec.useDepths) {\n\t if (options.depths) {\n\t depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n\t } else {\n\t depths = [context];\n\t }\n\t }\n\t\n\t function main(context /*, options*/) {\n\t return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n\t }\n\t main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n\t return main(context, options);\n\t }\n\t ret.isTop = true;\n\t\n\t ret._setup = function (options) {\n\t if (!options.partial) {\n\t container.helpers = container.merge(options.helpers, env.helpers);\n\t\n\t if (templateSpec.usePartial) {\n\t container.partials = container.merge(options.partials, env.partials);\n\t }\n\t if (templateSpec.usePartial || templateSpec.useDecorators) {\n\t container.decorators = container.merge(options.decorators, env.decorators);\n\t }\n\t } else {\n\t container.helpers = options.helpers;\n\t container.partials = options.partials;\n\t container.decorators = options.decorators;\n\t }\n\t };\n\t\n\t ret._child = function (i, data, blockParams, depths) {\n\t if (templateSpec.useBlockParams && !blockParams) {\n\t throw new _exception2['default']('must pass block params');\n\t }\n\t if (templateSpec.useDepths && !depths) {\n\t throw new _exception2['default']('must pass parent depths');\n\t }\n\t\n\t return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n\t };\n\t return ret;\n\t}\n\t\n\tfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n\t function prog(context) {\n\t var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\t\n\t var currentDepths = depths;\n\t if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n\t currentDepths = [context].concat(depths);\n\t }\n\t\n\t return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n\t }\n\t\n\t prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\t\n\t prog.program = i;\n\t prog.depth = depths ? depths.length : 0;\n\t prog.blockParams = declaredBlockParams || 0;\n\t return prog;\n\t}\n\t\n\tfunction resolvePartial(partial, context, options) {\n\t if (!partial) {\n\t if (options.name === '@partial-block') {\n\t partial = options.data['partial-block'];\n\t } else {\n\t partial = options.partials[options.name];\n\t }\n\t } else if (!partial.call && !options.name) {\n\t // This is a dynamic partial that returned a string\n\t options.name = partial;\n\t partial = options.partials[partial];\n\t }\n\t return partial;\n\t}\n\t\n\tfunction invokePartial(partial, context, options) {\n\t // Use the current closure context to save the partial-block if this partial\n\t var currentPartialBlock = options.data && options.data['partial-block'];\n\t options.partial = true;\n\t if (options.ids) {\n\t options.data.contextPath = options.ids[0] || options.data.contextPath;\n\t }\n\t\n\t var partialBlock = undefined;\n\t if (options.fn && options.fn !== noop) {\n\t (function () {\n\t options.data = _base.createFrame(options.data);\n\t // Wrapper function to get access to currentPartialBlock from the closure\n\t var fn = options.fn;\n\t partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n\t var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\t\n\t // Restore the partial-block from the closure for the execution of the block\n\t // i.e. the part inside the block of the partial call.\n\t options.data = _base.createFrame(options.data);\n\t options.data['partial-block'] = currentPartialBlock;\n\t return fn(context, options);\n\t };\n\t if (fn.partials) {\n\t options.partials = Utils.extend({}, options.partials, fn.partials);\n\t }\n\t })();\n\t }\n\t\n\t if (partial === undefined && partialBlock) {\n\t partial = partialBlock;\n\t }\n\t\n\t if (partial === undefined) {\n\t throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n\t } else if (partial instanceof Function) {\n\t return partial(context, options);\n\t }\n\t}\n\t\n\tfunction noop() {\n\t return '';\n\t}\n\t\n\tfunction initData(context, data) {\n\t if (!data || !('root' in data)) {\n\t data = data ? _base.createFrame(data) : {};\n\t data.root = context;\n\t }\n\t return data;\n\t}\n\t\n\tfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n\t if (fn.decorator) {\n\t var props = {};\n\t prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n\t Utils.extend(prog, props);\n\t }\n\t return prog;\n\t}\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBQzhCLFFBQVE7O0FBRWxFLFNBQVMsYUFBYSxDQUFDLFlBQVksRUFBRTtBQUMxQyxNQUFNLGdCQUFnQixHQUFHLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztNQUN2RCxlQUFlLDBCQUFvQixDQUFDOztBQUUxQyxNQUFJLGdCQUFnQixLQUFLLGVBQWUsRUFBRTtBQUN4QyxRQUFJLGdCQUFnQixHQUFHLGVBQWUsRUFBRTtBQUN0QyxVQUFNLGVBQWUsR0FBRyx1QkFBaUIsZUFBZSxDQUFDO1VBQ25ELGdCQUFnQixHQUFHLHVCQUFpQixnQkFBZ0IsQ0FBQyxDQUFDO0FBQzVELFlBQU0sMkJBQWMseUZBQXlGLEdBQ3ZHLHFEQUFxRCxHQUFHLGVBQWUsR0FBRyxtREFBbUQsR0FBRyxnQkFBZ0IsR0FBRyxJQUFJLENBQUMsQ0FBQztLQUNoSyxNQUFNOztBQUVMLFlBQU0sMkJBQWMsd0ZBQXdGLEdBQ3RHLGlEQUFpRCxHQUFHLFlBQVksQ0FBQyxDQUFDLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQ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IH0gZWxzZSBpZiAocGFydGlhbCBpbnN0YW5jZW9mIEZ1bmN0aW9uKSB7XG4gICAgcmV0dXJuIHBhcnRpYWwoY29udGV4dCwgb3B0aW9ucyk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIG5vb3AoKSB7IHJldHVybiAnJzsgfVxuXG5mdW5jdGlvbiBpbml0RGF0YShjb250ZXh0LCBkYXRhKSB7XG4gIGlmICghZGF0YSB8fCAhKCdyb290JyBpbiBkYXRhKSkge1xuICAgIGRhdGEgPSBkYXRhID8gY3JlYXRlRnJhbWUoZGF0YSkgOiB7fTtcbiAgICBkYXRhLnJvb3QgPSBjb250ZXh0O1xuICB9XG4gIHJldHVybiBkYXRhO1xufVxuXG5mdW5jdGlvbiBleGVjdXRlRGVjb3JhdG9ycyhmbiwgcHJvZywgY29udGFpbmVyLCBkZXB0aHMsIGRhdGEsIGJsb2NrUGFyYW1zKSB7XG4gIGlmIChmbi5kZWNvcmF0b3IpIHtcbiAgICBsZXQgcHJvcHMgPSB7fTtcbiAgICBwcm9nID0gZm4uZGVjb3JhdG9yKHByb2csIHByb3BzLCBjb250YWluZXIsIGRlcHRocyAmJiBkZXB0aHNbMF0sIGRhdGEsIGJsb2NrUGFyYW1zLCBkZXB0aHMpO1xuICAgIFV0aWxzLmV4dGVuZChwcm9nLCBwcm9wcyk7XG4gIH1cbiAgcmV0dXJuIHByb2c7XG59XG4iXX0=\n\n\n/***/ },\n/* 60 */\n/***/ function(module, exports) {\n\n\t// Build out our basic SafeString type\n\t'use strict';\n\t\n\texports.__esModule = true;\n\tfunction SafeString(string) {\n\t this.string = string;\n\t}\n\t\n\tSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n\t return '' + this.string;\n\t};\n\t\n\texports['default'] = SafeString;\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n\n\n/***/ },\n/* 61 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Add autoscroll feature to elements that prevented text selection.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar domevent = __webpack_require__(9);\n\tvar domutil = __webpack_require__(2);\n\tvar Point = __webpack_require__(23);\n\t\n\tvar SCROLL_INTERVAL = 30;\n\tvar SCROLL_MAX = 15;\n\tvar SCROLL_CLICK_INCREASED = 2; // IE에서 스크롤 바 클릭 시 실제 UI pixel 보다 넓게 잡히는 현상 offset.\n\t\n\t/**\n\t * Add autoscroll feature to elements that prevented text selection.\n\t * @constructor\n\t * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n\t */\n\tfunction AutoScroll(container) {\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.container = container;\n\t\n\t /**\n\t * @type {AutoScroll.DIRECTION}\n\t */\n\t this._direction = AutoScroll.DIRECTION.INSIDE;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._offset = 0;\n\t\n\t /**\n\t * interval to scrolling\n\t * @type {number}\n\t */\n\t this._intervalID = 0;\n\t\n\t domevent.on(container, {\n\t 'mousedown': this._onMouseDown\n\t }, this);\n\t}\n\t\n\t/**\n\t * @enum\n\t */\n\tAutoScroll.DIRECTION = {\n\t INSIDE: 0,\n\t TOP: 1,\n\t RIGHT: 2,\n\t BOTTOM: 3,\n\t LEFT: 4\n\t};\n\t\n\t/**\n\t * Instance destroy method.\n\t */\n\tAutoScroll.prototype.destroy = function() {\n\t domevent.off(this.container, {\n\t 'mousedown': this._onMouseDown,\n\t 'mousemove': this._onMouseMove,\n\t 'mouseup': this._onMouseUp\n\t }, this);\n\t\n\t window.clearInterval(this._intervalID);\n\t this._intervalID = this._direction = this.container = null;\n\t};\n\t\n\t/**\n\t * Normalize ClientRect and calculate each position of edges.\n\t * @param {ClientRect} clientRect - ClientRect object of element.\n\t * @returns {object} edges.\n\t */\n\tAutoScroll.prototype._getEdgePositions = function(clientRect) {\n\t return {\n\t top: clientRect.top,\n\t right: clientRect.left + clientRect.width,\n\t bottom: clientRect.bottom,\n\t left: clientRect.left\n\t };\n\t};\n\t\n\t/**\n\t * Get element real size (\"real size\" -> size without scrollbar)\n\t * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n\t * @returns {number[]} real size [width, height]\n\t */\n\tAutoScroll.prototype.getRealSize = function(el) {\n\t var computed = domutil.getComputedStyle(el),\n\t border,\n\t padding;\n\t\n\t border = parseFloat(computed.getPropertyValue('border-top-width')) +\n\t parseFloat(computed.getPropertyValue('border-bottom-width'));\n\t padding = parseFloat(computed.getPropertyValue('padding-top')) +\n\t parseFloat(computed.getPropertyValue('padding-bottom'));\n\t\n\t return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n\t};\n\t\n\t/**\n\t * Check supplied element has scrollbar.\n\t * @param {HTMLElement} el - element want to know has scrollbar.\n\t * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n\t */\n\tAutoScroll.prototype.hasScrollbar = function(el) {\n\t var realSize = this.getRealSize(el);\n\t\n\t return [\n\t el.offsetWidth > Math.ceil(realSize[0]),\n\t el.offsetHeight > Math.ceil(realSize[1])\n\t ];\n\t};\n\t\n\t/**\n\t * @param {HTMLElement} el - element want to know.\n\t * @param {MouseEvent} mouseEvent - mouse event object.\n\t * @returns {boolean} mouse pointer is on the scrollbar?\n\t */\n\tAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n\t var realSize = this.getRealSize(el),\n\t pos = domevent.getMousePosition(mouseEvent, el),\n\t mouseInScrollbar = false;\n\t\n\t mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n\t realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\t\n\t return mouseInScrollbar;\n\t};\n\t\n\t/**\n\t * MouseDown event handler\n\t * @param {MouseEvent} mouseDownEvent - mouse down event\n\t */\n\tAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n\t // only primary button can start drag.\n\t if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n\t return;\n\t }\n\t\n\t // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n\t if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n\t return;\n\t }\n\t\n\t window.clearInterval(this._intervalID);\n\t this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\t\n\t domevent.on(global, {\n\t 'mousemove': this._onMouseMove,\n\t 'mouseup': this._onMouseUp\n\t }, this);\n\t};\n\t\n\t/**\n\t * MouseMove event handler\n\t * @param {MouseEvent} mouseEvent - mouse move event object.\n\t */\n\tAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n\t var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n\t pos = Point.n(domevent.getMousePosition(mouseEvent));\n\t\n\t if (pos.y >= edge.top && pos.y <= edge.bottom &&\n\t pos.x >= edge.left && pos.x <= edge.right) {\n\t this._direction = AutoScroll.DIRECTION.INSIDE;\n\t\n\t return;\n\t }\n\t\n\t if (pos.y < edge.top) {\n\t this._direction = AutoScroll.DIRECTION.TOP;\n\t this._offset = edge.top - pos.y;\n\t\n\t return;\n\t }\n\t\n\t if (pos.y > edge.bottom) {\n\t this._direction = AutoScroll.DIRECTION.BOTTOM;\n\t this._offset = pos.y - edge.bottom;\n\t\n\t return;\n\t }\n\t\n\t if (pos.x < edge.left) {\n\t this._direction = AutoScroll.DIRECTION.LEFT;\n\t this._offset = edge.left - pos.x;\n\t\n\t return;\n\t }\n\t\n\t this._direction = AutoScroll.DIRECTION.RIGHT;\n\t this._offset = pos.x - edge.right;\n\t};\n\t\n\t/**\n\t * MouseUp event handler.\n\t */\n\tAutoScroll.prototype._onMouseUp = function() {\n\t window.clearInterval(this._intervalID);\n\t this._intervalID = 0;\n\t this._direction = AutoScroll.DIRECTION.INSIDE;\n\t this._offset = 0;\n\t\n\t domevent.off(global, {\n\t 'mousemove': this._onMouseMove,\n\t 'mouseup': this._onMouseUp\n\t }, this);\n\t};\n\t\n\t/**\n\t * Interval tick event handler\n\t */\n\tAutoScroll.prototype._onTick = function() {\n\t var direction = this._direction,\n\t container,\n\t factor;\n\t\n\t if (!direction) {\n\t return;\n\t }\n\t\n\t container = this.container;\n\t factor = Math.min(this._offset, SCROLL_MAX);\n\t\n\t switch (direction) {\n\t case AutoScroll.DIRECTION.TOP:\n\t container.scrollTop -= factor;\n\t break;\n\t case AutoScroll.DIRECTION.RIGHT:\n\t container.scrollLeft += factor;\n\t break;\n\t case AutoScroll.DIRECTION.BOTTOM:\n\t container.scrollTop += factor;\n\t break;\n\t default:\n\t container.scrollLeft -= factor;\n\t break;\n\t }\n\t};\n\t\n\tmodule.exports = AutoScroll;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Dirty flagging module for objects.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar common = __webpack_require__(1);\n\tvar existy = common.isExisty,\n\t pick = common.pick,\n\t isFunc = common.isFunction;\n\t\n\t/**\n\t * Mixin module for dirty flagging on specific objects.\n\t * @mixin\n\t * @example\n\t * var obj = { hello: 'good', test: '123' };\n\t * dirty.mixin(obj);\n\t *\n\t * obj.set('hello', 'world');\n\t * obj.isDirty(); // true\n\t * obj.isPropChanged('hello'); // true\n\t * obj.isPropChanged('test'); // false\n\t * obj.dirty(false);\n\t *\n\t * obj.isDirty(); // false\n\t * obj.isPropChanged('hello'); // false\n\t */\n\tvar dirty = {\n\t /**\n\t * Set property value with dirty flagging.\n\t * @param {string} propName Property name.\n\t * @param {*} value Proprty value.\n\t */\n\t set: function(propName, value) {\n\t var originValue = this[propName];\n\t\n\t if (originValue === value) {\n\t return;\n\t }\n\t\n\t this[propName] = value;\n\t\n\t if (!this._changed) {\n\t /**\n\t * Save changed properties.\n\t * @memberof dirty\n\t * @name _changed\n\t * @type {Object}\n\t */\n\t this._changed = {};\n\t }\n\t\n\t this._changed[propName] = true;\n\t\n\t /**\n\t * Dirty flag\n\t * @type {Boolean}\n\t * @name _dirty\n\t * @memberof dirty\n\t */\n\t this._dirty = true;\n\t },\n\t\n\t /**\n\t * Check dirty flag.\n\t * @returns {boolean} Property is changed.\n\t */\n\t isDirty: function() {\n\t return !!this._dirty;\n\t },\n\t\n\t /**\n\t * Set dirty flag manually.\n\t * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n\t */\n\t dirty: function(toDirty) {\n\t toDirty = existy(toDirty) ? toDirty : true;\n\t\n\t /* istanbul ignore else */\n\t if (!toDirty) {\n\t this._changed = {};\n\t }\n\t\n\t this._dirty = toDirty;\n\t },\n\t\n\t /**\n\t * Delete property safety.\n\t * @param {String} propName The name of property.\n\t */\n\t deleteProp: function(propName) {\n\t delete this[propName];\n\t\n\t if (this._changed) {\n\t delete this._changed[propName];\n\t }\n\t },\n\t\n\t /**\n\t * Check the changes with specific property.\n\t * @param {String} propName The name of property you want.\n\t * @returns {boolean} Is property changed?\n\t */\n\t isPropChanged: function(propName) {\n\t if (!this._changed) {\n\t return false;\n\t }\n\t\n\t return this._changed[propName] === true;\n\t },\n\t\n\t /**\n\t * Mixin to specific objects.\n\t * @param {Object} target The object to mix this module.\n\t * @memberof module:util/dirty\n\t * @example\n\t * function Animal() {}\n\t * dirty.mixin(Animal.prototype);\n\t */\n\t mixin: function(target) {\n\t var methodFilterR = /(^_|mixin|wrap)/;\n\t\n\t common.forEachOwnProperties(dirty, function(o, k) {\n\t if (!methodFilterR.test(k)) {\n\t target[k] = dirty[k];\n\t }\n\t });\n\t },\n\t\n\t /**\n\t * Wrapper method for dirty flagging.\n\t *\n\t * This method invoke after invoked specific method that added by you.\n\t *\n\t * The method want to add are must exist before add.\n\t * @param {object} target Target object to method wrap.\n\t * @param {(string|object)} methodName\n\t * Method name to wrap or methodName: flag objects.\n\t * @param {boolean} [flag=true]\n\t * this will used to flagging by dirty flagger after invoke the methods added by you.\n\t * @memberof module:util/dirty\n\t * @example\n\t * function Animal(name) {\n\t * this.name = name;\n\t * }\n\t * Animal.prototype.growl = jasmine.createSpy('growl');\n\t * Animal.prototype.test = function() {\n\t * return this.name;\n\t * };\n\t *\n\t * dirty.mixin(Animal.prototype);\n\t * // single\n\t * dirty.wrap(Animal.prototype, 'growl', true);\n\t * // multiple\n\t * dirty.wrap(Animap.prototype, {\n\t * growl: true,\n\t * test: false\n\t * });\n\t *\n\t */\n\t wrap: function(target, methodName, flag) {\n\t var wrap = dirty.wrap,\n\t fn;\n\t\n\t if (common.isObject(methodName)) {\n\t common.forEachOwnProperties(methodName, function(_flag, _name) {\n\t wrap(target, _name, _flag);\n\t });\n\t\n\t return;\n\t }\n\t\n\t flag = existy(flag) ? flag : true;\n\t\n\t if (!target._wrapper) {\n\t /**\n\t * @param {function} _fn Original method to wrap.\n\t * @param {boolean} flagToSet The boolean value to using dirty flagging.\n\t * @returns {*} The result value of original method.\n\t * @name _wrapper\n\t * @memberof dirty\n\t */\n\t target._wrapper = function(_fn, flagToSet) {\n\t return function() {\n\t var args = Array.prototype.slice.call(arguments);\n\t var result = _fn.apply(this, args); // eslint-disable-line\n\t this._dirty = flagToSet; // eslint-disable-line\n\t\n\t return result;\n\t };\n\t };\n\t }\n\t\n\t if (existy(pick(target, methodName)) &&\n\t isFunc(target[methodName]) &&\n\t !existy(pick(target, methodName, '_wrapped'))) {\n\t fn = target[methodName];\n\t target[methodName] = target._wrapper(fn, flag);\n\t target[methodName]._wrapped = true;\n\t }\n\t }\n\t};\n\t\n\tmodule.exports = dirty;\n\t\n\n\n/***/ },\n/* 63 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Mixin module for models.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar util = __webpack_require__(1);\n\tvar spaceRx = /^\\s*|\\s*$/g,\n\t model;\n\t\n\tvar datetime = __webpack_require__(4);\n\t\n\t/**\n\t * Mixin module for models.\n\t * @mixin\n\t */\n\tmodel = {\n\t /**\n\t * string trim\n\t * @param {string} str string to trim\n\t * @returns {string} trimed string\n\t */\n\t trim: function(str) {\n\t return str.replace(spaceRx, '');\n\t },\n\t /**\n\t * The collections of validator functions.\n\t */\n\t validators: {\n\t /**\n\t * check all of supplied fields(property) is not undefined or empty string.\n\t * @param {object} instance model instance.\n\t * @param {string[]} fields property names to check.\n\t * @returns {boolean} return true when supplied fields are not undefined or empty string.\n\t */\n\t required: function(instance, fields) {\n\t var valid = true,\n\t isValid = function(obj) {\n\t return !util.isUndefined(obj) && model.trim(obj) !== '';\n\t };\n\t\n\t util.forEach(fields, function(fieldName) {\n\t valid = isValid(instance[fieldName]);\n\t\n\t return valid;\n\t });\n\t\n\t return valid;\n\t },\n\t\n\t /**\n\t * check supplied fields are valid dates and valid date ranges.\n\t * @param {object} instance model instance.\n\t * @param {Date[]} fields array of date range (start, end)\n\t * @returns {boolean} is valid date range?\n\t */\n\t dateRange: function(instance, fields) {\n\t var start, end;\n\t\n\t if (!util.isExisty(instance) || fields.length !== 2) {\n\t return true;\n\t }\n\t\n\t start = new TZDate(instance[fields[0]]);\n\t end = new TZDate(instance[fields[1]]);\n\t\n\t if (!datetime.isValid(start) || !datetime.isValid(end)) {\n\t return false;\n\t }\n\t\n\t if (datetime.compare(start, end) === 1) {\n\t return false;\n\t }\n\t\n\t return true;\n\t }\n\t },\n\t\n\t /**\n\t * Check validate for model instance.\n\t *\n\t * The validate are works on a basis of constructor's \"schema\" property.\n\t *\n\t * You can customize validators add some method to model#validators.\n\t * @returns {Boolean} model is valid?\n\t */\n\t isValid: function() {\n\t var self = this,\n\t schema = this.constructor.schema,\n\t validators = model.validators,\n\t validator,\n\t valid = true;\n\t\n\t if (!schema) {\n\t return true;\n\t }\n\t\n\t util.forEach(schema, function(values, validatorName) {\n\t validator = validators[validatorName];\n\t\n\t if (validator) {\n\t valid = validator(self, values);\n\t\n\t return valid; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t });\n\t\n\t return valid;\n\t },\n\t\n\t /**\n\t * Make data object form instance.\n\t *\n\t * It return object fill with all owned properties but exclude functions.\n\t * @returns {object} Data object\n\t */\n\t parameterize: function() {\n\t var param = {},\n\t isFunc = util.isFunction;\n\t\n\t util.forEach(this, function(value, propName) {\n\t if (!isFunc(value)) {\n\t param[propName] = value;\n\t }\n\t });\n\t\n\t return param;\n\t },\n\t\n\t /**\n\t * Mixin model module to supplied target.\n\t * @param {Object} target The object of want to mixed.\n\t * @example\n\t * function Man() {\n\t * this.name = 'john';\n\t * }\n\t * model.mixin(Man.prototype);\n\t */\n\t mixin: function(target) {\n\t util.forEach(model, function(method, name) {\n\t if (name !== 'mixin') {\n\t target[name] = method;\n\t }\n\t });\n\t }\n\t};\n\t\n\tmodule.exports = model;\n\t\n\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Panel class for VLayout module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options for VPanel\n\t * @param {number} options.index - index of panel in vlayout\n\t * @param {number} [options.minHeight=0] - minimum height of panel\n\t * @param {number} [options.height] - initial height of panel\n\t * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n\t * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n\t * @param {string} [options.className] - additional class name to add element\n\t * @param {HTMLElement} container - container element\n\t */\n\tfunction VPanel(options, container) {\n\t View.call(this, container);\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t index: 0,\n\t name: '0',\n\t minHeight: 0,\n\t maxHeight: null,\n\t height: null,\n\t isSplitter: false,\n\t autoHeight: false,\n\t className: ''\n\t }, options);\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.index = this.options.index;\n\t\n\t /**\n\t * @type {string}\n\t */\n\t this.name = this.options.name || String(this.index);\n\t\n\t this.isHeightForcedSet = false;\n\t\n\t this._initPanel(this.options, container);\n\t}\n\t\n\tutil.inherit(VPanel, View);\n\t\n\t/**\n\t * whether this panel is splitter?\n\t * @returns {boolean} panel is splitter?\n\t */\n\tVPanel.prototype.isSplitter = function() {\n\t return this.options.isSplitter;\n\t};\n\t\n\t/**\n\t * set height of html element\n\t * @param {HTMLElement} [container] - container element\n\t * @param {number} newHeight - height\n\t * @param {boolean} force - whether ignore max-length\n\t */\n\tVPanel.prototype.setHeight = function(container, newHeight, force) {\n\t var maxHeight = this.options.maxHeight;\n\t var minHeight = this.options.minHeight;\n\t var autoHeight = this.options.autoHeight;\n\t container = container || this.container;\n\t\n\t // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n\t if (!force && this.isHeightForcedSet && !autoHeight) {\n\t return;\n\t }\n\t\n\t if (force) {\n\t this.isHeightForcedSet = true;\n\t } else if (maxHeight) {\n\t newHeight = Math.min(newHeight, maxHeight);\n\t }\n\t newHeight = Math.max(minHeight, newHeight);\n\t\n\t container.style.height = newHeight + 'px';\n\t};\n\t\n\t/**\n\t * Calculate new height of panel and remains by supplied height growth\n\t * @param {number} growth - growth value\n\t * @returns {number[]} newHeight, remainHeight\n\t */\n\tVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n\t var height = this.getHeight(),\n\t newHeight = height + growth,\n\t resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\t\n\t return [resizeTo, height - resizeTo];\n\t};\n\t\n\t/**\n\t * get outer height of panel element\n\t * @returns {number} outer height of panel element\n\t */\n\tVPanel.prototype.getHeight = function() {\n\t return domutil.getSize(this.container)[1];\n\t};\n\t\n\t/**\n\t * add design class to panel element\n\t * @param {string} className - classname string\n\t */\n\tVPanel.prototype.addClass = function(className) {\n\t domutil.addClass(this.container, className);\n\t};\n\t\n\t/**\n\t * remove design class to panel element\n\t * @param {string} className - classname string\n\t */\n\tVPanel.prototype.removeClass = function(className) {\n\t domutil.removeClass(this.container, className);\n\t};\n\t\n\t/**\n\t * initialize panel element\n\t * @param {PanelOptions} options - options for panel\n\t * @param {HTMLDivElement} container - panel element\n\t */\n\tVPanel.prototype._initPanel = function(options, container) {\n\t var height;\n\t\n\t domutil.setData(container, 'panelIndex', options.index);\n\t\n\t if (options.isSplitter) {\n\t domutil.addClass(container, config.classname('splitter'));\n\t\n\t return;\n\t }\n\t\n\t if (options.className) {\n\t domutil.addClass(container, options.className);\n\t }\n\t\n\t if (options.autoHeight) {\n\t domutil.setData(container, 'autoHeight', true);\n\t } else {\n\t height = common.limit(options.height || 0,\n\t [options.minHeight],\n\t [options.maxHeight || options.height]\n\t );\n\t\n\t options.height = height;\n\t this.setHeight(container, height);\n\t }\n\t};\n\t\n\tmodule.exports = VPanel;\n\t\n\n\n/***/ },\n/* 65 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Base calendar controller\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar Schedule = __webpack_require__(20);\n\tvar ScheduleViewModel = __webpack_require__(28);\n\tvar datetime = __webpack_require__(4);\n\tvar common = __webpack_require__(6);\n\t\n\t/**\n\t * @constructor\n\t * @param {object} options - options for base controller\n\t * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n\t * @mixes util.CustomEvents\n\t */\n\tfunction Base(options) {\n\t options = options || {};\n\t\n\t /**\n\t * function for group each schedule models.\n\t * @type {function}\n\t * @param {ScheduleViewModel} viewModel - view model instance\n\t * @returns {string} group key\n\t */\n\t this.groupFunc = options.groupFunc || function(viewModel) {\n\t if (viewModel.model.isAllDay) {\n\t return 'allday';\n\t }\n\t\n\t return 'time';\n\t };\n\t\n\t /**\n\t * schedules collection.\n\t * @type {Collection}\n\t */\n\t this.schedules = common.createScheduleCollection();\n\t\n\t /**\n\t * Matrix for multidate schedules.\n\t * @type {object.}\n\t */\n\t this.dateMatrix = {};\n\t}\n\t\n\t/**\n\t * Calculate contain dates in schedule.\n\t * @private\n\t * @param {Schedule} schedule The instance of schedule.\n\t * @returns {array} contain dates.\n\t */\n\tBase.prototype._getContainDatesInSchedule = function(schedule) {\n\t var range = datetime.range(\n\t datetime.start(schedule.getStarts()),\n\t datetime.end(schedule.getEnds()),\n\t datetime.MILLISECONDS_PER_DAY\n\t );\n\t\n\t return range;\n\t};\n\t\n\t/**********\n\t * CRUD\n\t **********/\n\t\n\t/**\n\t * Create an schedule instance from raw data.\n\t * @emits Base#beforeCreateSchedule\n\t * @emits Base#createdSchedule\n\t * @param {object} options Data object to create schedule.\n\t * @param {boolean} silent - set true then don't fire events.\n\t * @returns {Schedule} The instance of Schedule that created.\n\t */\n\tBase.prototype.createSchedule = function(options, silent) {\n\t var schedule,\n\t scheduleData = {\n\t data: options\n\t };\n\t\n\t /**\n\t * @event Base#beforeCreateSchedule\n\t * @type {Calendar~Schedule[]}\n\t */\n\t if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n\t return null;\n\t }\n\t\n\t schedule = this.addSchedule(Schedule.create(options));\n\t\n\t if (!silent) {\n\t /**\n\t * @event Base#createdSchedule\n\t * @type {Schedule}\n\t */\n\t this.fire('createdSchedule', schedule);\n\t }\n\t\n\t return schedule;\n\t};\n\t\n\t/**\n\t * @emits Base#beforeCreateSchedule\n\t * @emits Base#createdSchedule\n\t * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n\t * @param {boolean} [silent=false] - set true then don't fire events.\n\t * @returns {Schedule[]} The instance list of Schedule that created.\n\t */\n\tBase.prototype.createSchedules = function(dataList, silent) {\n\t var self = this;\n\t\n\t return util.map(dataList, function(data) {\n\t return self.createSchedule(data, silent);\n\t });\n\t};\n\t\n\t/**\n\t * Update an schedule.\n\t * @emits Base#updateSchedule\n\t * @param {Schedule} schedule - schedule instance to update\n\t * @param {object} options updated object data.\n\t * @returns {Schedule} updated schedule instance\n\t */\n\tBase.prototype.updateSchedule = function(schedule, options) {\n\t var start = options.start || schedule.start;\n\t var end = options.end || schedule.end;\n\t\n\t options = options || {};\n\t\n\t if (options.title) {\n\t schedule.set('title', options.title);\n\t }\n\t\n\t if (options.isAllDay) {\n\t schedule.set('isAllDay', options.isAllDay);\n\t }\n\t\n\t if (options.start || options.end) {\n\t if (schedule.isAllDay) {\n\t schedule.setAllDayPeriod(start, end);\n\t } else {\n\t schedule.setTimePeriod(start, end);\n\t }\n\t }\n\t\n\t if (options.color) {\n\t schedule.set('color', options.color);\n\t }\n\t\n\t if (options.bgColor) {\n\t schedule.set('bgColor', options.bgColor);\n\t }\n\t\n\t if (options.borderColor) {\n\t schedule.set('borderColor', options.borderColor);\n\t }\n\t\n\t if (options.origin) {\n\t schedule.set('origin', options.origin);\n\t }\n\t\n\t if (!util.isUndefined(options.isPending)) {\n\t schedule.set('isPending', options.isPending);\n\t }\n\t\n\t if (!util.isUndefined(options.isFocused)) {\n\t schedule.set('isFocused', options.isFocused);\n\t }\n\t\n\t this._removeFromMatrix(schedule);\n\t this._addToMatrix(schedule);\n\t\n\t /**\n\t * @event Base#updateSchedule\n\t */\n\t this.fire('updateSchedule');\n\t\n\t return schedule;\n\t};\n\t\n\t/**\n\t * Delete schedule instance from controller.\n\t * @param {Schedule} schedule - schedule instance to delete\n\t * @returns {Schedule} deleted model instance.\n\t */\n\tBase.prototype.deleteSchedule = function(schedule) {\n\t this._removeFromMatrix(schedule);\n\t this.schedules.remove(schedule);\n\t\n\t return schedule;\n\t};\n\t\n\t/**\n\t * Set date matrix to supplied schedule instance.\n\t * @param {Schedule} schedule - instance of schedule.\n\t */\n\tBase.prototype._addToMatrix = function(schedule) {\n\t var ownMatrix = this.dateMatrix;\n\t var containDates = this._getContainDatesInSchedule(schedule);\n\t\n\t util.forEach(containDates, function(date) {\n\t var ymd = datetime.format(date, 'YYYYMMDD'),\n\t matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\t\n\t matrix.push(util.stamp(schedule));\n\t });\n\t};\n\t\n\t/**\n\t * Remove schedule's id from matrix.\n\t * @param {Schedule} schedule - instance of schedule\n\t */\n\tBase.prototype._removeFromMatrix = function(schedule) {\n\t var modelID = util.stamp(schedule);\n\t\n\t util.forEach(this.dateMatrix, function(matrix) {\n\t var index = util.inArray(modelID, matrix);\n\t\n\t if (~index) {\n\t matrix.splice(index, 1);\n\t }\n\t }, this);\n\t};\n\t\n\t/**\n\t * Add an schedule instance.\n\t * @emits Base#addedSchedule\n\t * @param {Schedule} schedule The instance of Schedule.\n\t * @param {boolean} silent - set true then don't fire events.\n\t * @returns {Schedule} The instance of Schedule that added.\n\t */\n\tBase.prototype.addSchedule = function(schedule, silent) {\n\t this.schedules.add(schedule);\n\t this._addToMatrix(schedule);\n\t\n\t if (!silent) {\n\t /**\n\t * @event Base#addedSchedule\n\t * @type {object}\n\t */\n\t this.fire('addedSchedule', schedule);\n\t }\n\t\n\t return schedule;\n\t};\n\t\n\t/**\n\t * split schedule model by ymd.\n\t * @param {Date} start - start date\n\t * @param {Date} end - end date\n\t * @param {Collection} scheduleCollection - collection of schedule model.\n\t * @returns {object.} splitted schedule model collections.\n\t */\n\tBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n\t var range = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t ),\n\t ownMatrix = this.dateMatrix,\n\t result = {};\n\t\n\t util.forEachArray(range, function(date) {\n\t var ymd = datetime.format(date, 'YYYYMMDD'),\n\t matrix = ownMatrix[ymd],\n\t collection;\n\t\n\t collection = result[ymd] = common.createScheduleCollection();\n\t\n\t if (matrix && matrix.length) {\n\t util.forEachArray(matrix, function(id) {\n\t scheduleCollection.doWhenHas(id, function(schedule) {\n\t collection.add(schedule);\n\t });\n\t });\n\t }\n\t });\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * Return schedules in supplied date range.\n\t *\n\t * available only YMD.\n\t * @param {Date} start start date.\n\t * @param {Date} end end date.\n\t * @returns {object.} schedule collection grouped by dates.\n\t */\n\tBase.prototype.findByDateRange = function(start, end) {\n\t var range = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t ),\n\t ownSchedules = this.schedules.items,\n\t ownMatrix = this.dateMatrix,\n\t dformat = datetime.format,\n\t result = {},\n\t matrix,\n\t ymd,\n\t viewModels;\n\t\n\t util.forEachArray(range, function(date) {\n\t ymd = dformat(date, 'YYYYMMDD');\n\t matrix = ownMatrix[ymd];\n\t viewModels = result[ymd] = common.createScheduleCollection();\n\t\n\t if (matrix && matrix.length) {\n\t viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n\t return ScheduleViewModel.create(ownSchedules[id]);\n\t }));\n\t }\n\t });\n\t\n\t return result;\n\t};\n\t\n\tBase.prototype.clearSchedules = function() {\n\t this.dateMatrix = {};\n\t this.schedules.clear();\n\t /**\n\t * for inner view when clear schedules\n\t * @event Base#clearSchedules\n\t * @type {Schedule}\n\t */\n\t this.fire('clearSchedules');\n\t};\n\t\n\t// mixin\n\tutil.CustomEvents.mixin(Base);\n\t\n\tmodule.exports = Base;\n\t\n\n\n/***/ },\n/* 66 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Core methods for schedule block placing\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar forEachArr = util.forEachArray,\n\t aps = Array.prototype.slice;\n\t\n\tvar datetime = __webpack_require__(4);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar Collection = __webpack_require__(12);\n\tvar ScheduleViewModel = __webpack_require__(28);\n\t\n\tvar Core = {\n\t /**\n\t * Calculate collision group.\n\t * @param {array} viewModels List of viewmodels.\n\t * @returns {array} Collision Group.\n\t */\n\t getCollisionGroup: function(viewModels) {\n\t var collisionGroups = [],\n\t foundPrevCollisionSchedule = false,\n\t previousScheduleList;\n\t\n\t if (!viewModels.length) {\n\t return collisionGroups;\n\t }\n\t\n\t collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n\t forEachArr(viewModels.slice(1), function(schedule, index) {\n\t foundPrevCollisionSchedule = false;\n\t previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\t\n\t forEachArr(previousScheduleList, function(previous) {\n\t if (schedule.collidesWith(previous)) {\n\t // 이전 일정들과 겹치는 경우 겹치는 일정의 Collision Group을\n\t // 찾아 이 일정을 추가한다\n\t foundPrevCollisionSchedule = true;\n\t\n\t forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n\t if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n\t // 겹치는 이전 일정을 찾은 경우 그 일정이 속한\n\t // Collision Group에 이 일정을 포함시킨다.\n\t group.push(util.stamp(schedule.valueOf()));\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t });\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t });\n\t\n\t if (!foundPrevCollisionSchedule) {\n\t // 이 일정은 이전일정과 겹치지 않는 일정이므로\n\t // 새 Collision Group을 구성한다.\n\t collisionGroups.push([util.stamp(schedule.valueOf())]);\n\t }\n\t });\n\t\n\t return collisionGroups;\n\t },\n\t\n\t /**\n\t * Get row length by column index in 2d matrix.\n\t * @param {array[]} arr2d Matrix\n\t * @param {number} col Column index.\n\t * @returns {number} Last row number in column.\n\t */\n\t getLastRowInColumn: function(arr2d, col) {\n\t var row = arr2d.length;\n\t\n\t while (row > 0) {\n\t row -= 1;\n\t if (!util.isUndefined(arr2d[row][col])) {\n\t return row;\n\t }\n\t }\n\t\n\t return false;\n\t },\n\t\n\t /**\n\t * Calculate matrix for appointment block element placing.\n\t * @param {Collection} collection model collection.\n\t * @param {array[]} collisionGroups Collision groups for schedule set.\n\t * @returns {array} matrices\n\t */\n\t getMatrices: function(collection, collisionGroups) {\n\t var result = [],\n\t getLastRowInColumn = Core.getLastRowInColumn;\n\t\n\t forEachArr(collisionGroups, function(group) {\n\t var matrix = [[]];\n\t\n\t forEachArr(group, function(scheduleID) {\n\t var schedule = collection.items[scheduleID],\n\t col = 0,\n\t found = false,\n\t nextRow,\n\t lastRowInColumn;\n\t\n\t while (!found) {\n\t lastRowInColumn = getLastRowInColumn(matrix, col);\n\t\n\t if (lastRowInColumn === false) {\n\t matrix[0].push(schedule);\n\t found = true;\n\t } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n\t nextRow = lastRowInColumn + 1;\n\t if (util.isUndefined(matrix[nextRow])) {\n\t matrix[nextRow] = [];\n\t }\n\t matrix[nextRow][col] = schedule;\n\t found = true;\n\t }\n\t\n\t col += 1;\n\t }\n\t });\n\t\n\t result.push(matrix);\n\t });\n\t\n\t return result;\n\t },\n\t\n\t /**\n\t * Filter that get schedule model in supplied date ranges.\n\t * @param {Date} start - start date\n\t * @param {Date} end - end date\n\t * @returns {function} schedule filter function\n\t */\n\t getScheduleInDateRangeFilter: function(start, end) {\n\t return function(model) {\n\t var ownStarts = model.getStarts(),\n\t ownEnds = model.getEnds();\n\t\n\t // shorthand condition of\n\t //\n\t // (ownStarts >= start && ownEnds <= end) ||\n\t // (ownStarts < start && ownEnds >= start) ||\n\t // (ownEnds > end && ownStarts <= end)\n\t return !(ownEnds < start || ownStarts > end);\n\t };\n\t },\n\t\n\t /**\n\t * Position each view model for placing into container\n\t * @param {Date} start - start date to render\n\t * @param {Date} end - end date to render\n\t * @param {array} matrices - matrices from controller\n\t * @param {function} [iteratee] - iteratee function invoke each view models\n\t */\n\t positionViewModels: function(start, end, matrices, iteratee) {\n\t var ymdListToRender;\n\t\n\t ymdListToRender = util.map(\n\t datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n\t function(date) {\n\t return datetime.format(date, 'YYYYMMDD');\n\t }\n\t );\n\t\n\t forEachArr(matrices, function(matrix) {\n\t forEachArr(matrix, function(column) {\n\t forEachArr(column, function(viewModel, index) {\n\t var ymd, dateLength;\n\t\n\t if (!viewModel) {\n\t return;\n\t }\n\t\n\t ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n\t dateLength = datetime.range(\n\t datetime.start(viewModel.getStarts()),\n\t datetime.end(viewModel.getEnds()),\n\t datetime.MILLISECONDS_PER_DAY\n\t ).length;\n\t\n\t viewModel.top = index;\n\t viewModel.left = util.inArray(ymd, ymdListToRender);\n\t viewModel.width = dateLength;\n\t\n\t if (iteratee) {\n\t iteratee(viewModel);\n\t }\n\t });\n\t });\n\t });\n\t },\n\t\n\t /**\n\t * Limit start, end date each view model for render properly\n\t * @param {Date} start - start date to render\n\t * @param {Date} end - end date to render\n\t * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n\t * model collection or ScheduleViewModel\n\t * @returns {ScheduleViewModel} return view model when third parameter is\n\t * view model\n\t */\n\t limitRenderRange: function(start, end, viewModelColl) {\n\t /**\n\t * Limit render range for view models\n\t * @param {ScheduleViewModel} viewModel - view model instance\n\t * @returns {ScheduleViewModel} view model that limited render range\n\t */\n\t function limit(viewModel) {\n\t if (viewModel.getStarts() < start) {\n\t viewModel.exceedLeft = true;\n\t viewModel.renderStarts = new TZDate(start.getTime());\n\t }\n\t\n\t if (viewModel.getEnds() > end) {\n\t viewModel.exceedRight = true;\n\t viewModel.renderEnds = new TZDate(end.getTime());\n\t }\n\t\n\t return viewModel;\n\t }\n\t\n\t if (viewModelColl.constructor === Collection) {\n\t viewModelColl.each(limit);\n\t\n\t return null;\n\t }\n\t\n\t return limit(viewModelColl);\n\t },\n\t\n\t /**\n\t * Convert schedule model collection to view model collection.\n\t * @param {Collection} modelColl - collection of schedule model\n\t * @returns {Collection} collection of schedule view model\n\t */\n\t convertToViewModel: function(modelColl) {\n\t var viewModelColl;\n\t\n\t viewModelColl = new Collection(function(viewModel) {\n\t return viewModel.cid();\n\t });\n\t\n\t modelColl.each(function(model) {\n\t viewModelColl.add(ScheduleViewModel.create(model));\n\t });\n\t\n\t return viewModelColl;\n\t }\n\t};\n\t\n\tmodule.exports = Core;\n\t\n\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Controller mixin for Month View\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar array = __webpack_require__(14),\n\t datetime = __webpack_require__(4),\n\t Collection = __webpack_require__(12);\n\tvar mmax = Math.max;\n\t\n\tvar Month = {\n\t /**\n\t * Filter function for find time schedule\n\t * @param {ScheduleViewModel} viewModel - schedule view model\n\t * @returns {boolean} whether model is time schedule?\n\t */\n\t _onlyTimeFilter: function(viewModel) {\n\t return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n\t },\n\t\n\t /**\n\t * Filter function for find allday schedule\n\t * @param {ScheduleViewModel} viewModel - schedule view model\n\t * @returns {boolean} whether model is allday schedule?\n\t */\n\t _onlyAlldayFilter: function(viewModel) {\n\t return viewModel.model.isAllDay || viewModel.hasMultiDates;\n\t },\n\t\n\t /**\n\t * Weight top value +1 for month view render\n\t * @param {ScheduleViewModel} viewModel - schedule view model\n\t */\n\t _weightTopValue: function(viewModel) {\n\t viewModel.top = viewModel.top || 0;\n\t viewModel.top += 1;\n\t },\n\t\n\t /**\n\t * Adjust render range to render properly.\n\t *\n\t * Limit start, end for each allday schedules and expand start, end for\n\t * each time schedules\n\t * @this Base\n\t * @param {Date} start - render start date\n\t * @param {Date} end - render end date\n\t * @param {Collection} vColl - view model collection\n\t * property.\n\t */\n\t _adjustRenderRange: function(start, end, vColl) {\n\t var ctrlCore = this.Core;\n\t\n\t vColl.each(function(viewModel) {\n\t if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n\t ctrlCore.limitRenderRange(start, end, viewModel);\n\t }\n\t });\n\t },\n\t\n\t /**\n\t * Get max top index value for allday schedules in specific date (YMD)\n\t * @this Base\n\t * @param {string} ymd - yyyymmdd formatted value\n\t * @param {Collection} vAlldayColl - collection of allday schedules\n\t * @returns {number} max top index value in date\n\t */\n\t _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n\t var dateMatrix = this.dateMatrix,\n\t topIndexesInDate = [];\n\t util.forEach(dateMatrix[ymd], function(cid) {\n\t vAlldayColl.doWhenHas(cid, function(viewModel) {\n\t topIndexesInDate.push(viewModel.top);\n\t });\n\t });\n\t\n\t if (topIndexesInDate.length > 0) {\n\t return mmax.apply(null, topIndexesInDate);\n\t }\n\t\n\t return 0;\n\t },\n\t\n\t /**\n\t * Adjust time view model's top index value\n\t * @this Base\n\t * @param {Collection} vColl - collection of schedules\n\t */\n\t _adjustTimeTopIndex: function(vColl) {\n\t var ctrlMonth = this.Month;\n\t var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n\t var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n\t var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n\t var maxIndexInYMD = {};\n\t\n\t sortedTimeSchedules.forEach(function(timeViewModel) {\n\t var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n\t var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\t\n\t if (util.isUndefined(alldayMaxTopInYMD)) {\n\t alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n\t getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n\t }\n\t maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n\t (alldayMaxTopInYMD + 1);\n\t });\n\t },\n\t\n\t /**\n\t * Adjust time view model's top index value\n\t * @this Base\n\t * @param {Collection} vColl - collection of schedules\n\t */\n\t _stackTimeFromTop: function(vColl) {\n\t var ctrlMonth = this.Month;\n\t var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n\t var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n\t var indiceInYMD = {};\n\t var dateMatrix = this.dateMatrix;\n\t\n\t sortedTimeSchedules.forEach(function(timeViewModel) {\n\t var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n\t var topArrayInYMD = indiceInYMD[scheduleYMD];\n\t var maxTopInYMD;\n\t var i;\n\t\n\t if (util.isUndefined(topArrayInYMD)) {\n\t topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n\t util.forEach(dateMatrix[scheduleYMD], function(cid) {\n\t vAlldayColl.doWhenHas(cid, function(viewModel) {\n\t topArrayInYMD.push(viewModel.top);\n\t });\n\t });\n\t }\n\t\n\t if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n\t maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n\t for (i = 1; i <= maxTopInYMD; i += 1) {\n\t timeViewModel.top = i;\n\t if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n\t break;\n\t }\n\t }\n\t }\n\t topArrayInYMD.push(timeViewModel.top);\n\t });\n\t },\n\t\n\t /**\n\t * Convert multi-date time schedule to all-day schedule\n\t * @this Base\n\t * @param {Collection} vColl - view model collection\n\t * property.\n\t */\n\t _addMultiDatesInfo: function(vColl) {\n\t vColl.each(function(viewModel) {\n\t var model = viewModel.model;\n\t var start = model.getStarts();\n\t var end = model.getEnds();\n\t\n\t viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\t\n\t if (!model.isAllDay && viewModel.hasMultiDates) {\n\t viewModel.renderStarts = datetime.start(start);\n\t viewModel.renderEnds = datetime.end(end);\n\t }\n\t });\n\t },\n\t\n\t /**\n\t * Find schedule and get view model for specific month\n\t * @this Base\n\t * @param {Date} start - start date to find schedules\n\t * @param {Date} end - end date to find schedules\n\t * @param {function[]} [andFilters] - optional filters to applying search query\n\t * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n\t * @returns {object} view model data\n\t */\n\t findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n\t var ctrlCore = this.Core,\n\t ctrlMonth = this.Month,\n\t filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n\t coll, vColl, vList,\n\t collisionGroup,\n\t matrices;\n\t\n\t alldayFirstMode = alldayFirstMode || false;\n\t andFilters = andFilters || [];\n\t filter = Collection.and.apply(null, [filter].concat(andFilters));\n\t\n\t coll = this.schedules.find(filter);\n\t vColl = ctrlCore.convertToViewModel(coll);\n\t ctrlMonth._addMultiDatesInfo(vColl);\n\t ctrlMonth._adjustRenderRange(start, end, vColl);\n\t vList = vColl.sort(array.compare.schedule.asc);\n\t\n\t collisionGroup = ctrlCore.getCollisionGroup(vList);\n\t matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n\t ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n\t if (alldayFirstMode) {\n\t ctrlMonth._adjustTimeTopIndex(vColl);\n\t } else {\n\t ctrlMonth._stackTimeFromTop(vColl);\n\t }\n\t\n\t return matrices;\n\t }\n\t};\n\t\n\tmodule.exports = Month;\n\t\n\n\n/***/ },\n/* 68 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint no-shadow: 0 */\n\t/**\n\t * @fileoverview Controller mixin modules for day views.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar Collection = __webpack_require__(12);\n\tvar array = __webpack_require__(14);\n\tvar datetime = __webpack_require__(4);\n\t\n\t/**\n\t * @mixin Base.Week\n\t */\n\tvar Week = {\n\t /**********\n\t * TIME GRID VIEW\n\t **********/\n\t\n\t /**\n\t * Make array with start and end times on schedules.\n\t * @this Base.Week\n\t * @param {array[]} matrix - matrix from controller.\n\t * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n\t */\n\t generateTimeArrayInRow: function(matrix) {\n\t var row,\n\t col,\n\t schedule,\n\t map = [],\n\t cursor = [],\n\t maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n\t return col.length;\n\t }));\n\t\n\t for (col = 1; col < maxColLen; col += 1) {\n\t row = 0;\n\t schedule = util.pick(matrix, row, col);\n\t\n\t while (schedule) {\n\t cursor.push([schedule.getStarts().getTime(), schedule.getEnds().getTime()]);\n\t\n\t row += 1;\n\t schedule = util.pick(matrix, row, col);\n\t }\n\t\n\t map.push(cursor);\n\t cursor = [];\n\t }\n\t\n\t return map;\n\t },\n\t\n\t /**\n\t * Get collision information from list\n\t * @this Base\n\t * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n\t * @param {number} start - schedule start time that want to detect collisions.\n\t * @param {number} end - schedule end time that want to detect collisions.\n\t * @returns {boolean} target has collide in supplied array?\n\t */\n\t hasCollide: function(arr, start, end) {\n\t var startStart,\n\t startEnd,\n\t endStart,\n\t endEnd,\n\t getFunc = function(index) {\n\t return function(block) {\n\t return block[index];\n\t };\n\t },\n\t abs = Math.abs,\n\t compare = array.compare.num.asc,\n\t hasCollide;\n\t\n\t if (!arr.length) {\n\t return false;\n\t }\n\t\n\t startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n\t startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n\t endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n\t endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n\t hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\t\n\t return hasCollide;\n\t },\n\t\n\t /**\n\t * Initialize values to viewmodels for detect real collision at rendering phase.\n\t * @this Base\n\t * @param {array[]} matrices - Matrix data.\n\t */\n\t getCollides: function(matrices) {\n\t util.forEachArray(matrices, function(matrix) {\n\t var binaryMap,\n\t maxRowLength;\n\t\n\t binaryMap = Week.generateTimeArrayInRow(matrix);\n\t maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n\t return row.length;\n\t }));\n\t\n\t util.forEachArray(matrix, function(row) {\n\t util.forEachArray(row, function(viewModel, col) {\n\t var startTime,\n\t endTime,\n\t hasCollide,\n\t i;\n\t\n\t if (!viewModel) {\n\t return;\n\t }\n\t\n\t startTime = viewModel.getStarts().getTime() + 1;\n\t endTime = viewModel.getEnds().getTime() - 1;\n\t\n\t for (i = (col + 1); i < maxRowLength; i += 1) {\n\t hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\t\n\t if (hasCollide) {\n\t viewModel.hasCollide = true;\n\t break;\n\t }\n\t\n\t viewModel.extraSpace += 1;\n\t }\n\t });\n\t });\n\t });\n\t },\n\t\n\t /**\n\t * create view model for time view part\n\t * @this Base\n\t * @param {Date} start - start date.\n\t * @param {Date} end - end date.\n\t * @param {Collection} time - view model collection.\n\t * @returns {object} view model for time part.\n\t */\n\t getViewModelForTimeView: function(start, end, time) {\n\t var self = this,\n\t ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n\t result = {};\n\t\n\t util.forEach(ymdSplitted, function(collection, ymd) {\n\t var viewModels = collection.sort(array.compare.schedule.asc),\n\t collisionGroups,\n\t matrices;\n\t\n\t collisionGroups = self.Core.getCollisionGroup(viewModels);\n\t matrices = self.Core.getMatrices(collection, collisionGroups);\n\t self.Week.getCollides(matrices);\n\t\n\t result[ymd] = matrices;\n\t });\n\t\n\t return result;\n\t },\n\t\n\t /**********\n\t * ALLDAY VIEW\n\t **********/\n\t\n\t /**\n\t * Set hasMultiDates flag to true and set date ranges for rendering\n\t * @this Base\n\t * @param {Collection} vColl - view model collection\n\t */\n\t _addMultiDatesInfo: function(vColl) {\n\t vColl.each(function(viewModel) {\n\t var model = viewModel.model;\n\t viewModel.hasMultiDates = true;\n\t viewModel.renderStarts = datetime.start(model.getStarts());\n\t viewModel.renderEnds = datetime.end(model.getEnds());\n\t });\n\t },\n\t\n\t /**\n\t * create view model for allday view part\n\t * @this Base\n\t * @param {Date} start start date.\n\t * @param {Date} end end date.\n\t * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n\t * @returns {object} allday viewModel.\n\t */\n\t getViewModelForAlldayView: function(start, end, viewModelColl) {\n\t var ctrlCore = this.Core,\n\t ctrlWeek = this.Week,\n\t viewModels,\n\t collisionGroups,\n\t matrices;\n\t\n\t if (!viewModelColl || !viewModelColl.length) {\n\t return [];\n\t }\n\t\n\t ctrlWeek._addMultiDatesInfo(viewModelColl);\n\t ctrlCore.limitRenderRange(start, end, viewModelColl);\n\t\n\t viewModels = viewModelColl.sort(array.compare.schedule.asc);\n\t collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\t\n\t matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n\t ctrlCore.positionViewModels(start, end, matrices);\n\t\n\t return matrices;\n\t },\n\t\n\t /**********\n\t * READ\n\t **********/\n\t\n\t /**\n\t * Populate schedules in date range.\n\t * @this Base\n\t * @param {Date} start start date.\n\t * @param {Date} end end date.\n\t * @param {function[]} [andFilters] - optional filters to applying search query\n\t * @returns {object} schedules grouped by dates.\n\t */\n\t findByDateRange: function(start, end, andFilters) {\n\t var ctrlCore = this.Core,\n\t ctrlWeek = this.Week,\n\t filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n\t modelColl,\n\t group;\n\t\n\t andFilters = andFilters || [];\n\t filter = Collection.and.apply(null, [filter].concat(andFilters));\n\t\n\t modelColl = this.schedules.find(filter);\n\t modelColl = ctrlCore.convertToViewModel(modelColl);\n\t\n\t group = modelColl.groupBy(['task', 'allday', 'time'], this.groupFunc);\n\t group.task = ctrlWeek.getViewModelForAlldayView(start, end, group.task);\n\t group.allday = ctrlWeek.getViewModelForAlldayView(start, end, group.allday);\n\t group.time = ctrlWeek.getViewModelForTimeView(start, end, group.time);\n\t\n\t return group;\n\t }\n\t};\n\t\n\tmodule.exports = Week;\n\t\n\n\n/***/ },\n/* 69 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Factory module for control all other factory.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1),\n\t Handlebars = __webpack_require__(21);\n\tvar dw = __webpack_require__(15),\n\t datetime = __webpack_require__(4),\n\t Layout = __webpack_require__(95),\n\t Drag = __webpack_require__(26),\n\t controllerFactory = __webpack_require__(70),\n\t weekViewFactory = __webpack_require__(72),\n\t monthViewFactory = __webpack_require__(71),\n\t TZDate = __webpack_require__(5).Date,\n\t config = __webpack_require__(3),\n\t timezone = __webpack_require__(5);\n\t\n\tvar mmin = Math.min;\n\t\n\t/**\n\t * @typedef {object} Schedule\n\t * @property {string} id - unique schedule id depends on calendar id\n\t * @property {string} calendarId - unique calendar id\n\t * @property {string} title - schedule title\n\t * @property {string} start - start time\n\t * @property {string} end - end time\n\t * @property {boolean} isAllDay - all day schedule\n\t * @property {string} category - schedule type('milestone', 'task', allday', 'time')\n\t * @property {string} dueDateClass - task schedule type string\n\t * (any string value is ok and mandatory if category is 'task')\n\t * @property {boolean} isPending - in progress flag to do something like network job(The schedule will be transparent.)\n\t * @property {boolean} isFocused - focused schedule flag\n\t * @property {boolean} isVisible - schedule visibility flag\n\t * @property {boolean} isReadOnly - schedule read-only flag\n\t * @property {string} [color] - schedule text color\n\t * @property {string} [bgColor] - schedule background color\n\t * @property {string} [borderColor] - schedule left border color\n\t * @property {string} customStyle - schedule's custom css class\n\t * @property {any} raw - user data\n\t */\n\t\n\t/**\n\t * @typedef {object} RenderRange - rendered range\n\t * @property {Date} start - start date\n\t * @property {Date} end - end date\n\t */\n\t\n\t/**\n\t * @typedef {object} Options - calendar option object\n\t * @property {string} [cssPrefix] - CSS classname prefix\n\t * @property {string} [defaultView='week'] - default view of calendar\n\t * @property {string} [defaultDate=null] - default date to render calendar. if not supplied, use today.\n\t * @property {object} [calendarColor] - preset calendar colors\n\t * @property {string} [calendarColor.color] - calendar color\n\t * @property {string} [calendarColor.bgColor] - calendar background color\n\t * @property {string} [calendarColor.borderColor] - calendar left border color\n\t * @property {boolean} [calendarColor.render] - immediately apply colors when setCalendarColor called.\n\t * @property {boolean} [taskView=true] - show the milestone and task in weekly, daily view\n\t * @property {boolean} [scheduleView=true] - show the all day and time grid in weekly, daily view\n\t * @property {object} [template] - template option\n\t * @property {function} [template.milestoneTitle] - milestone title(at left column) template function\n\t * @property {function} [template.milestone] - milestone template function\n\t * @property {function} [template.taskTitle] - task title(at left column) template function\n\t * @property {function} [template.task] - task template function\n\t * @property {function} [template.alldayTitle] - allday title(at left column) template function\n\t * @property {function} [template.allday] - allday template function\n\t * @property {function} [template.time] - time template function\n\t * @property {function} [template.monthMoreTitleDate] - month more layer title template function\n\t * @property {function} [template.monthMoreClose] - month more layer close button template function\n\t * @property {function} [template.monthGridHeader] - month grid header(date, decorator, title) template function\n\t * @property {function} [template.monthGridFooter] - month grid footer(date, decorator, title) template function\n\t * @property {function} [template.monthGridHeaderExceed] - month grid header(exceed schedule count) template function\n\t * @property {function} [template.monthGridFooterExceed] - month grid footer(exceed schedule count) template function\n\t * @property {function} [template.weekDayname] - weekly dayname template function\n\t * @property {function} [template.monthDayname] - monthly dayname template function\n\t * @property {object} [week] - options for week view\n\t * @property {number} [week.startDayOfWeek=0] - start day of week\n\t * @property {Array.} [week.panelHeights] - each panel height px(Milestone, Task, Allday View Panel)\n\t * @property {Array.} [week.daynames] - day names in weekly and daily.\n\t * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n\t * @property {boolean} [week.narrowWeekend=false] - make weekend column narrow(1/2 width)\n\t * @property {boolean} [week.workweek=false] - show only 5 days except for weekend\n\t * @property {string} [week.alldayViewType='scroll'] - set view type of allday panel. ('scroll'|'toggle')\n\t * @property {object} [month] - options for month view\n\t * @property {Array.} [month.daynames] - day names in monthly.\n\t * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n\t * @property {number} [month.startDayOfWeek=0] - start day of week\n\t * @property {boolean} [month.narrowWeekend=false] - make weekend column narrow(1/2 width)\n\t * @property {boolean} [month.visibleWeeksCount=6] - visible week count in monthly(0 or null are same with 6)\n\t * @property {number} [month.visibleScheduleCount] - visible schedule count in monthly grid\n\t * @property {object} [month.moreLayerSize] - more layer size\n\t * @property {object} [month.moreLayerSize.width=null] - css width value(px, 'auto').\n\t * The default value 'null' is to fit a grid cell.\n\t * @property {object} [month.moreLayerSize.height=null] - css height value(px, 'auto').\n\t * The default value 'null' is to fit a grid cell.\n\t * @property {object} [month.grid] - grid's header and footer information\n\t * @property {object} [month.grid.header] - grid's header informatioin\n\t * @property {number} [month.grid.header.height=34] - grid's header height\n\t * @property {object} [month.grid.footer] - grid's footer informatioin\n\t * @property {number} [month.grid.footer.height=34] - grid's footer height\n\t * @property {Array.} [schedules] - array of Schedule data for add calendar after initialize.\n\t */\n\t\n\t/**\n\t * @typedef {class} CustomEvents\n\t * https://nhnent.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html\n\t */\n\t\n\t/**\n\t * @typedef {object} TimeCreationGuide - time creation guide instance to present selected time period\n\t * @property {HTMLElement} guideElement - guide element\n\t * @property {Object.} guideElements - map by key. It can be used in monthly view\n\t * @property {function} clearGuideElement - hide the creation guide\n\t * @example\n\t * calendar.on('beforeCreateSchedule', function(event) {\n\t * var guide = event.guide;\n\t * // use guideEl$'s left, top to locate your schedule creation popup\n\t * var guideEl$ = guide.guideElement ?\n\t * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n\t *\n\t * // after that call this to hide the creation guide\n\t * guide.clearGuideElement();\n\t * });\n\t */\n\t\n\t/**\n\t * Calendar class\n\t * @constructor\n\t * @mixes CustomEvents\n\t * @param {HTMLElement|string} container - container element or selector id\n\t * @param {Options} options - calendar options\n\t * @example\n\t * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n\t * defaultView: 'week',\n\t * taskView: true,\n\t * scheduleView: true,\n\t * template: {\n\t * milestone: function(schedule) {\n\t * return ' ' + schedule.title + '';\n\t * },\n\t * milestoneTitle: function() {\n\t * return 'Milestone';\n\t * },\n\t * task: function(schedule) {\n\t * return '  #' + schedule.title;\n\t * },\n\t * taskTitle: function() {\n\t * return '';\n\t * },\n\t * allday: function(schedule) {\n\t * return schedule.title + ' ';\n\t * },\n\t * alldayTitle: function() {\n\t * return 'All Day';\n\t * },\n\t * time: function(schedule) {\n\t * return schedule.title + ' ' + schedule.start;\n\t * }\n\t * },\n\t * month: {\n\t * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n\t * startDayOfWeek: 0,\n\t * narrowWeekend: true\n\t * },\n\t * week: {\n\t * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n\t * panelHeights: [80, 80, 120],\n\t * startDayOfWeek: 0,\n\t * narrowWeekend: true\n\t * }\n\t * });\n\t */\n\tfunction Calendar(container, options) {\n\t var opt;\n\t\n\t if (util.isString(container)) {\n\t container = document.querySelector(container);\n\t }\n\t\n\t /**\n\t * calendar options\n\t * @type {Options}\n\t */\n\t this.options = opt = util.extend({\n\t calendarColor: {},\n\t groupFunc: function(viewModel) {\n\t var model = viewModel.model;\n\t\n\t if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n\t return 'allday';\n\t }\n\t\n\t return model.category;\n\t },\n\t controller: null,\n\t defaultView: 'week',\n\t taskView: true,\n\t scheduleView: true,\n\t defaultDate: new TZDate(),\n\t template: util.extend({\n\t allday: null,\n\t time: null\n\t }, util.pick(options, 'template') || {}),\n\t week: util.extend({}, util.pick(options, 'week') || {}),\n\t month: util.extend({}, util.pick(options, 'month') || {}),\n\t schedules: []\n\t }, options);\n\t\n\t this.options.week = util.extend({\n\t startDayOfWeek: 0,\n\t workweek: false\n\t }, util.pick(this.options, 'week') || {});\n\t\n\t this.options.month = util.extend({\n\t scheduleFilter: function(schedule) {\n\t return Boolean(schedule.isVisible) &&\n\t (schedule.category === 'allday' || schedule.category === 'time');\n\t }\n\t }, util.pick(options, 'month') || {});\n\t\n\t /**\n\t * Calendar color map\n\t * @type {object}\n\t * @private\n\t */\n\t this.calendarColor = opt.calendarColor;\n\t\n\t /**\n\t * @type {HTMLElement}\n\t * @private\n\t */\n\t this.container = container;\n\t\n\t /**\n\t * Current rendered date\n\t * @type {Date}\n\t * @readonly\n\t */\n\t this.renderDate = opt.defaultDate;\n\t\n\t /**\n\t * start and end date of weekly, monthly\n\t * @type {RenderRange}\n\t * @readonly\n\t */\n\t this.renderRange = {\n\t start: null,\n\t end: null\n\t };\n\t\n\t /**\n\t * base controller\n\t * @type {Base}\n\t * @private\n\t */\n\t this.controller = opt.controller || this.createController();\n\t\n\t /**\n\t * layout view (layout manager)\n\t * @type {Layout}\n\t * @private\n\t */\n\t this.layout = new Layout(container);\n\t\n\t /**\n\t * global drag handler\n\t * @type {Drag}\n\t * @private\n\t */\n\t this.dragHandler = new Drag({distance: 10}, this.layout.container);\n\t\n\t /**\n\t * current rendered view name. ('day', 'week', 'month')\n\t * @type {string}\n\t * @default 'week'\n\t * @readonly\n\t */\n\t this.viewName = opt.defaultView;\n\t\n\t /**\n\t * previous rendered view name\n\t * @type {string}\n\t * @private\n\t */\n\t this.prevViewName = this.viewName;\n\t\n\t /**\n\t * Refresh method. it can be ref different functions for each view modes.\n\t * @type {function}\n\t * @private\n\t */\n\t this.refreshMethod = null;\n\t\n\t /**\n\t * Scroll to now. It can be called for 'week', 'day' view modes.\n\t * @type {function}\n\t * @private\n\t */\n\t this.scrollToNowMethod = null;\n\t\n\t this.initialize();\n\t}\n\t\n\t/**\n\t * Create controller instance\n\t * @returns {Base} controller instance\n\t * @private\n\t */\n\tCalendar.prototype.createController = function() {\n\t return controllerFactory(this.options);\n\t};\n\t\n\t/**\n\t * Create week view instance by dependent module instances\n\t * @param {Base} controller - controller\n\t * @param {HTMLElement} container - container element\n\t * @param {Drag} dragHandler - global drag handler\n\t * @param {object} options - options for week view\n\t * @returns {Week} week view instance\n\t * @private\n\t */\n\tCalendar.prototype.createWeekView = function(controller, container, dragHandler, options) {\n\t return weekViewFactory(\n\t controller,\n\t container,\n\t dragHandler,\n\t options\n\t );\n\t};\n\t\n\t/**\n\t * Create week view instance by dependent module instances\n\t * @param {Base} controller - controller\n\t * @param {HTMLElement} container - container element\n\t * @param {Drag} dragHandler - global drag handler\n\t * @param {object} options - options for week view\n\t * @returns {Month} month view instance\n\t * @private\n\t */\n\tCalendar.prototype.createMonthView = function(controller, container, dragHandler, options) {\n\t return monthViewFactory(\n\t controller,\n\t container,\n\t dragHandler,\n\t options\n\t );\n\t};\n\t\n\t/**\n\t * destroy calendar instance.\n\t */\n\tCalendar.prototype.destroy = function() {\n\t this.dragHandler.destroy();\n\t this.controller.off();\n\t this.layout.clear();\n\t this.layout.destroy();\n\t\n\t util.forEach(this.options.template, function(func, name) {\n\t if (func) {\n\t Handlebars.unregisterHelper(name + '-tmpl');\n\t }\n\t });\n\t\n\t this.options = this.renderDate = this.controller =\n\t this.layout = this.dragHandler = this.viewName = this.prevViewName =\n\t this.refreshMethod = this.scrollToNowMethod = null;\n\t};\n\t\n\t/**\n\t * Initialize calendar\n\t * @private\n\t */\n\tCalendar.prototype.initialize = function() {\n\t var controller = this.controller,\n\t viewName = this.viewName,\n\t opt = this.options;\n\t\n\t this.layout.controller = controller;\n\t\n\t if (opt.schedules && opt.schedules.length) {\n\t this.createSchedules(opt.schedules, true);\n\t }\n\t\n\t util.forEach(opt.template, function(func, name) {\n\t if (func) {\n\t Handlebars.registerHelper(name + '-tmpl', func);\n\t }\n\t });\n\t\n\t this.toggleView(viewName, true);\n\t};\n\t\n\t/**********\n\t * CRUD Methods\n\t **********/\n\t\n\t/**\n\t * Create schedules and render calendar.\n\t * @param {Array.} schedules - schedule data list\n\t * @param {boolean} [silent=false] - no auto render after creation when set true\n\t * @example\n\t * calendar.createSchedules([\n\t * {\n\t * id: '1',\n\t * calendarId: '1',\n\t * title: 'my schedule',\n\t * category: 'time',\n\t * dueDateClass: '',\n\t * start: '2018-01-18T22:30:00+09:00',\n\t * end: '2018-01-19T02:30:00+09:00'\n\t * },\n\t * {\n\t * id: '2',\n\t * calendarId: '1',\n\t * title: 'second schedule',\n\t * category: 'time',\n\t * dueDateClass: '',\n\t * start: '2018-01-18T17:30:00+09:00',\n\t * end: '2018-01-19T17:31:00+09:00'\n\t * }\n\t * ]);\n\t */\n\tCalendar.prototype.createSchedules = function(schedules, silent) {\n\t var calColor = this.calendarColor;\n\t\n\t util.forEach(schedules, function(obj) {\n\t var color = calColor[obj.calendarId];\n\t\n\t if (color) {\n\t obj.color = color.color;\n\t obj.bgColor = color.bgColor;\n\t obj.borderColor = color.borderColor;\n\t }\n\t });\n\t\n\t this.controller.createSchedules(schedules, silent);\n\t\n\t if (!silent) {\n\t this.render();\n\t }\n\t};\n\t\n\t/**\n\t * Get schedule by schedule id and calendar id.\n\t * @param {string} id - ID of schedule\n\t * @param {string} calendarId - calendarId of schedule\n\t * @returns {Schedule} schedule object\n\t * @example\n\t * var schedule = calendar.getSchedule(scheduleId, calendarId);\n\t * console.log(schedule.title);\n\t */\n\tCalendar.prototype.getSchedule = function(id, calendarId) {\n\t return this.controller.schedules.single(function(model) {\n\t return model.id === id && model.calendarId === calendarId;\n\t });\n\t};\n\t\n\t/**\n\t * Update the schedule\n\t * @param {string} id - ID of schedule to update\n\t * @param {string} calendarId - calendarId of schedule to update\n\t * @param {Schedule} scheduleData - schedule data to update\n\t * @example\n\t * calendar.on('beforeUpdateSchedule', function(event) {\n\t * var schedule = event.schedule;\n\t * var startTime = event.start;\n\t * var endTime = event.end;\n\t * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n\t * start: startTime,\n\t * end: endTime\n\t * });\n\t * });\n\t */\n\tCalendar.prototype.updateSchedule = function(id, calendarId, scheduleData) {\n\t var ctrl = this.controller,\n\t ownSchedules = ctrl.schedules,\n\t schedule = ownSchedules.single(function(model) {\n\t return model.id === id && model.calendarId === calendarId;\n\t });\n\t\n\t if (schedule) {\n\t ctrl.updateSchedule(schedule, scheduleData);\n\t this.render();\n\t }\n\t};\n\t\n\t/**\n\t * Delete schedule.\n\t * @fires Calendar#beforeDeleteSchedule\n\t * @param {string} id - ID of schedule to delete\n\t * @param {string} calendarId - calendarId of schedule to delete\n\t */\n\tCalendar.prototype.deleteSchedule = function(id, calendarId) {\n\t var ctrl = this.controller,\n\t ownSchedules = ctrl.schedules,\n\t schedule = ownSchedules.single(function(model) {\n\t return model.id === id && model.calendarId === calendarId;\n\t });\n\t\n\t if (!schedule) {\n\t return;\n\t }\n\t\n\t /**\n\t * Fire this event when delete a schedule.\n\t * @event Calendar#beforeDeleteSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to delete\n\t * @example\n\t * calendar.on('beforeDeleteSchedule', function() {\n\t * alert('The schedule is removed.');\n\t * });\n\t */\n\t this.fire('beforeDeleteSchedule', {\n\t schedule: schedule\n\t });\n\t\n\t ctrl.deleteSchedule(schedule);\n\t this.render();\n\t};\n\t\n\t/**********\n\t * Private Methods\n\t **********/\n\t\n\t/**\n\t * Set child view's options recursively\n\t * @param {View} view - parent view\n\t * @param {function} func - option manipulate function\n\t * @private\n\t */\n\tCalendar.prototype.setOptionRecurseively = function(view, func) {\n\t view.recursive(function(childView) {\n\t var opt = childView.options;\n\t\n\t if (!opt) {\n\t return;\n\t }\n\t\n\t func(opt);\n\t });\n\t};\n\t\n\t/**\n\t * @param {string|Date} date - date to show in calendar\n\t * @param {number} [startDayOfWeek=0] - start day of week\n\t * @param {boolean} [workweek=false] - only show work week\n\t * @returns {array} render range\n\t * @private\n\t */\n\tCalendar.prototype.getWeekDayRange = function(date, startDayOfWeek, workweek) {\n\t var day, start, end, range,\n\t msFrom = datetime.millisecondsFrom;\n\t\n\t startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n\t date = util.isDate(date) ? date : new TZDate(date);\n\t day = date.getDay();\n\t\n\t // calculate default render range first.\n\t start = new TZDate(\n\t Number(date) -\n\t msFrom('day', day) +\n\t msFrom('day', startDayOfWeek)\n\t );\n\t\n\t end = new TZDate(Number(start) + msFrom('day', 6));\n\t\n\t if (day < startDayOfWeek) {\n\t start = new TZDate(Number(start) - msFrom('day', 7));\n\t end = new TZDate(Number(end) - msFrom('day', 7));\n\t }\n\t\n\t if (workweek) {\n\t range = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t );\n\t\n\t range = util.filter(range, function(weekday) {\n\t return !datetime.isWeekend(weekday.getDay());\n\t });\n\t\n\t start = range[0];\n\t end = range[range.length - 1];\n\t }\n\t\n\t return [start, end];\n\t};\n\t\n\t/**\n\t * Toggle schedules visibility by calendar ID\n\t * @param {string} calendarId - calendar id value\n\t * @param {boolean} toHide - set true to hide schedules\n\t * @param {boolean} render - set true then render after change visible property each models\n\t * @private\n\t */\n\tCalendar.prototype._toggleSchedulesByCalendarID = function(calendarId, toHide, render) {\n\t var ownSchedules = this.controller.schedules;\n\t\n\t calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\t\n\t ownSchedules.each(function(schedule) {\n\t if (~util.inArray(schedule.calendarId, calendarId)) {\n\t schedule.set('isVisible', !toHide);\n\t }\n\t });\n\t\n\t if (render) {\n\t this.render();\n\t }\n\t};\n\t\n\t/**********\n\t * General Methods\n\t **********/\n\t\n\t/**\n\t * Render the calendar.\n\t * @example\n\t * var silent = true;\n\t * calendar.clear();\n\t * calendar.createSchedules(schedules, silent);\n\t * calendar.render();\n\t */\n\tCalendar.prototype.render = function() {\n\t this.layout.render();\n\t};\n\t\n\t/**\n\t * Delete all schedules and clear view.\n\t * @example\n\t * calendar.clear();\n\t * calendar.createSchedules(schedules, true);\n\t * calendar.render();\n\t */\n\tCalendar.prototype.clear = function() {\n\t this.controller.clearSchedules();\n\t this.render();\n\t};\n\t\n\t/**\n\t * Scroll to now in daily, weekly view\n\t * @example\n\t * function onNewSchedules(schedules) {\n\t * calendar.createSchedules(schedules);\n\t * if (calendar.viewName !== 'month') {\n\t * calendar.scrollToNow();\n\t * }\n\t * }\n\t */\n\tCalendar.prototype.scrollToNow = function() {\n\t if (this.scrollToNowMethod) {\n\t this.scrollToNowMethod();\n\t }\n\t};\n\t\n\t/**\n\t * Refresh the calendar layout.\n\t * @example\n\t * window.addEventListener('resize', function() {\n\t * calendar.refresh();\n\t * });\n\t */\n\tCalendar.prototype.refresh = function() {\n\t if (this.refreshMethod) {\n\t this.refreshMethod();\n\t }\n\t\n\t this.render();\n\t};\n\t\n\t/**\n\t * Refresh child views\n\t * @param {string} [viewName] - the name of view to render. if not supplied then refresh all.\n\t * @private\n\t */\n\tCalendar.prototype.refreshChildView = function(viewName) {\n\t if (!viewName) {\n\t this.render();\n\t\n\t return;\n\t }\n\t\n\t if (viewName === 'day') {\n\t viewName = 'week';\n\t }\n\t\n\t this.layout.children.items[viewName].render();\n\t};\n\t\n\t/**\n\t * Move to today.\n\t * @example\n\t * function onClickTodayBtn() {\n\t * calendar.today();\n\t * }\n\t */\n\tCalendar.prototype.today = function() {\n\t this.renderDate = new TZDate();\n\t\n\t this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n\t this.move();\n\t this.render();\n\t};\n\t\n\t/**\n\t * Move the calendar amount of offset value\n\t * @param {number} offset - offset value.\n\t * @private\n\t * @example\n\t * // move previous week when \"week\" view.\n\t * // move previous month when \"month\" view.\n\t * calendar.move(-1);\n\t */\n\tCalendar.prototype.move = function(offset) {\n\t var renderDate = dw(this.renderDate),\n\t viewName = this.viewName,\n\t view = this.getCurrentView(),\n\t recursiveSet = this.setOptionRecurseively,\n\t startDate, endDate, tempDate,\n\t startDayOfWeek, visibleWeeksCount, workweek, datetimeOptions;\n\t\n\t offset = util.isExisty(offset) ? offset : 0;\n\t\n\t if (viewName === 'month') {\n\t startDayOfWeek = util.pick(this.options, 'month', 'startDayOfWeek') || 0;\n\t visibleWeeksCount = mmin(util.pick(this.options, 'month', 'visibleWeeksCount') || 0, 6);\n\t workweek = util.pick(this.options, 'month', 'workweek') || false;\n\t\n\t if (visibleWeeksCount) {\n\t datetimeOptions = {\n\t startDayOfWeek: startDayOfWeek,\n\t isAlways6Week: false,\n\t visibleWeeksCount: visibleWeeksCount,\n\t workweek: workweek\n\t };\n\t\n\t renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n\t tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\t\n\t recursiveSet(view, function(opt) {\n\t opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM-DD');\n\t });\n\t } else {\n\t datetimeOptions = {\n\t startDayOfWeek: startDayOfWeek,\n\t isAlways6Week: true,\n\t workweek: workweek\n\t };\n\t\n\t renderDate.addMonth(offset);\n\t tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\t\n\t recursiveSet(view, function(opt) {\n\t opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM');\n\t });\n\t }\n\t\n\t startDate = tempDate[0][0];\n\t endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n\t } else if (viewName === 'week') {\n\t renderDate.addDate(offset * 7);\n\t startDayOfWeek = util.pick(this.options, 'week', 'startDayOfWeek') || 0;\n\t workweek = util.pick(this.options, 'week', 'workweek') || false;\n\t tempDate = this.getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\t\n\t startDate = tempDate[0];\n\t endDate = tempDate[1];\n\t\n\t recursiveSet(view, function(opt) {\n\t opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n\t opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n\t });\n\t } else if (viewName === 'day') {\n\t renderDate.addDate(offset);\n\t startDate = endDate = renderDate.d;\n\t\n\t recursiveSet(view, function(opt) {\n\t opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n\t opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n\t });\n\t }\n\t\n\t this.renderDate = renderDate.d;\n\t this.renderRange = {\n\t start: startDate,\n\t end: endDate\n\t };\n\t};\n\t\n\t/**\n\t * Move to specific date\n\t * @param {(Date|string)} date - date to move\n\t * @example\n\t * calendar.on('clickDayname', function(event) {\n\t * if (calendar.viewName === 'week') {\n\t * calendar.setDate(new Date(event.date));\n\t * calendar.toggleView('day', true);\n\t * }\n\t * });\n\t */\n\tCalendar.prototype.setDate = function(date) {\n\t if (util.isString(date)) {\n\t date = datetime.parse(date);\n\t }\n\t\n\t this.renderDate = new TZDate(Number(date));\n\t this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n\t this.move(0);\n\t this.render();\n\t};\n\t\n\t/**\n\t * Move the calendar forward a day, a week, a month\n\t * @example\n\t * function moveToNextOrPrevRange(val) {\n\t calendar.clear();\n\t if (val === -1) {\n\t calendar.prev();\n\t } else if (val === 1) {\n\t calendar.next();\n\t }\n\t}\n\t */\n\tCalendar.prototype.next = function() {\n\t this.move(1);\n\t this.render();\n\t};\n\t\n\t/**\n\t * Move the calendar backward a day, a week, a month\n\t * @example\n\t * function moveToNextOrPrevRange(val) {\n\t calendar.clear();\n\t if (val === -1) {\n\t calendar.prev();\n\t } else if (val === 1) {\n\t calendar.next();\n\t }\n\t}\n\t */\n\tCalendar.prototype.prev = function() {\n\t this.move(-1);\n\t this.render();\n\t};\n\t\n\t/**\n\t * Return current rendered view.\n\t * @returns {View} current view instance\n\t * @private\n\t */\n\tCalendar.prototype.getCurrentView = function() {\n\t var viewName = this.viewName;\n\t\n\t if (viewName === 'day') {\n\t viewName = 'week';\n\t }\n\t\n\t return util.pick(this.layout.children.items, viewName);\n\t};\n\t\n\t/**\n\t * Change calendar's schedule color with option\n\t * @param {string} calendarId - calendar ID\n\t * @param {object} option - color data object\n\t * @param {string} option.color - text color of schedule element\n\t * @param {string} option.bgColor - bg color of schedule element\n\t * @param {string} option.borderColor - border color of schedule element\n\t * @param {boolean} [option.render=true] - set false then does not auto render.\n\t * @example\n\t * calendar.setCalendarColor('1', {\n\t * color: '#e8e8e8',\n\t * bgColor: '#585858',\n\t * render: false\n\t * });\n\t * calendar.setCalendarColor('2', {\n\t * color: '#282828',\n\t * bgColor: '#dc9656',\n\t * render: false\n\t * });\n\t * calendar.setCalendarColor('3', {\n\t * color: '#a16946',\n\t * bgColor: '#ab4642',\n\t * render: true\n\t * });\n\t */\n\tCalendar.prototype.setCalendarColor = function(calendarId, option) {\n\t var calColor = this.calendarColor,\n\t ownSchedules = this.controller.schedules,\n\t ownColor = calColor[calendarId];\n\t\n\t if (!util.isObject(option)) {\n\t config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n\t }\n\t\n\t ownColor = calColor[calendarId] = util.extend({\n\t color: '#000',\n\t bgColor: '#a1b56c',\n\t borderColor: '#a1b56c',\n\t render: true\n\t }, option);\n\t\n\t ownSchedules.each(function(model) {\n\t if (model.calendarId !== calendarId) {\n\t return;\n\t }\n\t\n\t model.color = ownColor.color;\n\t model.bgColor = ownColor.bgColor;\n\t model.borderColor = ownColor.borderColor;\n\t });\n\t\n\t if (ownColor.render) {\n\t this.render();\n\t }\n\t};\n\t\n\t/**\n\t * Show schedules visibility by calendar ID\n\t * @param {string|string[]} calendarId - calendar id value\n\t * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n\t * @private\n\t */\n\tCalendar.prototype.showSchedulesByCalendarID = function(calendarId, render) {\n\t render = util.isExisty(render) ? render : true;\n\t this._toggleSchedulesByCalendarID(calendarId, false, render);\n\t};\n\t\n\t/**\n\t * Hide schedules visibility by calendar ID\n\t * @param {string|string[]} calendarId - calendar id value\n\t * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n\t * @private\n\t */\n\tCalendar.prototype.hideSchedulesByCalendarID = function(calendarId, render) {\n\t render = util.isExisty(render) ? render : true;\n\t this._toggleSchedulesByCalendarID(calendarId, true, render);\n\t};\n\t\n\t/**********\n\t * Custom Events\n\t **********/\n\t\n\t/**\n\t * 각 뷰의 클릭 핸들러와 사용자 클릭 이벤트 핸들러를 잇기 위한 브릿지 개념의 이벤트 핸들러\n\t * @fires Calendar#clickSchedule\n\t * @param {object} clickScheduleData - 'clickSchedule' 핸들러의 이벤트 데이터\n\t * @private\n\t */\n\tCalendar.prototype._onClick = function(clickScheduleData) {\n\t /**\n\t * Fire this event when click a schedule.\n\t * @event Calendar#clickSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent\n\t * @example\n\t * calendar.on('clickSchedule', function(event) {\n\t * var schedule = event.schedule;\n\t *\n\t * if (lastClickSchedule) {\n\t * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n\t * isFocused: false\n\t * });\n\t * }\n\t * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n\t * isFocused: true\n\t * });\n\t *\n\t * lastClickSchedule = schedule;\n\t * // open detail view\n\t * });\n\t */\n\t this.fire('clickSchedule', clickScheduleData);\n\t};\n\t\n\t/**\n\t * dayname 클릭 이벤트 핸들러\n\t * @fires Calendar#clickDayname\n\t * @param {object} clickScheduleData - 'clickDayname' 핸들러의 이벤트 데이터\n\t * @private\n\t */\n\tCalendar.prototype._onClickDayname = function(clickScheduleData) {\n\t /**\n\t * Fire this event when click a day name in weekly.\n\t * @event Calendar#clickDayname\n\t * @type {object}\n\t * @property {string} date - date string by format 'YYYY-MM-DD'\n\t * @example\n\t * calendar.on('clickDayname', function(event) {\n\t * if (calendar.viewName === 'week') {\n\t * calendar.setDate(new Date(event.date));\n\t * calendar.toggleView('day', true);\n\t * }\n\t * });\n\t */\n\t this.fire('clickDayname', clickScheduleData);\n\t};\n\t\n\t/**\n\t * @fires {Calendar#beforeCreateSchedule}\n\t * @param {object} createScheduleData - select schedule data from allday, time\n\t * @private\n\t */\n\tCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n\t /**\n\t * Fire this event when select time period in daily, weekly, monthly.\n\t * @event Calendar#beforeCreateSchedule\n\t * @type {object}\n\t * @property {boolean} isAllDay - allday schedule\n\t * @property {Date} start - selected start time\n\t * @property {Date} end - selected end time\n\t * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n\t * @property {string} triggerEventName - event name like 'click', 'dblclick'\n\t * @example\n\t * calendar.on('beforeCreateSchedule', function(event) {\n\t * var startTime = event.start;\n\t * var endTime = event.end;\n\t * var isAllDay = event.isAllDay;\n\t * var guide = event.guide;\n\t * var triggerEventName = event.triggerEventName;\n\t * var schedule;\n\t *\n\t * if (triggerEventName === 'click') {\n\t * // open writing simple schedule popup\n\t * schedule = {...};\n\t * } else if (triggerEventName === 'dblclick') {\n\t * // open writing detail schedule popup\n\t * schedule = {...};\n\t * }\n\t *\n\t * calendar.createSchedules([schedule]);\n\t * });\n\t */\n\t this.fire('beforeCreateSchedule', createScheduleData);\n\t};\n\t\n\t/**\n\t * @fires Calendar#beforeUpdateSchedule\n\t * @param {object} updateScheduleData - update schedule data\n\t * @private\n\t */\n\tCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n\t /**\n\t * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n\t * @event Calendar#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t * @example\n\t * calendar.on('beforeUpdateSchedule', function(event) {\n\t * var schedule = event.schedule;\n\t * var startTime = event.start;\n\t * var endTime = event.end;\n\t *\n\t * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n\t * start: startTime,\n\t * end: endTime\n\t * });\n\t * });\n\t */\n\t this.fire('beforeUpdateSchedule', updateScheduleData);\n\t};\n\t\n\t/**\n\t * @fires Calendar#resizePanel\n\t * @param {object} resizeScheduleData - resize schedule data object\n\t * @private\n\t */\n\tCalendar.prototype._onResizePanel = function(resizeScheduleData) {\n\t /**\n\t * Fire this event when resize view panels(milestone, task, allday).\n\t * @event Calendar#resizePanel\n\t * @type {object}\n\t * @property {number[]} layoutData - layout data after resized\n\t * @example\n\t * calendar.on('resizePanel', function(layoutData) {\n\t * console.log(layoutData);\n\t * // do something to resize your UI if necessary.\n\t * });\n\t */\n\t this.fire('resizePanel', resizeScheduleData);\n\t};\n\t\n\t/**\n\t * 캘린더 팩토리 클래스와 주뷰, 월뷰의 이벤트 연결을 토글한다\n\t * @param {boolean} isAttach - true면 이벤트 연결함.\n\t * @param {Week|Month} view - 주뷰 또는 월뷰\n\t * @private\n\t */\n\tCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n\t var self = this,\n\t handler = view.handler,\n\t isMonthView = view.viewName === 'month',\n\t method = isAttach ? 'on' : 'off';\n\t\n\t util.forEach(handler.click, function(clickHandler) {\n\t clickHandler[method]('clickSchedule', self._onClick, self);\n\t });\n\t\n\t util.forEach(handler.dayname, function(clickHandler) {\n\t clickHandler[method]('clickDayname', self._onClickDayname, self);\n\t });\n\t\n\t util.forEach(handler.creation, function(creationHandler) {\n\t creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n\t });\n\t\n\t util.forEach(handler.move, function(moveHandler) {\n\t moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n\t });\n\t\n\t util.forEach(handler.resize, function(resizeHandler) {\n\t resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n\t });\n\t\n\t if (!isMonthView) {\n\t view.vLayout[method]('resize', self._onResizePanel, self);\n\t }\n\t};\n\t\n\t/**\n\t * Toggle current view\n\t * @param {string} newViewName - new view name to render\n\t * @param {boolean} force - force render despite of current view and new view are equal\n\t * @example\n\t * // daily view\n\t * calendar.toggleView('day', true);\n\t *\n\t * // weekly view\n\t * calendar.toggleView('week', true);\n\t *\n\t * // monthly view(default 6 weeks view)\n\t * calendar.options.month.visibleWeeksCount = 6; // or null\n\t * calendar.toggleView('month', true);\n\t *\n\t * // 2 weeks monthly view\n\t * calendar.options.month.visibleWeeksCount = 2;\n\t * calendar.toggleView('month', true);\n\t *\n\t * // 3 weeks monthly view\n\t * calendar.options.month.visibleWeeksCount = 3;\n\t * calendar.toggleView('month', true);\n\t *\n\t * // narrow weekend\n\t * calendar.options.month.narrowWeekend = true;\n\t * calendar.options.week.narrowWeekend = true;\n\t * calendar.toggleView(calendar.viewName, true);\n\t *\n\t * // change start day of week(from monday)\n\t * calendar.options.month.startDayOfWeek = 1;\n\t * calendar.options.week.startDayOfWeek = 1;\n\t * calendar.toggleView(calendar.viewName, true);\n\t */\n\tCalendar.prototype.toggleView = function(newViewName, force) {\n\t var self = this,\n\t layout = this.layout,\n\t controller = this.controller,\n\t dragHandler = this.dragHandler,\n\t options = this.options,\n\t viewName = this.viewName,\n\t created;\n\t\n\t if (!force && viewName === newViewName) {\n\t return;\n\t }\n\t\n\t this._setViewName(newViewName);\n\t\n\t // convert day to week\n\t if (viewName === 'day') {\n\t viewName = 'week';\n\t }\n\t\n\t if (newViewName === 'day') {\n\t newViewName = 'week';\n\t }\n\t layout.children.doWhenHas(viewName, function(view) {\n\t self._toggleViewSchedule(false, view);\n\t });\n\t\n\t layout.clear();\n\t\n\t if (newViewName === 'month') {\n\t created = this.createMonthView(\n\t controller,\n\t layout.container,\n\t dragHandler,\n\t options\n\t );\n\t } else if (newViewName === 'week' || newViewName === 'day') {\n\t created = this.createWeekView(\n\t controller,\n\t layout.container,\n\t dragHandler,\n\t options\n\t );\n\t }\n\t\n\t layout.addChild(created.view);\n\t\n\t layout.children.doWhenHas(newViewName, function(view) {\n\t self._toggleViewSchedule(true, view);\n\t });\n\t\n\t this.refreshMethod = created.refresh;\n\t this.scrollToNowMethod = created.scrollToNow;\n\t\n\t this.move();\n\t this.render();\n\t};\n\t\n\t/**\n\t * Toggle task view('Milestone', 'Task') panel\n\t * @param {boolean} enabled - use task view\n\t * @example\n\t * // There is no milestone, task, so hide those view panel\n\t * calendar.toggleTaskView(false);\n\t *\n\t * // There are some milestone, task, so show those view panel.\n\t * calendar.toggleTaskView(true);\n\t */\n\tCalendar.prototype.toggleTaskView = function(enabled) {\n\t var viewName = this.viewName,\n\t options = this.options;\n\t\n\t options.taskView = enabled;\n\t\n\t this.toggleView(viewName, true);\n\t};\n\t\n\t/**\n\t * Toggle schedule view('AllDay', TimeGrid') panel\n\t * @param {boolean} enabled - use task view\n\t * @example\n\t * // hide those view panel to show only 'Milestone', 'Task'\n\t * calendar.toggleScheduleView(false);\n\t *\n\t * // show those view panel.\n\t * calendar.toggleScheduleView(true);\n\t */\n\tCalendar.prototype.toggleScheduleView = function(enabled) {\n\t var viewName = this.viewName,\n\t options = this.options;\n\t\n\t options.scheduleView = enabled;\n\t\n\t this.toggleView(viewName, true);\n\t};\n\t\n\t/**\n\t * Set current view name\n\t * @param {string} viewName - new view name to render\n\t * @private\n\t */\n\tCalendar.prototype._setViewName = function(viewName) {\n\t this.prevViewName = this.viewName;\n\t this.viewName = viewName;\n\t};\n\t\n\t/**\n\t * Get schedule by schedule id and calendar id.\n\t * @param {string} scheduleId - ID of schedule\n\t * @param {string} calendarId - calendarId of schedule\n\t * @returns {HTMLElement} schedule element if found or null\n\t * @example\n\t * var element = calendar.getElement(scheduleId, calendarId);\n\t * console.log(element);\n\t */\n\tCalendar.prototype.getElement = function(scheduleId, calendarId) {\n\t var schedule = this.getSchedule(scheduleId, calendarId);\n\t if (schedule) {\n\t return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n\t }\n\t\n\t return null;\n\t};\n\t\n\t/**\n\t * Set timezone offset\n\t * @param {number} offset - offset (min)\n\t * @static\n\t * @example\n\t * var timezoneName = moment.tz.guess();\n\t * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n\t */\n\tCalendar.setTimezoneOffset = function(offset) {\n\t timezone.setOffset(offset);\n\t};\n\t\n\t/**\n\t * Set a callback function to get timezone offset by timestamp\n\t * @param {function} callback - callback function\n\t * @static\n\t * @example\n\t * var timezoneName = moment.tz.guess();\n\t * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n\t * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n\t * });\n\t */\n\tCalendar.setTimezoneOffsetCallback = function(callback) {\n\t timezone.setOffsetCallback(callback);\n\t};\n\t\n\tutil.CustomEvents.mixin(Calendar);\n\t\n\tmodule.exports = Calendar;\n\n\n/***/ },\n/* 70 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Controller factory module.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar Base = __webpack_require__(65),\n\t Core = __webpack_require__(66),\n\t Week = __webpack_require__(68),\n\t Month = __webpack_require__(67),\n\t datetime = __webpack_require__(4);\n\t\n\t/**\n\t * Mixin object. create object property to target and mix to that\n\t * @param {object} from - source object\n\t * @param {object} to - target object\n\t * @param {string} propertyName - property name\n\t */\n\tfunction mixin(from, to, propertyName) {\n\t var obj = to[propertyName] = {};\n\t\n\t util.forEach(from, function(method, methodName) {\n\t obj[methodName] = util.bind(method, to);\n\t });\n\t}\n\t\n\t/**\n\t * @param {object} options - options for base controller\n\t * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n\t * @returns {Base} The controller instance.\n\t */\n\tmodule.exports = function(options) {\n\t var controller = new Base(options),\n\t originQuery;\n\t\n\t mixin(Core, controller, 'Core');\n\t mixin(Week, controller, 'Week');\n\t mixin(Month, controller, 'Month');\n\t\n\t /**********\n\t * Override Week#findByDateRange for support schedules that category is 'miles\n\t * tone', 'task'.\n\t **********/\n\t\n\t originQuery = controller.Week.findByDateRange;\n\t\n\t /**\n\t * Find schedule and get view model for specific month\n\t * @this Base\n\t * @override\n\t * @param {Date} start - start date to find schedules\n\t * @param {Date} end - end date to find schedules\n\t * @param {function[]} [andFilters] - optional filters to applying search query\n\t * @returns {object} view model data\n\t */\n\t function findByDateRange(start, end, andFilters) {\n\t var dateRange = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t ),\n\t ymdRange = util.map(dateRange, function(d) {\n\t return datetime.format(d, 'YYYY-MM-DD');\n\t }),\n\t viewModels;\n\t\n\t andFilters = andFilters || [];\n\t viewModels = originQuery(start, end, andFilters);\n\t\n\t util.forEach(viewModels, function(coll, key, obj) {\n\t var groupedByYMD;\n\t\n\t // Change view model\n\t if (key === 'milestone') {\n\t groupedByYMD = coll.groupBy(ymdRange, function(viewModel) {\n\t return datetime.format(viewModel.model.end, 'YYYY-MM-DD');\n\t });\n\t\n\t obj[key] = groupedByYMD;\n\t }\n\t });\n\t\n\t return viewModels;\n\t }\n\t\n\t controller.Week.findByDateRange = findByDateRange;\n\t\n\t return controller;\n\t};\n\t\n\n\n/***/ },\n/* 71 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Month view factory module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t array = __webpack_require__(14),\n\t datetime = __webpack_require__(4),\n\t domutil = __webpack_require__(2),\n\t Month = __webpack_require__(96),\n\t MonthClick = __webpack_require__(80),\n\t MonthCreation = __webpack_require__(81),\n\t MonthResize = __webpack_require__(85),\n\t MonthMove = __webpack_require__(83),\n\t More = __webpack_require__(97);\n\t\n\t/**\n\t * Get the view model for more layer\n\t * @param {TZDate} date - date has more schedules\n\t * @param {HTMLElement} target - target element\n\t * @param {Collection} schedules - schedule collection\n\t * @returns {object} view model\n\t */\n\tfunction getViewModelForMoreLayer(date, target, schedules) {\n\t schedules.each(function(schedule) {\n\t var model = schedule.model;\n\t schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n\t });\n\t\n\t return {\n\t target: target,\n\t date: datetime.format(date, 'YYYY.MM.DD'),\n\t schedules: schedules.sort(array.compare.schedule.asc)\n\t };\n\t}\n\t\n\t/**\n\t * @param {Base} baseController - controller instance\n\t * @param {HTMLElement} layoutContainer - container element for month view\n\t * @param {Drag} dragHandler - drag handler instance\n\t * @param {object} options - options\n\t * @returns {object} view instance and refresh method\n\t */\n\tfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n\t var monthViewContainer, monthView, moreView;\n\t var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n\t\n\t monthViewContainer = domutil.appendHTMLElement(\n\t 'div', layoutContainer, config.classname('month'));\n\t\n\t monthView = new Month(options.month, monthViewContainer, baseController.Month);\n\t moreView = new More(options.month, layoutContainer);\n\t\n\t // handlers\n\t clickHandler = new MonthClick(dragHandler, monthView, baseController);\n\t creationHandler = new MonthCreation(dragHandler, monthView, baseController);\n\t resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n\t moveHandler = new MonthMove(dragHandler, monthView, baseController);\n\t\n\t clearSchedulesHandler = function() {\n\t if (moreView) {\n\t moreView.hide();\n\t }\n\t };\n\t\n\t onUpdateSchedule = function() {\n\t if (moreView) {\n\t moreView.refresh();\n\t }\n\t };\n\t\n\t // binding +n click schedule\n\t clickHandler.on('clickMore', function(clickMoreSchedule) {\n\t var date = clickMoreSchedule.date,\n\t target = clickMoreSchedule.target,\n\t schedules = util.pick(baseController.findByDateRange(\n\t datetime.start(date),\n\t datetime.end(date)\n\t ), clickMoreSchedule.ymd);\n\t\n\t schedules.items = util.filter(schedules.items, function(item) {\n\t return options.month.scheduleFilter(item.model);\n\t });\n\t\n\t if (schedules && schedules.length) {\n\t moreView.render(getViewModelForMoreLayer(date, target, schedules));\n\t }\n\t });\n\t\n\t // binding clear schedules\n\t baseController.on('clearSchedules', clearSchedulesHandler);\n\t\n\t // bind update schedule event\n\t baseController.on('updateSchedule', onUpdateSchedule);\n\t\n\t moveHandler.on('monthMoveStart_from_morelayer', function() {\n\t moreView.hide();\n\t });\n\t\n\t monthView.handler = {\n\t click: {\n\t 'default': clickHandler\n\t },\n\t creation: {\n\t 'default': creationHandler\n\t },\n\t resize: {\n\t 'default': resizeHandler\n\t },\n\t move: {\n\t 'default': moveHandler\n\t }\n\t };\n\t\n\t monthView._beforeDestroy = function() {\n\t moreView.destroy();\n\t baseController.off('clearSchedules', clearSchedulesHandler);\n\t baseController.off('updateSchedule', onUpdateSchedule);\n\t\n\t util.forEach(monthView.handler, function(type) {\n\t util.forEach(type, function(handler) {\n\t handler.off();\n\t handler.destroy();\n\t });\n\t });\n\t };\n\t\n\t // add controller\n\t monthView.controller = baseController.Month;\n\t\n\t return {\n\t view: monthView,\n\t refresh: function() {\n\t monthView.vLayout.refresh();\n\t }\n\t };\n\t}\n\t\n\tmodule.exports = createMonthView;\n\t\n\n\n/***/ },\n/* 72 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Factory module for WeekView\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar VLayout = __webpack_require__(24);\n\tvar reqAnimFrame = __webpack_require__(11);\n\t// Parent views\n\tvar Week = __webpack_require__(106);\n\t\n\t// Sub views\n\tvar DayName = __webpack_require__(101);\n\tvar TimeGrid = __webpack_require__(105);\n\tvar Allday = __webpack_require__(100);\n\tvar Milestone = __webpack_require__(102);\n\tvar TaskView = __webpack_require__(103);\n\t\n\t// Handlers\n\tvar AlldayClick = __webpack_require__(73);\n\tvar AlldayCreation = __webpack_require__(74);\n\tvar AlldayMove = __webpack_require__(25);\n\tvar AlldayResize = __webpack_require__(77);\n\tvar DayNameClick = __webpack_require__(88);\n\tvar TimeClick = __webpack_require__(87);\n\tvar TimeCreation = __webpack_require__(89);\n\tvar TimeMove = __webpack_require__(91);\n\tvar TimeResize = __webpack_require__(93);\n\tvar MilestoneClick = __webpack_require__(79);\n\t\n\tvar DEFAULT_VIEW_SEQUENCE = ['Milestone', 'Task', 'AllDay', 'TimeGrid'];\n\tvar DEFAULT_VIEWS = {\n\t 'Milestone': {\n\t minHeight: 20,\n\t height: 80,\n\t maxHeight: 80,\n\t show: true\n\t },\n\t 'Task': {\n\t minHeight: 40,\n\t height: 120,\n\t maxHeight: 120,\n\t show: true\n\t },\n\t 'AllDay': {\n\t minHeight: 20,\n\t height: 80,\n\t maxHeight: 80,\n\t show: true,\n\t maxExpandCount: 10\n\t },\n\t 'TimeGrid': {\n\t autoHeight: true,\n\t show: true\n\t }\n\t};\n\t\n\t/* eslint-disable complexity*/\n\tmodule.exports = function(baseController, layoutContainer, dragHandler, options) {\n\t var viewSequence = options.week.viewSequence || DEFAULT_VIEW_SEQUENCE,\n\t views = options.week.views || DEFAULT_VIEWS,\n\t panels = [],\n\t isAllDayPanelFirstRender = true;\n\t var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout,\n\t milestoneView, taskView, alldayView, timeGridView, alldayPanel;\n\t\n\t weekView = new Week(null, options.week, layoutContainer);\n\t weekView.handler = {\n\t click: {},\n\t dayname: {},\n\t creation: {},\n\t move: {},\n\t resize: {}\n\t };\n\t\n\t // Change visibilities\n\t util.forEach(views, function(value, key) {\n\t if (key === 'Milestone' || key === 'Task') {\n\t value.show = options.taskView;\n\t } else if (key === 'AllDay' || key === 'TimeGrid') {\n\t value.show = options.scheduleView;\n\t }\n\t });\n\t\n\t // Make panels by view sequence and visibilities\n\t util.forEach(viewSequence, function(name) {\n\t var view = views[name];\n\t if (view.show) {\n\t if (panels.length) {\n\t panels.push({\n\t isSplitter: true\n\t });\n\t }\n\t panels.push(util.extend({\n\t name: name\n\t }, view));\n\t }\n\t });\n\t\n\t if (panels.length) {\n\t panels[panels.length - 1].autoHeight = true;\n\t panels[panels.length - 1].maxHeight = null;\n\t }\n\t\n\t dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\t\n\t /**********\n\t * 일자표기 (상단 일월화수...)\n\t **********/\n\t dayNameView = new DayName(options.week, dayNameContainer);\n\t weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n\t weekView.addChild(dayNameView);\n\t\n\t /**********\n\t * 수직 레이아웃 모듈 초기화\n\t **********/\n\t vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n\t vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\t\n\t vLayout = new VLayout({\n\t panels: panels,\n\t panelHeights: options.week.panelHeights || []\n\t }, vLayoutContainer);\n\t\n\t weekView.vLayout = vLayout;\n\t\n\t if (util.pick(views, 'Milestone').show) {\n\t /**********\n\t * 마일스톤\n\t **********/\n\t milestoneView = new Milestone(options.week, vLayout.getPanelByName('Milestone').container);\n\t milestoneView.on('afterRender', function(viewModel) {\n\t vLayout.getPanelByName('Milestone').setHeight(null, viewModel.height);\n\t });\n\t weekView.addChild(milestoneView);\n\t weekView.handler.click.milestone = new MilestoneClick(dragHandler, milestoneView, baseController);\n\t }\n\t\n\t if (util.pick(views, 'Task').show) {\n\t /**********\n\t * 업무\n\t **********/\n\t taskView = new TaskView(options.week, vLayout.getPanelByName('Task').container);\n\t taskView.on('afterRender', function() {\n\t vLayout.getPanelByName('Task').setHeight(null, taskView.contentHeight);\n\t });\n\t weekView.addChild(taskView);\n\t weekView.handler.click.task = new AlldayClick(dragHandler, taskView, baseController);\n\t weekView.handler.move.task = new AlldayMove(dragHandler, taskView, baseController);\n\t }\n\t\n\t if (util.pick(views, 'AllDay').show) {\n\t /**********\n\t * 종일일정\n\t **********/\n\t alldayPanel = vLayout.getPanelByName('AllDay');\n\t alldayView = new Allday(options.week, alldayPanel.container, alldayPanel.options);\n\t alldayView.on('afterRender', function() {\n\t if (alldayView.viewType === 'toggle' && !alldayView.collapsed) {\n\t alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n\t }\n\t if (isAllDayPanelFirstRender) {\n\t alldayPanel.setHeight(null, alldayView.options.height);\n\t isAllDayPanelFirstRender = false;\n\t } else {\n\t alldayPanel.setHeight(null, alldayView.contentHeight);\n\t }\n\t });\n\t\n\t weekView.addChild(alldayView);\n\t weekView.handler.click.allday = new AlldayClick(dragHandler, alldayView, baseController);\n\t weekView.handler.creation.allday = new AlldayCreation(dragHandler, alldayView, baseController);\n\t weekView.handler.move.allday = new AlldayMove(dragHandler, alldayView, baseController);\n\t weekView.handler.resize.allday = new AlldayResize(dragHandler, alldayView, baseController);\n\t\n\t weekView.handler.click.allday.on('clickExpand', function() {\n\t alldayView.prevMaxHeight = alldayView.aboutMe.maxHeight;\n\t alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n\t alldayPanel.isHeightForcedSet = false;\n\t alldayView.collapsed = false;\n\t alldayView.aboutMe.forcedLayout = false;\n\t reqAnimFrame.requestAnimFrame(function() {\n\t weekView.render();\n\t });\n\t });\n\t\n\t weekView.handler.click.allday.on('clickCollapse', function() {\n\t var newHeight = alldayView.prevMaxHeight;\n\t delete alldayView.prevMaxHeight;\n\t alldayPanel.options.maxHeight = newHeight;\n\t alldayPanel.setHeight(null, newHeight);\n\t alldayView.collapsed = true;\n\t reqAnimFrame.requestAnimFrame(function() {\n\t weekView.render();\n\t });\n\t });\n\t\n\t alldayPanel.on('resize', function() {\n\t alldayView.aboutMe.forcedLayout = true;\n\t weekView.render();\n\t });\n\t }\n\t\n\t if (util.pick(views, 'TimeGrid').show) {\n\t /**********\n\t * 시간별 일정\n\t **********/\n\t timeGridView = new TimeGrid(options.week, vLayout.getPanelByName('TimeGrid').container);\n\t weekView.addChild(timeGridView);\n\t weekView.handler.click.time = new TimeClick(dragHandler, timeGridView, baseController);\n\t weekView.handler.creation.time = new TimeCreation(dragHandler, timeGridView, baseController);\n\t weekView.handler.move.time = new TimeMove(dragHandler, timeGridView, baseController);\n\t weekView.handler.resize.time = new TimeResize(dragHandler, timeGridView, baseController);\n\t }\n\t\n\t weekView.on('afterRender', function() {\n\t vLayout.refresh();\n\t });\n\t\n\t // add controller\n\t weekView.controller = baseController.Week;\n\t\n\t // add destroy\n\t weekView._beforeDestroy = function() {\n\t util.forEach(weekView.handler, function(type) {\n\t util.forEach(type, function(handler) {\n\t handler.off();\n\t handler.destroy();\n\t });\n\t });\n\t\n\t weekView.off();\n\t };\n\t\n\t return {\n\t view: weekView,\n\t refresh: function() {\n\t var weekViewHeight = weekView.getViewBound().height,\n\t daynameViewHeight = domutil.getBCRect(\n\t dayNameView.container\n\t ).height;\n\t\n\t vLayout.container.style.height =\n\t weekViewHeight - daynameViewHeight + 'px';\n\t vLayout.refresh();\n\t },\n\t scrollToNow: function() {\n\t if (timeGridView) {\n\t timeGridView.scrollToNow();\n\t }\n\t }\n\t };\n\t};\n\n\n/***/ },\n/* 73 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Click handle module for allday schedules\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar AlldayMove = __webpack_require__(25);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Allday} [alldayView] - allday view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction AlldayClick(dragHandler, alldayView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Allday}\n\t */\n\t this.alldayView = alldayView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy handler module\n\t */\n\tAlldayClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.alldayView = this.baseController = this.dragHandler = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {string} - model id\n\t */\n\tAlldayClick.prototype.checkExpectCondition = AlldayMove.prototype.checkExpectedCondition;\n\t\n\t/**\n\t * Click event handler\n\t * @param {object} clickEvent - click event data\n\t * @emits AlldayClick#clickSchedule\n\t */\n\tAlldayClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t target = clickEvent.target,\n\t timeView = this.checkExpectCondition(target),\n\t scheduleCollection = this.baseController.schedules,\n\t collapseElement = domutil.closest(\n\t clickEvent.target,\n\t config.classname('.weekday-collapse-btn')\n\t );\n\t var blockElement, moreElement, scheduleElement;\n\t\n\t if (collapseElement) {\n\t self.fire('clickCollapse');\n\t\n\t return;\n\t }\n\t\n\t if (!timeView) {\n\t return;\n\t }\n\t\n\t moreElement = domutil.closest(\n\t clickEvent.target,\n\t config.classname('.weekday-exceed-in-week')\n\t );\n\t\n\t if (moreElement) {\n\t self.fire('clickExpand');\n\t\n\t return;\n\t }\n\t\n\t scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n\t if (scheduleElement) {\n\t blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\t scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n\t /**\n\t * @events AlldayClick#clickSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent object\n\t */\n\t self.fire('clickSchedule', {\n\t schedule: schedule,\n\t event: clickEvent.originEvent\n\t });\n\t });\n\t }\n\t};\n\t\n\tutil.CustomEvents.mixin(AlldayClick);\n\t\n\tmodule.exports = AlldayClick;\n\n\n/***/ },\n/* 74 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar common = __webpack_require__(6);\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\tvar alldayCore = __webpack_require__(17);\n\tvar AlldayCreationGuide = __webpack_require__(75);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\tvar CLICK_DELAY = 300;\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes AlldayCore\n\t * @mixes CutomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Allday} [alldayView] - Allday view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction AlldayCreation(dragHandler, alldayView, baseController) {\n\t /**\n\t * Drag handler instance.\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * allday view instance.\n\t * @type {Allday}\n\t */\n\t this.alldayView = alldayView;\n\t\n\t /**\n\t * Base controller instance.\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleDataFunc = null;\n\t\n\t /**\n\t * @type {AlldayCreationGuide}\n\t */\n\t this.guide = new AlldayCreationGuide(this);\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._requestOnClick = false;\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t dragHandler.on('click', this._onClick, this);\n\t domevent.on(alldayView.container, 'dblclick', this._onDblClick, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayCreation.prototype.destroy = function() {\n\t this.guide.destroy();\n\t this.dragHandler.off(this);\n\t\n\t if (this.alldayView && this.alldayView.container) {\n\t domevent.off(this.alldayView.container, 'dblclick', this._onDblClick, this);\n\t }\n\t\n\t this.dragHandler = this.alldayView = this.baseController = this.getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Check dragstart target is expected conditions for this handler.\n\t * @param {HTMLElement} target - dragstart event handler's target element.\n\t * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n\t */\n\tAlldayCreation.prototype.checkExpectedCondition = function(target) {\n\t var cssClass = domutil.getClass(target).trim();\n\t var isAllDay = domutil.closest(target, config.classname('.allday-container'));\n\t var excludeTarget = true;\n\t var matches, schedulesElement;\n\t\n\t if (!isAllDay) {\n\t return false;\n\t }\n\t\n\t if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n\t || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n\t ) {\n\t return false;\n\t }\n\t\n\t if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n\t return false;\n\t }\n\t\n\t schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n\t if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n\t return false;\n\t }\n\t\n\t target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n\t cssClass = domutil.getClass(target);\n\t matches = cssClass.match(config.allday.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.alldayView.children.items, matches[1]);\n\t};\n\t\n\t/**\n\t * Request schedule model creation to controller by custom schedules.\n\t * @fires {AlldayCreation#beforeCreateSchedule}\n\t * @param {object} scheduleData - schedule data from AlldayCreation module.\n\t */\n\tAlldayCreation.prototype._createSchedule = function(scheduleData) {\n\t var dateRange = scheduleData.range,\n\t startXIndex = scheduleData.dragStartXIndex,\n\t xIndex = scheduleData.xIndex,\n\t start, end;\n\t\n\t // when inverse start, end then change it.\n\t if (xIndex < startXIndex) {\n\t startXIndex = xIndex + startXIndex;\n\t xIndex = startXIndex - xIndex;\n\t startXIndex = startXIndex - xIndex;\n\t }\n\t\n\t start = new TZDate(dateRange[startXIndex].getTime());\n\t end = datetime.end(dateRange[xIndex]);\n\t\n\t /**\n\t * @event {AlldayCreation#beforeCreateSchedule}\n\t * @type {object}\n\t * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n\t * @property {Date} start - select start time\n\t * @property {Date} end - select end time\n\t * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n\t * @property {string} triggerEventName - event name\n\t */\n\t this.fire('beforeCreateSchedule', {\n\t isAllDay: true,\n\t start: start,\n\t end: end,\n\t guide: this.guide,\n\t triggerEventName: scheduleData.triggerEvent\n\t });\n\t};\n\t\n\t/**\n\t * DragStart event handler method.\n\t * @emits AlldayCreation#alldayCreationDragstart\n\t * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n\t */\n\tAlldayCreation.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t result = this.checkExpectedCondition(target),\n\t getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!result) {\n\t return;\n\t }\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n\t this.getScheduleDataFunc = getScheduleDataFunc;\n\t\n\t scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\t\n\t /**\n\t * @event AlldayCreation#alldayCreationDragstart\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire('alldayCreationDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * Drag event handler method.\n\t * @emits AlldayCreation#alldayCreationDrag\n\t * @param {object} dragEventData - Drag#drag event handler scheduledata.\n\t */\n\tAlldayCreation.prototype._onDrag = function(dragEventData) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\t\n\t /**\n\t * @event AlldayCreation#alldayCreationDrag\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire('alldayCreationDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * DragEnd event hander method.\n\t * @emits AlldayCreation#alldayCreationDragend\n\t * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t */\n\tAlldayCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc;\n\t var scheduleData;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\t\n\t this._createSchedule(scheduleData);\n\t\n\t /**\n\t * @event AlldayCreation#alldayCreationDragend\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire(overrideEventName || 'alldayCreationDragend', scheduleData);\n\t\n\t this.getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Click event handler method.\n\t * @emits AlldayCreation#alldayCreationClick\n\t * @param {object} clickEventData - Drag#Click event handler data.\n\t */\n\tAlldayCreation.prototype._onClick = function(clickEventData) {\n\t var self = this;\n\t var getScheduleDataFunc, scheduleData;\n\t\n\t if (!this.checkExpectedCondition(clickEventData.target)) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData.originEvent);\n\t scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\t\n\t this._requestOnClick = true;\n\t setTimeout(function() {\n\t if (self._requestOnClick) {\n\t self.fire('alldayCreationClick', scheduleData);\n\t self._createSchedule(scheduleData);\n\t }\n\t self._requestOnClick = false;\n\t }, CLICK_DELAY);\n\t};\n\t\n\t/**\n\t * Dblclick event handler method.\n\t * @emits AlldayCreation#alldayCreationClick\n\t * @param {object} clickEventData - Drag#Click event handler data.\n\t */\n\tAlldayCreation.prototype._onDblClick = function(clickEventData) {\n\t var getScheduleDataFunc, scheduleData;\n\t\n\t if (!this.checkExpectedCondition(clickEventData.target)) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData);\n\t scheduleData = getScheduleDataFunc(clickEventData);\n\t\n\t this.fire('alldayCreationClick', scheduleData);\n\t\n\t this._createSchedule(scheduleData);\n\t\n\t this._requestOnClick = false;\n\t};\n\t\n\tcommon.mixin(alldayCore, AlldayCreation);\n\tutil.CustomEvents.mixin(AlldayCreation);\n\t\n\tmodule.exports = AlldayCreation;\n\n\n/***/ },\n/* 75 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Guide element for Allday.Creation\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\t\n\t/**\n\t * Class for Allday.Creation dragging effect.\n\t * @constructor\n\t * @param {AlldayCreation} alldayCreation - instance of AlldayCreation.\n\t */\n\tfunction AlldayCreationGuide(alldayCreation) {\n\t /**\n\t * @type {AlldayCreation}\n\t */\n\t this.alldayCreation = alldayCreation;\n\t\n\t /**\n\t * @type {HTMLDIVElement}\n\t */\n\t this.scheduleContainer = null;\n\t\n\t /**\n\t * @type {HTMLDIVElement}\n\t */\n\t this.guideElement = document.createElement('div');\n\t\n\t this.initializeGuideElement();\n\t\n\t alldayCreation.on({\n\t alldayCreationDragstart: this._createGuideElement,\n\t alldayCreationDrag: this._onDrag,\n\t alldayCreationClick: this._createGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayCreationGuide.prototype.destroy = function() {\n\t this.clearGuideElement();\n\t this.alldayCreation.off(this);\n\t this.alldayCreation = this.scheduleContainer = this.guideElement = null;\n\t};\n\t\n\t/**\n\t * initialize guide element's default style.\n\t */\n\tAlldayCreationGuide.prototype.initializeGuideElement = function() {\n\t domutil.addClass(this.guideElement, config.classname('allday-guide-creation-block'));\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @param {object} scheduleData - schedule data from Allday.Creation handler.\n\t */\n\tAlldayCreationGuide.prototype._onDrag = function(scheduleData) {\n\t this._refreshGuideElement(scheduleData, true);\n\t};\n\t\n\t/**\n\t * Get element width based on narrowWeekend\n\t * @param {number} dragStartIndex - grid start index\n\t * @param {number} dragEndIndex - grid end index\n\t * @param {Array} grids - dates information\n\t * @returns {number} element width\n\t */\n\tAlldayCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n\t var width = 0;\n\t var i = dragStartIndex;\n\t for (; i <= dragEndIndex; i += 1) {\n\t width += grids[i] ? grids[i].width : 0;\n\t }\n\t\n\t return width;\n\t};\n\t\n\t/**\n\t * Refresh guide element.\n\t * @param {object} scheduleData - schedule data from Allday.Creation handler.\n\t * @param {boolean} defer - If set to true, set style in the next frame\n\t */\n\tAlldayCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n\t var guideElement = this.guideElement,\n\t data = scheduleData,\n\t dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n\t dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n\t leftPercent,\n\t widthPercent;\n\t\n\t leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n\t widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\t\n\t /** eslint-disable require-jsdoc */\n\t function setStyle() {\n\t guideElement.style.display = 'block';\n\t guideElement.style.left = leftPercent + '%';\n\t guideElement.style.width = widthPercent + '%';\n\t }\n\t\n\t if (defer) {\n\t reqAnimFrame.requestAnimFrame(setStyle);\n\t } else {\n\t setStyle();\n\t }\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tAlldayCreationGuide.prototype.clearGuideElement = function() {\n\t var guideElement = this.guideElement;\n\t\n\t domutil.remove(guideElement);\n\t\n\t guideElement.style.display = 'none';\n\t guideElement.style.left = '';\n\t guideElement.style.width = '';\n\t};\n\t\n\t/**\n\t * Create guide element\n\t * @param {object} dragStartEventData - schedule data object of Allday.Creation.\n\t */\n\tAlldayCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n\t var alldayCreation = this.alldayCreation,\n\t alldayView = alldayCreation.alldayView,\n\t alldayContainerElement = alldayView.container,\n\t scheduleContainer = domutil.find(config.classname('.weekday-grid'), alldayContainerElement);\n\t\n\t scheduleContainer.appendChild(this.guideElement);\n\t this._refreshGuideElement(dragStartEventData);\n\t};\n\t\n\t/**\n\t * Drag event handler.\n\t * @param {object} dragEventData - event data object of Allday.Creation.\n\t */\n\tAlldayCreationGuide.prototype._onDrag = function(dragEventData) {\n\t this._refreshGuideElement(dragEventData);\n\t};\n\t\n\tmodule.exports = AlldayCreationGuide;\n\n\n/***/ },\n/* 76 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Effect module for Allday.Move\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * Class for Allday.Move dragging effect.\n\t * @constructor\n\t * @param {AlldayMove} alldayMove - instance of AlldayMove.\n\t */\n\tfunction AlldayMoveGuide(alldayMove) {\n\t /**\n\t * @type {AlldayMove}\n\t */\n\t this.alldayMove = alldayMove;\n\t\n\t /**\n\t * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n\t * @type {HTMLDIVElement}\n\t */\n\t this.scheduleContainer = null;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._dragStartXIndex = null;\n\t\n\t /**\n\t * @type {HTMLDIVElement}\n\t */\n\t this.guideElement = null;\n\t\n\t /**\n\t * @type {HTMLElement[]}\n\t */\n\t this.elements = null;\n\t\n\t alldayMove.on({\n\t 'alldayMoveDragstart': this._onDragStart,\n\t 'alldayMoveDrag': this._onDrag,\n\t 'alldayMoveDragend': this._clearGuideElement,\n\t 'alldayMoveClick': this._clearGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayMoveGuide.prototype.destroy = function() {\n\t this._clearGuideElement();\n\t this.alldayMove.off(this);\n\t this.alldayMove = this.scheduleContainer = this._dragStartXIndex =\n\t this.elements = this.guideElement = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tAlldayMoveGuide.prototype._clearGuideElement = function() {\n\t this._showOriginScheduleBlocks();\n\t\n\t domutil.remove(this.guideElement);\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('dragging'));\n\t }\n\t\n\t this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n\t};\n\t\n\t/**\n\t * Dim element blocks\n\t * @param {number} modelID - Schedule model instance ID\n\t */\n\tAlldayMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n\t var className = config.classname('weekday-schedule-block-dragging-dim');\n\t var scheduleBlocks = domutil.find(\n\t config.classname('.weekday-schedule-block'),\n\t this.alldayMove.alldayView.container,\n\t true\n\t );\n\t\n\t this.elements = util.filter(scheduleBlocks, function(schedule) {\n\t return domutil.getData(schedule, 'id') === modelID;\n\t });\n\t\n\t util.forEach(this.elements, function(el) {\n\t domutil.addClass(el, className);\n\t });\n\t};\n\t\n\t/**\n\t * Show element blocks\n\t */\n\tAlldayMoveGuide.prototype._showOriginScheduleBlocks = function() {\n\t var className = config.classname('weekday-schedule-block-dragging-dim');\n\t\n\t util.forEach(this.elements, function(el) {\n\t domutil.removeClass(el, className);\n\t });\n\t};\n\t\n\t/**\n\t * @param {Schedule} model - model\n\t * @param {HTMLElement} parent - parent element\n\t * Highlight element blocks\n\t */\n\tAlldayMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n\t var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\t\n\t util.forEach(elements, function(el) {\n\t el.style.margin = '0';\n\t\n\t if (!model.isFocused) {\n\t el.style.backgroundColor = el.style.color;\n\t el.style.borderLeftColor = el.style.color;\n\t el.style.color = '#ffffff';\n\t }\n\t });\n\t};\n\t\n\t/**\n\t * Refresh guide element.\n\t * @param {number} leftPercent - left percent of guide element.\n\t * @param {number} widthPercent - width percent of guide element.\n\t * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n\t * @param {boolean} isExceededRight - schedule end is later then render end date?\n\t */\n\tAlldayMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n\t var guideElement = this.guideElement;\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t guideElement.style.left = leftPercent + '%';\n\t guideElement.style.width = widthPercent + '%';\n\t\n\t if (isExceededLeft) {\n\t domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n\t } else {\n\t domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n\t }\n\t\n\t if (isExceededRight) {\n\t domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n\t } else {\n\t domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n\t }\n\t });\n\t};\n\t\n\t/**\n\t * Get schedule block information from schedule data.\n\t *\n\t * For example, there is single schedule has 10 length. but render range in view is 5 then\n\t * rendered block must be cut out to render properly. in this case, this method return\n\t * how many block are cut before rendering.\n\t *\n\t * 이벤트 데이터에서 이벤트 블록 엘리먼트 렌더링에 대한 필요 정보를 추출한다.\n\t *\n\t * ex) 렌더링 된 블록의 길이는 5지만 실제 이 이벤트는 10의 길이를 가지고 있을 때\n\t * 좌 우로 몇 만큼 잘려있는지에 관한 정보를 반환함.\n\t * @param {object} dragStartEventData - schedule data from Allday.Move handler.\n\t * @returns {function} function that return schedule block information.\n\t */\n\tAlldayMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n\t var model = dragStartEventData.model,\n\t datesInRange = dragStartEventData.datesInRange,\n\t range = dragStartEventData.range,\n\t baseWidthPercent = (100 / datesInRange),\n\t originScheduleStarts = datetime.start(model.start),\n\t originScheduleEnds = datetime.end(model.end),\n\t renderStartDate = datetime.start(range[0]),\n\t renderEndDate = datetime.end(range[range.length - 1]),\n\t fromLeft = (new TZDate(originScheduleStarts.getTime() -\n\t renderStartDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0,\n\t fromRight = (new TZDate(originScheduleEnds.getTime() -\n\t renderEndDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0;\n\t\n\t return function(indexOffset) {\n\t return {\n\t baseWidthPercent: baseWidthPercent,\n\t fromLeft: fromLeft + indexOffset,\n\t fromRight: fromRight + indexOffset\n\t };\n\t };\n\t};\n\t\n\t/**\n\t * DragStart event handler.\n\t * @param {object} dragStartEventData - schedule data.\n\t */\n\tAlldayMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n\t var alldayViewContainer = this.alldayMove.alldayView.container,\n\t guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n\t scheduleContainer;\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('dragging'));\n\t }\n\t\n\t this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\t\n\t scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n\t domutil.addClass(guideElement, config.classname('allday-guide-move'));\n\t scheduleContainer.appendChild(guideElement);\n\t\n\t this._dragStartXIndex = dragStartEventData.xIndex;\n\t this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\t\n\t this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n\t};\n\t\n\t/**\n\t * Drag event handler.\n\t * @param {object} dragEventData - schedule data.\n\t */\n\tAlldayMoveGuide.prototype._onDrag = function(dragEventData) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc,\n\t dragStartXIndex = this._dragStartXIndex,\n\t datesInRange = dragEventData.datesInRange,\n\t grids = dragEventData.grids,\n\t scheduleData,\n\t isExceededLeft,\n\t isExceededRight,\n\t originLength,\n\t leftIndex,\n\t size,\n\t newLeft,\n\t newWidth;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n\t isExceededLeft = scheduleData.fromLeft < 0;\n\t isExceededRight = scheduleData.fromRight > 0;\n\t\n\t leftIndex = Math.max(0, scheduleData.fromLeft);\n\t originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n\t size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n\t size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\t\n\t newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n\t newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\t\n\t this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n\t};\n\t\n\t/**\n\t * Get schedule width based on grids\n\t * @param {number} left - left index\n\t * @param {number} size - schedule width\n\t * @param {Array} grids - dates information\n\t * @returns {number} element width\n\t */\n\tfunction getScheduleBlockWidth(left, size, grids) {\n\t var width = 0;\n\t var i = 0;\n\t var length = grids.length;\n\t for (; i < size; i += 1) {\n\t left = (left + i) % length;\n\t if (left < length) {\n\t width += grids[left] ? grids[left].width : 0;\n\t }\n\t }\n\t\n\t return width;\n\t}\n\t\n\tmodule.exports = AlldayMoveGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 77 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Resize handler module for Allday view.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar common = __webpack_require__(6);\n\tvar AlldayCore = __webpack_require__(17);\n\tvar AlldayResizeGuide = __webpack_require__(78);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes AlldayCore\n\t * @mixes CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Allday} [alldayView] - Allday view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction AlldayResize(dragHandler, alldayView, baseController) {\n\t /**\n\t * Drag handler instance.\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * allday view instance.\n\t * @type {Allday}\n\t */\n\t this.alldayView = alldayView;\n\t\n\t /**\n\t * Base controller instance.\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * Temporary variable for dragStart event data.\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t dragHandler.on({\n\t dragStart: this._onDragStart\n\t }, this);\n\t\n\t /**\n\t * @type {AlldayResizeGuide}\n\t */\n\t this.guide = new AlldayResizeGuide(this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayResize.prototype.destroy = function() {\n\t this.guide.destroy();\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.alldayView = this.baseController =\n\t this.guide = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * Check dragstart target is expected conditions for this handler.\n\t * @param {HTMLElement} target - dragstart event handler's target element.\n\t * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n\t */\n\tAlldayResize.prototype.checkExpectedCondition = function(target) {\n\t var cssClass = domutil.getClass(target),\n\t matches;\n\t\n\t if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n\t return false;\n\t }\n\t\n\t target = domutil.closest(target, config.classname('.weekday'));\n\t\n\t if (!target) {\n\t return false;\n\t }\n\t\n\t cssClass = domutil.getClass(target);\n\t matches = cssClass.match(config.allday.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.alldayView.children.items, matches[1]);\n\t};\n\t\n\t/**\n\t * DragStart event handler.\n\t * @emits AlldayResize#alldayResizeDragstart\n\t * @param {object} dragStartEventData - schedule data.\n\t */\n\tAlldayResize.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t result = this.checkExpectedCondition(target),\n\t controller = this.baseController,\n\t scheduleBlockElement,\n\t modelID,\n\t targetModel,\n\t getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!result) {\n\t return;\n\t }\n\t\n\t scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\t modelID = domutil.getData(scheduleBlockElement, 'id');\n\t targetModel = controller.schedules.items[modelID];\n\t\n\t if (!targetModel) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n\t this.getScheduleDataFunc = getScheduleDataFunc;\n\t scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\t\n\t util.extend(scheduleData, {\n\t scheduleBlockElement: scheduleBlockElement,\n\t model: targetModel\n\t });\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event AlldayResize#alldayResizeDragstart\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t * @property {Schedule} model - data object of model isntance.\n\t * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n\t */\n\t this.fire('alldayResizeDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * Drag event handler method.\n\t * @emits AlldayResize#alldayResizeDrag\n\t * @param {object} dragEventData - Drag#drag event handler scheduledata.\n\t */\n\tAlldayResize.prototype._onDrag = function(dragEventData) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t /**\n\t * @event AlldayResize#alldayResizeDrag\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire('alldayResizeDrag', getScheduleDataFunc(dragEventData.originEvent));\n\t};\n\t\n\t/**\n\t * Request update schedule instance to base controller.\n\t * @fires AlldayResize#beforeUpdateSchedule\n\t * @param {object} scheduleData - schedule data from AlldayResize handler.\n\t */\n\tAlldayResize.prototype._updateSchedule = function(scheduleData) {\n\t var schedule = scheduleData.targetModel,\n\t dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n\t newEnds = new TZDate(schedule.end.getTime());\n\t\n\t newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n\t newEnds = new TZDate(Math.max(datetime.end(schedule.start).getTime(), newEnds.getTime()));\n\t\n\t /**\n\t * @event AlldayResize#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {date} start - start time to update\n\t * @property {date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: schedule.getStarts(),\n\t end: newEnds\n\t });\n\t};\n\t\n\t/**\n\t * DragEnd event hander method.\n\t * @emits AlldayResize#alldayResizeDragend\n\t * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {?boolean} skipUpdate - true then skip update schedule model.\n\t */\n\tAlldayResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc,\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\t util.extend(scheduleData, {\n\t targetModel: dragStart.model\n\t });\n\t\n\t if (!skipUpdate) {\n\t this._updateSchedule(scheduleData);\n\t }\n\t\n\t /**\n\t * @event AlldayResize#alldayResizeDragend\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire(overrideEventName || 'alldayResizeDragend', scheduleData);\n\t\n\t this.getScheduleDataFunc = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * Click event handler method.\n\t * @emits AlldayResize#alldayResizeClick\n\t * @param {object} clickEventData - Drag#Click event handler data.\n\t */\n\tAlldayResize.prototype._onClick = function(clickEventData) {\n\t /**\n\t * @event AlldayResize#alldayResizeClick\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this._onDragEnd(clickEventData, 'alldayResizeClick', true);\n\t};\n\t\n\tcommon.mixin(AlldayCore, AlldayResize);\n\tutil.CustomEvents.mixin(AlldayResize);\n\t\n\tmodule.exports = AlldayResize;\n\t\n\n\n/***/ },\n/* 78 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Resize Guide module.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar datetime = __webpack_require__(4);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @param {AlldayResize} alldayResize - instance of AlldayResize\n\t */\n\tfunction AlldayResizeGuide(alldayResize) {\n\t /**\n\t * @type {AlldayResize}\n\t */\n\t this.alldayResize = alldayResize;\n\t\n\t /**\n\t * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n\t * @type {HTMLDIVElement}\n\t */\n\t this.scheduleContainer = null;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleDataFunc = null;\n\t\n\t /**\n\t * @type {HTMLDIVElement}\n\t */\n\t this.guideElement = null;\n\t\n\t alldayResize.on({\n\t 'alldayResizeDragstart': this._onDragStart,\n\t 'alldayResizeDrag': this._onDrag,\n\t 'alldayResizeDragend': this._clearGuideElement,\n\t 'alldayResizeClick': this._clearGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayResizeGuide.prototype.destroy = function() {\n\t this._clearGuideElement();\n\t this.alldayResize.off(this);\n\t this.alldayResize = this.scheduleContainer = this.getScheduleDataFunc =\n\t this.guideElement = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tAlldayResizeGuide.prototype._clearGuideElement = function() {\n\t domutil.remove(this.guideElement);\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('resizing-x'));\n\t }\n\t\n\t this.getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Refresh guide element\n\t * @param {number} newWidth - new width percentage value to resize guide element.\n\t */\n\tAlldayResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n\t var guideElement = this.guideElement;\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t guideElement.style.width = newWidth + '%';\n\t });\n\t};\n\t\n\t/**\n\t * Return function that calculate guide element's new width percentage value.\n\t * @param {object} dragStartEventData - dragstart schedule data.\n\t * @returns {function} return function that calculate guide element new width percentage.\n\t */\n\tAlldayResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n\t var model = dragStartEventData.model,\n\t viewOptions = this.alldayResize.alldayView.options,\n\t fromLeft = (new TZDate(\n\t model.start.getTime() - datetime.parse(viewOptions.renderStartDate)\n\t )) / datetime.MILLISECONDS_PER_DAY | 0,\n\t grids = dragStartEventData.grids;\n\t\n\t return function(xIndex) {\n\t var width = 0;\n\t var i = 0;\n\t var length = grids.length;\n\t width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\t\n\t for (; i < length; i += 1) {\n\t if (i > fromLeft && i <= xIndex) {\n\t width += grids[i] ? grids[i].width : 0;\n\t }\n\t }\n\t\n\t return width;\n\t };\n\t};\n\t\n\t/**\n\t * DragStart event handler.\n\t * @param {object} dragStartEventData - schedule data.\n\t */\n\tAlldayResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n\t var alldayViewContainer = this.alldayResize.alldayView.container,\n\t guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n\t scheduleContainer;\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('resizing-x'));\n\t }\n\t\n\t scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n\t domutil.addClass(guideElement, config.classname('allday-guide-move'));\n\t scheduleContainer.appendChild(guideElement);\n\t\n\t this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n\t};\n\t\n\t/**\n\t * Drag event handler.\n\t * @param {object} dragEventData - schedule data.\n\t */\n\tAlldayResizeGuide.prototype._onDrag = function(dragEventData) {\n\t var func = this.getScheduleDataFunc;\n\t\n\t if (!func) {\n\t return;\n\t }\n\t\n\t this.refreshGuideElement(func(dragEventData.xIndex));\n\t};\n\t\n\tmodule.exports = AlldayResizeGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview 마일스톤 항목 클릭 이벤트 핸들러 모듈\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\t\n\t/**\n\t * 마일스톤 클릭 이벤트 핸들러 모듈\n\t * @constructor\n\t * @implelements {Handler}\n\t * @mixes util.CustomEvents\n\t * @param {Drag} dragHandler - dragHandler instance\n\t * @param {Milestone} milestoneView - milstone view instance\n\t * @param {Base} baseController - baseController instance\n\t */\n\tfunction MilestoneClick(dragHandler, milestoneView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Milestone}\n\t */\n\t this.milestoneView = milestoneView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy\n\t */\n\tMilestoneClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.milestoneView = this.baseController = null;\n\t};\n\t\n\t/**\n\t * @param {HTMLElement} target - check reponsibility to this handler module supplied element\n\t * @returns {boolean|string} return false when handler has no responsibility for supplied element.\n\t * otherwise, return schedule model id that related with target element.\n\t */\n\tMilestoneClick.prototype.checkExpectedCondition = function(target) {\n\t target = domutil.closest(target, config.classname('.milestone-item'));\n\t\n\t if (!target) {\n\t return false;\n\t }\n\t\n\t return domutil.getData(target, 'id');\n\t};\n\t\n\t/**\n\t * @emits MilestoneClick#clickSchedule\n\t * @param {object} clickEvent - click event object\n\t */\n\tMilestoneClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t modelID = this.checkExpectedCondition(clickEvent.target);\n\t\n\t if (!modelID) {\n\t return;\n\t }\n\t\n\t this.baseController.schedules.doWhenHas(modelID, function(schedule) {\n\t /**\n\t * @events MilestoneClick#clickEvent\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent object\n\t */\n\t self.fire('clickSchedule', {\n\t schedule: schedule,\n\t event: clickEvent.originEvent\n\t });\n\t });\n\t};\n\t\n\tutil.CustomEvents.mixin(MilestoneClick);\n\t\n\tmodule.exports = MilestoneClick;\n\t\n\n\n/***/ },\n/* 80 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Click handler for month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t datetime = __webpack_require__(4),\n\t domutil = __webpack_require__(2);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Month} [monthView] - Month view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction MonthClick(dragHandler, monthView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.monthView = monthView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.monthView = this.baseController = this.dragHandler = null;\n\t};\n\t\n\t/**\n\t * @fires MonthClick#clickMore\n\t * @param {object} clickEvent - click event object\n\t */\n\tMonthClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t moreElement,\n\t scheduleCollection = this.baseController.schedules,\n\t blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n\t || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\t\n\t moreElement = domutil.closest(\n\t clickEvent.target,\n\t config.classname('.weekday-exceed-in-month')\n\t );\n\t\n\t if (moreElement) {\n\t self.fire('clickMore', {\n\t date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n\t target: moreElement,\n\t ymd: domutil.getData(moreElement, 'ymd')\n\t });\n\t }\n\t\n\t if (blockElement) {\n\t scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n\t /**\n\t * @events AlldayClick#clickSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent object\n\t */\n\t self.fire('clickSchedule', {\n\t schedule: schedule,\n\t event: clickEvent.originEvent\n\t });\n\t });\n\t }\n\t};\n\t\n\tutil.CustomEvents.mixin(MonthClick);\n\t\n\tmodule.exports = MonthClick;\n\t\n\n\n/***/ },\n/* 81 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Creation handler for month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar array = __webpack_require__(14);\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\tvar getMousePosDate = __webpack_require__(18);\n\tvar Guide = __webpack_require__(82);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\tvar CLICK_DELAY = 300;\n\t\n\t/**\n\t * @constructor\n\t * @param {Drag} dragHandler - Drag handler instance.\n\t * @param {Month} monthView - Month view instance.\n\t * @param {Base} baseController - Base controller instance.\n\t */\n\tfunction MonthCreation(dragHandler, monthView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.monthView = monthView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleData = null;\n\t\n\t /**\n\t * Cache for dragging session\n\t * @type {object}\n\t */\n\t this._cache = null;\n\t\n\t /**\n\t * @type {MonthCreationGuide}\n\t */\n\t this.guide = new Guide(this);\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._requestOnClick = false;\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t dragHandler.on('click', this._onClick, this);\n\t domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthCreation.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.guide.destroy();\n\t\n\t if (this.monthView && this.monthView.container) {\n\t domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n\t }\n\t\n\t this.dragHandler = this.monthView = this.baseController =\n\t this.getScheduleData = this._cache = this.guide = null;\n\t};\n\t\n\t/**\n\t * Fire before create schedule\n\t * @fires {MonthCreation#beforeCreateSchedule}\n\t * @param {object} eventData - cache data from single dragging session\n\t */\n\tMonthCreation.prototype._createSchedule = function(eventData) {\n\t /**\n\t * @event {MonthCreation#beforeCreateSchedule}\n\t * @type {object}\n\t * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n\t * @property {Date} start - select start time\n\t * @property {Date} end - select end time\n\t * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n\t * @property {string} triggerEventName - event name\n\t */\n\t this.fire('beforeCreateSchedule', {\n\t isAllDay: eventData.isAllDay,\n\t start: eventData.start,\n\t end: eventData.end,\n\t guide: this.guide.guide,\n\t triggerEventName: eventData.triggerEvent\n\t });\n\t};\n\t\n\t/**\n\t * DragStart event handler\n\t * @fires {MonthCreation#monthCreationDragstart}\n\t * @param {object} dragStartEvent - dragStart event data\n\t */\n\tMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n\t var eventData;\n\t\n\t if (!isElementWeekdayGrid(dragStartEvent.target)) {\n\t return;\n\t }\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t this.getScheduleData = getMousePosDate(this.monthView);\n\t\n\t eventData = this.getScheduleData(dragStartEvent.originEvent);\n\t\n\t this._cache = {\n\t start: new TZDate(Number(eventData.date))\n\t };\n\t\n\t /**\n\t * @event {MonthCreation#monthCreationDragstart}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthCreationDragstart', eventData);\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @fires {MonthCreation#monthCreationDrag}\n\t * @param {object} dragEvent - drag event data\n\t */\n\tMonthCreation.prototype._onDrag = function(dragEvent) {\n\t var eventData;\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t eventData = this.getScheduleData(dragEvent.originEvent);\n\t\n\t if (!eventData) {\n\t return;\n\t }\n\t\n\t /**\n\t * @event {MonthCreation#monthCreationDrag}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthCreationDrag', eventData);\n\t};\n\t\n\t/**\n\t * DragEnd event handler\n\t * @fires {MonthCreation#monthCreationDragend}\n\t * @param {object} dragEndEvent - drag end event data\n\t */\n\tMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n\t var cache = this._cache;\n\t var eventData;\n\t var times;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t eventData = this.getScheduleData(dragEndEvent.originEvent);\n\t\n\t if (eventData) {\n\t cache.end = new TZDate(Number(eventData.date));\n\t cache.isAllDay = true;\n\t\n\t times = [\n\t Number(cache.start),\n\t Number(cache.end)\n\t ].sort(array.compare.num.asc);\n\t\n\t cache.start = new TZDate(times[0]);\n\t cache.end = datetime.end(new TZDate(times[1]));\n\t\n\t this._createSchedule(cache);\n\t }\n\t\n\t /**\n\t * @event {MonthCreation#monthCreationDragend}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthCreationDragend', eventData);\n\t\n\t this.getScheduleData = this._cache = null;\n\t};\n\t\n\t/**\n\t * Dblclick event handler\n\t * @fires {MonthCreation#monthCreationDragstart}\n\t * @param {MouseEvent} e - Native MouseEvent\n\t */\n\tMonthCreation.prototype._onDblClick = function(e) {\n\t var eventData, range;\n\t\n\t if (!isElementWeekdayGrid(e.target)) {\n\t return;\n\t }\n\t\n\t eventData = getMousePosDate(this.monthView)(e);\n\t\n\t this.fire('monthCreationClick', eventData);\n\t\n\t range = this._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\t\n\t this._createSchedule({\n\t start: range.start,\n\t end: range.end,\n\t isAllDay: false,\n\t triggerEvent: eventData.triggerEvent\n\t });\n\t\n\t this._requestOnClick = false;\n\t};\n\t\n\t/**\n\t * Click event handler\n\t * @fires {MonthCreation#monthCreationDragstart}\n\t * @param {MouseEvent} e - Native MouseEvent\n\t */\n\tMonthCreation.prototype._onClick = function(e) {\n\t var self = this;\n\t var eventData, range;\n\t\n\t if (!isElementWeekdayGrid(e.target)) {\n\t return;\n\t }\n\t\n\t eventData = getMousePosDate(this.monthView)(e.originEvent);\n\t\n\t this._requestOnClick = true;\n\t setTimeout(function() {\n\t if (self._requestOnClick) {\n\t self.fire('monthCreationClick', eventData);\n\t\n\t range = self._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\t\n\t self._createSchedule({\n\t start: range.start,\n\t end: range.end,\n\t isAllDay: false,\n\t triggerEvent: eventData.triggerEvent\n\t });\n\t }\n\t self._requestOnClick = false;\n\t }, CLICK_DELAY);\n\t};\n\t\n\t/**\n\t * Adjust time to our o'clock\n\t * @param {TZDate} start - start time\n\t * @param {TZDate} end - end time\n\t * @returns {Object} start and end\n\t */\n\tMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n\t var now = new TZDate();\n\t var hours = now.getHours();\n\t var minutes = now.getMinutes();\n\t\n\t // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n\t if (minutes <= 30) {\n\t minutes = 0;\n\t } else {\n\t minutes = 30;\n\t }\n\t start.setHours(hours, minutes, 0, 0);\n\t end.setHours(hours + 1, minutes, 0, 0);\n\t\n\t return {\n\t start: start,\n\t end: end\n\t };\n\t};\n\t\n\t/**\n\t * Returns whether the given element is Weekday-Schedule.\n\t * @param {HTMLElement} el - target element\n\t * @returns {boolean}\n\t */\n\tfunction isElementWeekdayGrid(el) {\n\t return domutil.closest(el, config.classname('.weekday-grid'))\n\t && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n\t}\n\t\n\tutil.CustomEvents.mixin(MonthCreation);\n\t\n\tmodule.exports = MonthCreation;\n\n\n/***/ },\n/* 82 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Creation guide module for month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar MonthGuide = __webpack_require__(27);\n\t\n\t/**\n\t * @constructor\n\t * @param {MonthCreation} monthCreation - instance of MonthCreation\n\t */\n\tfunction MonthCreationGuide(monthCreation) {\n\t /**\n\t * @type {MonthCreation}\n\t */\n\t this.monthCreation = monthCreation;\n\t\n\t /**\n\t * @type {MonthGuide}\n\t */\n\t this.guide = null;\n\t\n\t monthCreation.on({\n\t monthCreationDragstart: this._createGuideElement,\n\t monthCreationDrag: this._onDrag,\n\t monthCreationDragend: this._onDragEnd,\n\t monthCreationClick: this._createGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthCreationGuide.prototype.destroy = function() {\n\t this.monthCreation.off(this);\n\t\n\t if (this.guide) {\n\t this.guide.destroy();\n\t }\n\t\n\t this.guide = this.monthCreation = null;\n\t};\n\t\n\t/**\n\t * Drag start event handler\n\t * @param {object} dragStartEvent - schedule data from MonthCreation\n\t */\n\tMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n\t var options = {\n\t isCreationMode: true,\n\t height: '100%',\n\t top: 0\n\t };\n\t\n\t this.guide = new MonthGuide(options, this.monthCreation.monthView);\n\t this.guide.start(dragStartEvent);\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @param {object} dragEvent - schedule data from MonthCreation\n\t */\n\tMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n\t this.guide.update(dragEvent.x, dragEvent.y);\n\t};\n\t\n\t/**\n\t * Drag end event handler\n\t */\n\tMonthCreationGuide.prototype._onDragEnd = function() {\n\t // Do nothing. 사용자가 직접 destroy 호출\n\t this.guide = null;\n\t};\n\t\n\tmodule.exports = MonthCreationGuide;\n\n\n/***/ },\n/* 83 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Move handler for month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t datetime = __webpack_require__(4),\n\t getMousePosData = __webpack_require__(18),\n\t MonthMoveGuide = __webpack_require__(84),\n\t TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @mixes CustomEvents\n\t * @param {Drag} dragHandler - Drag handler instance.\n\t * @param {Month} monthView - Month view instance.\n\t * @param {Base} baseController - Base controller instance.\n\t */\n\tfunction MonthMove(dragHandler, monthView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.monthView = monthView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleData = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._cache = null;\n\t\n\t /**\n\t * @type {MonthMoveGuide}\n\t */\n\t this.guide = new MonthMoveGuide(this);\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthMove.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t\n\t this.dragHandler = this.monthView = this.baseController = null;\n\t};\n\t\n\t/**\n\t * Update target schedule\n\t * @fires {MonthMove#beforeUpdateSchedule}\n\t * @param {object} scheduleCache - cache object that result of single dragging\n\t * session.\n\t */\n\tMonthMove.prototype.updateSchedule = function(scheduleCache) {\n\t var schedule = scheduleCache.model;\n\t var duration = schedule.duration().getTime();\n\t var startDateRaw = datetime.raw(schedule.start);\n\t var dragEndTime = Number(scheduleCache.end);\n\t var newStartDate = new TZDate(dragEndTime);\n\t\n\t newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\t\n\t /**\n\t * @event MonthMove#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: newStartDate,\n\t end: new TZDate(newStartDate.getTime() + duration)\n\t });\n\t};\n\t\n\t/**\n\t * Get schedule block to clone for month guide effect\n\t * @param {HTMLElement} target - target element that related with drag schedule\n\t * @returns {HTMLElement} element to create guide effect\n\t */\n\tMonthMove.prototype.getMonthScheduleBlock = function(target) {\n\t var blockSelector = config.classname('.weekday-schedule-block');\n\t\n\t return domutil.closest(target, blockSelector);\n\t};\n\t\n\t/**\n\t * Get schedule block from more layer\n\t * @param {HTMLElement} target - element to check\n\t * @returns {HTMLElement} schedule element\n\t */\n\tMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n\t var className = config.classname('.month-more-schedule');\n\t\n\t return domutil.closest(target, className);\n\t};\n\t\n\t/**\n\t * Check handler has permission to handle fired schedule\n\t * @fires {MonthMove#monthMoveStart_from_morelayer}\n\t * @param {HTMLElement} target - target element of fired schedule\n\t * @returns {(string|null)} model instance ID related with schedule. if handle\n\t * has not permission to handle the schedule then return null.\n\t */\n\tMonthMove.prototype.hasPermissionToHandle = function(target) {\n\t var modelID = null;\n\t var blockElement;\n\t\n\t if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n\t return null;\n\t }\n\t\n\t blockElement = this.getMonthScheduleBlock(target);\n\t\n\t if (blockElement) {\n\t modelID = domutil.getData(blockElement, 'id');\n\t } else {\n\t blockElement = this.getMoreLayerScheduleBlock(target);\n\t\n\t if (blockElement) {\n\t modelID = domutil.getData(blockElement, 'id');\n\t /**\n\t * Fire for notificate that the drag schedule start at more layer view.\n\t * @event {MonthMove#monthMoveStart_from_morelayer}\n\t */\n\t this.fire('monthMoveStart_from_morelayer');\n\t }\n\t }\n\t\n\t return modelID;\n\t};\n\t\n\t/**\n\t * Event handler for Drag#dragStart\n\t * @fires {MonthMove#monthMoveDragstart}\n\t * @param {object} dragStartEvent - drag start schedule data\n\t */\n\tMonthMove.prototype._onDragStart = function(dragStartEvent) {\n\t var target = dragStartEvent.target,\n\t modelID = this.hasPermissionToHandle(target),\n\t model,\n\t scheduleData;\n\t\n\t if (!modelID) {\n\t return;\n\t }\n\t\n\t model = this.baseController.schedules.items[modelID];\n\t\n\t if (model.isReadOnly) {\n\t return;\n\t }\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t this.getScheduleData = getMousePosData(this.monthView);\n\t\n\t scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n\t scheduleData.originEvent = dragStartEvent.originEvent;\n\t scheduleData.target = this.getMonthScheduleBlock(target);\n\t scheduleData.model = model;\n\t\n\t this._cache = {\n\t model: model,\n\t target: target,\n\t start: new TZDate(Number(scheduleData.date))\n\t };\n\t\n\t /**\n\t * @event {MonthMove#monthMoveDragstart}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t * @property {HTMLElement} target - schedule block element\n\t * @property {Schedule} model - model instance\n\t */\n\t this.fire('monthMoveDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * @fires {MonthMove#monthMoveDrag}\n\t * @param {object} dragEvent - drag event data\n\t */\n\tMonthMove.prototype._onDrag = function(dragEvent) {\n\t var scheduleData;\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = util.extend({\n\t originEvent: dragEvent.originEvent\n\t }, this.getScheduleData(dragEvent.originEvent));\n\t\n\t if (!scheduleData) {\n\t return;\n\t }\n\t\n\t /**\n\t * @event {MonthMove#monthMoveDrag}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthMoveDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * Event handler for Drag#dragEnd\n\t * @fires {MonthMove#monthMoveDragend}\n\t * @param {object} dragEndEvent - dragend event data\n\t */\n\tMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n\t var cache = this._cache;\n\t var scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\t\n\t if (scheduleData) {\n\t cache.end = new TZDate(Number(scheduleData.date));\n\t this.updateSchedule(cache);\n\t }\n\t\n\t /**\n\t * @event {MonthResize#monthMoveDragend}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthMoveDragend', scheduleData);\n\t\n\t this.getScheduleData = this._cache = null;\n\t};\n\t\n\tutil.CustomEvents.mixin(MonthMove);\n\t\n\tmodule.exports = MonthMove;\n\t\n\n\n/***/ },\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for modification of guide element for move in month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t domevent = __webpack_require__(9),\n\t FloatingLayer = __webpack_require__(16),\n\t tmpl = __webpack_require__(33),\n\t Schedule = __webpack_require__(20);\n\t\n\t/**\n\t * @constructor\n\t * @param {MonthMove} monthMove - month/move module instance\n\t */\n\tfunction MonthMoveGuide(monthMove) {\n\t /**\n\t * @type {MonthMove}\n\t */\n\t this.monthMove = monthMove;\n\t\n\t /**\n\t * @type {HTMLElement[]}\n\t */\n\t this.elements = null;\n\t\n\t /**\n\t * @type {FloatingLayer}\n\t */\n\t this.layer = null;\n\t\n\t monthMove.on({\n\t monthMoveDragstart: this._onDragStart,\n\t monthMoveDrag: this._onDrag,\n\t monthMoveDragend: this._onDragEnd\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthMoveGuide.prototype.destroy = function() {\n\t this.monthMove.off(this);\n\t this._clearGridBgColor();\n\t\n\t if (this.layer) {\n\t this.layer.destroy();\n\t }\n\t\n\t if (this.element) {\n\t domutil.remove(this.element);\n\t }\n\t\n\t this.monthMove = this.elements = this.layer = null;\n\t};\n\t\n\t/**\n\t * Hide element blocks for resize effect\n\t * @param {number} modelID - Schedule model instance ID\n\t */\n\tMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n\t var className = config.classname('weekday-schedule-block-dragging-dim');\n\t\n\t this.elements = domutil.find(\n\t config.classname('.weekday-schedule-block-' + modelID),\n\t this.monthMove.monthView.container,\n\t true\n\t );\n\t\n\t util.forEach(this.elements, function(el) {\n\t domutil.addClass(el, className);\n\t });\n\t};\n\t\n\t/**\n\t * Show element blocks\n\t */\n\tMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n\t var className = config.classname('weekday-schedule-block-dragging-dim');\n\t\n\t util.forEach(this.elements, function(el) {\n\t domutil.removeClass(el, className);\n\t });\n\t};\n\t\n\tMonthMoveGuide.prototype._getHighlightColorModel = function(model) {\n\t return {\n\t bgColor: model.color\n\t };\n\t};\n\t\n\t/**\n\t * Clear background color for filled grid element.\n\t */\n\tMonthMoveGuide.prototype._clearGridBgColor = function() {\n\t var selector = config.classname('.weekday-filled'),\n\t className = config.classname('weekday-filled'),\n\t beforeGridElement = domutil.find(selector,\n\t this.monthMove.monthView.container);\n\t\n\t if (beforeGridElement) {\n\t domutil.removeClass(beforeGridElement, className);\n\t }\n\t};\n\t\n\t/**\n\t * Fill background color of date grids relatied with model updates.\n\t * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n\t */\n\tMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n\t var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n\t className = config.classname('weekday-filled'),\n\t targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\t\n\t this._clearGridBgColor();\n\t\n\t if (!gridElements || !gridElements[targetIndex]) {\n\t return;\n\t }\n\t\n\t domutil.addClass(gridElements[targetIndex], className);\n\t};\n\t\n\t/**\n\t * Handler for MonthMove#dragStart\n\t * @param {object} dragStartEvent - dragStart schedule data object\n\t */\n\tMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n\t var monthView = this.monthMove.monthView,\n\t firstWeekdayView = monthView.children.single(),\n\t weekdayOptions = firstWeekdayView.options,\n\t widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n\t height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n\t container = monthView.container,\n\t mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n\t model = dragStartEvent.model,\n\t layer = new FloatingLayer(null, container);\n\t\n\t this._hideOriginScheduleBlocks(model.cid());\n\t\n\t this.layer = layer;\n\t layer.setSize(widthPercent + '%', height);\n\t layer.setPosition(mousePos[0], mousePos[1]);\n\t layer.setContent(tmpl({\n\t model: util.extend(\n\t Schedule.create(model),\n\t model,\n\t this._getHighlightColorModel(model)\n\t )\n\t }));\n\t layer.show();\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('dragging'));\n\t }\n\t};\n\t\n\t/**\n\t * Handler for MonthMove#drag\n\t * @param {object} dragEvent - drag event data object\n\t */\n\tMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n\t var container = this.monthMove.monthView.container,\n\t mousePos = domevent.getMousePosition(\n\t dragEvent.originEvent,\n\t container\n\t );\n\t\n\t this._updateGridBgColor(dragEvent);\n\t\n\t if (!this.layer) {\n\t return;\n\t }\n\t\n\t this.layer.setPosition(mousePos[0], mousePos[1]);\n\t};\n\t\n\t/**\n\t * Handler for MonthMove#dragEnd\n\t */\n\tMonthMoveGuide.prototype._onDragEnd = function() {\n\t this._showOriginScheduleBlocks();\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('dragging'));\n\t }\n\t\n\t this._clearGridBgColor();\n\t this.layer.destroy();\n\t this.layer = null;\n\t};\n\t\n\tmodule.exports = MonthMoveGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Module for resize schedule in month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3),\n\t datetime = __webpack_require__(4),\n\t domutil = __webpack_require__(2),\n\t getMousePosData = __webpack_require__(18),\n\t MonthResizeGuide = __webpack_require__(86),\n\t TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @param {Drag} dragHandler - Drag handler instance.\n\t * @param {Month} monthView - Month view instance.\n\t * @param {Base} baseController - Base controller instance.\n\t */\n\tfunction MonthResize(dragHandler, monthView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.monthView = monthView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleData = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._cache = null;\n\t\n\t /**\n\t * @type {MonthResizeGuide}\n\t */\n\t this.guide = new MonthResizeGuide(this);\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthResize.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t\n\t this.dragHandler = this.monthView = this.baseController = null;\n\t};\n\t\n\t/**\n\t * Fire event for update model\n\t * @fires {MonthResize#beforeUpdateSchedule}\n\t * @param {object} scheduleCache - cache object that result of single dragging\n\t * session.\n\t */\n\tMonthResize.prototype._updateSchedule = function(scheduleCache) {\n\t // 일정의 시작 일자를 변경할 순 없음.\n\t // 종료시간만 변경 가능.\n\t var newEnd = datetime.end(new TZDate(Number(scheduleCache.end))),\n\t schedule = scheduleCache.schedule;\n\t\n\t /**\n\t * @event MonthResize#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: new TZDate(Number(schedule.getStarts())),\n\t end: newEnd\n\t });\n\t};\n\t\n\t/**\n\t * Event handler for Drag#dragStart\n\t * @fires {MonthResize#monthResizeDragstart}\n\t * @param {object} dragStartEvent - drag start event data\n\t */\n\tMonthResize.prototype._onDragStart = function(dragStartEvent) {\n\t var target = dragStartEvent.target,\n\t modelID, schedule,\n\t scheduleData;\n\t\n\t if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n\t return;\n\t }\n\t\n\t target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\t\n\t if (!target) {\n\t return;\n\t }\n\t\n\t modelID = domutil.getData(target, 'id');\n\t schedule = this.baseController.schedules.items[modelID];\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t this.getScheduleData = getMousePosData(this.monthView);\n\t scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n\t scheduleData.target = target;\n\t scheduleData.model = schedule;\n\t\n\t this._cache = {\n\t schedule: schedule,\n\t target: target,\n\t start: new TZDate(Number(scheduleData.date))\n\t };\n\t\n\t /**\n\t * @event {MonthCreation#monthResizeDragstart}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t * @property {HTMLElement} target - schedule block element\n\t * @property {Schedule} model - model instance\n\t */\n\t this.fire('monthResizeDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * @fires {MonthResize#monthResizeDrag}\n\t * @param {object} dragEvent - drag event data\n\t */\n\tMonthResize.prototype._onDrag = function(dragEvent) {\n\t var scheduleData;\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = this.getScheduleData(dragEvent.originEvent);\n\t\n\t if (!scheduleData) {\n\t return;\n\t }\n\t\n\t /**\n\t * @event {MonthResize#monthResizeDrag}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthResizeDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * @fires {MonthResize#monthResizeDragend}\n\t * @param {object} dragEndEvent - drag end event data\n\t */\n\tMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n\t var cache = this._cache,\n\t scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\t\n\t if (scheduleData) {\n\t cache.end = new TZDate(Number(scheduleData.date));\n\t this._updateSchedule(cache);\n\t }\n\t\n\t /**\n\t * @event {MonthResize#monthResizeDragend}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthResizeDragend', scheduleData);\n\t\n\t this.getScheduleData = this._cache = null;\n\t};\n\t\n\tutil.CustomEvents.mixin(MonthResize);\n\t\n\tmodule.exports = MonthResize;\n\t\n\n\n/***/ },\n/* 86 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for modification of guide element in schedule resize\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t MonthGuide = __webpack_require__(27);\n\t\n\t/**\n\t * @constructor\n\t * @param {MonthResize} monthResize - month/resize module instance\n\t */\n\tfunction MonthResizeGuide(monthResize) {\n\t /**\n\t * @type {MonthResize}\n\t */\n\t this.monthResize = monthResize;\n\t\n\t /**\n\t * @type {HTMLElement[]}\n\t */\n\t this.elements = null;\n\t\n\t /**\n\t * @type {MonthGuide}\n\t */\n\t this.guide = null;\n\t\n\t monthResize.on({\n\t monthResizeDragstart: this._onDragStart,\n\t monthResizeDrag: this._onDrag,\n\t monthResizeDragend: this._onDragEnd\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthResizeGuide.prototype.destroy = function() {\n\t this.monthResize.off(this);\n\t this.guide.destroy();\n\t\n\t this.guide = this.monthResize = null;\n\t};\n\t\n\t/**\n\t * Hide element blocks for resize effect\n\t * @param {number} modelID - Schedule model instance ID\n\t */\n\tMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n\t this.elements = domutil.find(\n\t config.classname('.weekday-schedule-block-' + modelID),\n\t this.monthResize.monthView.container,\n\t true\n\t );\n\t\n\t util.forEach(this.elements, function(el) {\n\t el.style.display = 'none';\n\t });\n\t};\n\t\n\t/**\n\t * Show element blocks\n\t */\n\tMonthResizeGuide.prototype._showScheduleBlocks = function() {\n\t util.forEach(this.elements, function(el) {\n\t el.style.display = 'block';\n\t });\n\t};\n\t\n\t/**\n\t * Drag start event handler\n\t * @param {object} dragStartEvent - schedule data from MonthResize\n\t */\n\tMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n\t this.guide = new MonthGuide({\n\t isResizeMode: true\n\t }, this.monthResize.monthView);\n\t\n\t this._hideScheduleBlocks(dragStartEvent.model.cid());\n\t\n\t this.guide.start(dragStartEvent);\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('resizing-x'));\n\t }\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @param {object} dragEvent - event data from MonthCreation\n\t */\n\tMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n\t this.guide.update(dragEvent.x, dragEvent.y);\n\t};\n\t\n\t/**\n\t * Drag end event handler\n\t */\n\tMonthResizeGuide.prototype._onDragEnd = function() {\n\t this._showScheduleBlocks();\n\t\n\t this.guide.destroy();\n\t this.elements = this.guide = null;\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('resizing-x'));\n\t }\n\t};\n\t\n\tmodule.exports = MonthResizeGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Allday event click event hander module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction TimeClick(dragHandler, timeGridView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {TimeGrid}\n\t */\n\t this.timeGridView = timeGridView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.timeGridView = this.baseController = this.dragHandler = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {string} - model id\n\t */\n\tTimeClick.prototype.checkExpectCondition = function(target) {\n\t var container,\n\t matches;\n\t\n\t container = domutil.closest(target, config.classname('.time-date'));\n\t\n\t if (!container) {\n\t return false;\n\t }\n\t\n\t matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.timeGridView.children.items, Number(matches[1]));\n\t};\n\t\n\t/**\n\t * Click event hander\n\t * @param {object} clickEvent - click event from {@link Drag}\n\t * @emits TimeClick#clickEvent\n\t */\n\tTimeClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t target = clickEvent.target,\n\t timeView = this.checkExpectCondition(target),\n\t blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n\t schedulesCollection = this.baseController.schedules;\n\t\n\t if (!timeView || !blockElement) {\n\t return;\n\t }\n\t\n\t schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n\t /**\n\t * @events TimeClick#clickSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent object\n\t */\n\t self.fire('clickSchedule', {\n\t schedule: schedule,\n\t event: clickEvent.originEvent\n\t });\n\t });\n\t};\n\t\n\tutil.CustomEvents.mixin(TimeClick);\n\t\n\tmodule.exports = TimeClick;\n\t\n\n\n/***/ },\n/* 88 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Dayname click event hander module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {DayName} [dayNameView] - DayName view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction DayNameClick(dragHandler, dayNameView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {DayName}\n\t */\n\t this.dayNameView = dayNameView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tDayNameClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.dayNameView = this.baseController = this.dragHandler = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {string} - model id\n\t */\n\tDayNameClick.prototype.checkExpectCondition = function(target) {\n\t var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\t\n\t if (!container) {\n\t return false;\n\t }\n\t\n\t return true;\n\t};\n\t\n\t/**\n\t * Click event hander\n\t * @param {object} clickEvent - click event from {@link Drag}\n\t * @emits DayNameClick#clickDayname\n\t */\n\tDayNameClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t target = clickEvent.target,\n\t daynameView = this.checkExpectCondition(target),\n\t blockElement = domutil.closest(target, config.classname('.dayname'));\n\t\n\t if (!daynameView || !blockElement) {\n\t return;\n\t }\n\t\n\t /**\n\t * @events DayNameClick#clickDayname\n\t * @type {object}\n\t * @property {string} date - click date\n\t */\n\t self.fire('clickDayname', {\n\t date: domutil.getData(blockElement, 'date')\n\t });\n\t};\n\t\n\tutil.CustomEvents.mixin(DayNameClick);\n\t\n\tmodule.exports = DayNameClick;\n\t\n\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Handling creation events from drag handler and time grid view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar array = __webpack_require__(14);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\tvar TimeCreationGuide = __webpack_require__(90);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar timeCore = __webpack_require__(19);\n\t\n\tvar CLICK_DELAY = 300;\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes timeCore\n\t * @mixes CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction TimeCreation(dragHandler, timeGridView, baseController) {\n\t /**\n\t * Drag handler instance.\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * TimeGrid view instance.\n\t * @type {TimeGrid}\n\t */\n\t this.timeGridView = timeGridView;\n\t\n\t /**\n\t * Base controller instance.\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {TimeCreationGuide}\n\t */\n\t this.guide = new TimeCreationGuide(this);\n\t\n\t /**\n\t * Temporary function for single drag session's calc.\n\t * @type {function}\n\t */\n\t this._getScheduleDataFunc = null;\n\t\n\t /**\n\t * Temporary function for drag start data cache.\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._requestOnClick = false;\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t dragHandler.on('click', this._onClick, this);\n\t domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeCreation.prototype.destroy = function() {\n\t var timeGridView = this.timeGridView;\n\t\n\t this.guide.destroy();\n\t this.dragHandler.off(this);\n\t\n\t if (timeGridView && timeGridView.container) {\n\t domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n\t }\n\t\n\t this.dragHandler = this.timeGridView = this.baseController =\n\t this._getScheduleDataFunc = this._dragStart = this.guide = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n\t */\n\tTimeCreation.prototype.checkExpectedCondition = function(target) {\n\t var cssClass = domutil.getClass(target),\n\t matches;\n\t\n\t if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n\t target = target.parentNode;\n\t cssClass = domutil.getClass(target);\n\t }\n\t\n\t matches = cssClass.match(config.time.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.timeGridView.children.items, matches[1]);\n\t};\n\t\n\t/**\n\t * Drag#dragStart event handler.\n\t * @emits TimeCreation#timeCreationDragstart\n\t * @param {object} dragStartEventData - Drag#dragStart event data.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {function} [revise] - supply function for revise event data before emit.\n\t */\n\tTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n\t var target = dragStartEventData.target,\n\t result = this.checkExpectedCondition(target),\n\t getScheduleDataFunc,\n\t eventData;\n\t\n\t if (!result) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n\t eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\t\n\t if (revise) {\n\t revise(eventData);\n\t }\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t /**\n\t * @event TimeCreation#timeCreationDragstart\n\t * @type {object}\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t */\n\t this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n\t};\n\t\n\t/**\n\t * Drag#drag event handler\n\t * @emits TimeCreation#timeCreationDrag\n\t * @param {object} dragEventData - event data from Drag#drag.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {function} [revise] - supply function for revise event data before emit.\n\t */\n\tTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t eventData;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t eventData = getScheduleDataFunc(dragEventData.originEvent);\n\t\n\t if (revise) {\n\t revise(eventData);\n\t }\n\t\n\t /**\n\t * @event TimeCreation#timeCreationDrag\n\t * @type {object}\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t */\n\t this.fire(overrideEventName || 'timeCreationDrag', eventData);\n\t};\n\t\n\t/**\n\t * @fires TimeCreation#beforeCreateSchedule\n\t * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n\t * or TimeCreation#timeCreationClick\n\t */\n\tTimeCreation.prototype._createSchedule = function(eventData) {\n\t var relatedView = eventData.relatedView,\n\t createRange = eventData.createRange,\n\t nearestGridTimeY = eventData.nearestGridTimeY,\n\t baseDate,\n\t dateStart,\n\t dateEnd,\n\t start,\n\t end;\n\t\n\t if (!createRange) {\n\t createRange = [\n\t nearestGridTimeY,\n\t nearestGridTimeY + datetime.millisecondsFrom('minutes', 30)\n\t ];\n\t }\n\t\n\t baseDate = new TZDate(relatedView.getDate());\n\t dateStart = datetime.start(baseDate);\n\t dateEnd = datetime.end(baseDate);\n\t start = Math.max(dateStart.getTime(), createRange[0]);\n\t end = Math.min(dateEnd.getTime(), createRange[1]);\n\t\n\t /**\n\t * @event TimeCreation#beforeCreateSchedule\n\t * @type {object}\n\t * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n\t * @property {Date} start - select start time\n\t * @property {Date} end - select end time\n\t * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n\t * @property {string} triggerEventName - event name\n\t */\n\t this.fire('beforeCreateSchedule', {\n\t isAllDay: false,\n\t start: new TZDate(start),\n\t end: new TZDate(end),\n\t guide: this.guide,\n\t triggerEventName: eventData.triggerEvent\n\t });\n\t};\n\t\n\t/**\n\t * Drag#dragEnd event handler\n\t * @emits TimeCreation#timeCreationDragend\n\t * @param {object} dragEndEventData - event data from Drag#dragend\n\t */\n\tTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n\t var self = this,\n\t dragStart = this._dragStart;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t /**\n\t * Function for manipulate event data before firing event\n\t * @param {object} eventData - event data\n\t */\n\t function reviseFunc(eventData) {\n\t var range = [\n\t dragStart.nearestGridTimeY,\n\t eventData.nearestGridTimeY\n\t ].sort(array.compare.num.asc);\n\t range[1] += datetime.millisecondsFrom('hour', 0.5);\n\t\n\t eventData.createRange = range;\n\t\n\t self._createSchedule(eventData);\n\t }\n\t\n\t /**\n\t * @event TimeCreation#timeCreationDragend\n\t * @type {object}\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {number[]} createRange - milliseconds range between drag start and end to create.\n\t */\n\t this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\t\n\t this._dragStart = this._getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Drag#click event handler\n\t * @emits TimeCreation#timeCreationClick\n\t * @param {object} clickEventData - event data from Drag#click.\n\t */\n\tTimeCreation.prototype._onClick = function(clickEventData) {\n\t var self = this;\n\t var condResult, getScheduleDataFunc, eventData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t condResult = this.checkExpectedCondition(clickEventData.target);\n\t if (!condResult) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(condResult);\n\t eventData = getScheduleDataFunc(clickEventData.originEvent);\n\t\n\t this._requestOnClick = true;\n\t setTimeout(function() {\n\t if (self._requestOnClick) {\n\t self.fire('timeCreationClick', eventData);\n\t self._createSchedule(eventData);\n\t }\n\t self._requestOnClick = false;\n\t }, CLICK_DELAY);\n\t this._dragStart = this._getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Dblclick event handler\n\t * @param {MouseEvent} e - Native MouseEvent\n\t */\n\tTimeCreation.prototype._onDblClick = function(e) {\n\t var condResult, getScheduleDataFunc, eventData;\n\t\n\t condResult = this.checkExpectedCondition(e.target);\n\t if (!condResult) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(condResult);\n\t eventData = getScheduleDataFunc(e);\n\t\n\t this.fire('timeCreationClick', eventData);\n\t\n\t this._createSchedule(eventData);\n\t\n\t this._requestOnClick = false;\n\t};\n\t\n\ttimeCore.mixin(TimeCreation);\n\tutil.CustomEvents.mixin(TimeCreation);\n\t\n\tmodule.exports = TimeCreation;\n\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for Time.Creation effect while dragging.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar common = __webpack_require__(6);\n\tvar datetime = __webpack_require__(4);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar ratio = __webpack_require__(6).ratio;\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar MIN30 = (datetime.MILLISECONDS_PER_MINUTES * 30);\n\t\n\t/**\n\t * Class for Time.Creation dragging effect.\n\t * @constructor\n\t * @param {TimeCreation} timeCreation - instance of TimeCreation.\n\t */\n\tfunction TimeCreationGuide(timeCreation) {\n\t /**\n\t * Guide element for creation effect.\n\t * @type {HTMLElement}\n\t */\n\t this.guideElement = global.document.createElement('div');\n\t\n\t /**\n\t * @type {HTMLDivElement}\n\t */\n\t this.guideTimeElement = domutil.appendHTMLElement(\n\t 'span',\n\t this.guideElement,\n\t config.classname('time-guide-creation-label')\n\t );\n\t\n\t domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\t\n\t /**\n\t * @type {TimeCreation}\n\t */\n\t this.timeCreation = timeCreation;\n\t\n\t /**\n\t * @type {array}\n\t */\n\t this._styleUnit = null;\n\t\n\t /**\n\t * @type {array}\n\t */\n\t this._styleStart = null;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._styleFunc = null;\n\t\n\t timeCreation.on({\n\t timeCreationDragstart: this._createGuideElement,\n\t timeCreationDrag: this._onDrag,\n\t timeCreationClick: this._createGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method.\n\t */\n\tTimeCreationGuide.prototype.destroy = function() {\n\t this.clearGuideElement();\n\t this.timeCreation.off(this);\n\t this.timeCreation = this._styleUnit = this._styleStart =\n\t this._styleFunc = this.guideElement = this.guideTimeElement = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tTimeCreationGuide.prototype.clearGuideElement = function() {\n\t var guideElement = this.guideElement,\n\t timeElement = this.guideTimeElement;\n\t\n\t domutil.remove(guideElement);\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t guideElement.style.display = 'none';\n\t guideElement.style.top = '';\n\t guideElement.style.height = '';\n\t timeElement.innerHTML = '';\n\t });\n\t};\n\t\n\t/**\n\t * Refresh guide element\n\t * @param {number} top - The number of guide element's style top\n\t * @param {number} height - The number of guide element's style height\n\t * @param {Date} start - start time of schedule to create\n\t * @param {Date} end - end time of schedule to create\n\t * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n\t */\n\tTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n\t var guideElement = this.guideElement;\n\t var timeElement = this.guideTimeElement;\n\t\n\t guideElement.style.top = top + 'px';\n\t guideElement.style.height = height + 'px';\n\t guideElement.style.display = 'block';\n\t\n\t timeElement.innerHTML = datetime.format(new TZDate(start), 'HH:mm') +\n\t ' - ' + datetime.format(new TZDate(end), 'HH:mm');\n\t\n\t if (bottomLabel) {\n\t domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n\t } else {\n\t domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n\t }\n\t};\n\t\n\t/**\n\t * Get unit data of calculating new style of guide element by user interaction\n\t * @param {Time} relatedView - time view instance related with schedule\n\t * @returns {array} unit data.\n\t */\n\tTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n\t var viewOpt = relatedView.options,\n\t viewHeight = relatedView.getViewBound().height,\n\t hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n\t todayStart = datetime.parse(viewOpt.ymd),\n\t todayEnd = datetime.end(todayStart);\n\t\n\t todayStart.setHours(0, 0, 0, 0);\n\t todayStart.setHours(viewOpt.hourStart);\n\t\n\t // [0] height of view\n\t // [1] hour length of view\n\t // [2] start time of view\n\t // [3] end time of view\n\t // [4] height of view for one hour\n\t return [\n\t viewHeight,\n\t hourLength,\n\t Number(todayStart),\n\t Number(todayEnd),\n\t viewHeight / hourLength\n\t ];\n\t};\n\t\n\t/**\n\t * Applying limitation to supplied data and return it.\n\t * @param {number} top - top pixel of guide element\n\t * @param {number} height - height pixel of guide element\n\t * @param {number} start - relative time value of dragstart point\n\t * @param {number} end - relative time value of dragend point\n\t * @returns {array} limited style data\n\t */\n\tTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n\t var unitData = this._styleUnit;\n\t\n\t top = common.limit(top, [0], [unitData[0]]);\n\t height = common.limit(top + height, [0], [unitData[0]]) - top;\n\t start = common.limit(start, [unitData[2]], [unitData[3]]);\n\t end = common.limit(end, [unitData[2]], [unitData[3]]);\n\t\n\t return [top, height, start, end];\n\t};\n\t\n\t/**\n\t * Get function to calculate guide element UI data from supplied units\n\t * @param {number} viewHeight - total height of view's container element\n\t * @param {number} hourLength - hour length that rendered in time view\n\t * @param {number} todayStart - time for view's start date\n\t * @returns {function} UI data calculator function\n\t */\n\tTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n\t var todayEnd = Number(datetime.end(new TZDate(Number(todayStart))));\n\t\n\t /**\n\t * Get top, time value from schedule dat\n\t * @param {object} scheduleData - schedule data object\n\t * @returns {number[]} top, time\n\t */\n\t function getStyleData(scheduleData) {\n\t var gridY = scheduleData.nearestGridY,\n\t gridTimeY = scheduleData.nearestGridTimeY,\n\t top, time;\n\t\n\t top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n\t time = common.limit(gridTimeY, [todayStart], [todayEnd]);\n\t\n\t return [top, time];\n\t }\n\t\n\t return getStyleData;\n\t};\n\t\n\t/**\n\t * DragStart event handler\n\t * @param {object} dragStartEventData - dragStart schedule data.\n\t */\n\tTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n\t var relatedView = dragStartEventData.relatedView,\n\t unitData, styleFunc, styleData, result;\n\t\n\t unitData = this._styleUnit = this._getUnitData(relatedView);\n\t styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n\t styleData = this._styleStart = styleFunc(dragStartEventData);\n\t\n\t result = this._limitStyleData(\n\t styleData[0],\n\t (unitData[4] / 2),\n\t styleData[1],\n\t (styleData[1] + MIN30)\n\t );\n\t\n\t this._refreshGuideElement.apply(this, result);\n\t\n\t relatedView.container.appendChild(this.guideElement);\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @param {object} dragEventData - drag schedule data.\n\t */\n\tTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n\t var styleFunc = this._styleFunc,\n\t unitData = this._styleUnit,\n\t startStyle = this._styleStart,\n\t refreshGuideElement = this._refreshGuideElement.bind(this),\n\t heightOfHalfHour,\n\t endStyle,\n\t result;\n\t\n\t if (!styleFunc || !unitData || !startStyle) {\n\t return;\n\t }\n\t\n\t heightOfHalfHour = (unitData[4] / 2);\n\t endStyle = styleFunc(dragEventData);\n\t\n\t if (endStyle[0] > startStyle[0]) {\n\t result = this._limitStyleData(\n\t startStyle[0],\n\t (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n\t startStyle[1],\n\t (endStyle[1] + MIN30)\n\t );\n\t } else {\n\t result = this._limitStyleData(\n\t endStyle[0],\n\t (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n\t endStyle[1],\n\t (startStyle[1] + MIN30)\n\t );\n\t result.push(true);\n\t }\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t refreshGuideElement.apply(null, result);\n\t });\n\t};\n\t\n\tmodule.exports = TimeCreationGuide;\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Handling move schedules from drag handler and time grid view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar timeCore = __webpack_require__(19);\n\tvar TimeMoveGuide = __webpack_require__(92);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes timeCore\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction TimeMove(dragHandler, timeGridView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {TimeGrid}\n\t */\n\t this.timeGridView = timeGridView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._getScheduleDataFunc = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t /**\n\t * @type {TimeMoveGuide}\n\t */\n\t this._guide = new TimeMoveGuide(this);\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t}\n\t\n\t/**\n\t * Destroy method.\n\t */\n\tTimeMove.prototype.destroy = function() {\n\t this._guide.destroy();\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.timeGridView = this.baseController =\n\t this._getScheduleDataFunc = this._dragStart = this._guide = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {boolean|object} - return object when satiate condition.\n\t */\n\tTimeMove.prototype.checkExpectCondition = function(target) {\n\t if (!domutil.closest(target, config.classname('.time-schedule'))) {\n\t return false;\n\t }\n\t\n\t return this._getTimeView(target);\n\t};\n\t\n\t/**\n\t * Get Time view container from supplied element.\n\t * @param {HTMLElement} target - element to find time view container.\n\t * @returns {object|boolean} - return time view instance when finded.\n\t */\n\tTimeMove.prototype._getTimeView = function(target) {\n\t var container = domutil.closest(target, config.classname('.time-date')),\n\t matches;\n\t\n\t if (!container) {\n\t return false;\n\t }\n\t\n\t matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.timeGridView.children.items, Number(matches[1]));\n\t};\n\t\n\t/**\n\t * @emits TimeMove#timeMoveDragstart\n\t * @param {object} dragStartEventData - Drag#dragStart schedule data.\n\t */\n\tTimeMove.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t timeView = this.checkExpectCondition(target),\n\t blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n\t getScheduleDataFunc,\n\t scheduleData,\n\t ctrl = this.baseController,\n\t targetModelID,\n\t targetModel;\n\t\n\t if (!timeView || !blockElement) {\n\t return;\n\t }\n\t\n\t targetModelID = domutil.getData(blockElement, 'id');\n\t targetModel = ctrl.schedules.items[targetModelID];\n\t\n\t if (targetModel.isReadOnly) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n\t scheduleData = this._dragStart = getScheduleDataFunc(\n\t dragStartEventData.originEvent, {\n\t targetModelID: targetModelID,\n\t model: targetModel\n\t }\n\t );\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event TimeMove#timeMoveDragstart\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t * @property {Schedule} model - model instance\n\t */\n\t this.fire('timeMoveDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * @emits TimeMove#timeMoveDrag\n\t * @param {MouseEvent} dragEventData - mousemove event object\n\t * @param {string} [overrideEventName] - name of emitting event to override.\n\t * @param {function} [revise] - supply function for revise schedule data before emit.\n\t */\n\tTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t timeView = this._getTimeView(dragEventData.target),\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t if (!timeView || !getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n\t currentView: timeView,\n\t targetModelID: dragStart.targetModelID\n\t });\n\t\n\t if (revise) {\n\t revise(scheduleData);\n\t }\n\t\n\t /**\n\t * @event TimeMove#timeMoveDrag\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {Time} currentView - time view instance related with current mouse position.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t */\n\t this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * Update model instance by dragend event results.\n\t * @fires TimeMove#beforeUpdateSchedule\n\t * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n\t */\n\tTimeMove.prototype._updateSchedule = function(scheduleData) {\n\t var ctrl = this.baseController,\n\t modelID = scheduleData.targetModelID,\n\t range = scheduleData.nearestRange,\n\t timeDiff = range[1] - range[0],\n\t dateDiff = 0,\n\t schedule = ctrl.schedules.items[modelID],\n\t relatedView = scheduleData.relatedView,\n\t currentView = scheduleData.currentView,\n\t scheduleDuration,\n\t dateStart,\n\t dateEnd,\n\t newStarts,\n\t newEnds,\n\t baseDate;\n\t\n\t if (!schedule || !currentView) {\n\t return;\n\t }\n\t\n\t timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\t baseDate = new TZDate(relatedView.getDate());\n\t dateStart = datetime.start(baseDate);\n\t dateEnd = datetime.end(baseDate);\n\t newStarts = new TZDate(schedule.getStarts().getTime() + timeDiff);\n\t newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n\t scheduleDuration = schedule.duration();\n\t\n\t if (currentView) {\n\t dateDiff = currentView.getDate() - relatedView.getDate();\n\t }\n\t\n\t if (newStarts < dateStart) {\n\t newStarts = new TZDate(dateStart.getTime());\n\t newEnds = new TZDate(newStarts.getTime() + scheduleDuration.getTime());\n\t } else if (newEnds > dateEnd) {\n\t newEnds = new TZDate(dateEnd.getTime());\n\t newStarts = new TZDate(newEnds.getTime() - scheduleDuration.getTime());\n\t }\n\t\n\t newStarts = new TZDate(newStarts.getTime() + dateDiff);\n\t newEnds = new TZDate(newEnds.getTime() + dateDiff);\n\t\n\t /**\n\t * @event TimeMove#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: newStarts,\n\t end: newEnds\n\t });\n\t};\n\t\n\t/**\n\t * @emits TimeMove#timeMoveDragend\n\t * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n\t */\n\tTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t currentView = this._getTimeView(dragEndEventData.target),\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n\t currentView: currentView,\n\t targetModelID: dragStart.targetModelID\n\t });\n\t\n\t scheduleData.range = [\n\t dragStart.timeY,\n\t scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n\t ];\n\t\n\t scheduleData.nearestRange = [\n\t dragStart.nearestGridTimeY,\n\t scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n\t ];\n\t\n\t this._updateSchedule(scheduleData);\n\t\n\t /**\n\t * @event TimeMove#timeMoveDragend\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {Time} currentView - time view instance related with current mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t * @property {number[]} range - milliseconds range between drag start and end.\n\t * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n\t */\n\t this.fire('timeMoveDragend', scheduleData);\n\t};\n\t\n\t/**\n\t * @emits TimeMove#timeMoveClick\n\t * @param {MouseEvent} clickEventData - click mouse event object.\n\t */\n\tTimeMove.prototype._onClick = function(clickEventData) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n\t targetModelID: dragStart.targetModelID\n\t });\n\t\n\t /**\n\t * @event TimeMove#timeMoveClick\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t */\n\t this.fire('timeMoveClick', scheduleData);\n\t};\n\t\n\ttimeCore.mixin(TimeMove);\n\tutil.CustomEvents.mixin(TimeMove);\n\t\n\tmodule.exports = TimeMove;\n\t\n\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for Time.Move effect while dragging.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar ratio = __webpack_require__(6).ratio;\n\tvar FloatingLayer = __webpack_require__(16);\n\tvar tmpl = __webpack_require__(44);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar Schedule = __webpack_require__(20);\n\t\n\t/**\n\t * Class for Time.Move effect.\n\t * @constructor\n\t * @param {TimeMove} timeMove - The instance of TimeMove.\n\t */\n\tfunction TimeMoveGuide(timeMove) {\n\t /**\n\t * @type {FloatingLayer}\n\t */\n\t this._guideLayer = null;\n\t\n\t /**\n\t * @Type {Schedule}\n\t */\n\t this._model = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._lastDrag = null;\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.guideElement = null;\n\t\n\t /**\n\t * @type {TimeMove}\n\t */\n\t this.timeMove = timeMove;\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._container = null;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._getTopFunc = null;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startGridY = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startTopPixel = 0;\n\t\n\t timeMove.on({\n\t 'timeMoveDragstart': this._onDragStart,\n\t 'timeMoveDrag': this._onDrag,\n\t 'timeMoveDragend': this._clearGuideElement,\n\t 'timeMoveClick': this._clearGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeMoveGuide.prototype.destroy = function() {\n\t this._clearGuideElement();\n\t this.timeMove.off(this);\n\t if (this._guideLayer) {\n\t this._guideLayer.destroy();\n\t }\n\t this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n\t this._getTopFunc = this._startGridY = this._startTopPixel = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tTimeMoveGuide.prototype._clearGuideElement = function() {\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('dragging'));\n\t }\n\t if (this._guideLayer) {\n\t this._guideLayer.destroy();\n\t }\n\t\n\t this._showOriginScheduleBlocks();\n\t\n\t this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n\t this._startGridY = this._startTopPixel = null;\n\t};\n\t\n\t/**\n\t * Dim element blocks\n\t * @param {number} modelID - Schedule model instance ID\n\t */\n\tTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n\t var className = config.classname('time-date-schedule-block-dragging-dim');\n\t if (this.guideElement) {\n\t domutil.addClass(this.guideElement, className);\n\t }\n\t};\n\t\n\t/**\n\t * Show element blocks\n\t */\n\tTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n\t var className = config.classname('time-date-schedule-block-dragging-dim');\n\t if (this.guideElement) {\n\t domutil.removeClass(this.guideElement, className);\n\t }\n\t};\n\t\n\tTimeMoveGuide.prototype._getHighlightColorModel = function(model) {\n\t return {\n\t bgColor: model.color\n\t };\n\t};\n\t\n\t/**\n\t * Refresh guide element\n\t * @param {string} top - guide element's style top.\n\t * @param {Schedule} model - updated model\n\t */\n\tTimeMoveGuide.prototype._refreshGuideElement = function(top, model) {\n\t var self = this;\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t if (!self._guideLayer) {\n\t return;\n\t }\n\t self._guideLayer.setPosition(0, top);\n\t self._guideLayer.setContent(tmpl({model: model}));\n\t });\n\t};\n\t\n\t/**\n\t * TimeMove#timeMoveDragstart event handler\n\t * @param {object} dragStartEventData - dragstart event data\n\t */\n\tTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n\t var guideElement = domutil.closest(\n\t dragStartEventData.target,\n\t config.classname('.time-date-schedule-block')\n\t );\n\t\n\t if (!guideElement) {\n\t return;\n\t }\n\t\n\t this._startTopPixel = parseFloat(guideElement.style.top);\n\t this._startGridY = dragStartEventData.nearestGridY;\n\t this.guideElement = guideElement;\n\t this._container = dragStartEventData.relatedView.container;\n\t\n\t this._model = util.extend(\n\t Schedule.create(dragStartEventData.model),\n\t dragStartEventData.model,\n\t this._getHighlightColorModel(dragStartEventData.model)\n\t );\n\t this._lastDrag = dragStartEventData;\n\t\n\t this._resetGuideLayer();\n\t this._hideOriginScheduleBlocks();\n\t};\n\t\n\t/**\n\t * TimeMove#timeMoveDrag event handler\n\t * @param {object} dragEventData - drag event data\n\t */\n\tTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n\t var timeView = dragEventData.currentView,\n\t viewOptions = timeView.options,\n\t viewHeight = timeView.getViewBound().height,\n\t guideHeight = parseFloat(this.guideElement.style.height),\n\t hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n\t gridYOffset = dragEventData.nearestGridY - this._startGridY,\n\t gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n\t timeDiff = dragEventData.nearestGridTimeY - this._lastDrag.nearestGridTimeY,\n\t bottomLimit,\n\t top;\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('dragging'));\n\t }\n\t\n\t if (this._container !== timeView.container) {\n\t this._container = timeView.container;\n\t this._resetGuideLayer();\n\t }\n\t\n\t top = this._startTopPixel + gridYOffsetPixel;\n\t bottomLimit = viewHeight - guideHeight;\n\t\n\t top = Math.max(top, 0);\n\t top = Math.min(top, bottomLimit);\n\t\n\t // update time\n\t this._model.start = new TZDate(this._model.getStarts().getTime() + timeDiff);\n\t this._model.end = new TZDate(this._model.getEnds().getTime() + timeDiff);\n\t this._lastDrag = dragEventData;\n\t\n\t this._refreshGuideElement(top, this._model);\n\t};\n\t\n\tTimeMoveGuide.prototype._resetGuideLayer = function() {\n\t if (this._guideLayer) {\n\t this._guideLayer.destroy();\n\t this._guideLayer = null;\n\t }\n\t this._guideLayer = new FloatingLayer(null, this._container);\n\t this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n\t this._guideLayer.setPosition(0, this.guideElement.style.top);\n\t this._guideLayer.setContent(tmpl({model: this._model}));\n\t this._guideLayer.show();\n\t};\n\t\n\tmodule.exports = TimeMoveGuide;\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Handling resize schedules from drag handler and time grid view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar timeCore = __webpack_require__(19);\n\tvar TimeResizeGuide = __webpack_require__(94);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes timeCore\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction TimeResize(dragHandler, timeGridView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {TimeGrid}\n\t */\n\t this.timeGridView = timeGridView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._getScheduleDataFunc = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t /**\n\t * @type {TimeResizeGuide}\n\t */\n\t this._guide = new TimeResizeGuide(this);\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeResize.prototype.destroy = function() {\n\t this._guide.destroy();\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.timeGridView = this.baseController =\n\t this._getScheduleDataFunc = this._dragStart = this._guide = null;\n\t};\n\t\n\t/**\n\t * @param {HTMLElement} target - element to check condition.\n\t * @returns {object|boolean} - return time view instance or false\n\t */\n\tTimeResize.prototype.checkExpectCondition = function(target) {\n\t var container,\n\t matches;\n\t\n\t if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n\t return false;\n\t }\n\t\n\t container = domutil.closest(target, config.classname('.time-date'));\n\t\n\t if (!container) {\n\t return false;\n\t }\n\t\n\t matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.timeGridView.children.items, Number(matches[1]));\n\t};\n\t\n\t/**\n\t * @emits TimeResize#timeResizeDragstart\n\t * @param {object} dragStartEventData - event data of Drag#dragstart\n\t */\n\tTimeResize.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t timeView = this.checkExpectCondition(target),\n\t blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n\t getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!timeView || !blockElement) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n\t scheduleData = this._dragStart = getScheduleDataFunc(\n\t dragStartEventData.originEvent, {\n\t targetModelID: domutil.getData(blockElement, 'id')\n\t }\n\t );\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event TimeResize#timeResizeDragstart\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t */\n\t this.fire('timeResizeDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * Drag#drag event handler\n\t * @emits TimeResize#timeResizeDrag\n\t * @param {object} dragEventData - event data of Drag#drag custom event.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {function} [revise] - supply function for revise schedule data before emit.\n\t */\n\tTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t startScheduleData = this._dragStart,\n\t scheduleData;\n\t\n\t if (!getScheduleDataFunc || !startScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n\t targetModelID: startScheduleData.targetModelID\n\t });\n\t\n\t if (revise) {\n\t revise(scheduleData);\n\t }\n\t\n\t /**\n\t * @event TimeResize#timeResizeDrag\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t */\n\t this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * Update model instance by dragend event results.\n\t * @fires TimeResize#beforeUpdateSchedule\n\t * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n\t */\n\tTimeResize.prototype._updateSchedule = function(scheduleData) {\n\t var ctrl = this.baseController,\n\t modelID = scheduleData.targetModelID,\n\t range = scheduleData.nearestRange,\n\t timeDiff = range[1] - range[0],\n\t schedule = ctrl.schedules.items[modelID],\n\t relatedView = scheduleData.relatedView,\n\t dateEnd,\n\t newEnds,\n\t baseDate;\n\t\n\t if (!schedule) {\n\t return;\n\t }\n\t\n\t timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\t\n\t baseDate = new TZDate(relatedView.getDate());\n\t dateEnd = datetime.end(baseDate);\n\t newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n\t\n\t if (newEnds > dateEnd) {\n\t newEnds = new TZDate(dateEnd.getTime());\n\t }\n\t\n\t if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n\t newEnds = new TZDate(schedule.getStarts().getTime() + datetime.millisecondsFrom('minutes', 30));\n\t }\n\t\n\t /**\n\t * @event TimeResize#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: schedule.getStarts(),\n\t end: newEnds\n\t });\n\t};\n\t\n\t/**\n\t * Drag#dragEnd event handler\n\t * @emits TimeResize#timeResizeDragend\n\t * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n\t */\n\tTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n\t targetModelID: dragStart.targetModelID\n\t });\n\t\n\t scheduleData.range = [\n\t dragStart.timeY,\n\t scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n\t ];\n\t\n\t scheduleData.nearestRange = [\n\t dragStart.nearestGridTimeY,\n\t scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n\t ];\n\t\n\t this._updateSchedule(scheduleData);\n\t\n\t /**\n\t * @event TimeResize#timeResizeDragend\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t * @property {number[]} range - milliseconds range between drag start and end.\n\t * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n\t */\n\t this.fire('timeResizeDragend', scheduleData);\n\t\n\t this._getScheduleDataFunc = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * @emits TimeResize#timeResizeClick\n\t */\n\tTimeResize.prototype._onClick = function() {\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event TimeResize#timeResizeClick\n\t */\n\t this.fire('timeResizeClick');\n\t};\n\t\n\ttimeCore.mixin(TimeResize);\n\tutil.CustomEvents.mixin(TimeResize);\n\t\n\tmodule.exports = TimeResize;\n\t\n\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for Time.Resize effect while dragging.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar ratio = __webpack_require__(6).ratio;\n\t\n\t/**\n\t * Class for Time.Resize effect.\n\t * @constructor\n\t * @param {TimeResize} timeResize - the instance of TimeResize handler.\n\t */\n\tfunction TimeResizeGuide(timeResize) {\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.guideElement = null;\n\t\n\t /**\n\t * @type {TimeResize}\n\t */\n\t this.timeResize = timeResize;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._getTopFunc = null;\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._originScheduleElement = null;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startTopPixel = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startHeightPixel = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startGridY = 0;\n\t\n\t timeResize.on({\n\t 'timeResizeDragstart': this._onDragStart,\n\t 'timeResizeDrag': this._onDrag,\n\t 'timeResizeDragend': this._clearGuideElement,\n\t 'timeResizeClick': this._clearGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeResizeGuide.prototype.destroy = function() {\n\t this._clearGuideElement();\n\t this.timeResize.off(this);\n\t this.guideElement = this.timeResize = this._getTopFunc =\n\t this._originScheduleElement = this._startHeightPixel =\n\t this._startGridY = this._startTopPixel = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tTimeResizeGuide.prototype._clearGuideElement = function() {\n\t var guideElement = this.guideElement,\n\t originElement = this._originScheduleElement;\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('resizing'));\n\t }\n\t\n\t if (originElement) {\n\t originElement.style.display = 'block';\n\t }\n\t\n\t domutil.remove(guideElement);\n\t\n\t this.guideElement = this._getTopFunc = this._originScheduleElement =\n\t this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n\t};\n\t\n\t/**\n\t * Refresh guide element\n\t * @param {string} height - guide element's style height.\n\t */\n\tTimeResizeGuide.prototype._refreshGuideElement = function(height) {\n\t var guideElement = this.guideElement;\n\t\n\t if (!guideElement) {\n\t return;\n\t }\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t guideElement.style.height = height + 'px';\n\t guideElement.style.display = 'block';\n\t });\n\t};\n\t\n\t/**\n\t * TimeMove#timeMoveDragstart event handler\n\t * @param {object} dragStartEventData - dragstart event data\n\t */\n\tTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n\t var originElement = domutil.closest(\n\t dragStartEventData.target,\n\t config.classname('.time-date-schedule-block')\n\t ),\n\t guideElement;\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('resizing'));\n\t }\n\t\n\t if (!originElement) {\n\t return;\n\t }\n\t\n\t this._startGridY = dragStartEventData.nearestGridY;\n\t this._startHeightPixel = parseFloat(originElement.style.height);\n\t this._startTopPixel = parseFloat(originElement.style.top);\n\t\n\t this._originScheduleElement = originElement;\n\t guideElement = this.guideElement = originElement.cloneNode(true);\n\t domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\t\n\t originElement.style.display = 'none';\n\t dragStartEventData.relatedView.container.appendChild(guideElement);\n\t};\n\t\n\t/**\n\t * @param {object} dragEventData - event data from Drag#drag.\n\t */\n\tTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n\t var timeView = dragEventData.relatedView,\n\t viewOptions = timeView.options,\n\t viewHeight = timeView.getViewBound().height,\n\t hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n\t guideElement = this.guideElement,\n\t guideTop = parseFloat(guideElement.style.top),\n\t gridYOffset = dragEventData.nearestGridY - this._startGridY,\n\t // hourLength : viewHeight = gridYOffset : X;\n\t gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n\t minHeight,\n\t maxHeight,\n\t height;\n\t\n\t height = (this._startHeightPixel + gridYOffsetPixel);\n\t // at least large than 30min from schedule start time.\n\t minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n\t minHeight -= this._startTopPixel;\n\t // smaller than 24h\n\t maxHeight = viewHeight - guideTop;\n\t\n\t height = Math.max(height, minHeight);\n\t height = Math.min(height, maxHeight);\n\t\n\t this._refreshGuideElement(height);\n\t};\n\t\n\tmodule.exports = TimeResizeGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Layout view. wrap all view containers at outside.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar Collection = __webpack_require__(12);\n\tvar View = __webpack_require__(8);\n\t\n\t/**\n\t * Layout view for toggle each child view. It will controlled via navigation UI.\n\t * @constructor\n\t * @extends {View}\n\t * @param {HTMLElement} container Container element to use layout view.\n\t */\n\tfunction Layout(container) {\n\t container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.container = container;\n\t\n\t /*eslint-disable*/\n\t /**\n\t * @type {Collection} Child view collection.\n\t */\n\t this.children = new Collection(function(childView) {\n\t return childView.viewName;\n\t });\n\t /* eslint-enable*/\n\t}\n\t\n\tutil.inherit(Layout, View);\n\t\n\t/**\n\t * Clear child views.\n\t */\n\tLayout.prototype.clear = function() {\n\t this.children.each(function(childView) {\n\t childView.destroy();\n\t });\n\t\n\t this.children.clear();\n\t this.container.innerHTML = '';\n\t};\n\t\n\t/**\n\t * Remove child view.\n\t * @override\n\t * @param {(string|View)} viewName - name of view or instance.\n\t */\n\tLayout.prototype.removeChild = function(viewName) {\n\t this.children.remove(viewName);\n\t};\n\t\n\t/**\n\t * Toggle child views.\n\t * @param {string} viewName - Name of view.\n\t */\n\tLayout.prototype.toggleChildView = function(viewName) {\n\t var container,\n\t prefix = ['add', 'remove'],\n\t flag;\n\t\n\t this.children.each(function(childView) {\n\t container = childView.container;\n\t flag = Number(childView.viewName === viewName);\n\t domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n\t });\n\t};\n\t\n\tmodule.exports = Layout;\n\t\n\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t datetime = __webpack_require__(4),\n\t domutil = __webpack_require__(2),\n\t TZDate = __webpack_require__(5).Date,\n\t tmpl = __webpack_require__(34),\n\t View = __webpack_require__(8),\n\t VLayout = __webpack_require__(24),\n\t WeekdayInMonth = __webpack_require__(98);\n\tvar mmin = Math.min;\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options\n\t * @param {function} [options.scheduleFilter] - schedule filter\n\t * @param {number} [options.startDayOfWeek=0] - start day of week\n\t * @param {string} [options.renderMonth='2015-12'] - render month\n\t * @param {string[]} [options.daynames] - daynames to use upside of month view\n\t * @param {HTMLElement} container - container element\n\t * @param {Base.Month} controller - controller instance\n\t */\n\tfunction Month(options, container, controller) {\n\t View.call(this, container);\n\t\n\t /**\n\t * @type {Base.Month}\n\t */\n\t this.controller = controller;\n\t\n\t /**\n\t * @type {VLayout}\n\t */\n\t this.vLayout = new VLayout({\n\t panels: [\n\t {height: 42},\n\t {autoHeight: true}\n\t ]\n\t }, container);\n\t\n\t /**\n\t * @type {string}\n\t */\n\t this.options = util.extend({\n\t scheduleFilter: function(schedule) {\n\t return Boolean(schedule.isVisible);\n\t },\n\t startDayOfWeek: 0,\n\t renderMonth: '2018-01',\n\t daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n\t narrowWeekend: false,\n\t visibleWeeksCount: null,\n\t grid: {\n\t header: {\n\t height: 34\n\t },\n\t footer: {\n\t height: 34\n\t }\n\t }\n\t }, options);\n\t\n\t this.options.grid.header = util.extend({\n\t height: 34\n\t }, util.pick(options, 'grid', 'header'));\n\t this.options.grid.footer = util.extend({\n\t height: 34\n\t }, util.pick(options, 'grid', 'footer'));\n\t\n\t /**\n\t * horizontal grid information\n\t * @type {Object}\n\t */\n\t this.grids = datetime.getGridLeftAndWidth(\n\t this.options.daynames.length,\n\t this.options.narrowWeekend,\n\t this.options.startDayOfWeek);\n\t}\n\t\n\tutil.inherit(Month, View);\n\t\n\t/**\n\t * Name of view. for managing subview at layout view\n\t * @type {string}\n\t */\n\tMonth.prototype.viewName = 'month';\n\t\n\t/**\n\t * Get calendar array by supplied date\n\t * @param {string} renderMonthStr - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n\t * @returns {array.} calendar array\n\t */\n\tMonth.prototype._getMonthCalendar = function(renderMonthStr) {\n\t var date = datetime.parse(renderMonthStr) || datetime.parse(renderMonthStr + '-01');\n\t var startDayOfWeek = this.options.startDayOfWeek || 0;\n\t var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n\t var workweek = this.options.workweek || false;\n\t var datetimeOptions, calendar;\n\t\n\t if (this.options.visibleWeeksCount) {\n\t datetimeOptions = {\n\t startDayOfWeek: startDayOfWeek,\n\t isAlways6Week: false,\n\t visibleWeeksCount: visibleWeeksCount,\n\t workweek: workweek\n\t };\n\t } else {\n\t datetimeOptions = {\n\t startDayOfWeek: startDayOfWeek,\n\t isAlways6Week: true,\n\t workweek: workweek\n\t };\n\t }\n\t\n\t calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\t\n\t return calendar;\n\t};\n\t\n\t/**\n\t * Create children view (week) and add children\n\t * @param {HTMLElement} container - container element to render weeks\n\t * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n\t */\n\tMonth.prototype._renderChildren = function(container, calendar) {\n\t var self = this;\n\t var weekCount = calendar.length;\n\t var heightPercent = 100 / weekCount;\n\t var opt = this.options;\n\t var renderMonth = opt.renderMonth;\n\t var narrowWeekend = opt.narrowWeekend;\n\t var startDayOfWeek = opt.startDayOfWeek;\n\t var visibleWeeksCount = opt.visibleWeeksCount;\n\t var visibleScheduleCount = opt.visibleScheduleCount;\n\t var gridOption = opt.grid;\n\t\n\t container.innerHTML = '';\n\t this.children.clear();\n\t\n\t util.forEach(calendar, function(weekArr) {\n\t var start = new TZDate(Number(weekArr[0])),\n\t end = new TZDate(Number(weekArr[weekArr.length - 1])),\n\t weekdayViewContainer,\n\t weekdayView;\n\t\n\t weekdayViewContainer = domutil.appendHTMLElement(\n\t 'div', container, config.classname('month-week-item'));\n\t\n\t weekdayView = new WeekdayInMonth({\n\t renderMonth: renderMonth,\n\t heightPercent: heightPercent,\n\t renderStartDate: datetime.format(start, 'YYYY-MM-DD'),\n\t renderEndDate: datetime.format(end, 'YYYY-MM-DD'),\n\t narrowWeekend: narrowWeekend,\n\t startDayOfWeek: startDayOfWeek,\n\t visibleWeeksCount: visibleWeeksCount,\n\t visibleScheduleCount: visibleScheduleCount,\n\t grid: gridOption\n\t }, weekdayViewContainer);\n\t\n\t self.addChild(weekdayView);\n\t });\n\t};\n\t\n\t/**\n\t * Render month view\n\t * @override\n\t */\n\tMonth.prototype.render = function() {\n\t var opt = this.options,\n\t vLayout = this.vLayout,\n\t controller = this.controller,\n\t daynames = opt.daynames,\n\t workweek = opt.workweek,\n\t calendar = this._getMonthCalendar(opt.renderMonth),\n\t scheduleFilter = opt.scheduleFilter,\n\t grids,\n\t daynameViewModel,\n\t baseViewModel;\n\t\n\t grids = this.grids = datetime.getGridLeftAndWidth(\n\t opt.daynames.length,\n\t opt.narrowWeekend,\n\t opt.startDayOfWeek\n\t );\n\t\n\t daynameViewModel = util.map(\n\t util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n\t function(day, index) {\n\t return {\n\t day: day,\n\t label: daynames[day],\n\t width: grids[index] ? grids[index].width : 0,\n\t left: grids[index] ? grids[index].left : 0\n\t };\n\t }\n\t );\n\t\n\t if (workweek) {\n\t grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\t\n\t daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n\t return !datetime.isWeekend(daynameModel.day);\n\t });\n\t\n\t util.forEach(daynameViewModel, function(daynameModel, index) {\n\t daynameModel.width = grids[index] ? grids[index].width : 0;\n\t daynameModel.left = grids[index] ? grids[index].left : 0;\n\t });\n\t }\n\t\n\t baseViewModel = {\n\t daynames: daynameViewModel\n\t };\n\t\n\t vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\t\n\t this._renderChildren(vLayout.panels[1].container, calendar);\n\t\n\t this.children.each(function(childView) {\n\t var start = datetime.parse(childView.options.renderStartDate);\n\t var end = datetime.parse(childView.options.renderEndDate);\n\t var eventsInDateRange = controller.findByDateRange(\n\t datetime.start(start),\n\t datetime.end(end),\n\t scheduleFilter\n\t );\n\t var dateRange = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY);\n\t var viewModel = {\n\t eventsInDateRange: eventsInDateRange,\n\t range: dateRange.slice(0, grids.length),\n\t grids: grids\n\t };\n\t\n\t childView.render(viewModel);\n\t });\n\t};\n\t\n\tmodule.exports = Month;\n\t\n\n\n/***/ },\n/* 97 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Floating layer for displaying schedule in specific date\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar OUT_PADDING = 5;\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domevent = __webpack_require__(9),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8),\n\t FloatingLayer = __webpack_require__(16),\n\t common = __webpack_require__(6),\n\t tmpl = __webpack_require__(35);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options\n\t * @param {object} [options.moreLayerSize] - more layer size\n\t * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n\t * The default value 'null' is to fit a grid cell.\n\t * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n\t * The default value 'null' is to fit a grid cell.\n\t * @param {HTMLElement} container = container element\n\t */\n\tfunction More(options, container) {\n\t View.call(this, container);\n\t\n\t /**\n\t * @type {FloatingLayer}\n\t */\n\t this.layer = new FloatingLayer(null, container);\n\t\n\t /**\n\t * cached view model\n\t * @type {object}\n\t */\n\t this._viewModel = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t moreLayerSize: {\n\t width: null,\n\t height: null\n\t }\n\t }, options);\n\t\n\t domevent.on(container, 'click', this._onClick, this);\n\t}\n\t\n\tutil.inherit(More, View);\n\t\n\t/**\n\t * Click event handler for close button\n\t * @param {MouseEvent} clickEvent - mouse event object\n\t */\n\tMore.prototype._onClick = function(clickEvent) {\n\t var target = (clickEvent.target || clickEvent.srcElement);\n\t var className = config.classname('month-more-close');\n\t\n\t if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n\t return;\n\t }\n\t\n\t this.hide();\n\t};\n\t\n\t/**\n\t * Mousedown event handler for hiding more layer when user mousedown outside of\n\t * layer\n\t * @param {MouseEvent} mouseDownEvent - mouse event object\n\t */\n\tMore.prototype._onMouseDown = function(mouseDownEvent) {\n\t var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n\t moreLayer = domutil.closest(target, config.classname('.month-more'));\n\t\n\t if (moreLayer) {\n\t return;\n\t }\n\t\n\t this.hide();\n\t};\n\t\n\t/**\n\t * Get new position for more layer by +n element itself\n\t * @param {HTMLElement} target - parent grid-line element of +n element\n\t * @param {HTMLElement} weekItem - weekItem container element\n\t * @returns {number[]} new position of more layer\n\t */\n\tMore.prototype._getRenderPosition = function(target, weekItem) {\n\t var pos = domevent.getMousePosition({\n\t clientX: domutil.getPosition(target)[0],\n\t clientY: domutil.getPosition(weekItem)[1]\n\t }, this.container);\n\t var containerSize = domutil.getSize(this.container);\n\t var left = pos[0] - OUT_PADDING;\n\t var top = pos[1] - OUT_PADDING;\n\t\n\t left = common.ratio(containerSize[0], 100, left) + '%';\n\t top = common.ratio(containerSize[1], 100, top) + '%';\n\t\n\t return [left, top];\n\t};\n\t\n\t/**\n\t * @override\n\t */\n\tMore.prototype.destroy = function() {\n\t this.layer.destroy();\n\t this.layer = null;\n\t domevent.off(this.container, 'click', this._onClick, this);\n\t domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n\t View.prototype.destroy.call(this);\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel - view model from factory/monthView\n\t */\n\tMore.prototype.render = function(viewModel) {\n\t var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n\t var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n\t var layer = this.layer;\n\t var self = this;\n\t var pos = this._getRenderPosition(target, weekItem);\n\t var height = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n\t var width = target.offsetWidth + (OUT_PADDING * 2);\n\t var optMoreLayerSize = this.options.moreLayerSize;\n\t this._viewModel = viewModel;\n\t\n\t if (optMoreLayerSize.width) {\n\t width = optMoreLayerSize.width;\n\t }\n\t\n\t if (optMoreLayerSize.height) {\n\t height = optMoreLayerSize.height;\n\t }\n\t\n\t layer.setContent(tmpl(viewModel));\n\t if (weekItem.parentElement.lastElementChild === weekItem) {\n\t layer.setLTRB({\n\t left: pos[0],\n\t bottom: 0\n\t });\n\t layer.setSize(width, '');\n\t } else {\n\t layer.setPosition(pos[0], pos[1]);\n\t layer.setSize(width, height);\n\t }\n\t\n\t layer.show();\n\t\n\t util.debounce(function() {\n\t domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n\t })();\n\t};\n\t\n\t/**\n\t * Hide layer\n\t */\n\tMore.prototype.hide = function() {\n\t this.layer.hide();\n\t domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n\t};\n\t\n\t/**\n\t * refresh layer\n\t */\n\tMore.prototype.refresh = function() {\n\t if (this._viewModel) {\n\t this.layer.setContent(tmpl(this._viewModel));\n\t }\n\t};\n\t\n\tmodule.exports = More;\n\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Monthday in month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8),\n\t Weekday = __webpack_require__(30),\n\t baseTmpl = __webpack_require__(36),\n\t scheduleTmpl = __webpack_require__(37);\n\tvar mfloor = Math.floor,\n\t mmin = Math.min;\n\t\n\t/**\n\t * @constructor\n\t * @extends {Weekday}\n\t * @param {object} options - options for WeekdayInWeek view\n\t * @param {number} [options.heightPercent] - height percent of view\n\t * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n\t * make create easy.\n\t * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n\t * @param {HTMLDIVElement} container - DOM element to use container for this\n\t * view.\n\t */\n\tfunction WeekdayInMonth(options, container) {\n\t Weekday.call(this, options, container);\n\t container.style.height = options.heightPercent + '%';\n\t}\n\t\n\tutil.inherit(WeekdayInMonth, Weekday);\n\t\n\t/**\n\t * Get schedule container element's bound properly by override\n\t *\n\t * View#getViewBound.\n\t * @override\n\t */\n\tWeekdayInMonth.prototype.getViewBound = function() {\n\t var bound = View.prototype.getViewBound.call(this);\n\t\n\t return bound;\n\t};\n\t\n\t/**\n\t * Get limit index of schedule block in current view\n\t * @returns {number} limit index\n\t */\n\tWeekdayInMonth.prototype._getRenderLimitIndex = function() {\n\t var opt = this.options;\n\t var containerHeight = this.getViewBound().height;\n\t var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n\t var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n\t var visibleScheduleCount = opt.visibleScheduleCount || 0;\n\t var count;\n\t\n\t containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\t\n\t count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\t\n\t if (!visibleScheduleCount) {\n\t visibleScheduleCount = count;\n\t }\n\t\n\t return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel - schedules view models\n\t */\n\tWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n\t var opt = this.options,\n\t gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n\t gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n\t renderLimitIdx = this._getRenderLimitIndex(),\n\t exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range);\n\t var baseViewModel;\n\t\n\t viewModel = util.extend({\n\t exceedDate: exceedDate\n\t }, viewModel);\n\t\n\t baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\t\n\t baseViewModel = util.extend({\n\t matrices: viewModel.eventsInDateRange,\n\t gridHeaderHeight: gridHeaderHeight,\n\t gridFooterHeight: gridFooterHeight,\n\t renderLimitIdx: renderLimitIdx + 1\n\t }, baseViewModel);\n\t\n\t return baseViewModel;\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel - schedules view models\n\t */\n\tWeekdayInMonth.prototype.render = function(viewModel) {\n\t var container = this.container,\n\t baseViewModel = this.getBaseViewModel(viewModel),\n\t scheduleContainer,\n\t contentStr = '';\n\t\n\t if (!this.options.visibleWeeksCount) {\n\t setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth);\n\t }\n\t\n\t container.innerHTML = baseTmpl(baseViewModel);\n\t\n\t scheduleContainer = domutil.find(\n\t config.classname('.weekday-schedules'),\n\t container\n\t );\n\t\n\t if (!scheduleContainer) {\n\t return;\n\t }\n\t\n\t contentStr += scheduleTmpl(baseViewModel);\n\t\n\t scheduleContainer.innerHTML = contentStr;\n\t\n\t common.setAutoEllipsis(\n\t config.classname('.weekday-schedule-title'),\n\t container\n\t );\n\t};\n\t\n\tWeekdayInMonth.prototype._beforeDestroy = function() {\n\t};\n\t\n\t/**\n\t * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n\t * @param {Array} dates - 날짜정보 배열\n\t * @param {string} renderMonthStr - 현재 렌더링중인 월 (YYYYMM)\n\t */\n\tfunction setIsOtherMonthFlag(dates, renderMonthStr) {\n\t var renderMonth = Number(renderMonthStr.substring(5));\n\t\n\t util.forEach(dates, function(dateObj) {\n\t dateObj.isOtherMonth = dateObj.month !== renderMonth;\n\t });\n\t}\n\t\n\tmodule.exports = WeekdayInMonth;\n\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint complexity: 0 */\n\t/**\n\t * @fileoverview Helpers for handlebar templates.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar Handlebars = __webpack_require__(21);\n\tvar datetime = __webpack_require__(4);\n\tvar common = __webpack_require__(6);\n\tvar config = __webpack_require__(3);\n\t\n\t/**\n\t * Get CSS syntax for element size\n\t * @param {number} value - size value to apply element\n\t * @param {string} postfix - postfix string ex) px, em, %\n\t * @param {string} prefix - property name ex) width, height\n\t * @returns {string} CSS syntax\n\t */\n\tfunction getElSize(value, postfix, prefix) {\n\t prefix = prefix || '';\n\t if (util.isNumber(value)) {\n\t return prefix + ':' + value + postfix;\n\t }\n\t\n\t return prefix + ':auto';\n\t}\n\t\n\t/**\n\t * Get element left based on narrowWeekend\n\t * @param {object} viewModel - view model\n\t * @param {Array} grids - dates information\n\t * @returns {number} element left\n\t */\n\tfunction getElLeft(viewModel, grids) {\n\t return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n\t}\n\t\n\t/**\n\t * Get element width based on narrowWeekend\n\t * @param {object} viewModel - view model\n\t * @param {Array} grids - dates information\n\t * @returns {number} element width\n\t */\n\tfunction getElWidth(viewModel, grids) {\n\t var width = 0;\n\t var i = 0;\n\t var length = grids.length;\n\t var left;\n\t for (; i < viewModel.width; i += 1) {\n\t left = (viewModel.left + i) % length;\n\t left += parseInt((viewModel.left + i) / length, 10);\n\t if (left < length) {\n\t width += grids[left] ? grids[left].width : 0;\n\t }\n\t }\n\t\n\t return width;\n\t}\n\t\n\tHandlebars.registerHelper({\n\t /**\n\t * Stamp supplied object\n\t *\n\t * Commonly use for rendering object's unique ID to rendered view\n\t * @param {object} obj - object to stamp\n\t * @returns {number} stamp value\n\t */\n\t 'stamp': function(obj) {\n\t return util.stamp(obj);\n\t },\n\t\n\t /**\n\t * Whether supplied object are equal?\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {boolean} result of operation\n\t */\n\t 'equal': function(a, b) {\n\t return a === b;\n\t },\n\t\n\t /**\n\t * OR\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {boolean} or\n\t */\n\t 'or': function(a, b) {\n\t return a || b;\n\t },\n\t\n\t /**\n\t * Compare object or apply logical operation by customizable oper parameter\n\t * @param {*} a - a\n\t * @param {string} oper - operator ex) '==', '<'\n\t * @param {*} b - b\n\t * @param {Handlebars} options - handlebar options\n\t * @returns {boolean} result of operation\n\t */\n\t 'fi': function(a, oper, b, options) {\n\t switch (oper) {\n\t case '==':\n\t return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n\t case '===':\n\t return (a === b) ? options.fn(this) : options.inverse(this);\n\t case '!==':\n\t return (a !== b) ? options.fn(this) : options.inverse(this);\n\t case '<':\n\t return (a < b) ? options.fn(this) : options.inverse(this);\n\t case '||':\n\t return (a || b) ? options.fn(this) : options.inverse(this);\n\t default:\n\t throw new Error('Not match operation');\n\t }\n\t },\n\t\n\t /**\n\t * Get hhmm formatted time str\n\t * @param {Date} date - date object\n\t * @returns {string} formatted value\n\t */\n\t 'hhmm': function(date) {\n\t return datetime.format(date, 'HH:mm');\n\t },\n\t\n\t /**\n\t * Get `width` stylesheet string\n\t * @param {number} width - width percentage\n\t * @returns {string} css style part\n\t */\n\t 'common-width': function(width) {\n\t return getElSize(width, '%', 'width');\n\t },\n\t\n\t /**\n\t * Get element left based on narrowWeekend\n\t * @param {object} viewModel - view model\n\t * @param {Array} grids - dates information\n\t * @returns {number} element left\n\t */\n\t 'grid-left': function(viewModel, grids) {\n\t return getElLeft(viewModel, grids);\n\t },\n\t\n\t /**\n\t * Get element width based on narrowWeekend\n\t * @param {object} viewModel - view model\n\t * @param {Array} grids - dates information\n\t * @returns {number} element width\n\t */\n\t 'grid-width': function(viewModel, grids) {\n\t return getElWidth(viewModel, grids);\n\t },\n\t\n\t /**\n\t * Use in time.hbs\n\t * @param {ScheduleViewModel} viewModel viewModel\n\t * @returns {string} element size css class\n\t */\n\t 'time-scheduleBlock': function(viewModel) {\n\t var top = getElSize(viewModel.top, 'px', 'top'),\n\t left = getElSize(viewModel.left, '%', 'left'),\n\t width = getElSize(viewModel.width, '%', 'width'),\n\t height = getElSize(viewModel.height, 'px', 'height');\n\t\n\t return [top, left, width, height].join(';');\n\t },\n\t\n\t 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n\t var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n\t var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n\t var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n\t var height = getElSize(viewModel.height, 'px', 'height');\n\t\n\t return [top, left, width, height].join(';');\n\t },\n\t\n\t 'holiday': function(day) {\n\t var cssClass = '';\n\t\n\t if (day === 0) {\n\t cssClass = config.classname('holiday-sun');\n\t }\n\t\n\t if (day === 6) {\n\t cssClass = config.classname('holiday-sat');\n\t }\n\t\n\t return cssClass;\n\t },\n\t\n\t /**\n\t * Add supplied two parameter\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {number} result of operation\n\t */\n\t 'add': function(a, b) {\n\t return a + b;\n\t },\n\t\n\t /**\n\t * Multiply supplied two parameter\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {number} result of operation\n\t */\n\t 'multiply': function(a, b) {\n\t return a * b;\n\t },\n\t\n\t /**\n\t * Divide supplied two parameter\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {number} result of operation\n\t */\n\t 'divide': function(a, b) {\n\t return a / b;\n\t },\n\t\n\t /**\n\t * Subtract supplied two parameter\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {number} result of operation\n\t */\n\t 'subtract': function(a, b) {\n\t return a - b;\n\t },\n\t\n\t /**\n\t * Get css prefix in global configuration\n\t * @returns {string} css prefix\n\t */\n\t 'CSS_PREFIX': function() {\n\t return config.cssPrefix;\n\t },\n\t\n\t /**********\n\t * Default schedule template\n\t **********/\n\t\n\t 'milestone-tmpl': function(model) {\n\t return ' ' +\n\t common.stripTags(model.title);\n\t },\n\t\n\t 'milestoneTitle-tmpl': function() {\n\t return '마일스톤';\n\t },\n\t\n\t 'task-tmpl': function(model) {\n\t return ' ' +\n\t common.stripTags(model.title);\n\t },\n\t\n\t 'taskTitle-tmpl': function() {\n\t return '업무';\n\t },\n\t\n\t 'alldayTitle-tmpl': function() {\n\t return '종일';\n\t },\n\t\n\t 'alldayCollapseBtnTitle-tmpl': function() {\n\t return '∧';\n\t },\n\t\n\t 'allday-tmpl': function(model) {\n\t return common.stripTags(model.title);\n\t },\n\t\n\t 'time-tmpl': function(model) {\n\t return common.stripTags(model.title);\n\t },\n\t\n\t 'monthMoreTitleDate-tmpl': function(date) {\n\t return date;\n\t },\n\t\n\t 'monthMoreClose-tmpl': function() {\n\t return 'close';\n\t },\n\t\n\t 'monthGridHeader-tmpl': function(model) {\n\t return '' + model.date + '';\n\t },\n\t\n\t /* eslint no-unused-vars: 0 */\n\t 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n\t return '';\n\t },\n\t\n\t 'monthGridFooter-tmpl': function() {\n\t return '';\n\t },\n\t\n\t /* eslint no-unused-vars: 0 */\n\t 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n\t return '';\n\t },\n\t\n\t 'weekDayname-tmpl': function(model) {\n\t return '' + model.date + ' ' + model.dayName;\n\t },\n\t\n\t 'monthDayname-tmpl': function(model) {\n\t return model.label;\n\t },\n\t\n\t 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n\t return '+' + hiddenSchedules;\n\t }\n\t});\n\n\n/***/ },\n/* 100 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View of allday schedule container inside of Week view.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8),\n\t WeekdayInWeek = __webpack_require__(29),\n\t tmpl = __webpack_require__(38);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options The object for view customization.\n\t * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n\t * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n\t * @param {number} [options.height=60] - minimum height of schedule container element.\n\t * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n\t * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n\t * @param {HTMLElement} container Container element.\n\t * @param {object} aboutMe allday panel name and height\n\t */\n\tfunction Allday(options, container, aboutMe) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('allday-container')\n\t );\n\t\n\t /**\n\t * rendering options.\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t title: 'All-day',\n\t renderStartDate: '',\n\t renderEndDate: '',\n\t containerBottomGutter: 18,\n\t scheduleHeight: 18,\n\t scheduleGutter: 2,\n\t scheduleContainerTop: 1,\n\t getViewModelFunc: function(viewModel) {\n\t return viewModel.schedulesInDateRange.allday;\n\t }\n\t }, options);\n\t\n\t /**\n\t * height of content\n\t */\n\t this.contentHeight = 0;\n\t\n\t this.viewType = options.alldayViewType || 'scroll';\n\t this.collapsed = (this.viewType === 'toggle');\n\t this.aboutMe = util.extend(\n\t aboutMe, {\n\t name: 'allday'\n\t }\n\t );\n\t\n\t this.maxScheduleInDay = 0;\n\t\n\t View.call(this, container);\n\t}\n\t\n\tutil.inherit(Allday, View);\n\t\n\t/**\n\t * create month week view model for render allday schedules in top of week views.\n\t * @override\n\t * @param {object} viewModel - viewModel from parent views.\n\t */\n\tAllday.prototype.render = function(viewModel) {\n\t var container = this.container;\n\t var scheduleContainerTop = this.options.scheduleContainerTop;\n\t var self = this;\n\t var weekdayView;\n\t\n\t container.innerHTML = tmpl(this.options);\n\t\n\t this.children.clear();\n\t\n\t weekdayView = new WeekdayInWeek(\n\t this.options,\n\t domutil.find(config.classname('.weekday-container'), container),\n\t this.aboutMe\n\t );\n\t weekdayView.collapsed = this.collapsed;\n\t weekdayView.on('afterRender', function(weekdayViewModel) {\n\t self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n\t self.maxScheduleInDay = weekdayViewModel.maxScheduleInDay;\n\t });\n\t\n\t this.addChild(weekdayView);\n\t\n\t this.children.each(function(childView) {\n\t childView.collapsed = this.collapsed;\n\t childView.render(viewModel);\n\t }, this);\n\t\n\t this.fire('afterRender', viewModel);\n\t};\n\t\n\tAllday.prototype.getExpandMaxHeight = function() {\n\t var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n\t var maxExpandCount = this.aboutMe.maxExpandCount;\n\t\n\t if (this.maxScheduleInDay > maxExpandCount) {\n\t return scheduleHeight * (maxExpandCount + 0.5);\n\t }\n\t\n\t return scheduleHeight * maxExpandCount;\n\t};\n\t\n\tmodule.exports = Allday;\n\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View for rendering daynames\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar domutil = __webpack_require__(2);\n\tvar View = __webpack_require__(8);\n\tvar daynameTmpl = __webpack_require__(39);\n\t\n\t/**\n\t * @constructor\n\t * @param {object} options - options for dayname view\n\t * @param {HTMLElement} container Container element to use.\n\t * @extends {View}\n\t */\n\tfunction DayName(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('dayname-container')\n\t );\n\t\n\t this.options = util.extend({\n\t daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n\t }, options);\n\t\n\t View.call(this, container);\n\t}\n\t\n\tutil.inherit(DayName, View);\n\t\n\t/**\n\t * Get default viewmodels.\n\t * @param {Date} start The date of start render\n\t * @param {Date} end The end of end render\n\t * @param {object} grids grid data(width, left, day)\n\t * @returns {array} viewmodel.\n\t */\n\tDayName.prototype._getBaseViewModel = function(start, end, grids) {\n\t var daynames = this.options.daynames,\n\t viewModel;\n\t\n\t viewModel = util.map(datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t ), function(d, i) {\n\t var day = d.getDay();\n\t\n\t return {\n\t day: day,\n\t dayName: daynames[day],\n\t isToday: datetime.isSameDate(d, new TZDate()),\n\t date: d.getDate(),\n\t left: grids[i] ? grids[i].left : 0,\n\t width: grids[i] ? grids[i].width : 0,\n\t renderDate: datetime.format(d, 'YYYY-MM-DD')\n\t };\n\t });\n\t\n\t return viewModel;\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel View model from parent (WeekView)\n\t */\n\tDayName.prototype.render = function(viewModel) {\n\t var _viewModel = this._getBaseViewModel(\n\t viewModel.renderStartDate,\n\t viewModel.renderEndDate,\n\t viewModel.grids\n\t );\n\t\n\t this.container.innerHTML = daynameTmpl(_viewModel);\n\t};\n\t\n\tmodule.exports = DayName;\n\n\n/***/ },\n/* 102 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview 마일스톤 뷰\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar View = __webpack_require__(8);\n\tvar tmpl = __webpack_require__(40);\n\t\n\t// item height + gutter (defined in css)\n\tvar ITEM_HEIGHT = 17;\n\t\n\t// list padding-top (defined in css)\n\tvar LIST_PADDING_TOP = 1;\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options\n\t * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n\t * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n\t * @param {number} [options.minHeight=52] - min-height of milestone view\n\t * @param {number} [options.lineHeight=12] - line height of milestone view\n\t * @param {HTMLElement} container - container element\n\t */\n\tfunction Milestone(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('milestone-container')\n\t );\n\t\n\t View.call(this, container);\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t renderStartDate: '',\n\t renderEndDate: ''\n\t }, options);\n\t}\n\t\n\tutil.inherit(Milestone, View);\n\t\n\t/**\n\t * Get base viewmodel for task view\n\t * @param {object} [viewModel] - view model from parent view\n\t * @returns {object} view model for task view\n\t */\n\tMilestone.prototype._getBaseViewModel = function(viewModel) {\n\t var schedules = {},\n\t range = viewModel.range,\n\t height,\n\t today = datetime.format(new TZDate(), 'YYYY-MM-DD'),\n\t viewModelSchedules = util.pick(viewModel.schedulesInDateRange, 'milestone'),\n\t grids = viewModel.grids,\n\t i = 0;\n\t\n\t // 일정이 없는 경우라도 빈 객체를 생성\n\t util.forEach(range, function(d) {\n\t schedules[datetime.format(d, 'YYYY-MM-DD')] = {length: 0};\n\t });\n\t\n\t util.extend(schedules, viewModelSchedules);\n\t\n\t util.forEach(schedules, function(schedule, key) {\n\t schedule.isToday = (key === today);\n\t schedule.left = grids[i] ? grids[i].left : 0;\n\t schedule.width = grids[i] ? grids[i].width : 0;\n\t i += 1;\n\t });\n\t\n\t height = LIST_PADDING_TOP;\n\t height += Math.max.apply(null, util.map(schedules, function(coll) {\n\t return coll.length;\n\t })) * ITEM_HEIGHT;\n\t\n\t return {\n\t schedules: schedules,\n\t height: height\n\t };\n\t};\n\t\n\t/**\n\t * 마일스톤 뷰 렌더링\n\t * @override\n\t */\n\tMilestone.prototype.render = function(viewModel) {\n\t var container = this.container,\n\t baseViewModel = this._getBaseViewModel(viewModel);\n\t\n\t container.style.minHeight = this.options.minHeight + 'px';\n\t container.innerHTML = tmpl(baseViewModel);\n\t\n\t util.forEach(domutil.find('li', container, true), function(el) {\n\t if (el.offsetWidth < el.scrollWidth) {\n\t el.setAttribute('title', domutil.getData(el, 'title'));\n\t }\n\t });\n\t\n\t this.fire('afterRender', baseViewModel);\n\t};\n\t\n\tmodule.exports = Milestone;\n\t\n\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Task view for upper area of Week view.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8),\n\t WeekdayInWeek = __webpack_require__(29),\n\t tmpl = __webpack_require__(41);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options for TaskView\n\t * @param {string} options.renderStartDate - start date of this view's render date. YYYY-MM-DD\n\t * @param {string} options.renderEndDate - end date of this view's render date. YYYY-MM-DD\n\t * @param {number} [options.height=60] - minimum height of schedule container element.\n\t * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n\t * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n\t \n\t * @param {HTMLElement} container - container element\n\t */\n\tfunction TaskView(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('task-container')\n\t );\n\t\n\t /**\n\t * rendering options.\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t title: 'task',\n\t renderStartDate: '',\n\t renderEndDate: '',\n\t containerBottomGutter: 18,\n\t scheduleHeight: 18,\n\t scheduleGutter: 2,\n\t scheduleContainerTop: 1,\n\t getViewModelFunc: function(viewModel) {\n\t return viewModel.schedulesInDateRange.task;\n\t }\n\t }, options);\n\t\n\t /**\n\t * height of content\n\t */\n\t this.contentHeight = 0;\n\t\n\t View.call(this, container);\n\t}\n\t\n\tutil.inherit(TaskView, View);\n\t\n\t/**\n\t * 업무 뷰 렌더링\n\t * @override\n\t */\n\tTaskView.prototype.render = function(viewModel) {\n\t var container = this.container;\n\t var scheduleContainerTop = this.options.scheduleContainerTop;\n\t var self = this;\n\t var weekdayView;\n\t\n\t container.innerHTML = tmpl(this.options);\n\t\n\t this.children.clear();\n\t\n\t weekdayView = new WeekdayInWeek(\n\t this.options,\n\t domutil.find(config.classname('.weekday-container'), container)\n\t );\n\t weekdayView.on('afterRender', function(weekdayViewModel) {\n\t self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n\t });\n\t\n\t this.addChild(weekdayView);\n\t\n\t this.children.each(function(childView) {\n\t childView.render(viewModel);\n\t });\n\t\n\t this.fire('afterRender', viewModel);\n\t};\n\t\n\tmodule.exports = TaskView;\n\t\n\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View of time.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar View = __webpack_require__(8);\n\tvar timeTmpl = __webpack_require__(42);\n\t\n\tvar forEachArr = util.forEachArray;\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options Options\n\t * @param {number} options.index Date index in week view.\n\t * @param {number} options.width Date element width (percent)\n\t * @param {string} options.ymd YYYMMDD string for this view\n\t * @param {boolean} options.isToday when set true then assign today design class to container.\n\t * @param {number} options.hourStart Can limit of render hour start.\n\t * @param {number} options.hourEnd Can limit of render hour end.\n\t * @param {HTMLElement} container Element to use container for this view.\n\t */\n\tfunction Time(options, container) {\n\t View.call(this, container);\n\t\n\t this.options = util.extend({\n\t index: 0,\n\t width: 0,\n\t ymd: '',\n\t isToday: false,\n\t pending: false,\n\t hourStart: 0,\n\t hourEnd: 24,\n\t defaultMarginBottom: 2,\n\t minHeight: 18.5\n\t }, options);\n\t\n\t this.timeTmpl = timeTmpl;\n\t container.style.width = options.width + '%';\n\t container.style.left = options.left + '%';\n\t\n\t if (this.options.isToday) {\n\t domutil.addClass(this.container, config.classname('today'));\n\t }\n\t}\n\t\n\tutil.inherit(Time, View);\n\t\n\t/**\n\t * Convert YYYYMMDD formatted string date to Date.\n\t * @param {string} str formatted string.\n\t * @returns {Date} start of date.\n\t */\n\tTime.prototype._parseDateGroup = function(str) {\n\t var y = parseInt(str.substr(0, 4), 10),\n\t m = parseInt(str.substr(4, 2), 10),\n\t d = parseInt(str.substr(6, 2), 10);\n\t\n\t return new TZDate(y, m - 1, d);\n\t};\n\t\n\t/**\n\t * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n\t * @param {object} options - options for calculating schedule element's bound.\n\t * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n\t * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n\t * @param {number} options.baseHeight - pixel value related with baseMS options.\n\t * @param {number[]} options.baseLeft - left position percents for each columns.\n\t * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n\t * @param {number} options.columnIndex - the number index of schedule blocks.\n\t * it represent rendering index from left sides in view.\n\t * @returns {object} bound object for supplied view model.\n\t */\n\tTime.prototype.getScheduleViewBound = function(viewModel, options) {\n\t var baseMS = options.baseMS;\n\t var baseHeight = options.baseHeight;\n\t var cropped = false;\n\t var offsetStart, width, height, top;\n\t var isReadOnly = util.pick(viewModel, 'model', 'isReadOnly') || false;\n\t\n\t offsetStart = viewModel.valueOf().start - options.todayStart;\n\t\n\t // containerHeight : milliseconds in day = x : schedule's milliseconds\n\t top = (baseHeight * offsetStart) / baseMS;\n\t height = (baseHeight * viewModel.duration()) / baseMS;\n\t width = options.baseWidth * (viewModel.extraSpace + 1);\n\t\n\t // set width auto when has no collisions.\n\t if (!viewModel.hasCollide) {\n\t width = null;\n\t }\n\t\n\t if (height + top > baseHeight) {\n\t height = baseHeight - top;\n\t cropped = true;\n\t }\n\t\n\t if (isReadOnly) {\n\t cropped = true;\n\t }\n\t\n\t return {\n\t top: top,\n\t left: options.baseLeft[options.columnIndex],\n\t width: width,\n\t height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n\t cropped: cropped\n\t };\n\t};\n\t\n\t/**\n\t * Set viewmodels for rendering.\n\t * @param {string} ymd The date of schedules. YYYYMMDD format.\n\t * @param {array} matrices The matrices for schedule placing.\n\t */\n\tTime.prototype._getBaseViewModel = function(ymd, matrices) {\n\t var self = this,\n\t options = this.options,\n\t hourStart = options.hourStart,\n\t hourEnd = options.hourEnd,\n\t containerHeight,\n\t todayStart,\n\t baseMS;\n\t\n\t /**\n\t * Calculate each schedule element bounds relative with rendered hour milliseconds and\n\t * wrap each schedule model to viewmodels.\n\t */\n\t containerHeight = this.getViewBound().height;\n\t todayStart = this._parseDateGroup(ymd);\n\t todayStart.setHours(hourStart);\n\t baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\t\n\t forEachArr(matrices, function(matrix) {\n\t var maxRowLength,\n\t widthPercent,\n\t leftPercents,\n\t i;\n\t\n\t maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n\t return row.length;\n\t }));\n\t\n\t widthPercent = 100 / maxRowLength;\n\t\n\t leftPercents = [];\n\t for (i = 0; i < maxRowLength; i += 1) {\n\t leftPercents[i] = widthPercent * i;\n\t }\n\t\n\t forEachArr(matrix, function(row) {\n\t forEachArr(row, function(viewModel, col) {\n\t var viewBound;\n\t\n\t if (!viewModel) {\n\t return;\n\t }\n\t\n\t viewBound = self.getScheduleViewBound(viewModel, {\n\t todayStart: todayStart,\n\t baseMS: baseMS,\n\t baseLeft: leftPercents,\n\t baseWidth: widthPercent,\n\t baseHeight: containerHeight,\n\t columnIndex: col\n\t });\n\t\n\t util.extend(viewModel, viewBound);\n\t });\n\t });\n\t });\n\t};\n\t\n\t/**\n\t * @returns {Date} - Date of this view.\n\t */\n\tTime.prototype.getDate = function() {\n\t return this._parseDateGroup(this.options.ymd);\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {string} ymd The date of schedules. YYYYMMDD format\n\t * @param {array} matrices Matrices for placing schedules\n\t */\n\tTime.prototype.render = function(ymd, matrices) {\n\t this._getBaseViewModel(ymd, matrices);\n\t this.container.innerHTML = this.timeTmpl({\n\t matrices: matrices\n\t });\n\t};\n\t\n\tmodule.exports = Time;\n\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View for rendered schedules by times.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar common = __webpack_require__(6);\n\tvar domutil = __webpack_require__(2);\n\tvar datetime = __webpack_require__(4);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar View = __webpack_require__(8);\n\tvar Time = __webpack_require__(104);\n\tvar AutoScroll = __webpack_require__(61);\n\tvar mainTmpl = __webpack_require__(43);\n\t\n\tvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\n\tvar SIXTY_SECONDS = 60;\n\t\n\t/**\n\t * start~end 까지의 시간 레이블 목록을 반환한다.\n\t * 현재 시간과 가까운 레이블의 경우 hidden:true로 설정한다.\n\t * @param {number} start - 시작시간\n\t * @param {number} end - 끝시간\n\t * @param {boolean} hasHourMarker - 현재 시간이 표시되는지 여부\n\t * @returns {Array.}\n\t */\n\tfunction getHoursLabels(start, end, hasHourMarker) {\n\t var now = new TZDate();\n\t var nowMinutes = now.getMinutes();\n\t var nowHours = now.getHours();\n\t var hoursRange = util.range(start, end);\n\t var nowAroundHours = null;\n\t\n\t if (hasHourMarker) {\n\t if (nowMinutes < 20) {\n\t nowAroundHours = nowHours;\n\t } else if (nowMinutes > 40) {\n\t nowAroundHours = nowHours + 1;\n\t }\n\t }\n\t\n\t return hoursRange.map(function(hours) {\n\t return {\n\t hours: hours,\n\t hidden: nowAroundHours === hours\n\t };\n\t });\n\t}\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options The object for view customization.\n\t * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n\t * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n\t * @param {number} [options.hourStart=0] You can change view's start hours.\n\t * @param {number} [options.hourEnd=0] You can change view's end hours.\n\t * @param {HTMLElement} container Container element.\n\t */\n\tfunction TimeGrid(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('timegrid-container')\n\t );\n\t\n\t View.call(this, container);\n\t\n\t if (!util.browser.safari) {\n\t /**\n\t * @type {AutoScroll}\n\t */\n\t this._autoScroll = new AutoScroll(container);\n\t }\n\t\n\t /**\n\t * Time view options.\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t renderStartDate: '',\n\t renderEndDate: '',\n\t hourStart: 0,\n\t hourEnd: 24\n\t }, options);\n\t\n\t /**\n\t * Interval id for hourmarker animation.\n\t * @type {number}\n\t */\n\t this.intervalID = 0;\n\t\n\t /**\n\t * timer id for hourmarker initial state\n\t * @type {number}\n\t */\n\t this.timerID = 0;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._scrolled = false;\n\t\n\t /*\n\t * cache parent's view model\n\t * @type {object}\n\t */\n\t this._cacheParentViewModel = null;\n\t\n\t this.attachEvent();\n\t}\n\t\n\tutil.inherit(TimeGrid, View);\n\t\n\t/**********\n\t * Prototype props\n\t **********/\n\t\n\t/**\n\t * @type {string}\n\t */\n\tTimeGrid.prototype.viewName = 'timegrid';\n\t\n\t/**\n\t * Destroy view.\n\t * @override\n\t */\n\tTimeGrid.prototype._beforeDestroy = function() {\n\t clearInterval(this.intervalID);\n\t clearTimeout(this.timerID);\n\t\n\t if (this._autoScroll) {\n\t this._autoScroll.destroy();\n\t }\n\t\n\t this._autoScroll = this.hourmarker = this.intervalID = this.timerID = this._cacheParentViewModel = null;\n\t};\n\t\n\t/**\n\t * @param {Date} [time] - date object to convert pixel in grids.\n\t * use **Date.now()** when not supplied.\n\t * @returns {number} The pixel value represent current time in grids.\n\t */\n\tTimeGrid.prototype._getTopPercentByTime = function(time) {\n\t var opt = this.options,\n\t raw = datetime.raw(time || new TZDate()),\n\t hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n\t maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n\t hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n\t datetime.millisecondsFrom('minutes', raw.m) +\n\t datetime.millisecondsFrom('seconds', raw.s) +\n\t raw.ms,\n\t topPercent;\n\t\n\t topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n\t topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\t\n\t return common.limit(topPercent, [0], [100]);\n\t};\n\t\n\t/**\n\t * Get Hourmarker viewmodel.\n\t * @param {Date} now - now\n\t * @param {object} grids grid information(width, left, day)\n\t * @param {Array.} range render range\n\t * @returns {object} ViewModel of hourmarker.\n\t */\n\tTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n\t var todaymarkerLeft = -1,\n\t viewModel;\n\t\n\t now = now || new TZDate();\n\t\n\t util.forEach(range, function(date, index) {\n\t if (datetime.isSameDate(now, date)) {\n\t todaymarkerLeft = grids[index] ? grids[index].left : 0;\n\t }\n\t });\n\t\n\t viewModel = {\n\t currentHours: now.getHours(),\n\t hourmarkerTop: this._getTopPercentByTime(now),\n\t hourmarkerText: datetime.format(now, 'HH:mm'),\n\t todaymarkerLeft: todaymarkerLeft\n\t };\n\t\n\t return viewModel;\n\t};\n\t\n\t/**\n\t * Get base viewModel.\n\t * @param {object} grids grid information(width, left, day)\n\t * @param {Array.} range render range\n\t * @returns {object} ViewModel\n\t */\n\tTimeGrid.prototype._getBaseViewModel = function(grids, range) {\n\t var opt = this.options;\n\t var viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range);\n\t viewModel.hoursLabels = getHoursLabels(opt.hourStart, opt.hourEnd, viewModel.todaymarkerLeft >= 0);\n\t\n\t return viewModel;\n\t};\n\t\n\t/**\n\t * Reconcilation child views and render.\n\t * @param {object} viewModels Viewmodel\n\t * @param {object} grids grid information(width, left, day)\n\t * @param {HTMLElement} container Container element for each time view.\n\t */\n\tTimeGrid.prototype._renderChildren = function(viewModels, grids, container) {\n\t var self = this,\n\t options = this.options,\n\t childOption,\n\t child,\n\t isToday,\n\t today = datetime.format(new TZDate(), 'YYYYMMDD'),\n\t i = 0;\n\t\n\t // clear contents\n\t container.innerHTML = '';\n\t this.children.clear();\n\t\n\t // reconcilation of child views\n\t util.forEach(viewModels, function(schedules, ymd) {\n\t isToday = ymd === today;\n\t\n\t childOption = {\n\t index: i,\n\t left: grids[i] ? grids[i].left : 0,\n\t width: grids[i] ? grids[i].width : 0,\n\t ymd: ymd,\n\t isToday: isToday,\n\t isPending: options.isPending,\n\t isFocused: options.isFocused,\n\t hourStart: options.hourStart,\n\t hourEnd: options.hourEnd\n\t };\n\t\n\t child = new Time(\n\t childOption,\n\t domutil.appendHTMLElement('div', container, config.classname('time-date'))\n\t );\n\t child.render(ymd, schedules);\n\t\n\t self.addChild(child);\n\t\n\t i += 1;\n\t });\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel ViewModel list from Week view.\n\t */\n\tTimeGrid.prototype.render = function(viewModel) {\n\t var timeViewModel = viewModel.schedulesInDateRange.time,\n\t container = this.container,\n\t grids = viewModel.grids,\n\t range = viewModel.range,\n\t baseViewModel = this._getBaseViewModel(grids, range),\n\t scheduleLen = util.keys(timeViewModel).length;\n\t\n\t this._cacheParentViewModel = viewModel;\n\t\n\t if (!scheduleLen) {\n\t return;\n\t }\n\t\n\t baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\t\n\t container.innerHTML = mainTmpl(baseViewModel);\n\t\n\t /**********\n\t * Render children\n\t **********/\n\t this._renderChildren(\n\t timeViewModel,\n\t grids,\n\t domutil.find(config.classname('.timegrid-schedules-container'), container)\n\t );\n\t\n\t this._hourLabels = domutil.find('ul', container);\n\t\n\t /**********\n\t * Render hourmarker\n\t **********/\n\t this.hourmarker = domutil.find(config.classname('.timegrid-hourmarker'), container);\n\t\n\t if (!this._scrolled) {\n\t this._scrolled = true;\n\t this.scrollToNow();\n\t }\n\t};\n\t\n\t/**\n\t * Refresh hourmarker element.\n\t */\n\tTimeGrid.prototype.refreshHourmarker = function() {\n\t var hourmarker = this.hourmarker,\n\t grids = this._cacheParentViewModel ? this._cacheParentViewModel.grids : null,\n\t range = this._cacheParentViewModel ? this._cacheParentViewModel.range : null,\n\t viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range),\n\t todaymarker,\n\t hourmarkerText;\n\t\n\t if (!hourmarker || !viewModel) {\n\t return;\n\t }\n\t\n\t todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n\t hourmarkerText = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t hourmarker.style.display = 'block';\n\t hourmarker.style.top = viewModel.hourmarkerTop + '%';\n\t todaymarker.style.display = (viewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n\t hourmarkerText.innerHTML = viewModel.hourmarkerText;\n\t });\n\t};\n\t\n\t/**\n\t * Attach events\n\t */\n\tTimeGrid.prototype.attachEvent = function() {\n\t clearInterval(this.intervalID);\n\t clearTimeout(this.timerID);\n\t this.intervalID = this.timerID = null;\n\t\n\t this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n\t};\n\t\n\t/**\n\t * Scroll time grid to current hourmarker.\n\t */\n\tTimeGrid.prototype.scrollToNow = function() {\n\t var self = this,\n\t container = this.container;\n\t var offsetTop,\n\t viewBound,\n\t scrollTop,\n\t scrollAmount,\n\t scrollBy,\n\t scrollFn;\n\t\n\t if (!self.hourmarker) {\n\t return;\n\t }\n\t\n\t offsetTop = this.hourmarker.offsetTop;\n\t viewBound = this.getViewBound();\n\t scrollTop = offsetTop;\n\t scrollAmount = viewBound.height / 4;\n\t scrollBy = 10;\n\t\n\t scrollFn = function() {\n\t if (scrollTop > offsetTop - scrollAmount) {\n\t scrollTop -= scrollBy;\n\t container.scrollTop = scrollTop;\n\t\n\t reqAnimFrame.requestAnimFrame(scrollFn);\n\t } else {\n\t container.scrollTop = offsetTop - scrollAmount;\n\t }\n\t };\n\t\n\t reqAnimFrame.requestAnimFrame(scrollFn);\n\t};\n\t\n\t/**********\n\t * Schedule handlers\n\t **********/\n\t\n\t/**\n\t * Interval tick handler\n\t */\n\tTimeGrid.prototype.onTick = function() {\n\t if (this.timerID) {\n\t clearTimeout(this.timerID);\n\t this.timerID = null;\n\t }\n\t\n\t if (!this.intervalID) {\n\t this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n\t }\n\t this.refreshHourmarker();\n\t};\n\t\n\tmodule.exports = TimeGrid;\n\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View of days UI.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar datetime = __webpack_require__(4);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar View = __webpack_require__(8);\n\t\n\t/**\n\t * FullCalendar 에서는 날짜 정보만 사용(YYYY-MM-DD) 하고,\n\t * SplitTimeCalendar 에서는 타임존 정보까지 포함된 문자열을 사용하기 때문에 분기처리함.\n\t * @param {String} dateString - date string\n\t * @returns {TZDate}\n\t */\n\tfunction parseRangeDateString(dateString) {\n\t if (dateString.length === 10) {\n\t return datetime.parse(dateString);\n\t }\n\t\n\t return new TZDate(dateString);\n\t}\n\t\n\t/**\n\t * @constructor\n\t * @param {Base.Week} controller The controller mixin part.\n\t * @param {object} options View options\n\t * @param {string} [options.renderStartDate] Start date of render.\n\t * if not supplied then use -3d from today. YYYY-MM-DD format.\n\t * @param {string} [options.renderEndDate] End date of render.\n\t * if not supplied then use +3d from today. YYYY-MM-DD format.\n\t * @param {string} [options.cssPrefix] - CSS classname prefix\n\t * @param {HTMLElement} container The element to use container for this view.\n\t * @extends {View}\n\t */\n\tfunction Week(controller, options, container) {\n\t var range;\n\t\n\t container = domutil.appendHTMLElement('div', container);\n\t\n\t View.call(this, container);\n\t\n\t domutil.addClass(container, config.classname('week-container'));\n\t\n\t range = this._getRenderDateRange(new TZDate());\n\t\n\t /**\n\t * @type {object} Options for view.\n\t */\n\t this.options = util.extend({\n\t scheduleFilter: function(schedule) {\n\t return Boolean(schedule.isVisible);\n\t },\n\t renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n\t renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n\t narrowWeekend: false,\n\t startDayOfWeek: 0,\n\t workweek: false\n\t }, options);\n\t\n\t /**\n\t * Week controller mixin.\n\t * @type {Base.Week}\n\t */\n\t this.controller = controller;\n\t}\n\t\n\tutil.inherit(Week, View);\n\t\n\t/**********\n\t * Override props\n\t **********/\n\t\n\t/**\n\t * Render each child view with schedules in ranges.\n\t * @fires Week#afterRender\n\t * @override\n\t */\n\tWeek.prototype.render = function() {\n\t var options = this.options,\n\t scheduleFilter = options.scheduleFilter,\n\t narrowWeekend = options.narrowWeekend,\n\t startDayOfWeek = options.startDayOfWeek,\n\t workweek = options.workweek;\n\t var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\t\n\t renderStartDate = parseRangeDateString(options.renderStartDate);\n\t renderEndDate = parseRangeDateString(options.renderEndDate);\n\t\n\t range = datetime.range(\n\t datetime.start(renderStartDate),\n\t datetime.end(renderEndDate),\n\t datetime.MILLISECONDS_PER_DAY\n\t );\n\t\n\t if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n\t range = util.filter(range, function(date) {\n\t return !datetime.isWeekend(date.getDay());\n\t });\n\t\n\t renderStartDate = range[0];\n\t renderEndDate = range[range.length - 1];\n\t }\n\t\n\t schedulesInDateRange = this.controller.findByDateRange(\n\t datetime.start(renderStartDate),\n\t datetime.end(renderEndDate),\n\t scheduleFilter\n\t );\n\t\n\t grids = datetime.getGridLeftAndWidth(\n\t range.length,\n\t narrowWeekend,\n\t startDayOfWeek,\n\t workweek\n\t );\n\t\n\t viewModel = {\n\t schedulesInDateRange: schedulesInDateRange,\n\t renderStartDate: renderStartDate,\n\t renderEndDate: renderEndDate,\n\t grids: grids,\n\t range: range\n\t };\n\t\n\t this.children.each(function(childView) {\n\t childView.render(viewModel);\n\t });\n\t\n\t /**\n\t * @event Week#afterRender\n\t */\n\t this.fire('afterRender');\n\t};\n\t\n\t/**********\n\t * Prototype props\n\t **********/\n\t\n\tWeek.prototype.viewName = 'week';\n\t\n\t/**\n\t * Calculate default render date range from supplied date.\n\t * @param {Date} baseDate base date.\n\t * @returns {object} date range.\n\t */\n\tWeek.prototype._getRenderDateRange = function(baseDate) {\n\t var base = datetime.start(baseDate),\n\t start = new TZDate(Number(base)),\n\t end = new TZDate(Number(base));\n\t\n\t start.setDate(start.getDate() - 3);\n\t end.setDate(end.getDate() + 3);\n\t\n\t return {\n\t start: start,\n\t end: end\n\t };\n\t};\n\t\n\tutil.CustomEvents.mixin(Week);\n\t\n\tmodule.exports = Week;\n\t\n\n\n/***/ }\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// tui-calendar.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 20d044aee2b168ab76ef","/**\n * @fileoverview The entry file of fullcalendar\n * @author NHN Ent. FE Development Team\n */\n\n'use strict';\n\nrequire('./css/main.styl');\nrequire('./js/view/template/helper');\n\nmodule.exports = require('./js/factory/calendar');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/index.js\n// module id = 0\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}\n// module id = 1\n// module chunks = 0","/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n/**\n * @fileoverview Utility modules for manipulate DOM elements.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar domevent = require('./domevent');\nvar Collection = require('./collection');\nvar util = require('tui-code-snippet');\n\nvar posKey = '_pos',\n domutil;\n\nvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\n/**\n * Trim leading, trailing whitespace\n * @param {string} str - string to trim\n * @returns {string} trimmed string\n */\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n\ndomutil = {\n /**\n * Create DOM element and return it.\n * @param {string} tagName Tag name to append.\n * @param {HTMLElement} [container] HTML element will be parent to created element.\n * if not supplied, will use **document.body**\n * @param {string} [className] Design class names to appling created element.\n * @returns {HTMLElement} HTML element created.\n */\n appendHTMLElement: function(tagName, container, className) {\n var el;\n\n className = className || '';\n\n el = document.createElement(tagName);\n el.className = className;\n\n if (container) {\n container.appendChild(el);\n } else {\n document.body.appendChild(el);\n }\n\n return el;\n },\n\n /**\n * Remove element from parent node.\n * @param {HTMLElement} el - element to remove.\n */\n remove: function(el) {\n if (el && el.parentNode) {\n el.parentNode.removeChild(el);\n }\n },\n\n /**\n * Get element by id\n * @param {string} id element id attribute\n * @returns {HTMLElement} element\n */\n get: function(id) {\n return document.getElementById(id);\n },\n\n /**\n * Check supplied element is matched selector.\n * @param {HTMLElement} el - element to check\n * @param {string} selector - selector string to check\n * @returns {boolean} match?\n */\n _matcher: function(el, selector) {\n var cssClassSelector = /^\\./,\n idSelector = /^#/;\n\n if (cssClassSelector.test(selector)) {\n return domutil.hasClass(el, selector.replace('.', ''));\n }\n if (idSelector.test(selector)) {\n return el.id === selector.replace('#', '');\n }\n\n return el.nodeName.toLowerCase() === selector.toLowerCase();\n },\n\n /**\n * Find DOM element by specific selectors.\n * below three selector only supported.\n *\n * 1. css selector\n * 2. id selector\n * 3. nodeName selector\n * @param {string} selector selector\n * @param {(HTMLElement|string)} [root] You can assign root element to find\n * if not supplied, document.body will use.\n * @param {boolean|function} [multiple=false] - set true then return all\n * elements that meet condition, if set function then use it filter function.\n * @returns {HTMLElement} HTML element finded.\n */\n find: function(selector, root, multiple) {\n var result = [],\n found = false,\n isFirst = util.isUndefined(multiple) || multiple === false,\n isFilter = util.isFunction(multiple);\n\n if (util.isString(root)) {\n root = domutil.get(root);\n }\n\n root = root || window.document.body;\n\n /**\n * Function for recursive find specific node\n * @param {HTMLElement} el - element to search\n * @param {string} selector - selector\n */\n function recurse(el, selector) {\n var childNodes = el.childNodes,\n i = 0,\n len = childNodes.length,\n cursor;\n\n for (; i < len; i += 1) {\n cursor = childNodes[i];\n\n if (cursor.nodeName === '#text') {\n continue;\n }\n\n if (domutil._matcher(cursor, selector)) {\n if ((isFilter && multiple(cursor)) || !isFilter) {\n result.push(cursor);\n }\n\n if (isFirst) {\n found = true;\n break;\n }\n } else if (cursor.childNodes.length > 0) {\n recurse(cursor, selector);\n if (found) {\n break;\n }\n }\n }\n }\n\n recurse(root, selector);\n\n return isFirst ? (result[0] || null) : result;\n },\n\n /**\n * Find parent element recursively.\n * @param {HTMLElement} el - base element to start find.\n * @param {string} selector - selector string for find\n * @param {boolean} excludeEl - exclude the base element to find\n * @returns {HTMLElement} - element finded or null.\n */\n closest: function(el, selector, excludeEl) {\n var parent = el.parentNode;\n\n if (!excludeEl && domutil._matcher(el, selector)) {\n return el;\n }\n\n while (parent && parent !== window.document.body) {\n if (domutil._matcher(parent, selector)) {\n return parent;\n }\n\n parent = parent.parentNode;\n }\n\n return null;\n },\n\n /**\n * Return texts inside element.\n * @param {HTMLElement} el target element\n * @returns {string} text inside node\n */\n text: function(el) {\n var ret = '',\n i = 0,\n nodeType = el.nodeType;\n\n if (nodeType) {\n if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n // nodes that available contain other nodes\n if (typeof el.textContent === 'string') {\n return el.textContent;\n }\n\n for (el = el.firstChild; el; el = el.nextSibling) {\n ret += domutil.text(el);\n }\n } else if (nodeType === 3 || nodeType === 4) {\n // TEXT, CDATA SECTION\n return el.nodeValue;\n }\n } else {\n for (; el[i]; i += 1) {\n ret += domutil.text(el[i]);\n }\n }\n\n return ret;\n },\n\n /**\n * Set data attribute to target element\n * @param {HTMLElement} el - element to set data attribute\n * @param {string} key - key\n * @param {string|number} data - data value\n */\n setData: function(el, key, data) {\n if ('dataset' in el) {\n el.dataset[key] = data;\n\n return;\n }\n\n el.setAttribute('data-' + key, data);\n },\n\n /**\n * Get data value from data-attribute\n * @param {HTMLElement} el - target element\n * @param {string} key - key\n * @returns {string} value\n */\n getData: function(el, key) {\n if ('dataset' in el) {\n return el.dataset[key];\n }\n\n return el.getAttribute('data-' + key);\n },\n\n /**\n * Check element has specific design class name.\n * @param {HTMLElement} el target element\n * @param {string} name css class\n * @returns {boolean} return true when element has that css class name\n */\n hasClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n return el.classList.contains(name);\n }\n\n className = domutil.getClass(el);\n\n return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n },\n\n /**\n * Add design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n addClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n util.forEachArray(name.split(' '), function(value) {\n el.classList.add(value);\n });\n } else if (!domutil.hasClass(el, name)) {\n className = domutil.getClass(el);\n domutil.setClass(el, (className ? className + ' ' : '') + name);\n }\n },\n\n /**\n *\n * Overwrite design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n setClass: function(el, name) {\n if (util.isUndefined(el.className.baseVal)) {\n el.className = name;\n } else {\n el.className.baseVal = name;\n }\n },\n\n /**\n * Element에 cssClass속성을 제거하는 메서드\n * Remove specific design class from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name class name to remove\n */\n removeClass: function(el, name) {\n var removed = '';\n\n if (!util.isUndefined(el.classList)) {\n el.classList.remove(name);\n } else {\n removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n domutil.setClass(el, trim(removed));\n }\n },\n\n /**\n * Get HTML element's design classes.\n * @param {HTMLElement} el target element\n * @returns {string} element css class name\n */\n getClass: function(el) {\n if (!el || !el.className) {\n return '';\n }\n\n return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n },\n\n /**\n * Get specific CSS style value from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} style css attribute name\n * @returns {(string|null)} css style value\n */\n getStyle: function(el, style) {\n var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n css;\n\n if ((!value || value === 'auto') && document.defaultView) {\n css = document.defaultView.getComputedStyle(el, null);\n value = css ? css[style] : null;\n }\n\n return value === 'auto' ? null : value;\n },\n\n /**\n * get element's computed style values.\n *\n * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n * @param {HTMLElement} el - element want to get style.\n * @returns {object} virtual CSSStyleDeclaration object.\n */\n getComputedStyle: function(el) {\n var defaultView = document.defaultView;\n\n if (!defaultView || !defaultView.getComputedStyle) {\n return {\n getPropertyValue: function(prop) {\n /* eslint-disable no-useless-escape */\n var re = /(\\-([a-z]){1})/g;\n if (prop === 'float') {\n prop = 'styleFloat';\n }\n\n if (re.test(prop)) {\n prop = prop.replace(re, function() {\n return arguments[2].toUpperCase();\n });\n }\n\n return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n }\n };\n }\n\n return document.defaultView.getComputedStyle(el);\n },\n\n /**\n * Set position CSS style.\n * @param {HTMLElement} el target element\n * @param {number} [x=0] left pixel value.\n * @param {number} [y=0] top pixel value.\n */\n setPosition: function(el, x, y) {\n x = util.isUndefined(x) ? 0 : x;\n y = util.isUndefined(y) ? 0 : y;\n\n el[posKey] = [x, y];\n\n el.style.left = util.isNumber(x) ? (x + 'px') : x;\n el.style.top = util.isNumber(y) ? (y + 'px') : y;\n },\n\n /**\n * Set position CSS style with left, top, right, bottom\n * @param {HTMLElement} el target element\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\n setLTRB: function(el, ltrb) {\n var props = ['left', 'top', 'right', 'bottom'];\n var value;\n props.forEach(function(prop) {\n value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n });\n },\n\n /**\n * Get position from HTML element.\n * @param {HTMLElement} el target element\n * @param {boolean} [clear=false] clear cache before calculating position.\n * @returns {number[]} point\n */\n getPosition: function(el, clear) {\n var left,\n top,\n bound;\n\n if (clear) {\n el[posKey] = null;\n }\n\n if (el[posKey]) {\n return el[posKey];\n }\n\n left = 0;\n top = 0;\n\n if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n 'getBoundingClientRect' in el) {\n // 엘리먼트의 left또는 top이 'auto'일 때 수단\n bound = el.getBoundingClientRect();\n\n left = bound.left;\n top = bound.top;\n } else {\n left = parseFloat(el.style.left || 0);\n top = parseFloat(el.style.top || 0);\n }\n\n return [left, top];\n },\n\n /**\n * Return element's size\n * @param {HTMLElement} el target element\n * @returns {number[]} width, height\n */\n getSize: function(el) {\n var bound,\n width = domutil.getStyle(el, 'width'),\n height = domutil.getStyle(el, 'height');\n\n if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n util.isNull(width) || util.isNull(height)) &&\n 'getBoundingClientRect' in el) {\n bound = el.getBoundingClientRect();\n width = bound.width || el.offsetWidth;\n height = bound.height || el.offsetHeight;\n } else {\n width = parseFloat(width || 0);\n height = parseFloat(height || 0);\n }\n\n return [width, height];\n },\n\n /**\n * Fallback of getBoundingClientRect\n * @param {HTMLElement} el - element\n * @returns {object} rect\n */\n getBCRect: function(el) {\n var rect = el.getBoundingClientRect();\n\n rect = util.extend({\n width: el.offsetWidth,\n height: el.offsetHeight\n }, rect);\n\n return rect;\n },\n\n /**\n * Check specific CSS style is available.\n * @param {array} props property name to testing\n * @returns {(string|boolean)} return true when property is available\n * @example\n * var props = ['transform', '-webkit-transform'];\n * domutil.testProp(props); // 'transform'\n */\n testProp: function(props) {\n var style = document.documentElement.style,\n i = 0,\n len = props.length;\n\n for (; i < len; i += 1) {\n if (props[i] in style) {\n return props[i];\n }\n }\n\n return false;\n },\n\n /**\n * Get form data\n * @param {HTMLFormElement} formElement - form element to extract data\n * @returns {object} form data\n */\n getFormData: function(formElement) {\n var groupedByName = new Collection(function() {\n return this.length;\n }),\n noDisabledFilter = function(el) {\n return !el.disabled;\n },\n output = {};\n\n groupedByName.add.apply(\n groupedByName,\n domutil.find('input', formElement, noDisabledFilter)\n .concat(domutil.find('select', formElement, noDisabledFilter))\n .concat(domutil.find('textarea', formElement, noDisabledFilter))\n );\n\n groupedByName = groupedByName.groupBy(function(el) {\n return (el && el.getAttribute('name')) || '_other';\n });\n\n util.forEach(groupedByName, function(elements, name) {\n if (name === '_other') {\n return;\n }\n\n elements.each(function(el) {\n var nodeName = el.nodeName.toLowerCase(),\n type = el.type,\n result = [];\n\n if (type === 'radio') {\n result = [elements.find(function(el) {\n return el.checked;\n }).toArray().pop()];\n } else if (type === 'checkbox') {\n result = elements.find(function(el) {\n return el.checked;\n }).toArray();\n } else if (nodeName === 'select') {\n elements.find(function(el) {\n return !!el.childNodes.length;\n }).each(function(el) {\n result = result.concat(\n domutil.find('option', el, function(opt) {\n return opt.selected;\n })\n );\n });\n } else {\n result = elements.find(function(el) {\n return el.value !== '';\n }).toArray();\n }\n\n result = util.map(result, function(el) {\n return el.value;\n });\n\n if (!result.length) {\n result = '';\n } else if (result.length === 1) {\n result = result[0];\n }\n\n output[name] = result;\n });\n });\n\n return output;\n }\n};\n\n/*eslint-disable*/\nvar userSelectProperty = domutil.testProp([\n 'userSelect',\n 'WebkitUserSelect',\n 'OUserSelect',\n 'MozUserSelect',\n 'msUserSelect'\n]);\nvar supportSelectStart = 'onselectstart' in document;\nvar prevSelectStyle = '';\n/* eslint-enable*/\n\n/**\n * Disable browser's text selection behaviors.\n * @method\n */\ndomutil.disableTextSelection = (function() {\n if (supportSelectStart) {\n return function(dom) {\n domevent.on(dom, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function(dom) {\n var style = dom.style;\n prevSelectStyle = style[userSelectProperty];\n style[userSelectProperty] = 'none';\n };\n})();\n\n/**\n * Enable browser's text selection behaviors.\n * @method\n */\ndomutil.enableTextSelection = (function() {\n if (supportSelectStart) {\n return function() {\n domevent.off(window, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function() {\n document.documentElement.style[userSelectProperty] = prevSelectStyle;\n };\n})();\n\n/**\n * Disable browser's image drag behaviors.\n */\ndomutil.disableImageDrag = function() {\n domevent.on(window, 'dragstart', domevent.preventDefault);\n};\n\n/**\n * Enable browser's image drag behaviors.\n */\ndomutil.enableImageDrag = function() {\n domevent.off(window, 'dragstart', domevent.preventDefault);\n};\n\nmodule.exports = domutil;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/domutil.js\n// module id = 2\n// module chunks = 0","/**\n * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar cssPrefix = 'tui-full-calendar-',\n alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\nvar config = {\n throwError: function(msg) {\n alert(msg);\n },\n\n cssPrefix: cssPrefix,\n\n classname: function(str) {\n str = str || '';\n\n if (str.charAt(0) === '.') {\n return '.' + config.cssPrefix + str.slice(1);\n }\n\n return config.cssPrefix + str;\n },\n\n allday: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n time: {\n getViewIDRegExp: timeGetViewID\n }\n};\n\nmodule.exports = config;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/config.js\n// module id = 3\n// module chunks = 0","/**\n * @fileoverview datetime utility module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date,\n dw = require('../common/dw');\nvar util = require('tui-code-snippet');\n/* eslint-disable no-useless-escape */\nvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\nvar datetime, tokenFunc;\n\nvar memo = {\n millisecondsTo: {},\n millisecondsFrom: {}\n};\n\ntokenFunc = {\n /**\n * @param {TZDate} date date object.\n * @returns {string} YYYYMMDD\n */\n 'YYYYMMDD': function(date) {\n return [\n date.getFullYear(),\n datetime.leadingZero(date.getMonth() + 1, 2),\n datetime.leadingZero(date.getDate(), 2)\n ].join('');\n },\n /**\n * @param {TZDate} date date object\n * @returns {string} four digit year number\n */\n 'YYYY': function(date) {\n return String(date.getFullYear());\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit month number\n */\n 'MM': function(date) {\n return datetime.leadingZero(date.getMonth() + 1, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit date number\n */\n 'DD': function(date) {\n return datetime.leadingZero(date.getDate(), 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} HH:mm\n */\n 'HH:mm': function(date) {\n var hour = date.getHours(),\n minutes = date.getMinutes();\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n }\n};\n\ndatetime = {\n /**\n * The number of milliseconds one day.\n * @type {number}\n */\n MILLISECONDS_PER_DAY: 86400000,\n\n /**\n * The number of milliseconds one hour.\n * @type {number}\n */\n MILLISECONDS_PER_HOUR: 3600000,\n\n /**\n * The number of milliseconds one minutes.\n * @type {number}\n */\n MILLISECONDS_PER_MINUTES: 60000,\n\n /**\n * convert milliseconds\n * @param {string} type - type of value.\n * @param {number} value - value to convert.\n * @param {function} iteratee - iteratee function to use reduce.\n * @returns {number} converted value.\n */\n _convMilliseconds: function(type, value, iteratee) {\n var conv = [24, 60, 60, 1000],\n index = {\n day: 0,\n hour: 1,\n minutes: 2,\n seconds: 3\n };\n\n if (!(type in index) || global.isNaN(value)) {\n return false;\n }\n\n return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n },\n\n /**\n * Convert milliseconds value to other type\n * @param {type} type convert to type want to. support \"day\", \"hour\",\n * \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsTo: function(type, value) {\n var cache = memo.millisecondsTo,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m / v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert value to milliseconds\n * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsFrom: function(type, value) {\n var cache = memo.millisecondsFrom,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m * v;\n });\n\n return cache[key];\n },\n\n /**\n * Make date array from supplied paramters.\n * @param {TZDate} start Start date.\n * @param {TZDate} end End date.\n * @param {number} step The number of milliseconds to use increment.\n * @returns {array} Date array.\n */\n range: function(start, end, step) {\n var startTime = start.getTime();\n var endTime = end.getTime();\n var cursor = startTime;\n var date = dw(startTime);\n var result = [];\n\n while (cursor <= endTime && endTime > date.d.getTime()) {\n result.push(new TZDate(date.d));\n cursor = cursor + step;\n date.addDate(1);\n }\n\n return result;\n },\n\n /**\n * Clone supplied date.\n * @param {TZDate} date date object to clone.\n * @returns {TZDate} Cloned date object\n */\n clone: function(date) {\n return new TZDate(date.getTime());\n },\n\n /**\n * Compare two dates.\n *\n * when first date is latest then seconds then return -1.\n *\n * return +1 reverse, and return 0 is same.\n * @param {TZDate} d1 Date object to compare.\n * @param {TZDate} d2 Date object to compare.\n * @returns {number} result of compare\n */\n compare: function(d1, d2) {\n var _d1 = d1.getTime(),\n _d2 = d2.getTime();\n\n if (_d1 < _d2) {\n return -1;\n }\n if (_d1 > _d2) {\n return 1;\n }\n\n return 0;\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month?\n */\n isSameMonth: function(d1, d2) {\n return (d1.getFullYear() === d2.getFullYear() &&\n d1.getMonth() === d2.getMonth());\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month, date?\n */\n isSameDate: function(d1, d2) {\n var sameMonth = datetime.isSameMonth(d1, d2);\n\n return sameMonth && (d1.getDate() === d2.getDate());\n },\n\n /**\n * Check supplied parameter is valid date object.\n * @param {*} d Object to validate.\n * @returns {boolean} return true when parameter is valid date object.\n */\n isValid: function(d) {\n if (d instanceof TZDate) {\n return !window.isNaN(d.getTime());\n }\n\n return false;\n },\n\n /**\n * convert non local date to UTC date.\n * @param {TZDate} d Date to convert UTC.\n * @returns {TZDate} The UTC Date.\n */\n toUTC: function(d) {\n var l = d.getTime(),\n offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\n return new TZDate(l + offset);\n },\n\n /**\n * pad left zero characters.\n * @param {number} number number value to pad zero.\n * @param {number} length pad length to want.\n * @returns {string} padded string.\n */\n leadingZero: function(number, length) {\n var zero = '',\n i = 0;\n\n if (String(number).length > length) {\n return String(number);\n }\n\n for (; i < (length - 1); i += 1) {\n zero += '0';\n }\n\n return (zero + number).slice(length * -1);\n },\n\n /**\n * Convert date string to date object.\n *\n * Only listed below formats avaliable.\n *\n * - YYYYMMDD\n * - YYYY/MM/DD\n * - YYYY-MM-DD\n * - YYYY/MM/DD HH:mm:SS\n * - YYYY-MM-DD HH:mm:SS\n *\n * @param {string} str Formatted string.\n * @param {number} [fixMonth=-1] - number for fix month calculating.\n * @returns {(Date|boolean)} Converted Date object. when supplied str is not available then return false.\n */\n parse: function(str, fixMonth) {\n var separator,\n matches = str.match(dateFormatRx),\n ymd,\n hms;\n\n if (util.isUndefined(fixMonth)) {\n fixMonth = -1;\n }\n\n if (!matches) {\n return false;\n }\n\n if (str.length > 8) {\n // YYYY/MM/DD\n // YYYY-MM-DD\n // YYYY/MM/DD HH:mm:SS\n // YYYY-MM-DD HH:mm:SS\n separator = ~str.indexOf('/') ? '/' : '-';\n matches = matches.splice(1);\n\n ymd = matches[0].split(separator);\n hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n } else {\n // YYYYMMDD\n matches = matches[0];\n ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n hms = [0, 0, 0];\n }\n\n return new TZDate(\n Number(ymd[0]),\n Number(ymd[1]) + fixMonth,\n Number(ymd[2]),\n Number(hms[0]),\n Number(hms[1]),\n Number(hms[2])\n );\n },\n\n /**\n * Return date object from Date.\n * @param {TZDate} date date\n * @returns {object} Date object.\n */\n raw: function(date) {\n return {\n y: date.getFullYear(),\n M: date.getMonth(),\n d: date.getDate(),\n h: date.getHours(),\n m: date.getMinutes(),\n s: date.getSeconds(),\n ms: date.getMilliseconds()\n };\n },\n\n /**\n * Return 00:00:00 supplied date.\n * @param {TZDate} date date.\n * @returns {TZDate} start date.\n */\n start: function(date) {\n var d = new TZDate(date.getTime());\n d.setHours(0, 0, 0, 0);\n\n return d;\n },\n\n /**\n * Return 23:59:59 supplied date.\n * @param {TZDate} date date.\n * @returns {TZDate} end date.\n */\n end: function(date) {\n var d = new TZDate(date.getTime());\n d.setHours(23, 59, 59, 0);\n\n return d;\n },\n\n /**\n * Return formatted string as basis of supplied string.\n *\n * Supported Token Lists.\n *\n * - YYYY => 1988\n * - MM => 01 ~ 12\n * - DD => 01 ~ 31\n * - YYYYMMDD => 19880925\n * @param {TZDate} date String want to formatted.\n * @param {string} format format str.\n * @returns {string} Formatted date string.\n */\n format: function(date, format) {\n var result = format;\n util.forEachOwnProperties(tokenFunc, function(converter, token) {\n result = result.replace(token, converter(date));\n });\n\n return result;\n },\n\n /**\n * Get start date of specific month\n * @param {TZDate} date - date to get start date\n * @returns {TZDate} start date of supplied month\n */\n startDateOfMonth: function(date) {\n var startDate = new TZDate(Number(date));\n\n startDate.setDate(1);\n startDate.setHours(0, 0, 0, 0);\n\n return startDate;\n },\n\n /**\n * Get end date of specific month\n * @param {TZDate} date - date to get end date\n * @returns {TZDate} end date of supplied month\n */\n endDateOfMonth: function(date) {\n var endDate = datetime.startDateOfMonth(date);\n\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setDate(endDate.getDate() - 1);\n endDate.setHours(23, 59, 59);\n\n return endDate;\n },\n\n /**\n * Return 2-dimensional array month calendar\n *\n * dates that different month with given date are negative values\n * @param {TZDate} month - date want to calculate month calendar\n * @param {object} options - options\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n * @param {number} options.visibleWeeksCount visible weeks count\n * @param {boolean} options.workweek - only show work week\n * @param {function} [iteratee] - iteratee for customizing calendar object\n * @returns {Array.} calendar 2d array\n */\n arr2dCalendar: function(month, options, iteratee) {\n var weekArr,\n start, end,\n startIndex, endIndex,\n totalDate, afterDates,\n cursor, week,\n calendar = [],\n startDayOfWeek = options.startDayOfWeek,\n isAlways6Week = options.isAlways6Week,\n visibleWeeksCount = options.visibleWeeksCount,\n workweek = options.workweek;\n\n if (visibleWeeksCount) {\n start = new TZDate(month);\n end = dw(new TZDate(month));\n end.addDate(7 * (visibleWeeksCount - 1));\n end = end.d;\n } else {\n start = datetime.startDateOfMonth(month);\n end = datetime.endDateOfMonth(month);\n }\n\n // create day number array by startDayOfWeek number\n // 4 -> [4, 5, 6, 0, 1, 2, 3]\n // 2 -> [2, 3, 4, 5, 6, 0, 1]\n weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n startIndex = util.inArray(start.getDay(), weekArr);\n endIndex = util.inArray(end.getDay(), weekArr);\n // free dates after last date of this month\n afterDates = 7 - (endIndex + 1);\n\n if (visibleWeeksCount) {\n totalDate = 7 * visibleWeeksCount;\n } else {\n totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n }\n cursor = new TZDate(new TZDate(start).setDate(start.getDate() - startIndex));\n // iteratee all dates to render\n util.forEachArray(util.range(totalDate), function(i) {\n var date;\n\n if (!(i % 7)) {\n // group each date by week\n week = calendar[i / 7] = [];\n }\n\n date = new TZDate(cursor);\n date = iteratee ? iteratee(date) : date;\n if (!workweek || !datetime.isWeekend(date.getDay())) {\n week.push(date);\n }\n\n // add date\n cursor.setDate(cursor.getDate() + 1);\n });\n\n return calendar;\n },\n\n /**\n * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n *\n * @param {number} days - day length of week\n * @param {boolean} narrowWeekend - narrow weekend\n * @param {number} startDayOfWeek - start day of week\n * @param {boolean} workweek - only show work week\n * @returns {Array} day, left, width\n */\n getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n var limitDaysToApplyNarrowWeekend = 5;\n var uniformWidth = 100 / days;\n var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n var accumulatedWidth = 0;\n var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\n if (workweek) {\n dates = util.filter(dates, function(day) {\n return !datetime.isWeekend(day);\n });\n }\n\n narrowWeekend = workweek ? false : narrowWeekend;\n\n return util.map(dates, function(day) {\n var model;\n var width = narrowWeekend ? wideWidth : uniformWidth;\n if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n width = wideWidth / 2;\n }\n\n model = {\n day: day,\n width: width,\n left: accumulatedWidth\n };\n\n accumulatedWidth += width;\n\n return model;\n });\n },\n\n /**\n * Get that day is weekend\n * @param {number} day number\n * @returns {boolean} true if weekend or false\n */\n isWeekend: function(day) {\n return day === 0 || day === 6;\n }\n};\n\nmodule.exports = datetime;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/datetime.js\n// module id = 4\n// module chunks = 0","/**\n * @fileoverview timezone\n * @author NHN Ent. FE Development Lab \n */\n'use strict';\n\nvar MIN_TO_MS = 60 * 1000;\nvar customOffsetMs = getTimezoneOffset();\nvar timezoneOffsetCallback = null;\n\nvar getterMethods = [\n 'getDate',\n 'getDay',\n 'getFullYear',\n 'getHours',\n 'getMilliseconds',\n 'getMinutes',\n 'getMonth',\n 'getSeconds'\n];\n\nvar setterMethods = [\n 'setDate',\n 'setFullYear',\n 'setHours',\n 'setMilliseconds',\n 'setMinutes',\n 'setMonth',\n 'setSeconds'\n];\n\n/**\n * Get the timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n */\nfunction getTimezoneOffset(timestamp) {\n timestamp = timestamp || Date.now();\n\n return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n}\n\n/**\n * Get the custome timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n */\nfunction getCustomTimezoneOffset(timestamp) {\n if (timezoneOffsetCallback) {\n return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n }\n\n return customOffsetMs;\n}\n\n/**\n * Create a Date instance with multiple arguments\n * @param {Array} args - arguments\n * @returns {Date}\n */\nfunction createDateWithMultipleArgs(args) {\n var utc = Date.UTC.apply(null, args);\n\n return new Date(utc + getTimezoneOffset(utc));\n}\n\n/**\n * Create a Date instance with argument\n * @param {Date|TZDate|string|number} arg - arguments\n * @returns {Date}\n */\nfunction createDateWithSingleArg(arg) {\n var time;\n\n if (arg instanceof Date || arg instanceof TZDate) {\n time = arg.getTime();\n } else if ((typeof arg) === 'string') {\n time = Date.parse(arg);\n } else if ((typeof arg) === 'number') {\n time = arg;\n } else if (arg === null) {\n time = 0;\n } else {\n throw new Error('Invalid Type');\n }\n\n return new Date(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n}\n\n/**\n * Date Class\n */\nfunction TZDate() {\n var date;\n\n switch (arguments.length) {\n case 0:\n date = createDateWithSingleArg(Date.now());\n break;\n case 1:\n date = createDateWithSingleArg(arguments[0]);\n break;\n default:\n date = createDateWithMultipleArgs(arguments);\n }\n\n this._date = date;\n}\n\nTZDate.prototype.setTime = function(time) {\n return this._date.setTime(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n};\n\nTZDate.prototype.getTime = function() {\n var time = this._date.getTime();\n\n return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n};\n\nTZDate.prototype.valueOf = function() {\n return this.getTime();\n};\n\ngetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n return this._date[methodName].apply(this._date, arguments);\n };\n});\n\nsetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n this._date[methodName].apply(this._date, arguments);\n\n return this.getTime();\n };\n});\n\nmodule.exports = {\n Date: TZDate,\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffset: function(offset) {\n customOffsetMs = offset * MIN_TO_MS;\n },\n\n /**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n */\n setOffsetCallback: function(callback) {\n timezoneOffsetCallback = callback;\n },\n\n /**\n * (Use this method only for testing)\n * Reset system timezone and custom timezone\n */\n restoreOffset: function() {\n customOffsetMs = getTimezoneOffset();\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/timezone.js\n// module id = 5\n// module chunks = 0","/**\n * @fileoverview common/general utilities.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar aps = Array.prototype.slice;\n\nvar domutil = require('../common/domutil'),\n Collection = require('../common/collection');\n\n/**\n * Default schedule id getter for collection\n * @param {Schedule} schedule - schedule instance\n * @returns {string} schedule id\n */\nfunction scheduleIDGetter(schedule) {\n return schedule.cid();\n}\n\nmodule.exports = {\n /**\n * @param {...*} initItems - items to add newly created collection.\n * @returns {Collection} new collection for schedule models.\n */\n createScheduleCollection: function(initItems) { // eslint-disable-line\n var collection = new Collection(scheduleIDGetter);\n\n if (arguments.length) {\n collection.add.apply(collection, arguments);\n }\n\n return collection;\n },\n\n /**\n * Get ratio value.\n *\n * a : b = y : X;\n *\n * =\n *\n * X = (b * y) / a;\n * @param {number} a - a\n * @param {number} b - b\n * @param {number} y - y\n * @returns {number} ratio value\n */\n ratio: function(a, b, y) {\n // a : b = y : x;\n return (b * y) / a;\n },\n\n /**\n * Find nearest value from supplied params.\n * @param {number} value - value to find.\n * @param {array} nearest - nearest array.\n * @returns {number} nearest value\n */\n nearest: function(value, nearest) {\n var diff = util.map(nearest, function(v) {\n return Math.abs(value - v);\n }),\n nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\n return nearest[nearestIndex];\n },\n\n /**\n * pick value from object then return utility object to treat it.\n * @param {object} obj - object to search supplied path property.\n * @param {...string} paths - rest parameter that string value to search property in object.\n * @returns {object} pick object.\n */\n pick2: function(obj, paths) { // eslint-disable-line\n var result = util.pick.apply(null, arguments),\n pick;\n\n pick = {\n /**\n * @returns {*} picked value.\n */\n val: function() {\n return result;\n },\n\n /**\n * invoke supplied function in picked object.\n *\n * the callback context is set picked object.\n * @param {string|function} fn - function to invoke in picked object.\n * @returns {*} result of invoke.\n */\n then: function(fn) {\n var args;\n\n if (!result) {\n return undefined; //eslint-disable-line\n }\n\n args = aps.call(arguments, 1);\n\n if (util.isString(fn)) {\n return (util.pick(result, fn) || function() {}).apply(result, args);\n }\n\n return fn.call(result, result);\n }\n };\n\n return pick;\n },\n\n /**\n * Mixin method.\n *\n * (extend methods except property name 'mixin')\n * @param {object} from - mixin object.\n * @param {object} to - object to mixin.\n */\n mixin: function(from, to) {\n util.extend(to.prototype, from);\n },\n\n /**\n * Limit supplied value base on `minArr`, `maxArr`\n * @param {number} value - value\n * @param {array} minArr - min\n * @param {array} maxArr - max\n * @returns {number} limited value\n */\n limit: function(value, minArr, maxArr) {\n var v = Math.max.apply(null, [value].concat(minArr));\n v = Math.min.apply(null, [v].concat(maxArr));\n\n return v;\n },\n\n stripTags: function(str) {\n return str.replace(/<([^>]+)>/ig, '');\n },\n\n /**\n * Get first value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} first value in 2d array\n */\n firstIn2dArray: function(arr2d) {\n return util.pick(arr2d, '0', '0');\n },\n\n /**\n * Get last value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} last value in 2d array\n */\n lastIn2dArray: function(arr2d) {\n var lastRow = arr2d.length - 1,\n lastCol = arr2d[lastRow].length - 1;\n\n return util.pick(arr2d, lastRow, lastCol);\n },\n\n /**\n * Set 'title' attribute for all element that has exceeded content in\n * container\n * @param {string} selector - CSS selector {@see domutil#find}\n * @param {HTMLElement} container - container element\n */\n setAutoEllipsis: function(selector, container) {\n util.forEach(domutil.find(selector, container, true), function(el) {\n if (el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/common.js\n// module id = 6\n// module chunks = 0","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime')['default'];\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/runtime.js\n// module id = 7\n// module chunks = 0","/**\n * @fileoverview The base class of views.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\n\n/**\n * Base class of views.\n *\n * All views create own container element inside supplied container element.\n * @constructor\n * @param {HTMLElement} container Default container element for view.\n * you can use this element for this.container syntax.\n */\nfunction View(container) {\n var id = util.stamp(this);\n\n if (util.isUndefined(container)) {\n container = domutil.appendHTMLElement('div');\n }\n\n domutil.addClass(container, this.cssprefix(id));\n\n /**\n * unique id\n * @type {number}\n */\n this.id = id;\n\n /**\n * base element of view.\n * @type {HTMLDIVElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * child views.\n * @type {Collection}\n */\n this.children = new Collection(function(view) {\n return util.stamp(view);\n });\n /* eslint-enable*/\n\n /**\n * parent view instance.\n * @type {View}\n */\n this.parent = null;\n}\n\n/**\n * CSS classname prefix\n * @type {string}\n */\nView.prototype.cssPrefix = 'tui-view-';\n\n/**\n * Add child views.\n * @param {View} view The view instance to add.\n * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n */\nView.prototype.addChild = function(view, fn) {\n if (fn) {\n fn.call(view, this);\n }\n // add parent view\n view.parent = this;\n\n this.children.add(view);\n};\n\n/**\n * Remove added child view.\n * @param {(number|View)} id View id or instance itself to remove.\n * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n */\nView.prototype.removeChild = function(id, fn) {\n var view = util.isNumber(id) ? this.children.items[id] : id;\n\n id = util.stamp(view);\n\n if (fn) {\n fn.call(view, this);\n }\n\n this.children.remove(id);\n};\n\n/**\n * Render view recursively.\n */\nView.prototype.render = function() {\n this.children.each(function(childView) {\n childView.render();\n });\n};\n\n/**\n * Invoke function recursively.\n * @param {function} fn - function to invoke child view recursively\n * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n */\nView.prototype.recursive = function(fn, skipThis) {\n if (!util.isFunction(fn)) {\n return;\n }\n\n if (!skipThis) {\n fn(this);\n }\n\n this.children.each(function(childView) {\n childView.recursive(fn);\n });\n};\n\n/**\n * Resize view recursively to parent.\n */\nView.prototype.resize = function() {\n var args = Array.prototype.slice.call(arguments),\n parent = this.parent;\n\n while (parent) {\n if (util.isFunction(parent._onResize)) {\n parent._onResize.apply(parent, args);\n }\n\n parent = parent.parent;\n }\n};\n\n/**\n * Invoking method before destroying.\n */\nView.prototype._beforeDestroy = function() {};\n\n/**\n * Clear properties\n */\nView.prototype._destroy = function() {\n this._beforeDestroy();\n this.children.clear();\n this.container.innerHTML = '';\n\n this.id = this.parent = this.children = this.container = null;\n};\n\n/*eslint-disable*/\n/**\n * Destroy child view recursively.\n */\nView.prototype.destroy = function(isChildView) {\n this.children.each(function(childView) {\n childView.destroy(true);\n childView._destroy();\n });\n\n if (isChildView) {\n return;\n }\n\n this._destroy();\n};\n/* eslint-enable*/\n\n/**\n * Calculate view's container element bound.\n * @returns {object} The bound of container element.\n */\nView.prototype.getViewBound = function() {\n var container = this.container,\n position = domutil.getPosition(container),\n size = domutil.getSize(container);\n\n return {\n x: position[0],\n y: position[1],\n width: size[0],\n height: size[1]\n };\n};\n\n/**\n * Return view default CSS prefix\n * @param {string} [className] - if supplied then return prefix added class name\n * @returns {string} CSS prefix value\n */\nView.prototype.cssprefix = function(className) {\n return this.cssPrefix + (className || '');\n};\n\nutil.CustomEvents.mixin(View);\n\nmodule.exports = View;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/view.js\n// module id = 8\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Utility module for handling DOM events.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar browser = util.browser,\n eventKey = '_evt',\n DRAG = {\n START: ['touchstart', 'mousedown'],\n END: {\n mousedown: 'mouseup',\n touchstart: 'touchend',\n pointerdown: 'touchend',\n MSPointerDown: 'touchend'\n },\n MOVE: {\n mousedown: 'mousemove',\n touchstart: 'touchmove',\n pointerdown: 'touchmove',\n MSPointerDown: 'touchmove'\n }\n };\n\nvar domevent = {\n /**\n * Bind dom events.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n on: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._on(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._on(obj, type, handler, fn);\n });\n },\n\n /**\n * DOM event binding.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {String} type The name of events.\n * @param {*} fn handler function\n * @param {*} [context] context object for handler method.\n * @private\n */\n _on: function(obj, type, fn, context) {\n var id,\n handler,\n originHandler;\n\n id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\n if (obj[eventKey] && obj[eventKey][id]) {\n return;\n }\n\n handler = function(e) {\n fn.call(context || obj, e || window.event);\n };\n\n originHandler = handler;\n\n if ('addEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n handler = function(e) {\n e = e || window.event;\n if (!domevent._checkMouse(obj, e)) {\n return;\n }\n originHandler(e);\n };\n obj.addEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.addEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.addEventListener(type, handler, false);\n }\n } else if ('attachEvent' in obj) {\n obj.attachEvent('on' + type, handler);\n }\n\n obj[eventKey] = obj[eventKey] || {};\n obj[eventKey][id] = handler;\n },\n\n /**\n * Unbind DOM Event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n off: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._off(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._off(obj, type, handler, fn);\n });\n },\n\n /**\n * Unbind DOM event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {String} type The name of event to unbind.\n * @param {function()} fn Event handler that supplied when binding.\n * @param {*} context context object that supplied when binding.\n * @private\n */\n _off: function(obj, type, fn, context) {\n var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n handler = obj[eventKey] && obj[eventKey][id];\n\n if (!handler) {\n return;\n }\n\n if ('removeEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n obj.removeEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.removeEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.removeEventListener(type, handler, false);\n }\n } else if ('detachEvent' in obj) {\n try {\n obj.detachEvent('on' + type, handler);\n } catch (e) {} //eslint-disable-line\n }\n\n delete obj[eventKey][id];\n\n if (util.keys(obj[eventKey]).length) {\n return;\n }\n\n // throw exception when deleting host object's property in below IE8\n if (util.browser.msie && util.browser.version < 9) {\n obj[eventKey] = null;\n\n return;\n }\n\n delete obj[eventKey];\n },\n\n /**\n * Bind DOM event. this event will unbind after invokes.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n once: function(obj, types, fn, context) {\n var self = this;\n\n if (util.isObject(types)) {\n util.forEachOwnProperties(types, function(handler, type) {\n domevent.once(obj, type, handler, fn);\n });\n\n return;\n }\n\n /**\n * Handler for temporary usage for once implementation\n */\n function onceHandler() {\n fn.apply(context || obj, arguments);\n self._off(obj, types, onceHandler, context);\n }\n\n domevent.on(obj, types, onceHandler, context);\n },\n\n /**\n * Cancel event bubbling.\n * @param {Event} e Event object.\n */\n stopPropagation: function(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n } else {\n e.cancelBubble = true;\n }\n },\n\n /**\n * Cancel browser default actions.\n * @param {Event} e Event object.\n */\n preventDefault: function(e) {\n if (e.preventDefault) {\n e.preventDefault();\n } else {\n e.returnValue = false;\n }\n },\n\n /**\n * Syntatic sugar of stopPropagation and preventDefault\n * @param {Event} e Event object.\n */\n stop: function(e) {\n domevent.preventDefault(e);\n domevent.stopPropagation(e);\n },\n\n /**\n * Stop scroll events.\n * @param {HTMLElement} el HTML element to prevent scroll.\n */\n disableScrollPropagation: function(el) {\n domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n },\n\n /**\n * Stop all events related with click.\n * @param {HTMLElement} el HTML element to prevent all event related with click.\n */\n disableClickPropagation: function(el) {\n domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n },\n\n /**\n * Get mouse position from mouse event.\n *\n * If supplied relatveElement parameter then return relative position based on element.\n * @param {Event} mouseEvent Mouse event object\n * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n * @returns {number[]} mouse position.\n */\n getMousePosition: function(mouseEvent, relativeElement) {\n var rect;\n\n if (!relativeElement) {\n return [mouseEvent.clientX, mouseEvent.clientY];\n }\n\n rect = relativeElement.getBoundingClientRect();\n\n return [\n mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n mouseEvent.clientY - rect.top - relativeElement.clientTop\n ];\n },\n\n /**\n * Normalize mouse wheel event that different each browsers.\n * @param {MouseEvent} e Mouse wheel event.\n * @returns {Number} delta\n */\n getWheelDelta: function(e) {\n var delta = 0;\n\n if (e.wheelDelta) {\n delta = e.wheelDelta / 120;\n }\n\n if (e.detail) {\n delta = -e.detail / 3;\n }\n\n return delta;\n },\n\n /**\n * prevent firing mouseleave event when mouse entered child elements.\n * @param {HTMLElement} el HTML element\n * @param {MouseEvent} e Mouse event\n * @returns {Boolean} leave?\n * @private\n */\n _checkMouse: function(el, e) {\n var related = e.relatedTarget;\n\n if (!related) {\n return true;\n }\n\n try {\n while (related && (related !== el)) {\n related = related.parentNode;\n }\n } catch (err) {\n return false;\n }\n\n return (related !== el);\n },\n\n /**\n * Trigger specific events to html element.\n * @param {HTMLElement} obj HTMLElement\n * @param {string} type Event type name\n * @param {object} [eventData] Event data\n */\n trigger: function(obj, type, eventData) {\n var rMouseEvent = /(mouse|click)/;\n if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n eventData = domevent.mouseEvent(type);\n }\n\n if (obj.dispatchEvent) {\n obj.dispatchEvent(eventData);\n } else if (obj.fireEvent) {\n obj.fireEvent('on' + type, eventData);\n }\n },\n\n /**\n * Create virtual mouse event.\n *\n * Tested at\n *\n * - IE7 ~ IE11\n * - Chrome\n * - Firefox\n * - Safari\n * @param {string} type Event type\n * @param {object} [eventObj] Event data\n * @returns {MouseEvent} Virtual mouse event.\n */\n mouseEvent: function(type, eventObj) {\n var evt,\n e;\n\n e = util.extend({\n bubbles: true,\n cancelable: (type !== 'mousemove'),\n view: window,\n wheelDelta: 0,\n detail: 0,\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false,\n button: 0,\n relatedTarget: undefined // eslint-disable-line\n }, eventObj);\n\n // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n if (browser.msie && browser.version < 9) {\n delete e.wheelDelta;\n }\n\n if (typeof document.createEvent === 'function') {\n evt = document.createEvent('MouseEvents');\n evt.initMouseEvent(type,\n e.bubbles, e.cancelable, e.view, e.detail,\n e.screenX, e.screenY, e.clientX, e.clientY,\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, document.body.parentNode\n );\n } else if (document.createEventObject) {\n evt = document.createEventObject();\n\n util.forEach(e, function(value, propName) {\n evt[propName] = value;\n }, this);\n evt.button = {0: 1,\n 1: 4,\n 2: 2}[evt.button] || evt.button;\n }\n\n return evt;\n },\n\n /**\n * Normalize mouse event's button attributes.\n *\n * Can detect which button is clicked by this method.\n *\n * Meaning of return numbers\n *\n * - 0: primary mouse button\n * - 1: wheel button or center button\n * - 2: secondary mouse button\n * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n * @returns {number} - The value of meaning which button is clicked?\n */\n getMouseButton: function(mouseEvent) {\n var button,\n primary = '0,1,3,5,7',\n secondary = '2,6',\n wheel = '4';\n\n /* istanbul ignore else */\n if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n return mouseEvent.button;\n }\n\n button = String(mouseEvent.button);\n if (primary.indexOf(button) > -1) {\n return 0;\n }\n if (secondary.indexOf(button) > -1) {\n return 2;\n }\n if (~wheel.indexOf(button)) {\n return 1;\n }\n\n return -1;\n }\n};\n\nmodule.exports = domevent;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/domevent.js\n// module id = 9\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.extend = extend;\nexports.indexOf = indexOf;\nexports.escapeExpression = escapeExpression;\nexports.isEmpty = isEmpty;\nexports.createFrame = createFrame;\nexports.blockParams = blockParams;\nexports.appendContextPath = appendContextPath;\nvar escape = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`',\n '=': '='\n};\n\nvar badChars = /[&<>\"'`=]/g,\n possible = /[&<>\"'`=]/;\n\nfunction escapeChar(chr) {\n return escape[chr];\n}\n\nfunction extend(obj /* , ...source */) {\n for (var i = 1; i < arguments.length; i++) {\n for (var key in arguments[i]) {\n if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n obj[key] = arguments[i][key];\n }\n }\n }\n\n return obj;\n}\n\nvar toString = Object.prototype.toString;\n\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n/* eslint-disable func-style */\nvar isFunction = function isFunction(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\n/* istanbul ignore next */\nif (isFunction(/x/)) {\n exports.isFunction = isFunction = function (value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nexports.isFunction = isFunction;\n\n/* eslint-enable func-style */\n\n/* istanbul ignore next */\nvar isArray = Array.isArray || function (value) {\n return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n};\n\nexports.isArray = isArray;\n// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\nfunction indexOf(array, value) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n}\n\nfunction escapeExpression(string) {\n if (typeof string !== 'string') {\n // don't escape SafeStrings, since they're already safe\n if (string && string.toHTML) {\n return string.toHTML();\n } else if (string == null) {\n return '';\n } else if (!string) {\n return string + '';\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = '' + string;\n }\n\n if (!possible.test(string)) {\n return string;\n }\n return string.replace(badChars, escapeChar);\n}\n\nfunction isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction createFrame(object) {\n var frame = extend({}, object);\n frame._parent = object;\n return frame;\n}\n\nfunction blockParams(params, ids) {\n params.path = ids;\n return params;\n}\n\nfunction appendContextPath(contextPath, id) {\n return (contextPath ? contextPath + '.' : '') + id;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQzs7QUFFRixJQUFNLFFBQVEsR0FBRyxZQUFZO0lBQ3ZCLFFBQVEsR0FBRyxXQUFXLENBQUM7O0FBRTdCLFNBQVMsVUFBVSxDQUFDLEdBQUcsRUFBRTtBQUN2QixTQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztDQUNwQjs7QUFFTSxTQUFTLE1BQU0sQ0FBQyxHQUFHLG9CQUFtQjtBQUMzQyxPQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUN6QyxTQUFLLElBQUksR0FBRyxJQUFJLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBRTtBQUM1QixVQUFJLE1BQU0sQ0FBQyxTQUFTLENBQUMsY0FBY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V4dFBhdGggPyBjb250ZXh0UGF0aCArICcuJyA6ICcnKSArIGlkO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/utils.js\n// module id = 10\n// module chunks = 0","/**\n * @fileoverview RequestAnimFrame\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar requestFn,\n cancelFn;\n\n/**\n * Get name with vendor prefix\n * @param {string} name - name to prepend prefix\n * @returns {string} vendor prefixed name\n */\nfunction getPrefixed(name) {\n return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n}\n\nrequestFn = global.requestAnimationFrame ||\n getPrefixed('RequestAnimationFrame') ||\n function(fn, context) {\n fn.call(context);\n };\n\ncancelFn = global.cancelAnimationFrame ||\n getPrefixed('CancelAnimationFrame') ||\n getPrefixed('CancelRequestAnimationFrame') ||\n function() {};\n\n/**\n * @module module:reqAnimFrame\n */\n\nmodule.exports = {\n /**\n * Shim of requestAnimationFrame\n * @param {function} fn callback function\n * @param {*} context context for callback\n * @returns {number} Unique id\n */\n requestAnimFrame: function(fn, context) {\n return requestFn.call(global, util.bind(fn, context));\n },\n\n /**\n * Shim of cancelAnimationFrame\n * @param {number} id requestAnimationFrame id\n */\n cancelAnimFrame: function(id) {\n if (!id) {\n return;\n }\n\n cancelFn.call(global, id);\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/reqAnimFrame.js\n// module id = 11\n// module chunks = 0","/**\n * @fileoverview Common collections.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachProp = util.forEachOwnProperties,\n forEachArr = util.forEachArray,\n isFunc = util.isFunction,\n isObj = util.isObject;\n\nvar aps = Array.prototype.slice;\n\n/**\n * Common collection.\n *\n * It need function for get model's unique id.\n *\n * if the function is not supplied then it use default function {@link Collection#getItemID}\n * @constructor\n * @param {function} [getItemIDFn] function for get model's id.\n */\nfunction Collection(getItemIDFn) {\n /**\n * @type {object.}\n */\n this.items = {};\n\n /**\n * @type {number}\n */\n this.length = 0;\n\n if (isFunc(getItemIDFn)) {\n /**\n * @type {function}\n */\n this.getItemID = getItemIDFn;\n }\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Combind supplied function filters and condition.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.and = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 0;\n\n for (; i < cnt; i += 1) {\n if (!filters[i].call(null, item)) {\n return false;\n }\n }\n\n return true;\n };\n};\n\n/**\n * Combine multiple function filters with OR clause.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.or = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 1,\n result = filters[0].call(null, item);\n\n for (; i < cnt; i += 1) {\n result = (result || filters[i].call(null, item));\n }\n\n return result;\n };\n};\n\n/**\n * Merge several collections.\n *\n * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n * @param {...Collection} collections collection arguments to merge\n * @returns {Collection} merged collection.\n */\nCollection.merge = function(collections) { // eslint-disable-line\n var cols = aps.call(arguments),\n newItems = {},\n merged = new Collection(cols[0].getItemID),\n extend = util.extend;\n\n forEachArr(cols, function(col) {\n extend(newItems, col.items);\n });\n\n merged.items = newItems;\n merged.length = util.keys(merged.items).length;\n\n return merged;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * get model's unique id.\n * @param {object} item model instance.\n * @returns {number} model unique id.\n */\nCollection.prototype.getItemID = function(item) {\n return String(item._id);\n};\n\n/**\n * add models.\n * @param {...*} item models to add this collection.\n */\nCollection.prototype.add = function(item) {\n var self = this,\n id,\n ownItems;\n\n if (arguments.length > 1) {\n forEachArr(aps.call(arguments), function(o) {\n self.add(o);\n });\n\n return;\n }\n\n id = this.getItemID(item);\n ownItems = this.items;\n\n if (!ownItems[id]) {\n this.length += 1;\n }\n ownItems[id] = item;\n};\n\n/**\n * remove models.\n * @param {...(object|string|number)} id model instance or unique id to delete.\n * @returns {array} deleted model list.\n */\nCollection.prototype.remove = function(id) {\n var self = this,\n removed = [],\n ownItems,\n itemToRemove;\n\n if (!this.length) {\n return removed;\n }\n\n if (arguments.length > 1) {\n removed = util.map(aps.call(arguments), function(_id) {\n return self.remove(_id);\n });\n\n return removed;\n }\n\n ownItems = this.items;\n\n if (isObj(id)) {\n id = this.getItemID(id);\n }\n\n if (!ownItems[id]) {\n return removed;\n }\n\n this.length -= 1;\n itemToRemove = ownItems[id];\n delete ownItems[id];\n\n return itemToRemove;\n};\n\n/**\n * remove all models in collection.\n */\nCollection.prototype.clear = function() {\n this.items = {};\n this.length = 0;\n};\n\n/**\n * check collection has specific model.\n * @param {(object|string|number|function)} id model instance or id or filter function to check\n * @returns {boolean} is has model?\n */\nCollection.prototype.has = function(id) {\n var isFilter,\n has;\n\n if (!this.length) {\n return false;\n }\n\n isFilter = isFunc(id);\n has = false;\n\n if (isFilter) {\n this.each(function(item) {\n if (id(item) === true) {\n has = true;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n } else {\n id = isObj(id) ? this.getItemID(id) : id;\n has = util.isExisty(this.items[id]);\n }\n\n return has;\n};\n\n/**\n * invoke callback when model exist in collection.\n * @param {(string|number)} id model unique id.\n * @param {function} fn the callback.\n * @param {*} [context] callback context.\n */\nCollection.prototype.doWhenHas = function(id, fn, context) {\n var item = this.items[id];\n\n if (!util.isExisty(item)) {\n return;\n }\n\n fn.call(context || this, item);\n};\n\n/**\n * Search model. and return new collection.\n * @param {function} filter filter function.\n * @returns {Collection} new collection with filtered models.\n * @example\n * collection.find(function(item) {\n * return item.edited === true;\n * });\n *\n * function filter1(item) {\n * return item.edited === false;\n * }\n *\n * function filter2(item) {\n * return item.disabled === false;\n * }\n *\n * collection.find(Collection.and(filter1, filter2));\n *\n * collection.find(Collection.or(filter1, filter2));\n */\nCollection.prototype.find = function(filter) {\n var result = new Collection();\n\n if (this.hasOwnProperty('getItemID')) {\n result.getItemID = this.getItemID;\n }\n\n this.each(function(item) {\n if (filter(item) === true) {\n result.add(item);\n }\n });\n\n return result;\n};\n\n/**\n * Group element by specific key values.\n *\n * if key parameter is function then invoke it and use returned value.\n * @param {(string|number|function|array)} key key property or getter function.\n * if string[] supplied, create each collection before grouping.\n * @param {function} [groupFunc] - function that return each group's key\n * @returns {object.} grouped object\n * @example\n *\n * // pass `string`, `number`, `boolean` type value then group by property value.\n * collection.groupBy('gender'); // group by 'gender' property value.\n * collection.groupBy(50); // group by '50' property value.\n *\n * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n * collection.groupBy(function(item) {\n * if (item.score > 60) {\n * return 'pass';\n * }\n * return 'fail';\n * });\n *\n * // pass `array` with first arguments then create each collection before grouping.\n * collection.groupBy(['go', 'ruby', 'javascript']);\n * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n *\n * // can pass `function` with `array` then group each elements.\n * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n * if (item.isFast) {\n * return 'go';\n * }\n *\n * return item.name;\n * });\n */\nCollection.prototype.groupBy = function(key, groupFunc) {\n var result = {},\n collection,\n baseValue,\n keyIsFunc = isFunc(key),\n getItemIDFn = this.getItemID;\n\n if (util.isArray(key)) {\n util.forEachArray(key, function(k) {\n result[String(k)] = new Collection(getItemIDFn);\n });\n\n if (!groupFunc) {\n return result;\n }\n\n key = groupFunc;\n keyIsFunc = true;\n }\n\n this.each(function(item) {\n if (keyIsFunc) {\n baseValue = key(item);\n } else {\n baseValue = item[key];\n\n if (isFunc(baseValue)) {\n baseValue = baseValue.apply(item);\n }\n }\n\n collection = result[baseValue];\n\n if (!collection) {\n collection = result[baseValue] = new Collection(getItemIDFn);\n }\n\n collection.add(item);\n });\n\n return result;\n};\n\n/**\n * Return single item in collection.\n *\n * Returned item is inserted in this collection firstly.\n * @param {function} [filter] - function filter\n * @returns {object} item.\n */\nCollection.prototype.single = function(filter) {\n var result,\n useFilter = util.isFunction(filter);\n\n this.each(function(item) {\n if (!useFilter) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n if (filter(item)) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n }, this);\n\n return result;\n};\n\n/**\n * sort a basis of supplied compare function.\n * @param {function} compareFunction compareFunction\n * @returns {array} sorted array.\n */\nCollection.prototype.sort = function(compareFunction) {\n var arr = [];\n\n this.each(function(item) {\n arr.push(item);\n });\n\n if (isFunc(compareFunction)) {\n arr = arr.sort(compareFunction);\n }\n\n return arr;\n};\n\n/**\n * iterate each model element.\n *\n * when iteratee return false then break the loop.\n * @param {function} iteratee iteratee(item, index, items)\n * @param {*} [context] context\n */\nCollection.prototype.each = function(iteratee, context) {\n forEachProp(this.items, iteratee, context || this);\n};\n\n/**\n * return new array with collection items.\n * @returns {array} new array.\n */\nCollection.prototype.toArray = function() {\n if (!this.length) {\n return [];\n }\n\n return util.map(this.items, function(item) {\n return item;\n });\n};\n\nmodule.exports = Collection;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/collection.js\n// module id = 12\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var loc = node && node.loc,\n line = undefined,\n column = undefined;\n if (loc) {\n line = loc.start.line;\n column = loc.start.column;\n\n message += ' - ' + line + ':' + column;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n /* istanbul ignore else */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, Exception);\n }\n\n try {\n if (loc) {\n this.lineNumber = line;\n\n // Work around issue under safari where we can't directly set the column value\n /* istanbul ignore next */\n if (Object.defineProperty) {\n Object.defineProperty(this, 'column', {\n value: column,\n enumerable: true\n });\n } else {\n this.column = column;\n }\n }\n } catch (nop) {\n /* Ignore if the browser is very particular */\n }\n}\n\nException.prototype = new Error();\n\nexports['default'] = Exception;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ0EsSUFBTSxVQUFVLEdBQUcsQ0FBQyxhQUFhLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxPQUFPLENBQUMsQ0FBQzs7QUFFbkcsU0FBUyxTQUFTLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRTtBQUNoQyxNQUFJLEdBQUcsR0FBRyxJQUFJLElBQUksSUFBSSxDQUFDLEdBQUc7TUFDdEIsSUFBSSxZQUFBO01BQ0osTUFBTSxZQUFBLENBQUM7QUFDWCxNQUFJLEdBQUcsRUFBRTtBQUNQLFFBQUksR0FBRyxHQUFHLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQztBQUN0QixVQUFNLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUM7O0FBRTFCLFdBQU8sSUFBSSxLQUFLLEdBQUcsSUFBSSxHQUFHLEdBQUcsR0FBRyxNQUFNLENBQUM7R0FDeEM7O0FBRUQsTUFBSSxHQUFHLEdBQUcsS0FBSyxDQUFDLFNBQVMsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxPQUFPLENBQUMsQ0FBQzs7O0FBRzFELE9BQUssSUFBSSxHQUFHLEdBQUcsQ0FBQyxFQUFFLEdBQUcsR0FBRyxVQUFVLENBQUMsTUFBTSxFQUFFLEdBQUcsRUFBRSxFQUFFO0FBQ2hELFFBQUksQ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gfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgIH1cbiAgICB9XG4gIH0gY2F0Y2ggKG5vcCkge1xuICAgIC8qIElnbm9yZSBpZiB0aGUgYnJvd3NlciBpcyB2ZXJ5IHBhcnRpY3VsYXIgKi9cbiAgfVxufVxuXG5FeGNlcHRpb24ucHJvdG90eXBlID0gbmV3IEVycm9yKCk7XG5cbmV4cG9ydCBkZWZhdWx0IEV4Y2VwdGlvbjtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/exception.js\n// module id = 13\n// module chunks = 0","/**\n * @fileoverview Utility module for array sort, binary search.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../common/datetime');\n\n/**\n * A module for sorting array.\n * @module array\n */\n\n/**********\n * Search\n **********/\n\n/**\n * search item index using binary search algorithm.\n *\n * the array must be sorted.\n * @param {array} arr array to search.\n * @param {(string|number|boolean)} search value to search.\n * @param {function} [fn] iteratee for retrieve each element's value to search.\n * @param {function} [compare] compare function for specific sort status. default is string ascending.\n * @returns {number} The number of item index searched. return negative number when no exist that item.\n * It can use insert index after Math.abs()\n * @example\n *\n * var arr = [1, 3, 7, 11, 15, 23];\n *\n * function sortNumber(a, b) {\n * return a - b;\n * }\n *\n * bsearch(arr, 15, null, sortNumber); // 4\n * bsearch(arr, 21, null, sortNumber); // -5\n *\n * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n * // [1, 2, 7, 11, 15, 21, 23]\n */\nfunction bsearch(arr, search, fn, compare) {\n var minIndex = 0,\n maxIndex = arr.length - 1,\n currentIndex,\n value,\n comp;\n\n compare = compare || stringASC;\n\n while (minIndex <= maxIndex) {\n currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n comp = compare(value, search);\n\n if (comp < 0) {\n minIndex = currentIndex + 1;\n } else if (comp > 0) {\n maxIndex = currentIndex - 1;\n } else {\n return currentIndex;\n }\n }\n\n return ~maxIndex;\n}\n\n/**********\n * Compare Functions\n **********/\n\n/**\n * compare function for array sort.\n *\n * sort array by ascending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanASC(a, b) {\n if (a !== b) {\n return a ? -1 : 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by descending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanDESC(a, b) {\n if (a !== b) {\n return a ? 1 : -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number ascending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberASC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return a - b;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number descending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberDESC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return b - a;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * Compare schedule models for sort.\n *\n * 1. all day schedule first.\n * 2. early start.\n * 3. longest duration.\n * 4. early created.\n * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n * @returns {number} Result of comparison.\n */\nfunction scheduleASC(a, b) {\n var durationA, durationB;\n var allDayCompare, startsCompare;\n var modelA = a.valueOf();\n var modelB = b.valueOf();\n\n allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\n if (allDayCompare) {\n return allDayCompare;\n }\n\n startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\n if (startsCompare) {\n return startsCompare;\n }\n\n durationA = a.duration().getTime();\n durationB = b.duration().getTime();\n\n if (durationA < durationB) {\n return 1;\n }\n if (durationA > durationB) {\n return -1;\n }\n\n return util.stamp(modelA) - util.stamp(modelB);\n}\n\nmodule.exports = {\n bsearch: bsearch,\n compare: {\n schedule: {\n asc: scheduleASC\n },\n bool: {\n asc: booleanASC,\n desc: booleanDESC\n },\n num: {\n asc: numberASC,\n desc: numberDESC\n },\n str: {\n asc: stringASC,\n desc: stringDESC,\n ascIgnoreCase: stringASCIgnoreCase,\n descIgnoreCase: stringDESCIgnoreCase\n }\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/array.js\n// module id = 14\n// module chunks = 0","/**\n * @fileoverview Wrapper module for easy calc date object\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\n\n/**\n * @constructor\n * @param {Date} date to wrapping DW class\n */\nfunction DW(date) {\n if (!(this instanceof DW)) {\n return new DW(date);\n }\n\n if (!(date instanceof TZDate)) {\n date = new TZDate(date);\n }\n\n /**\n * @type {Date}\n */\n this.d = date;\n}\n\n/**\n * Return d property when supplied object is DW. else return itself\n * @param {*} obj - object\n * @returns {Date} date\n */\nDW.prototype.safe = function(obj) {\n if (obj.constructor === DW) {\n return obj.d;\n }\n\n return obj;\n};\n\n/**\n * Clone DW object\n * @returns {DW} cloned dwrap object\n */\nDW.prototype.clone = function() {\n return new DW(new TZDate(Number(this.d)));\n};\n\n/**\n * Add days\n * @param {number} day - day to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addDate = function(day) {\n this.d.setDate(this.d.getDate() + day);\n\n return this;\n};\n\n/**\n * Add month. If month value is changed, date set to 1.\n * @param {number} m - month to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addMonth = function(m) {\n var prevMonth = this.d.getMonth();\n var prevYear = this.d.getFullYear();\n this.d.setMonth(prevMonth + m);\n\n // move to first day on the month because plus 1 month on '2017-01-31' means '2017-03-01'\n // Don't do it on different year(Because december + 1month is ok)\n if (this.d.getFullYear() === prevYear && this.d.getMonth() !== prevMonth) {\n this.d.setMonth(prevMonth + m, 1);\n }\n\n return this;\n};\n\n/**\n * Set hour, minutes, seconds, milliseconds\n * @param {number} h - hours\n * @param {number} m - minutes\n * @param {number} s - seconds\n * @param {number} ms - milliseconds\n * @returns {DW} wrapper object\n */\nDW.prototype.setHours = function(h, m, s, ms) {\n this.d.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * Whether date is between supplied dates?\n * @param {Date|DW} d1 - from date\n * @param {Date|DW} d2 - to date\n * @returns {boolean} is between?\n */\nDW.prototype.isBetween = function(d1, d2) {\n var safe = this.safe;\n\n return safe(d1) <= this.d && this.d <= safe(d2);\n};\n\nmodule.exports = DW;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/dw.js\n// module id = 15\n// module chunks = 0","/**\n * @fileoverview Floating layer module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for floating layer module\n * @param {HTMLElement} container - parent continer for floating layer\n */\nfunction FloatingLayer(options, container) {\n var sibling = container[FloatingLayer.PROP_KEY],\n layerContainer;\n\n if (!sibling) {\n sibling = container[FloatingLayer.PROP_KEY] = [];\n }\n\n sibling.push(this);\n\n /**\n * @type {Collection}\n */\n this.sibling = sibling;\n\n /**\n * @type {number}\n */\n this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\n layerContainer = document.createElement('div');\n layerContainer.style.display = 'none';\n layerContainer.style.position = 'absolute';\n domutil.addClass(layerContainer, config.classname('floating-layer'));\n container.appendChild(layerContainer);\n\n View.call(this, layerContainer);\n\n /**\n * @type {HTMLElement}\n */\n this.parent = container;\n}\n\nutil.inherit(FloatingLayer, View);\n\n/**\n * @const\n */\nFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\n/**\n * @const\n */\nFloatingLayer.INIT_ZINDEX = 999;\n\n/**\n * Destroy floating layer instance. if there no instnace in parent container\n *\n * remove instance cache property in container element\n */\nFloatingLayer.prototype.destroy = function() {\n var parent = this.parent,\n sibling = this.sibling,\n i = 0, cnt = sibling.length;\n\n for (; i < cnt; i += 1) {\n if (sibling[i] === this) {\n sibling.splice(i, 1);\n break;\n }\n }\n\n if (!sibling.length) {\n try {\n delete parent[FloatingLayer.PROP_KEY];\n } catch (e) {\n parent[FloatingLayer.PROP_KEY] = null;\n }\n\n parent.style.position = '';\n }\n\n domutil.remove(this.container);\n\n this.sibling = null;\n\n View.prototype.destroy.call(this);\n};\n\n/**\n * @returns {boolean} whether layer is visible?\n */\nFloatingLayer.prototype.isVisible = function() {\n return this.container.style.display !== 'none';\n};\n\n/**\n * Set layer position\n * @param {number} x - x coordinate of layer\n * @param {number} y - y coordinate of layer\n */\nFloatingLayer.prototype.setPosition = function(x, y) {\n domutil.setPosition(this.container, x, y);\n};\n\n/**\n * Set layer left, top, right, bottom position\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\nFloatingLayer.prototype.setLTRB = function(ltrb) {\n domutil.setLTRB(this.container, ltrb);\n};\n\n/**\n * Set layer size\n * @param {number|string} w - layer width\n * @param {number|string} h - layer height\n */\nFloatingLayer.prototype.setSize = function(w, h) {\n var container = this.container;\n\n w = util.isNumber(w) ? w + 'px' : w;\n h = util.isNumber(h) ? h + 'px' : h;\n\n container.style.width = w;\n container.style.height = h;\n};\n\n/**\n * Set layer content\n * @param {string} html - html string\n */\nFloatingLayer.prototype.setContent = function(html) {\n this.container.innerHTML = html;\n};\n\n/**\n * Get largest z-index from sibling layers\n * @returns {number} largest z-index value\n */\nFloatingLayer.prototype.getLargestZIndex = function() {\n var zIndexes = util.map(this.sibling, function(layer) {\n return layer.zIndex;\n });\n\n return Math.max.apply(null, zIndexes);\n};\n\n/**\n * Set focus to layer\n */\nFloatingLayer.prototype.focus = function() {\n var zIndexForShow = this.getLargestZIndex() + 1;\n this.container.style.zIndex = this.zIndex = zIndexForShow;\n};\n\n/**\n * Show layer\n */\nFloatingLayer.prototype.show = function() {\n this.focus();\n this.container.style.display = 'block';\n};\n\n/**\n * Hide layer\n */\nFloatingLayer.prototype.hide = function() {\n this.container.style.display = 'none';\n};\n\nmodule.exports = FloatingLayer;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/floatingLayer.js\n// module id = 16\n// module chunks = 0","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Base mixin object for handler/allday\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\n\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @mixin Allday.Core\n */\nvar alldayCore = {\n /**\n * @param {Allday} alldayView - view instance of allday.\n * @param {MouseEvent} mouseEvent - mouse schedule object.\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleData: function(alldayView, mouseEvent) {\n var weekdayView = alldayView.children.single(),\n container,\n datesInRange,\n containerWidth,\n mousePos,\n dragStartXIndex,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n container = weekdayView.container;\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n containerWidth = domutil.getSize(container)[0];\n mousePos = domevent.getMousePosition(mouseEvent, container);\n dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\n /**\n * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n * @returns {object} schedule data.\n */\n return function(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, container),\n mouseX = pos[0],\n xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: alldayView,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: mouseEvent.type,\n grids: grids,\n range: range\n };\n };\n }\n};\n\n/**\n * Get the left index\n * @param {Array} grids - grid size information\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\nfunction getX(grids, left) {\n var i = 0;\n var length = grids.length;\n var grid;\n if (left < 0) {\n left = 0;\n }\n\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n}\n\nmodule.exports = alldayCore;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/core.js\n// module id = 17\n// module chunks = 0","/**\n * @fileoverview Module for calculate date by month view and mouse event object\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent');\nvar mfloor = Math.floor;\n\n/**\n * Get high order function that can calc date in mouse point\n * @param {Month} monthView - month view\n * @returns {function} function return event data by mouse event object\n */\nfunction getMousePosDate(monthView) {\n var weekColl = monthView.children,\n weeks = weekColl.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n }),\n weekCount = weekColl.length,\n days = weekColl.single().getRenderDateRange(),\n dayCount = days.length,\n relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n size = domutil.getSize(relativeContainer),\n grids = monthView.grids;\n\n /**\n * Get the left index\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\n function getX(left) {\n var i = 0;\n var length = grids.length;\n var grid;\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n }\n\n /**\n * Get date related with mouse event object\n * @param {object} mouseEvent - click event data\n * @returns {object} data related with mouse event\n */\n function getDate(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n x = getX(common.ratio(size[0], 100, pos[0])),\n y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n weekdayView, date;\n\n weekdayView = util.pick(weeks, y);\n\n if (!weekdayView) {\n return null;\n }\n\n date = util.pick(weekdayView.getRenderDateRange(), x);\n\n if (!date) {\n return null;\n }\n\n return {\n x: x,\n y: y,\n sizeX: dayCount,\n sizeY: weekCount,\n date: date,\n weekdayView: weekdayView,\n triggerEvent: mouseEvent.type\n };\n }\n\n return getDate;\n}\n\nmodule.exports = getMousePosDate;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/core.js\n// module id = 18\n// module chunks = 0","/**\n * @fileoverview Core methods for dragging actions\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar domevent = require('../../common/domevent');\nvar Point = require('../../common/point');\n\n/**\n * @mixin Time.Core\n */\nvar timeCore = {\n /**\n * Get Y index ratio(hour) in time grids by supplied parameters.\n * @param {number} baseMil - base milliseconds number for supplied height.\n * @param {number} height - container element height.\n * @param {number} y - Y coordinate to calculate hour ratio.\n * @returns {number} hour index ratio value.\n */\n _calcGridYIndex: function(baseMil, height, y) {\n // get ratio from right expression > point.y : x = session.height : baseMil\n // and convert milliseconds value to hours.\n var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n floored = result | 0,\n nearest = common.nearest(result - floored, [0, 1]);\n\n return floored + (nearest ? 0.5 : 0);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleData: function(timeView) {\n var self = this,\n container = timeView.container,\n options = timeView.options,\n viewHeight = timeView.getViewBound().height,\n viewTime = Number(timeView.getDate()),\n hourLength = options.hourEnd - options.hourStart,\n baseMil = datetime.millisecondsFrom('hour', hourLength);\n\n /**\n * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n * @param {object} [extend] - object to extend event data before return.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(mouseEvent, extend) {\n var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n gridY = common.ratio(viewHeight, hourLength, mouseY),\n timeY = viewTime + datetime.millisecondsFrom('hour', gridY),\n nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n nearestGridTimeY = viewTime + datetime.millisecondsFrom('hour', nearestGridY + options.hourStart);\n\n return util.extend({\n target: mouseEvent.target || mouseEvent.srcElement,\n relatedView: timeView,\n originEvent: mouseEvent,\n mouseY: mouseY,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n triggerEvent: mouseEvent.type\n }, extend);\n }, this);\n },\n\n /**\n * Mixin method.\n * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n */\n mixin: function(obj) {\n var proto = obj.prototype;\n util.forEach(timeCore, function(method, methodName) {\n if (methodName === 'mixin') {\n return;\n }\n\n proto[methodName] = method;\n });\n }\n};\n\nmodule.exports = timeCore;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/core.js\n// module id = 19\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Model of schedule.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar TZDate = require('../common/timezone').Date;\nvar datetime = require('../common/datetime');\nvar dirty = require('../common/dirty');\nvar model = require('../common/model');\n\n/**\n * 일정 카테고리\n * @readonly\n * @enum {string}\n */\nvar SCHEDULE_CATEGORY = {\n /** 마일스톤 */\n MILESTONE: 'milestone',\n\n /** 업무 */\n TASK: 'task',\n\n /** 종일일정 */\n ALLDAY: 'allday',\n\n /** 시간별 일정 */\n TIME: 'time'\n};\n\n/**\n * The model of calendar schedules.\n * @constructor\n * @mixes dirty\n * @mixes model\n */\nfunction Schedule() {\n /**\n * `Optional` unique id for various use.\n * @type {string}\n */\n this.id = '';\n\n /**\n * title for schedule.\n * @type {string}\n */\n this.title = '';\n\n /**\n * is schedule is all day schedule?\n * @type {boolean}\n */\n this.isAllDay = false;\n\n /**\n * schedule start\n * @type {TZDate}\n */\n this.start = null;\n\n /**\n * schedule end\n * @type {TZDate}\n */\n this.end = null;\n\n /**\n * schedule text color\n * @type {string}\n */\n this.color = '#000';\n\n /**\n * schedule block visibility\n * @type {boolean}\n */\n this.isVisible = true;\n\n /**\n * schedule background color\n * @type {string}\n */\n this.bgColor = '#a1b56c';\n\n /**\n * schedule left border color\n * @type {string}\n */\n this.borderColor = '#000';\n\n /**\n * 캘린더 ID\n * @type {string}\n */\n this.calendarId = '';\n\n /**\n * 일정 카테고리 (마일스톤, 업무, 종일일정, 시간별일정)\n * @type {string}\n */\n this.category = '';\n\n /**\n * 업무 일정의 경우 구분 (출근전, 점심전, 퇴근전)\n * @type {string}\n */\n this.dueDateClass = '';\n\n /**\n * 커스텀 스타일\n * @type {string}\n */\n this.customStyle = '';\n\n /**\n * in progress flag to do something\n * @type {boolean}\n */\n this.isPending = false;\n\n /**\n * focused schedule flag\n * @type {boolean}\n */\n this.isFocused = false;\n\n /**\n * read-only schedule flag\n * @type {boolean}\n */\n this.isReadOnly = false;\n\n /**\n * 렌더링과 관계 없는 별도 데이터 저장 공간.\n * @type {object}\n */\n this.raw = null;\n\n // initialize model id\n util.stamp(this);\n}\n\n/**********\n * static props\n **********/\n\nSchedule.schema = {\n required: ['title'],\n dateRange: ['start', 'end']\n};\n\n/**\n * create schedule model from json(object) data.\n * @param {object} data object for model.\n * @returns {Schedule} Schedule model instance.\n */\nSchedule.create = function(data) {\n var inst = new Schedule();\n inst.init(data);\n\n return inst;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Initialize schedule instance.\n * @param {object} options options.\n */\nSchedule.prototype.init = function(options) {\n options = util.extend({}, options);\n if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n options.isAllDay = true;\n }\n\n this.id = options.id || '';\n this.title = options.title || '';\n this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\n this.color = options.color || this.color;\n this.bgColor = options.bgColor || this.bgColor;\n this.borderColor = options.borderColor || this.borderColor;\n this.calendarId = options.calendarId || '';\n this.category = options.category || '';\n this.dueDateClass = options.dueDateClass || '';\n this.customStyle = options.customStyle || '';\n this.isPending = options.isPending || false;\n this.isFocused = options.isFocused || false;\n this.isReadOnly = options.isReadOnly || false;\n\n if (this.isAllDay) {\n this.setAllDayPeriod(options.start, options.end);\n } else {\n this.setTimePeriod(options.start, options.end);\n }\n\n if (options.category === SCHEDULE_CATEGORY.MILESTONE ||\n options.category === SCHEDULE_CATEGORY.TASK) {\n this.start = new TZDate(this.end);\n }\n\n this.raw = options.raw || null;\n};\n\nSchedule.prototype.setAllDayPeriod = function(start, end) {\n // 종일일정인 경우 문자열의 날짜정보만 사용한다.\n if (util.isString(start)) {\n start = datetime.parse(start.substring(0, 10));\n }\n if (util.isString(end)) {\n end = datetime.parse(end.substring(0, 10));\n }\n\n this.start = start;\n this.start.setHours(0, 0, 0);\n this.end = end || new TZDate(this.start);\n this.end.setHours(23, 59, 59);\n};\n\nSchedule.prototype.setTimePeriod = function(start, end) {\n this.start = new TZDate(start || Date.now());\n this.end = new TZDate(end || this.start);\n\n if (!end) {\n this.end.setMinutes(this.end.getMinutes() + 30);\n }\n};\n\n/**\n * @returns {Date} render start date.\n */\nSchedule.prototype.getStarts = function() {\n return this.start;\n};\n\n/**\n * @returns {Date} render end date.\n */\nSchedule.prototype.getEnds = function() {\n return this.end;\n};\n\n/**\n * @returns {number} instance unique id.\n */\nSchedule.prototype.cid = function() {\n return util.stamp(this);\n};\n\n/**\n * Check two schedule are equals (means title, isAllDay, start, end are same)\n * @param {Schedule} schedule Schedule model instance to compare.\n * @returns {boolean} Return false when not same.\n */\nSchedule.prototype.equals = function(schedule) {\n if (this.id !== schedule.id) {\n return false;\n }\n\n if (this.title !== schedule.title) {\n return false;\n }\n\n if (this.isAllDay !== schedule.isAllDay) {\n return false;\n }\n\n if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n return false;\n }\n\n if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n return false;\n }\n\n if (this.color !== schedule.color) {\n return false;\n }\n\n if (this.bgColor !== schedule.bgColor) {\n return false;\n }\n\n if (this.borderColor !== schedule.borderColor) {\n return false;\n }\n\n return true;\n};\n\n/**\n * return duration between start and end.\n * @returns {Date} duration (UTC)\n */\nSchedule.prototype.duration = function() {\n var start = this.getStarts(),\n end = this.getEnds(),\n duration;\n\n if (this.isAllDay) {\n duration = new TZDate(datetime.end(end) - datetime.start(start));\n } else {\n duration = new TZDate(end - start);\n }\n\n return duration;\n};\n\n/**\n * Returns true if the given Schedule coincides with the same time as the\n * calling Schedule.\n * @param {Schedule} schedule The other schedule to compare with this Schedule.\n * @returns {boolean} If the other schedule occurs within the same time as the first object.\n */\nSchedule.prototype.collidesWith = function(schedule) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = schedule.getStarts(),\n end = schedule.getEnds();\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodel.mixin(Schedule.prototype);\ndirty.mixin(Schedule.prototype);\n\nmodule.exports = Schedule;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/model/schedule.js\n// module id = 20\n// module chunks = 0","module.exports = require('handlebars/runtime');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars-template-loader/runtime/index.js\n// module id = 21\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.HandlebarsEnvironment = HandlebarsEnvironment;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('./utils');\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _helpers = require('./helpers');\n\nvar _decorators = require('./decorators');\n\nvar _logger = require('./logger');\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar VERSION = '4.0.11';\nexports.VERSION = VERSION;\nvar COMPILER_REVISION = 7;\n\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '== 1.x.x',\n 5: '== 2.0.0-alpha.x',\n 6: '>= 2.0.0-beta.1',\n 7: '>= 4.0.0'\n};\n\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials, decorators) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n this.decorators = decorators || {};\n\n _helpers.registerDefaultHelpers(this);\n _decorators.registerDefaultDecorators(this);\n}\n\nHandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: _logger2['default'],\n log: _logger2['default'].log,\n\n registerHelper: function registerHelper(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple helpers');\n }\n _utils.extend(this.helpers, name);\n } else {\n this.helpers[name] = fn;\n }\n },\n unregisterHelper: function unregisterHelper(name) {\n delete this.helpers[name];\n },\n\n registerPartial: function registerPartial(name, partial) {\n if (_utils.toString.call(name) === objectType) {\n _utils.extend(this.partials, name);\n } else {\n if (typeof partial === 'undefined') {\n throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n }\n this.partials[name] = partial;\n }\n },\n unregisterPartial: function unregisterPartial(name) {\n delete this.partials[name];\n },\n\n registerDecorator: function registerDecorator(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple decorators');\n }\n _utils.extend(this.decorators, name);\n } else {\n this.decorators[name] = fn;\n }\n },\n unregisterDecorator: function unregisterDecorator(name) {\n delete this.decorators[name];\n }\n};\n\nvar log = _logger2['default'].log;\n\nexports.log = log;\nexports.createFrame = _utils.createFrame;\nexports.logger = _logger2['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7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Y29yYXRvcnNbbmFtZV07XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHtjcmVhdGVGcmFtZSwgbG9nZ2VyfTtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/base.js\n// module id = 22\n// module chunks = 0","/**\n * @fileoverview\n * Class for represent two dimensional x, y coordinates.\n *\n * It suppliy a group of functions for manipulate coordinates.\n * @author NHN Ent. FE Development Team \n * @example\n * var p = point(10, 10);\n * var r1 = p.add(Point(5, 5));\n * console.log(p.toString()) // \"Point(10, 10)\"\n * console.log(r1.toString()) // \"Point(15, 15)\"\n *\n * var p2 = new Point(10, 10);\n * p2._add(point(5, 5));\n * console.log(p2.toString()) // \"Point(15, 15)\"\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Class for represent two dimentional x, y coordinates.\n * @constructor\n * @param {number} x The number of X coordinates.\n * @param {number} y The number of Y coordinates.\n * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n * @example\n * var t = new Point(13, 5);\n */\nfunction Point(x, y, useRound) {\n /**\n * @type {number}\n */\n this.x = (useRound ? Math.round(x) : x);\n\n /**\n * @type {number}\n */\n this.y = (useRound ? Math.round(y) : y);\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Calculate point ratio.\n * @param {Point} point The instance of point.\n * @param {number} factor From factor\n * @param {number} toFactor To factor\n * @returns {Point} Point instance calculated.\n */\nPoint.getRatio = function(point, factor, toFactor) {\n if (factor === toFactor) {\n return point.clone();\n }\n\n return point.multiplyBy(toFactor)._divideBy(factor);\n};\n\n/**\n * Syntatic sugar of new Point()\n * @param {(Point|number|number[])} x X coordinate value.\n * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n * @param {boolean} [useRound] Set true then round initial coordinate values.\n * @returns {Point} The instance of point.\n * @example\n * var p1 = point(10, 15);\n * var p2 = point([10, 15]);\n */\nPoint.n = function(x, y, useRound) {\n if (x instanceof Point) {\n return x;\n }\n\n if (util.isArray(x)) {\n return new Point(x[0], x[1], y);\n }\n\n return new Point(x, y, useRound);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Clone points\n * @returns {Point} The point instance cloned.\n */\nPoint.prototype.clone = function() {\n return new Point(this.x, this.y);\n};\n\n/**\n * Add points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.add = function(point) {\n return this.clone()._add(Point.n(point));\n};\n\n/**\n * Add self points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._add = function(point) {\n this.x += point.x;\n this.y += point.y;\n\n return this;\n};\n\n/**\n * Subtract points.\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.subtract = function(point) {\n return this.clone()._subtract(Point.n(point));\n};\n\n/**\n * Subtract points. (manipulate self)\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._subtract = function(point) {\n this.x -= point.x;\n this.y -= point.y;\n\n return this;\n};\n\n/**\n * Divide points.\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.divideBy = function(num) {\n return this.clone()._divideBy(num);\n};\n\n/**\n * Divide points. (manipulate self)\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._divideBy = function(num) {\n this.x /= num;\n this.y /= num;\n\n return this;\n};\n\n/**\n * Multiply coordinates.\n * @param {number} num Thyen number to multiply\n * @returns {Point} Point calculated.\n */\nPoint.prototype.multiplyBy = function(num) {\n return this.clone()._multiplyBy(num);\n};\n\n/**\n * Multiply self coordinates.\n * @param {number} num The number to multiply.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._multiplyBy = function(num) {\n this.x *= num;\n this.y *= num;\n\n return this;\n};\n\n/**\n * Round coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.round = function() {\n return this.clone()._round();\n};\n\n/**\n * Round self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._round = function() {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n\n return this;\n};\n\n/**\n * Reverse values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.reverse = function() {\n return this.clone()._reverse();\n};\n\n/**\n * Reverse self values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._reverse = function() {\n this.x *= -1;\n this.y *= -1;\n\n return this;\n};\n\n/**\n * Floor coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.floor = function() {\n return this.clone()._floor();\n};\n\n/**\n * Floor self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._floor = function() {\n this.x = Math.floor(this.x);\n this.y = Math.floor(this.y);\n\n return this;\n};\n\n/**\n * Ceil coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.ceil = function() {\n return this.clone()._ceil();\n};\n\n/**\n * Ceil self coodinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._ceil = function() {\n this.x = Math.ceil(this.x);\n this.y = Math.ceil(this.y);\n\n return this;\n};\n\n/**\n * Rotate point.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype.rotate = function(deg, center, cos, sin) {\n return this.clone()._rotate(deg, center, cos, sin);\n};\n\n/**\n * Rotate self.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype._rotate = function(deg, center, cos, sin) {\n var rad = deg * (Math.PI / 180),\n x,\n y;\n\n cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\n this._subtract(center);\n\n x = this.x;\n y = this.y;\n\n this.x = (x * cos) - (y * sin);\n this.y = (x * sin) + (y * cos);\n\n this._add(center);\n\n return this;\n};\n\n/**\n * Calculate distance between two points.\n * @param {Point} point Point instance.\n * @returns {number} The number of distance between two points.\n */\nPoint.prototype.distanceTo = function(point) {\n var x,\n y;\n\n point = Point.n(point);\n\n x = point.x - this.x;\n y = point.y - this.y;\n\n return Math.sqrt((x * x) + (y * y));\n};\n\n/**\n * Check point equals.\n * @param {Point} point Point instance to compare\n * @returns {boolean} equality\n */\nPoint.prototype.equals = function(point) {\n point = Point.n(point);\n\n return point.x === this.x && point.y === this.y;\n};\n\n/**\n * Return formatted string. 'Point(x, y)'\n * @returns {string} string\n */\nPoint.prototype.toString = function() {\n return 'Point(' + this.x + ', ' + this.y + ')';\n};\n\n/**\n * Return coodinates to array. [x, y]\n * @returns {number[]} coordinate array.\n */\nPoint.prototype.toArray = function() {\n return [this.x, this.y];\n};\n\nmodule.exports = Point;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/point.js\n// module id = 23\n// module chunks = 0","/**\n * @fileoverview Layout module that supplied split height, resize height features.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n domevent = require('./domevent'),\n View = require('../view/view'),\n VPanel = require('./vpanel'),\n Drag = require('../handler/drag');\n\nvar mAbs = Math.abs;\n\n/**\n * @typedef PanelOptions\n * @type {object}\n * @property {number} [minHeight=0] - minimum height of panel\n * @property {number} [height=0] - current panel height\n * @property {boolean} [splitter=false] - is this panel uses splitter?\n * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n * @property {string} [className=''] - className string for add created element\n */\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VLayout module\n * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n * @param {number[]} [options.panelHeights] - panel height list\n * @param {HTMLElement} container - container element\n */\nfunction VLayout(options, container) {\n var opt, tempHeights;\n\n if (!(this instanceof VLayout)) {\n return new VLayout(options, container);\n }\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('vlayout-container'));\n\n /**\n * @type {object}\n */\n opt = this.options = util.extend({\n panels: [],\n panelHeights: []\n }, options);\n\n /**\n * @type {VPanel[]}\n */\n this.panels = [];\n\n /**\n * @type {Drag}\n */\n this._drag = new Drag({\n distance: 10,\n exclude: function(target) {\n return !domutil.hasClass(target, config.classname('splitter'));\n }\n }, container);\n\n this._drag.on({\n dragStart: this._onDragStart,\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @type {object}\n */\n this._dragData = null;\n\n if (opt.panels.length) {\n if (opt.panelHeights.length) {\n tempHeights = opt.panelHeights.slice();\n util.forEach(opt.panels, function(panelOpt) {\n if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n panelOpt.height = tempHeights.shift();\n }\n });\n }\n\n this.addPanels(opt.panels, this.container);\n }\n\n this.refresh();\n}\n\nutil.inherit(VLayout, View);\n\n/**\n * Get current panels height in layout\n * @returns {number[]} height of panels with `autoHeight` false\n */\nVLayout.prototype.getLayoutData = function() {\n var heightList = [];\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n heightList.push(panel.getHeight());\n });\n\n return heightList;\n};\n\n/**\n * Set panels height in layout\n * @param {number[]} heightList of panels with `autoHeight` false\n */\nVLayout.prototype.setLayoutData = function(heightList) {\n if (!heightList.length) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n panel.setHeight(null, heightList.shift());\n });\n\n this.refresh();\n};\n\n/**\n * Get next panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} next panel\n */\nVLayout.prototype.nextPanel = function(panel) {\n return this.panels[panel.index + 1];\n};\n\n/**\n * Get previous panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} previous panel\n */\nVLayout.prototype.prevPanel = function(panel) {\n return this.panels[panel.index - 1];\n};\n\n/**\n * Initialize resizing guide element\n * @param {HTMLElement} element - element to use guide element after cloned\n * @param {number} top - top pixel value for guide element\n * @returns {HTMLElement} cloned element == guide element\n */\nVLayout.prototype._initializeGuideElement = function(element, top) {\n var cloned = element.cloneNode(true);\n\n domutil.addClass(cloned, config.classname('splitter-guide'));\n this._refreshGuideElement(cloned, top);\n this.container.appendChild(cloned);\n\n return cloned;\n};\n\n/**\n * Refresh guide element position\n * @param {HTMLElement} element - guide element\n * @param {number} top - top pixel value for guide element\n */\nVLayout.prototype._refreshGuideElement = function(element, top) {\n element.style.top = top + 'px';\n};\n\n/**\n * Clear guide element position\n * @param {HTMLElement} element - guide element\n */\nVLayout.prototype._clearGuideElement = function(element) {\n domutil.remove(element);\n};\n\n/**\n * Resize overall panels size\n * @param {VPanel} splPanel - splitter panel instance\n * @param {number} startY - dragstart Y position\n * @param {number} mouseY - dragend Y position\n */\nVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n var diffY = startY - mouseY,\n resizedHeight = mAbs(diffY),\n resizeMap = [],\n toDown = mouseY > startY,\n backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n cursor, resizeInfo;\n\n cursor = this[backwardMethod](splPanel);\n resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n\n for (cursor = this[forwardMethod](cursor);\n util.isExisty(cursor);\n cursor = this[forwardMethod](cursor)) {\n if (cursor.isSplitter()) {\n continue;\n }\n\n resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n resizedHeight -= resizeInfo[1];\n }\n\n util.forEach(resizeMap, function(pair) {\n pair[0].setHeight(null, pair[1], true);\n pair[0].fire('resize');\n });\n};\n\n/**\n * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n * @param {VPanel} splPanel - splitter panel instance\n * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n */\nVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n var upper = 0,\n below = 0,\n cursor,\n func = function(panel) {\n if (panel.isSplitter()) {\n return panel.getHeight();\n }\n\n return panel.options.minHeight;\n };\n\n for (cursor = this.prevPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.prevPanel(cursor)) {\n upper += func(cursor);\n }\n\n for (cursor = this.nextPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.nextPanel(cursor)) {\n below += func(cursor);\n }\n\n return [upper, below];\n};\n\n/**********\n * Drag Handlers\n **********/\n\n/**\n * Drag start schedule handler\n * @param {object} e - drag start schedule data\n */\nVLayout.prototype._onDragStart = function(e) {\n var oEvent = e.originEvent,\n target = e.target,\n splIndex = domutil.getData(target, 'panelIndex'),\n splPanel = this.panels[splIndex],\n splHeight = splPanel.getHeight(),\n splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n guideElement = this._initializeGuideElement(target, mouseY);\n\n splPanel.addClass(config.classname('splitter-focused'));\n\n this._dragData = {\n splPanel: splPanel,\n splOffsetY: splOffsetY,\n guideElement: guideElement,\n startY: mouseY - splOffsetY,\n minY: 0,\n maxY: this.getViewBound().height - splHeight\n };\n\n if (!util.browser.msie) {\n domutil.addClass(document.body, config.classname('resizing'));\n }\n};\n\n/**\n * Drag schedule handler\n * @param {object} e - drag schedule data\n */\nVLayout.prototype._onDrag = function(e) {\n var dragData = this._dragData,\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\n this._refreshGuideElement(dragData.guideElement, mouseY);\n};\n\n/**\n * Drag end schedule handler\n * @fires VLayout#resize\n * @param {object} e - dragend schedule data\n */\nVLayout.prototype._onDragEnd = function(e) {\n var dragData = this._dragData,\n asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n mouseY = common.limit(\n mouseY - dragData.splOffsetY,\n [dragData.minY + asideMinMax[0]],\n [dragData.maxY - asideMinMax[1]]\n );\n\n this._resize(dragData.splPanel, dragData.startY, mouseY);\n\n /**\n * @event VLayout#resize\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n */\n this.fire('resize', {\n layoutData: this.getLayoutData()\n });\n\n this._dragData = null;\n this._clearGuideElement(dragData.guideElement);\n dragData.splPanel.removeClass(config.classname('splitter-focused'));\n domutil.removeClass(document.body, config.classname('resizing'));\n};\n\n/**********\n * Methods\n **********/\n\n/**\n * refresh each panels\n */\nVLayout.prototype.refresh = function() {\n var panelToFillHeight = [];\n var layoutHeight = this.getViewBound().height;\n var usedHeight = 0;\n var remainHeight;\n\n if (!layoutHeight) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.options.autoHeight) {\n panelToFillHeight.push(panel);\n } else {\n usedHeight += panel.getHeight();\n }\n });\n\n remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\n util.forEach(panelToFillHeight, function(panel) {\n panel.setHeight(null, remainHeight);\n });\n};\n\n/**\n * add panel\n * @param {PanelOptions} options - options for panel\n * @param {container} [container] - container element\n */\nVLayout.prototype.addPanel = function(options, container) {\n var element = document.createElement('div'),\n panels = this.panels,\n index = panels.length;\n\n options = util.extend({\n index: index\n }, options);\n\n panels.push(new VPanel(options, element));\n\n container.appendChild(element);\n};\n\n/**\n * Add multiple panel\n * @param {PanelOptions[]} options - panel options list\n * @param {HTMLElement} container - container element\n */\nVLayout.prototype.addPanels = function(options, container) {\n var self = this,\n frag = document.createDocumentFragment();\n\n util.forEach(options, function(option) {\n self.addPanel(option, frag);\n });\n\n container.appendChild(frag);\n};\n\n/**\n * Get a panel by name\n * @param {string} name - panel's name\n * @returns {VPanel}\n */\nVLayout.prototype.getPanelByName = function(name) {\n var found;\n util.forEach(this.panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n};\n\nmodule.exports = VLayout;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/vlayout.js\n// module id = 24\n// module chunks = 0","/**\n * @fileoverview Move handler for Allday view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar AlldayCore = require('./core');\nvar AlldayMoveGuide = require('./moveGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayMove(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * Temporary variable for dragstart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {AlldayMoveGuide}\n */\n this.guide = new AlldayMoveGuide(this);\n}\n\nAlldayMove.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.alldayView = this.baseController =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayMove.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n parentView,\n matches;\n\n if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n parentView = domutil.closest(target, config.classname('.weekday'));\n\n if (!parentView) {\n return false;\n }\n\n cssClass = domutil.getClass(parentView);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler method.\n * @emits AlldayMove#alldayMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n */\nAlldayMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.baseController,\n excludeTarget = true,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n if (!scheduleBlockElement) {\n return;\n }\n\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event AlldayMove#alldayMoveDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('alldayMoveDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayMove#alldayMoveDrag\n * @param {object} dragEventData - Drag#drag event handler eventdata.\n */\nAlldayMove.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @schedule AlldayMove#alldayMoveDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayMoveDrag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule model to base controller.\n * @fires AlldayMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from AlldayMove handler module.\n */\nAlldayMove.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newStarts = new TZDate(schedule.start.getTime()),\n newEnds = new TZDate(schedule.end.getTime());\n\n newStarts = new TZDate(newStarts.setDate(newStarts.getDate() + dateOffset));\n newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n\n /**\n * @event AlldayMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayMove#alldayMoveDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nAlldayMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event AlldayMove#alldayMoveDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayMoveDragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayMove#alldayMoveClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayMove.prototype._onClick = function(clickEventData) {\n /**\n * @event AlldayMove#alldayMoveClick\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'alldayMoveClick', true);\n};\n\ncommon.mixin(AlldayCore, AlldayMove);\nutil.CustomEvents.mixin(AlldayMove);\n\nmodule.exports = AlldayMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/move.js\n// module id = 25\n// module chunks = 0","/**\n * @fileoverview Drag handler for calendar.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar domevent = require('../common/domevent');\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {object} options - options for drag handler\n * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n * @param {HTMLElement} container element to watching drag interaction.\n */\nfunction Drag(options, container) {\n domevent.on(container, 'mousedown', this._onMouseDown, this);\n\n this.options = util.extend({\n distance: 10,\n exclude: null\n }, options);\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * Flag for represent current dragging session has been cancelled for exclude option.\n * @type {boolean}\n */\n this._cancelled = false;\n\n /**\n * @type {boolean}\n */\n this._isMoved = false;\n\n /**\n * dragging distance in pixel between mousedown and firing dragStart events\n * @type {number}\n */\n this._distance = 0;\n\n /**\n * @type {boolean}\n */\n this._dragStartFired = false;\n\n /**\n * @type {object}\n */\n this._dragStartEventData = null;\n}\n\n/**\n * Destroy method.\n */\nDrag.prototype.destroy = function() {\n domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n this._isMoved = null;\n this.container = null;\n};\n\n/**\n * Clear cache data for single dragging session.\n */\nDrag.prototype._clearData = function() {\n this._cancelled = false;\n this._distance = 0;\n this._isMoved = false;\n this._dragStartFired = false;\n this._dragStartEventData = null;\n};\n\n/**\n * Toggle events for mouse dragging.\n * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n */\nDrag.prototype._toggleDragEvent = function(toBind) {\n var container = this.container,\n domMethod,\n method;\n\n if (toBind) {\n domMethod = 'on';\n method = 'disable';\n } else {\n domMethod = 'off';\n method = 'enable';\n }\n\n domutil[method + 'TextSelection'](container);\n domutil[method + 'ImageDrag'](container);\n domevent[domMethod](global.document, {\n mousemove: this._onMouseMove,\n mouseup: this._onMouseUp\n }, this);\n};\n\n/**\n * Normalize mouse event object.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {object} normalized mouse event data.\n */\nDrag.prototype._getEventData = function(mouseEvent) {\n return {\n target: mouseEvent.target || mouseEvent.srcElement,\n originEvent: mouseEvent\n };\n};\n\n/**\n * MouseDown DOM event handler.\n * @param {MouseEvent} mouseDownEvent MouseDown event object.\n */\nDrag.prototype._onMouseDown = function(mouseDownEvent) {\n var opt = this.options,\n target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n if (opt.exclude && opt.exclude(target)) {\n this._cancelled = true;\n\n return;\n }\n\n this._clearData();\n this._dragStartEventData = this._getEventData(mouseDownEvent);\n\n this._toggleDragEvent(true);\n};\n\n/**\n * MouseMove DOM event handler.\n * @emits Drag#drag\n * @emits Drag#dragStart\n * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n */\nDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n var distance;\n\n if (this._cancelled) {\n this._clearData();\n\n return;\n }\n\n distance = this.options.distance;\n // prevent automatic scrolling.\n domevent.preventDefault(mouseMoveEvent);\n\n if (this._distance < distance) {\n this._distance += 1;\n\n return;\n }\n this._isMoved = true;\n\n if (!this._dragStartFired) {\n this._dragStartFired = true;\n\n /**\n * Drag start events. cancelable.\n * @event Drag#dragStart\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n if (!this.invoke('dragStart', this._dragStartEventData)) {\n this._toggleDragEvent(false);\n this._clearData();\n\n return;\n }\n }\n\n /**\n * CalEvents while dragging.\n * @event Drag#drag\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('drag', this._getEventData(mouseMoveEvent));\n};\n\n/**\n * MouseUp DOM event handler.\n * @param {MouseEvent} mouseUpEvent MouseUp event object.\n * @emits Drag#dragEnd\n * @emits Drag#click\n */\nDrag.prototype._onMouseUp = function(mouseUpEvent) {\n if (this._cancelled) {\n return;\n }\n\n this._toggleDragEvent(false);\n\n // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n if (this._isMoved) {\n this._isMoved = false;\n /**\n * Drag end events.\n * @event Drag#dragEnd\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('dragEnd', this._getEventData(mouseUpEvent));\n } else {\n /**\n * Click events.\n * @event Drag#click\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('click', this._getEventData(mouseUpEvent));\n }\n\n this._clearData();\n};\n\nutil.CustomEvents.mixin(Drag);\n\nmodule.exports = Drag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/drag.js\n// module id = 26\n// module chunks = 0","/**\n * @fileoverview Guide element controller for creation, resize in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n dw = require('../../common/dw'),\n tmpl = require('./guide.hbs');\nvar mmax = Math.max,\n mmin = Math.min,\n mabs = Math.abs,\n mfloor = Math.floor;\n\n/**\n * @constructor\n * @param {object} [options] - options\n * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n * guide element?\n * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n * @param {Month} monthView - Month view instance\n */\nfunction MonthGuide(options, monthView) {\n var self = this;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n top: 0,\n height: '20px',\n bgColor: '#f7ca88',\n label: '새 일정',\n isResizeMode: false,\n isCreationMode: false\n }, options);\n\n /**\n * @type {Month}\n */\n this.view = monthView;\n\n /**\n * @type {WeekdayInMonth[]}\n */\n this.weeks = monthView.children.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n });\n\n /**\n * @type {number}\n */\n this.days = monthView.children.single().getRenderDateRange().length;\n\n /**\n * @type {function}\n */\n this.ratio = util.bind(function(value) {\n return common.ratio(self.days, 100, value);\n });\n\n /**\n * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n * start lower than this coordinate.\n * @type {number[]}\n */\n this.startCoord = [0, 0];\n\n /**\n * @type {Object.}\n */\n this.guideElements = {};\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = monthView.grids;\n}\n\n/**\n * Destructor\n */\nMonthGuide.prototype.destroy = function() {\n this.clear();\n\n this.options = this.view = this.weeks = this.days =\n this.ratio = this.startCoord = this.guideElements = null;\n};\n\nMonthGuide.prototype.clearGuideElement = function() {\n this.destroy();\n};\n\n/**\n * Get ratio value in week.\n * @param {number} value - value for calc ratio in week\n * @returns {number} percent value\n */\nMonthGuide.prototype._getRatioValueInWeek = function(value) {\n var grid = this.grids[value] || {left: 100};\n\n return grid.left;\n};\n\n/**\n * Create guide element\n * @returns {HTMLElement} guide element\n */\nMonthGuide.prototype._createGuideElement = function() {\n var guide = document.createElement('div');\n\n guide.innerHTML = tmpl(this.options);\n\n return guide.firstChild;\n};\n\n/**\n * Get guide element. if not exist then create one\n * @param {number} y - y coordinate\n * @returns {?HTMLElement} guide element\n */\nMonthGuide.prototype._getGuideElement = function(y) {\n var guideElements = this.guideElements,\n guide = guideElements[y],\n weekdayView = this.weeks[y],\n container;\n\n if (!weekdayView) {\n return null;\n }\n\n if (!guide) {\n guide = this._createGuideElement();\n container = weekdayView.container;\n container.appendChild(guide);\n guideElements[y] = guide;\n }\n\n return guide;\n};\n\n/**\n * Get coordinate by supplied date in month\n * @param {Date} date - date to find coordinate\n * @returns {number[]} coordinate (x, y)\n */\nMonthGuide.prototype._getCoordByDate = function(date) {\n var weeks = this.weeks,\n days = this.days,\n getIdxFromDiff = function(d1, d2) {\n return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n },\n monthStart = datetime.parse(weeks[0].options.renderStartDate),\n isBefore = date < monthStart,\n dateDW = dw(date),\n startDW = dw(monthStart),\n endDW = startDW.clone().addDate(isBefore ? -days : days),\n x = getIdxFromDiff(dateDW.d, startDW.d),\n y = 0;\n\n while (!dateDW.isBetween(startDW, endDW)) {\n startDW.addDate(isBefore ? -days : days);\n endDW = startDW.clone().addDate(days);\n x = getIdxFromDiff(dateDW.d, startDW.d);\n y += (isBefore ? -1 : 1);\n }\n\n return [x, y];\n};\n\n/**\n * Get limited coordinate by supplied coodinates\n * @param {number[]} coord - coordinate need to limit\n * @param {number[]} [min] - minimum limitaion of coordinate\n * @param {number[]} [max] - maximum limitation of coordinate\n * @returns {number[]} limited coordiate\n */\nMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n var toIndex = 1,\n x = coord[0],\n y = coord[1],\n result;\n\n min = min || [0, 0];\n max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\n if (y < min[1]) {\n result = min.slice(0);\n } else if (y > max[1]) {\n result = max.slice(0);\n } else {\n x = mmax(min[0], x);\n x = mmin(max[0], x);\n result = [x, y];\n }\n\n return result;\n};\n\n/**\n * Prepare guide element modification\n * @param {object} dragStartEvent - dragStart schedule data from *guide\n */\nMonthGuide.prototype.start = function(dragStartEvent) {\n var opt = this.options,\n target = dragStartEvent.target,\n model = dragStartEvent.model,\n x = dragStartEvent.x,\n y = dragStartEvent.y,\n temp;\n\n if (opt.isResizeMode) {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n\n util.extend(this.options, {\n top: parseInt(target.style.top, 10) + 'px',\n height: parseInt(target.style.height, 10) + 'px',\n bgColor: model.bgColor,\n borderColor: model.borderColor,\n label: model.title\n });\n }\n\n this.startCoord = [x, y];\n this.update(x, y);\n};\n\n/**\n * Data for update several guide elements\n * @typedef UpdateIndication\n * @type {object}\n * @property {HTMLElement} guide - guide element\n * @property {number} left - left style value\n * @property {number} width - width style value\n * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n */\n\n/**\n * Modify HTML element that uses for guide element\n * @param {UpdateIndication[]} inds - indication of update severel guide element\n */\nMonthGuide.prototype._updateGuides = function(inds) {\n util.forEach(inds, function(ind) {\n var guide = ind.guide,\n exceedLClass = config.classname('month-exceed-left'),\n exceedRClass = config.classname('month-exceed-right');\n\n guide.style.display = 'block';\n guide.style.left = ind.left + '%';\n guide.style.width = ind.width + '%';\n\n if (ind.exceedL) {\n domutil.addClass(guide, exceedLClass);\n } else {\n domutil.removeClass(guide, exceedLClass);\n }\n\n if (ind.exceedR) {\n domutil.addClass(guide, exceedRClass);\n } else {\n domutil.removeClass(guide, exceedRClass);\n }\n });\n};\n\n/**\n * Get guide element indicate for origin week\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n var left = mmin(startCoord[0], mouseCoord[0]),\n right = mmax(startCoord[0], mouseCoord[0]) + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = startCoord[0];\n right = this.days;\n exceedR = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n left = 0;\n right = startCoord[0] + 1;\n exceedL = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for week related with mouse position\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n var left = mouseCoord[0],\n right = mouseCoord[0] + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = 0;\n exceedL = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n right = this.days;\n exceedR = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for contained weeks\n * @returns {object} indicate\n */\nMonthGuide.prototype._getContainIndicate = function() {\n return {\n left: 0,\n width: 100,\n exceedL: true,\n exceedR: true\n };\n};\n\n/**\n * Remove several guide element that supplied by parameter\n * @param {number[]} yCoords - array of y coordinate to remove guide element\n */\nMonthGuide.prototype._removeGuideElements = function(yCoords) {\n var guides = this.guideElements;\n\n util.forEach(yCoords, function(y) {\n domutil.remove(guides[y]);\n delete guides[y];\n });\n};\n\n/**\n * Get excluded numbers in range\n * @param {number[]} range - the range. value must be sequencial.\n * @param {number[]} numbers - numbers to check\n * @returns {number[]} excluded numbers\n */\nMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n var min = mmin.apply(null, range),\n max = mmax.apply(null, range),\n excludes = [];\n\n util.forEach(numbers, function(num) {\n num = parseInt(num, 10);\n if (num < min || num > max) {\n excludes.push(num);\n }\n });\n\n return excludes;\n};\n\n/**\n * Update guide elements by coordinate in month grid from mousemove event\n * @param {number} x - x coordinate\n * @param {number} y - y coordinate\n */\nMonthGuide.prototype.update = function(x, y) {\n var self = this,\n startCoord = this.startCoord,\n mouseCoord = [x, y],\n limitedCoord = this.options.isResizeMode ?\n this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n renderedYIndex = util.keys(this.guideElements),\n yCoordsToUpdate = util.range(\n mmin(startCoord[1], limitedCoord[1]),\n mmax(startCoord[1], limitedCoord[1]) + 1\n ),\n yCoordsToRemove = this._getExcludesInRange(\n yCoordsToUpdate,\n renderedYIndex\n ),\n renderIndication = {};\n\n this._removeGuideElements(yCoordsToRemove);\n\n util.forEach(yCoordsToUpdate, function(guideYCoord) {\n var guide = self._getGuideElement(guideYCoord),\n indicate;\n\n if (!guide) {\n return;\n }\n\n if (guideYCoord === startCoord[1]) {\n indicate = self._getOriginIndicate(startCoord, limitedCoord);\n } else if (guideYCoord === mouseCoord[1]) {\n indicate = self._getMouseIndicate(startCoord, mouseCoord);\n } else {\n indicate = self._getContainIndicate();\n }\n\n renderIndication[guideYCoord] = util.extend({\n guide: guide\n }, indicate);\n });\n\n this._updateGuides(renderIndication);\n};\n\n/**\n * Clear all guide elements\n */\nMonthGuide.prototype.clear = function() {\n util.forEach(this.guideElements, function(element) {\n domutil.remove(element);\n });\n\n this.guideElements = {};\n};\n\nmodule.exports = MonthGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/guide.js\n// module id = 27\n// module chunks = 0","/**\n * @fileoverview Model for views\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Schedule ViewModel\n * @constructor\n * @param {Schedule} schedule Schedule instance.\n */\nfunction ScheduleViewModel(schedule) {\n /**\n * The model of schedule.\n * @type {Schedule}\n */\n this.model = schedule;\n\n /**\n * @type {number}\n */\n this.top = 0;\n\n /**\n * @type {number}\n */\n this.left = 0;\n\n /**\n * @type {number}\n */\n this.width = 0;\n\n /**\n * @type {number}\n */\n this.height = 0;\n\n /**\n * Represent schedule has collide with other schedules when rendering.\n * @type {boolean}\n */\n this.hasCollide = false;\n\n /**\n * Extra space at rigth side of this schedule.\n * @type {number}\n */\n this.extraSpace = 0;\n\n /**\n * represent this schedule block is not visible after rendered.\n *\n * in month view, some viewmodel in date need to hide when already rendered before dates.\n *\n * set true then it just shows empty space.\n * @type {boolean}\n */\n this.hidden = false;\n\n /**\n * whether the schedule includes multiple dates\n */\n this.hasMultiDates = false;\n\n /**\n * represent render start date used at rendering.\n *\n * if set null then use model's 'start' property.\n * @type {TZDate}\n */\n this.renderStarts = null;\n\n /**\n * whether the actual start-date is before the render-start-date\n * @type {boolean}\n */\n this.exceedLeft = false;\n\n /**\n * represent render end date used at rendering.\n *\n * if set null then use model's 'end' property.\n * @type {TZDate}\n */\n this.renderEnds = null;\n\n /**\n * whether the actual end-date is after the render-end-date\n * @type {boolean}\n */\n this.exceedRight = false;\n}\n\n/**********\n * static props\n **********/\n\n/**\n * ScheduleViewModel factory method.\n * @param {Schedule} schedule Schedule instance.\n * @returns {ScheduleViewModel} ScheduleViewModel instance.\n */\nScheduleViewModel.create = function(schedule) {\n return new ScheduleViewModel(schedule);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderStarts is not set. return model's start property.\n * @override\n * @returns {Date} render start date.\n */\nScheduleViewModel.prototype.getStarts = function() {\n if (this.renderStarts) {\n return this.renderStarts;\n }\n\n return this.model.start;\n};\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderEnds is not set. return model's end property.\n * @override\n * @returns {Date} render end date.\n */\nScheduleViewModel.prototype.getEnds = function() {\n if (this.renderEnds) {\n return this.renderEnds;\n }\n\n return this.model.end;\n};\n\n/**\n * @returns {number} unique number for model.\n */\nScheduleViewModel.prototype.cid = function() {\n return util.stamp(this.model);\n};\n\n/**\n * Shadowing valueOf method for schedule sorting.\n * @returns {Schedule} The model of schedule.\n */\nScheduleViewModel.prototype.valueOf = function() {\n return this.model;\n};\n\n/**\n * Link duration method\n * @returns {number} Schedule#duration result.\n */\nScheduleViewModel.prototype.duration = function() {\n return this.model.duration();\n};\n\n/**\n * Link collidesWith method\n * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n * @returns {boolean} Schedule#collidesWith result.\n */\nScheduleViewModel.prototype.collidesWith = function(viewModel) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = viewModel.getStarts(),\n end = viewModel.getEnds();\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodule.exports = ScheduleViewModel;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/model/viewModel/scheduleViewModel.js\n// module id = 28\n// module chunks = 0","/**\n * @fileoverview Weekday view for week\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Weekday = require('../weekday'),\n tmpl = require('./weekdayInWeek.hbs'),\n datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar config = require('../../config');\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.containerHeight=40] - minimum height of schedule\n * container element.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n * @param {object} [aboutMe] - parent container info\n * @param {string} [aboutMe.name] - panel name ['Milestone'|'Task'|'AllDay'|'TimeGrid']\n * @param {boolean} [aboutMe.forcedLayout] - force layout height by dragging\n */\nfunction WeekdayInWeek(options, container, aboutMe) {\n Weekday.call(this, options, container);\n this.aboutMe = aboutMe || {};\n}\n\nutil.inherit(WeekdayInWeek, Weekday);\n\n/**\n * Render Weekday view\n * @override\n */\nWeekdayInWeek.prototype.render = function(viewModel) {\n var opt = this.options,\n container = this.container,\n aboutMe = this.aboutMe,\n name = aboutMe.name;\n var baseViewModel;\n\n this.viewType = opt[name + 'ViewType'] || '';\n\n baseViewModel = this.getBaseViewModel(viewModel);\n\n if (this.viewType === 'toggle') {\n baseViewModel.viewType = this.viewType;\n baseViewModel.collapsed = this.collapsed ? 'collapsed' : '';\n }\n\n container.innerHTML = tmpl(baseViewModel);\n\n util.forEach(domutil.find(config.classname('.weekday-exceed-in-week'), container, true), function(el) {\n el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n });\n\n util.forEach(domutil.find(config.classname('.weekday-collapse-btn'), container, true), function(el) {\n el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n });\n\n this.fire('afterRender', baseViewModel);\n};\n\n/**\n * returns maximum schedule count in day\n * @param {array} matrices - The matrices for schedule placing.\n * @returns {number} maximum schedule count in day\n */\nWeekdayInWeek.prototype._getMaxScheduleInDay = function(matrices) {\n return mmax.apply(\n null,\n util.map(matrices, function(matrix) {\n return Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n })\n );\n};\n\n/**\n * returns minimum height for container.\n * @param {number} maxScheduleInDay - max schedule blocks in one day\n * @returns {number}\n */\nWeekdayInWeek.prototype._getMinHeight = function(maxScheduleInDay) {\n var opt = this.options;\n var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\n if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n contentHeight += opt.containerBottomGutter;\n }\n\n return contentHeight;\n};\n\n/**\n * make and update data of exceed date\n * @param {object} exceedDate - data to have exceed date in a week\n * @param {TZDate} renderStarts - start date of a week\n * @param {TZDate} renderEnds - end date of a week\n */\nWeekdayInWeek.prototype._updateExceedDate = function(exceedDate, renderStarts, renderEnds) {\n var date = datetime.clone(renderStarts);\n var day;\n\n for (; date <= renderEnds; date.setDate(date.getDate() + 1)) {\n day = datetime.format(date, 'YYYYMMDD');\n if (!exceedDate[day]) {\n exceedDate[day] = 1;\n } else {\n exceedDate[day] += 1;\n }\n }\n};\n\n/**\n * Exclude overflow schedules from matrices\n * @param {array} matrices - The matrices for schedule placing.\n * @param {number} visibleScheduleCount - maximum visible count on panel\n * @param {number} maxScheduleInDay - maximum number of schedules in day\n * @returns {array} - The matrices for schedule placing except overflowed schedules.\n */\nWeekdayInWeek.prototype._excludeExceedSchedules = function(matrices, visibleScheduleCount, maxScheduleInDay) {\n if (visibleScheduleCount >= maxScheduleInDay) {\n return matrices;\n }\n\n return matrices.map(function(matrix) {\n return matrix.map(function(row) {\n if (row.length > visibleScheduleCount) {\n return row.filter(function(item) {\n return item.top < visibleScheduleCount;\n }, this);\n }\n\n return row;\n }, this);\n }, this);\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInWeek.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var matrices = opt.getViewModelFunc(viewModel);\n var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n var visibleScheduleCount = this.aboutMe.visibleScheduleCount;\n var aboutMe = this.aboutMe;\n var exceedDate = {};\n var baseViewModel, panelHeight, maxHiddenScheduleCount;\n\n if (this.viewType === 'toggle') {\n panelHeight = aboutMe.forcedLayout ? this.getViewBound().height : mmin(aboutMe.height, aboutMe.maxHeight);\n visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n if (this.collapsed) {\n visibleScheduleCount = mmin(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n exceedDate =\n this.getExceedDate(visibleScheduleCount,\n viewModel.schedulesInDateRange[aboutMe.name],\n viewModel.range,\n maxScheduleInDay\n );\n matrices = this._excludeExceedSchedules(matrices, visibleScheduleCount, maxScheduleInDay);\n aboutMe.visibleScheduleCount = visibleScheduleCount;\n } else {\n maxHiddenScheduleCount = maxScheduleInDay - aboutMe.visibleScheduleCount;\n exceedDate =\n this.getExceedDate(\n mmin(maxScheduleInDay, aboutMe.maxExpandCount) - maxHiddenScheduleCount,\n viewModel.schedulesInDateRange[aboutMe.name],\n viewModel.range\n );\n visibleScheduleCount = mmax(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n }\n }\n\n viewModel = util.extend({\n exceedDate: exceedDate || {}\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n minHeight: this._getMinHeight(maxScheduleInDay),\n matrices: matrices,\n scheduleContainerTop: this.options.scheduleContainerTop,\n minHiddenScheduleIndex: this._getCollapseBtnIndex(viewModel.range,\n baseViewModel.dates,\n maxHiddenScheduleCount,\n exceedDate\n ),\n maxScheduleInDay: maxScheduleInDay,\n floatingButtonTop: this._calculateFloatingBtnTop(visibleScheduleCount, maxScheduleInDay),\n panelName: aboutMe.name\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * return weekday index to show collapse button\n * @param {Array.} range - view model\n * @param {Array.} dates - base view model\n * @param {number} maxHiddenCount - maximum hidden count when panel is collapsed\n * @param {array} exceedDate - overflowed schedule count in week\n * @returns {number} weekday index\n */\nWeekdayInWeek.prototype._getCollapseBtnIndex = function(range, dates, maxHiddenCount, exceedDate) {\n var minHiddenScheduleCount = maxHiddenCount;\n var btnIndex = range.length > 0 ? range.length - 1 : 0;\n\n util.forEach(dates, function(date, index) {\n var ymd = date.ymd;\n if (exceedDate[ymd] !== 0 && minHiddenScheduleCount >= exceedDate[ymd]) {\n minHiddenScheduleCount = exceedDate[ymd];\n btnIndex = index;\n }\n });\n\n return btnIndex;\n};\n\n/**\n * Calculate absolute top position of floating button layer\n * @param {number} visibleScheduleCount - maximum (row) number of schedules that panel can show\n * @param {number} maxScheduleInDay - maximum number of schedules in day\n * @returns {number} absolute top position of floating buttons in weekday panel\n */\nWeekdayInWeek.prototype._calculateFloatingBtnTop = function(visibleScheduleCount, maxScheduleInDay) {\n var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n\n if (!this.collapsed && maxScheduleInDay > this.aboutMe.maxExpandCount) {\n return (visibleScheduleCount - 0.5) * scheduleHeight;\n }\n\n return (visibleScheduleCount - 1) * scheduleHeight;\n};\n\nmodule.exports = WeekdayInWeek;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/weekdayInWeek.js\n// module id = 29\n// module chunks = 0","/**\n * @fileoverview Weekday view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n datetime = require('../common/datetime'),\n TZDate = require('../common/timezone').Date,\n View = require('./view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - view options.\n * @param {number} [options.containerHeight=40] - minimum height of schedule\n * container element.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction Weekday(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('weekday')\n );\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n containerHeight: 40,\n containerBottomGutter: 8,\n scheduleHeight: 18,\n scheduleGutter: 2,\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n View.call(this, container);\n}\n\nutil.inherit(Weekday, View);\n\n/**\n * Get render date range\n * @returns {Date[]} rendered date range\n */\nWeekday.prototype.getRenderDateRange = function() {\n return this._cacheParentViewModel.range;\n};\n\n/**\n * Get render date grids information\n * @returns {Date[]} rendered date grids information\n */\nWeekday.prototype.getRenderDateGrids = function() {\n return this._cacheParentViewModel.grids;\n};\n\n/**\n * Get default view model.\n * @param {object} viewModel parent's view model\n * @returns {object} viewModel to rendering.\n */\nWeekday.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var range = viewModel.range;\n var today = datetime.format(new TZDate(), 'YYYYMMDD');\n var gridWidth = (100 / range.length);\n var grids = viewModel.grids;\n var exceedDate = viewModel.exceedDate || {};\n\n this._cacheParentViewModel = viewModel;\n\n return {\n width: gridWidth,\n scheduleHeight: opt.scheduleHeight,\n scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n scheduleBlockGutter: opt.scheduleGutter,\n dates: util.map(range, function(date, index) {\n var day = date.getDay();\n var ymd = datetime.format(date, 'YYYYMMDD');\n\n return {\n date: datetime.format(date, 'YYYY-MM-DD'),\n month: date.getMonth() + 1,\n day: day,\n isToday: ymd === today,\n ymd: ymd,\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0\n };\n })\n };\n};\n\n/* eslint max-nested-callbacks: 0 */\n/**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\nWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n var exceedDate = this._initExceedDate(range);\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n};\n\n/**\n * Initiate exceed date information\n * @param {Array.} range - date range of one week\n * @returns {Object} - initiated exceed date\n */\nWeekday.prototype._initExceedDate = function(range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n return exceedDate;\n};\n\nmodule.exports = Weekday;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/weekday.js\n// module id = 30\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \"\n + alias4(((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"label\",\"hash\":{},\"data\":data}) : helper)))\n + \"
    \\n
     
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isCreationMode : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/guide.hbs\n// module id = 32\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-left:3px solid \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/moveGuide.hbs\n// module id = 33\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"monthDayname-tmpl\"] || (depth0 && depth0[\"monthDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.daynames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/month.hbs\n// module id = 34\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \"\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n return \"\\n background: #ffffff\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n \";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"14\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthMoreTitleDate-tmpl\"] || (depth0 && depth0[\"monthMoreTitleDate-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.date : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/more.hbs\n// module id = 35\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridHeader-tmpl\"] || (depth0 && depth0[\"monthGridHeader-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridFooter-tmpl\"] || (depth0 && depth0[\"monthGridFooter-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"near-month-day\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"extra-date\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridHeaderExceed-tmpl\"] || (depth0 && depth0[\"monthGridHeaderExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridFooterExceed-tmpl\"] || (depth0 && depth0[\"monthGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonth.hbs\n// module id = 36\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.top : depth0),\"<\",((stack1 = (data && data.root)) && stack1.renderLimitIdx),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\";\n\n return \"
    \\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(19, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-left\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-right\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers.unless.call(alias3,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-schedule-focused \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonthSchedule.hbs\n// module id = 37\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"alldayTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/allday.hbs\n// module id = 38\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"weekDayname-tmpl\"] || (depth0 && depth0[\"weekDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/daynames.hbs\n// module id = 39\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
      \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.items : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing;\n\n return \"
  • \\n \"\n + ((stack1 = (helpers[\"milestone-tmpl\"] || (depth0 && depth0[\"milestone-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"milestone-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
  • \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"milestoneTitle-tmpl\"] || (depth0 != null ? depth0[\"milestoneTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"milestoneTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/milestone.hbs\n// module id = 40\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"taskTitle-tmpl\"] || (depth0 != null ? depth0[\"taskTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"taskTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/taskview.hbs\n// module id = 41\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"time-date-schedule-block-pending\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"time-schedule-focused \";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
     
    \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/time.hbs\n// module id = 42\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + alias4(((helper = (helper = helpers.hours || (depth0 != null ? depth0.hours : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hours\",\"hash\":{},\"data\":data}) : helper)))\n + \"\\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n
    \"\n + alias4(((helper = (helper = helpers.hourmarkerText || (depth0 != null ? depth0.hourmarkerText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hourmarkerText\",\"hash\":{},\"data\":data}) : helper)))\n + \"
    \\n
    \\n
    today
    \\n
    \\n
    \\n
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.showHourMarker : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/timeGrid.hbs\n// module id = 43\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
     
    \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/timeMoveGuide.hbs\n// module id = 44\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda;\n\n return \"\\n
    \\n
    \\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"task\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.program(20, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(22, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-left\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-right\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-schedule-focused \";\n},\"14\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"16\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\n return \" \"\n + ((stack1 = (helpers[\"task-tmpl\"] || (depth0 && depth0[\"task-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"task-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.viewType : depth0),\"===\",\"toggle\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(25, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"25\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && data.root)) && stack1.collapsed),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(27, data, 0),\"inverse\":container.program(30, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"28\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + alias4((helpers[\"weekGridFooterExceed-tmpl\"] || (depth0 && depth0[\"weekGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data}))\n + \"\\n\";\n},\"30\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),\"===\",((stack1 = (data && data.root)) && stack1.minHiddenScheduleIndex),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(31, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"31\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = ((helper = (helper = helpers[\"alldayCollapseBtnTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayCollapseBtnTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayCollapseBtnTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,(depth0 != null ? depth0.panelName : depth0),\"===\",\"allday\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/weekdayInWeek.hbs\n// module id = 45\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _handlebarsBase = require('./handlebars/base');\n\nvar base = _interopRequireWildcard(_handlebarsBase);\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\n\nvar _handlebarsSafeString = require('./handlebars/safe-string');\n\nvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\nvar _handlebarsException = require('./handlebars/exception');\n\nvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\nvar _handlebarsUtils = require('./handlebars/utils');\n\nvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\nvar _handlebarsRuntime = require('./handlebars/runtime');\n\nvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\nvar _handlebarsNoConflict = require('./handlebars/no-conflict');\n\nvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nfunction create() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = _handlebarsSafeString2['default'];\n hb.Exception = _handlebarsException2['default'];\n hb.Utils = Utils;\n hb.escapeExpression = Utils.escapeExpression;\n\n hb.VM = runtime;\n hb.template = function (spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n}\n\nvar inst = create();\ninst.create = create;\n\n_handlebarsNoConflict2['default'](inst);\n\ninst['default'] = inst;\n\nexports['default'] = inst;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3V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scztcbiAgaGIuZXNjYXBlRXhwcmVzc2lvbiA9IFV0aWxzLmVzY2FwZUV4cHJlc3Npb247XG5cbiAgaGIuVk0gPSBydW50aW1lO1xuICBoYi50ZW1wbGF0ZSA9IGZ1bmN0aW9uKHNwZWMpIHtcbiAgICByZXR1cm4gcnVudGltZS50ZW1wbGF0ZShzcGVjLCBoYik7XG4gIH07XG5cbiAgcmV0dXJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars.runtime.js\n// module id = 46\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultDecorators = registerDefaultDecorators;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _decoratorsInline = require('./decorators/inline');\n\nvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\nfunction registerDefaultDecorators(instance) {\n _decoratorsInline2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/decorators.js\n// module id = 47\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerDecorator('inline', function (fn, props, container, options) {\n var ret = fn;\n if (!props.partials) {\n props.partials = {};\n ret = function (context, options) {\n // Create a new partials stack frame prior to exec.\n var original = container.partials;\n container.partials = _utils.extend({}, original, props.partials);\n var ret = fn(context, options);\n container.partials = original;\n return ret;\n };\n }\n\n props.partials[options.args[0]] = options.fn;\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXFCLFVBQVU7O3FCQUVoQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9CLFlBQUksUUFBUSxHQUFHLFNBQ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IG9yaWdpbmFsLCBwcm9wcy5wYXJ0aWFscyk7XG4gICAgICAgIGxldCByZXQgPSBmbihjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgICAgY29udGFpbmVyLnBhcnRpYWxzID0gb3JpZ2luYWw7XG4gICAgICAgIHJldHVybiByZXQ7XG4gICAgICB9O1xuICAgIH1cblxuICAgIHByb3BzLnBhcnRpYWxzW29wdGlvbnMuYXJnc1swXV0gPSBvcHRpb25zLmZuO1xuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/decorators/inline.js\n// module id = 48\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultHelpers = registerDefaultHelpers;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _helpersBlockHelperMissing = require('./helpers/block-helper-missing');\n\nvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\nvar _helpersEach = require('./helpers/each');\n\nvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\nvar _helpersHelperMissing = require('./helpers/helper-missing');\n\nvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\nvar _helpersIf = require('./helpers/if');\n\nvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\nvar _helpersLog = require('./helpers/log');\n\nvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\nvar _helpersLookup = require('./helpers/lookup');\n\nvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\nvar _helpersWith = require('./helpers/with');\n\nvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\nfunction registerDefaultHelpers(instance) {\n _helpersBlockHelperMissing2['default'](instance);\n _helpersEach2['default'](instance);\n _helpersHelperMissing2['default'](instance);\n _helpersIf2['default'](instance);\n _helpersLog2['default'](instance);\n _helpersLookup2['default'](instance);\n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IGZyb20gJy4vaGVscGVycy9sb29rdXAnO1xuaW1wb3J0IHJlZ2lzdGVyV2l0aCBmcm9tICcuL2hlbHBlcnMvd2l0aCc7XG5cbmV4cG9ydCBmdW5jdGlvbiByZWdpc3RlckRlZmF1bHRIZWxwZXJzKGluc3RhbmNlKSB7XG4gIHJlZ2lzdGVyQmxvY2tIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJFYWNoKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJJZihpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyTG9nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb29rdXAoaW5zdGFuY2UpO1xuICByZWdpc3RlcldpdGgoaW5zdGFuY2UpO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers.js\n// module id = 49\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('blockHelperMissing', function (context, options) {\n var inverse = options.inverse,\n fn = options.fn;\n\n if (context === true) {\n return fn(this);\n } else if (context === false || context == null) {\n return inverse(this);\n } else if (_utils.isArray(context)) {\n if (context.length > 0) {\n if (options.ids) {\n options.ids = [options.name];\n }\n\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n if (options.data && options.ids) {\n var data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n options = { data: data };\n }\n\n return fn(context, options);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiO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ZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCwgb3B0aW9ucy5uYW1lKTtcbiAgICAgICAgb3B0aW9ucyA9IHtkYXRhOiBkYXRhfTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js\n// module id = 50\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('each', function (context, options) {\n if (!options) {\n throw new _exception2['default']('Must pass iterator to #each');\n }\n\n var fn = options.fn,\n inverse = options.inverse,\n i = 0,\n ret = '',\n data = undefined,\n contextPath = undefined;\n\n if (options.data && options.ids) {\n contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n }\n\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n if (options.data) {\n data = _utils.createFrame(options.data);\n }\n\n function execIteration(field, index, last) {\n if (data) {\n data.key = field;\n data.index = index;\n data.first = index === 0;\n data.last = !!last;\n\n if (contextPath) {\n data.contextPath = contextPath + field;\n }\n }\n\n ret = ret + fn(context[field], {\n data: data,\n blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n });\n }\n\n if (context && typeof context === 'object') {\n if (_utils.isArray(context)) {\n for (var j = context.length; i < j; i++) {\n if (i in context) {\n execIteration(i, i, i === context.length - 1);\n }\n }\n } else {\n var priorKey = undefined;\n\n for (var key in context) {\n if (context.hasOwnProperty(key)) {\n // We're running the iterations one step out of sync so we can detect\n // the last iteration without have to scan the object twice and create\n // an itermediate keys array.\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1);\n }\n priorKey = key;\n i++;\n }\n }\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1, true);\n }\n }\n }\n\n if (i === 0) {\n ret = inverse(this);\n }\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvZWFjaC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQUErRSxVQUFVOzt5QkFDbkUsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3pELFFBQUksQ0FBQyxPQUFPLEVBQUU7QUFDWixZQUFNLDJCQUFjLDZCQUE2QixDQUFDLENBQUM7S0FDcEQ7O0FBRUQsUUFBSSxFQUFFLEdBQUcsT0FBTyxDQUFDLEVBQUU7UUFDZixPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU87UUFDekIsQ0FBQyxHQUFHLENBQUM7UUFDTCxHQUFHLEdBQUcsRUFBRTtRQUNSLElBQUksWUFBQTtRQUNKLFdBQVcsWUFBQSxDQUFDOztBQUVoQixRQUFJLE9BQU8sQ0FBQyxJQUFJLElBQUksT0FBTyxDQUFDLEdBQUcsRUFBRTtBQUMvQixpQkFBV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IGluZGV4LCBsYXN0KSB7XG4gICAgICBpZiAoZGF0YSkge1xuICAgICAgICBkYXRhLmtleSA9IGZpZWxkO1xuICAgICAgICBkYXRhLmluZGV4ID0gaW5kZXg7XG4gICAgICAgIGRhdGEuZmlyc3QgPSBpbmRleCA9PT0gMDtcbiAgICAgICAgZGF0YS5sYXN0ID0gISFsYXN0O1xuXG4gICAgICAgIGlmIChjb250ZXh0UGF0aCkge1xuICAgICAgICAgIGRhdGEuY29udGV4dFBhdGggPSBjb250ZXh0UGF0aCArIGZpZWxkO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIHJldCA9IHJldCArIGZuKGNvbnRleHRbZmllbGRdLCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dFtmaWVsZF0sIGZpZWxkXSwgW2NvbnRleHRQYXRoICsgZmllbGQsIG51bGxdKVxuICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKGNvbnRleHQgJiYgdHlwZW9mIGNvbnRleHQgPT09ICdvYmplY3QnKSB7XG4gICAgICBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBpZiAoaSBpbiBjb250ZXh0KSB7XG4gICAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvbnRleHQubGVuZ3RoIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsZXQgcHJpb3JLZXk7XG5cbiAgICAgICAgZm9yIChsZXQga2V5IGluIGNvbnRleHQpIHtcbiAgICAgICAgICBpZiAoY29udGV4dC5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgICAgICAvLyBXZSdyZSBydW5uaW5nIHRoZSBpdGVyYXRpb25zIG9uZSBzdGVwIG91dCBvZiBzeW5jIHNvIHdlIGNhbiBkZXRlY3RcbiAgICAgICAgICAgIC8vIHRoZSBsYXN0IGl0ZXJhdGlvbiB3aXRob3V0IGhhdmUgdG8gc2NhbiB0aGUgb2JqZWN0IHR3aWNlIGFuZCBjcmVhdGVcbiAgICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgICBpZiAocHJpb3JLZXkgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBwcmlvcktleSA9IGtleTtcbiAgICAgICAgICAgIGkrKztcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/each.js\n// module id = 51\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('helperMissing', function () /* [args, ]options */{\n if (arguments.length === 1) {\n // A missing field in a {{foo}} construct.\n return undefined;\n } else {\n // Someone is actually trying to call something, blow up.\n throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n }\n });\n};\n\nmodule.exports = ex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gYmxvdyB1cC5cbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oJ01pc3NpbmcgaGVscGVyOiBcIicgKyBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdLm5hbWUgKyAnXCInKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/helper-missing.js\n// module id = 52\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('if', function (conditional, options) {\n if (_utils.isFunction(conditional)) {\n conditional = conditional.call(this);\n }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function (conditional, options) {\n return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.hash });\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBa0MsVUFBVTs7cUJBRTdCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLGtCQUFXLFdBQVcsQ0FBQyxFQUFFO0FBQUUsaUJBQVcsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQUU7Ozs7O0FBS3RFLFFBQ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BpcyB0cnV0aHkgYW5kIG5vdCBlbXB0eS5cbiAgICAvLyBUaGUgYGluY2x1ZGVaZXJvYCBvcHRpb24gbWF5IGJlIHNldCB0byB0cmVhdCB0aGUgY29uZHRpb25hbCBhcyBwdXJlbHkgbm90IGVtcHR5IGJhc2VkIG9uIHRoZVxuICAgIC8vIGJlaGF2aW9yIG9mIGlzRW1wdHkuIEVmZmVjdGl2ZWx5IHRoaXMgZGV0ZXJtaW5lcyBpZiAwIGlzIGhhbmRsZWQgYnkgdGhlIHBvc2l0aXZlIHBhdGggb3IgbmVnYXRpdmUuXG4gICAgaWYgKCghb3B0aW9ucy5oYXNoLmluY2x1ZGVaZXJvICYmICFjb25kaXRpb25hbCkgfHwgaXNFbXB0eShjb25kaXRpb25hbCkpIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmludmVyc2UodGhpcyk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmZuKHRoaXMpO1xuICAgIH1cbiAgfSk7XG5cbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ3VubGVzcycsIGZ1bmN0aW9uKGNvbmRpdGlvbmFsLCBvcHRpb25zKSB7XG4gICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnNbJ2lmJ10uY2FsbCh0aGlzLCBjb25kaXRpb25hbCwge2ZuOiBvcHRpb25zLmludmVyc2UsIGludmVyc2U6IG9wdGlvbnMuZm4sIGhhc2g6IG9wdGlvbnMuaGFzaH0pO1xuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/if.js\n// module id = 53\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('log', function () /* message, options */{\n var args = [undefined],\n options = arguments[arguments.length - 1];\n for (var i = 0; i < arguments.length - 1; i++) {\n args.push(arguments[i]);\n }\n\n var level = 1;\n if (options.hash.level != null) {\n level = options.hash.level;\n } else if (options.data && options.data.level != null) {\n level = options.data.level;\n }\n args[0] = level;\n\n instance.log.apply(instance, args);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ2xCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM5QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLEVBQUUsQ0FBQyxFQUFFLEVBQUU7QUFDN0MsVUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztLQUN6Qjs7QUFFRCxRQUFJLEtBQUssR0FBRyxDQUFDLENBQUM7QUFDZCxRQUFJLE9BQU8sQ0FBQyxJQUFJLENBQUMsS0FBSyxJQUFJLElBQUksRUFBRTtBQUM5QixXQUFLLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7S0FDNUIsTUFBTSxJQUFJLE9BQU8sQ0FBQyxJQUFJLElBQUksT0FBTyxDQUFDLElBQUksQ0FBQyxLQUFLLElBQUksSUFBSSxFQUFFO0FBQ3JELFdBQUssR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQztLQUM1QjtBQUNELFFBQUksQ0FBQyxDQUFDLENBQUMsR0FBRyxLQUFLLENBQUM7O0FBRWhCLFlBQVEsQ0FBQyxHQUFHLE1BQUEsQ0FBWixRQUFRLEVBQVMsSUFBSSxDQUFDLENBQUM7R0FDeEIsQ0FBQyxDQUFDO0NBQ0oiLCJmaWxlIjoibG9nLmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2xvZycsIGZ1bmN0aW9uKC8qIG1lc3NhZ2UsIG9wdGlvbnMgKi8pIHtcbiAgICBsZXQgYXJncyA9IFt1bmRlZmluZWRdLFxuICAgICAgICBvcHRpb25zID0gYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXTtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IGFyZ3VtZW50cy5sZW5ndGggLSAxOyBpKyspIHtcbiAgICAgIGFyZ3MucHVzaChhcmd1bWVudHNbaV0pO1xuICAgIH1cblxuICAgIGxldCBsZXZlbCA9IDE7XG4gICAgaWYgKG9wdGlvbnMuaGFzaC5sZXZlbCAhPSBudWxsKSB7XG4gICAgICBsZXZlbCA9IG9wdGlvbnMuaGFzaC5sZXZlbDtcbiAgICB9IGVsc2UgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmRhdGEubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmRhdGEubGV2ZWw7XG4gICAgfVxuICAgIGFyZ3NbMF0gPSBsZXZlbDtcblxuICAgIGluc3RhbmNlLmxvZyguLi4gYXJncyk7XG4gIH0pO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/log.js\n// module id = 54\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('lookup', function (obj, field) {\n return obj && obj[field];\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFO0FBQ3JELFdBQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQztHQUMxQixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJsb29rdXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihpbnN0YW5jZSkge1xuICBpbnN0YW5jZS5yZWdpc3RlckhlbHBlcignbG9va3VwJywgZnVuY3Rpb24ob2JqLCBmaWVsZCkge1xuICAgIHJldHVybiBvYmogJiYgb2JqW2ZpZWxkXTtcbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/lookup.js\n// module id = 55\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('with', function (context, options) {\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n var fn = options.fn;\n\n if (!_utils.isEmpty(context)) {\n var data = options.data;\n if (options.data && options.ids) {\n data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n }\n\n return fn(context, {\n data: data,\n blockParams: _utils.blockParams([context], [data && data.contextPath])\n });\n } else {\n return options.inverse(this);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzI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LQUM5QjtHQUNGLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6IndpdGguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge2FwcGVuZENvbnRleHRQYXRoLCBibG9ja1BhcmFtcywgY3JlYXRlRnJhbWUsIGlzRW1wdHksIGlzRnVuY3Rpb259IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ3dpdGgnLCBmdW5jdGlvbihjb250ZXh0LCBvcHRpb25zKSB7XG4gICAgaWYgKGlzRnVuY3Rpb24oY29udGV4dCkpIHsgY29udGV4dCA9IGNvbnRleHQuY2FsbCh0aGlzKTsgfVxuXG4gICAgbGV0IGZuID0gb3B0aW9ucy5mbjtcblxuICAgIGlmICghaXNFbXB0eShjb250ZXh0KSkge1xuICAgICAgbGV0IGRhdGEgPSBvcHRpb25zLmRhdGE7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGRhdGEgPSBjcmVhdGVGcmFtZShvcHRpb25zLmRhdGEpO1xuICAgICAgICBkYXRhLmNvbnRleHRQYXRoID0gYXBwZW5kQ29udGV4dFBhdGgob3B0aW9ucy5kYXRhLmNvbnRleHRQYXRoLCBvcHRpb25zLmlkc1swXSk7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBmbihjb250ZXh0LCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dF0sIFtkYXRhICYmIGRhdGEuY29udGV4dFBhdGhdKVxuICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmludmVyc2UodGhpcyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/with.js\n// module id = 56\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('./utils');\n\nvar logger = {\n methodMap: ['debug', 'info', 'warn', 'error'],\n level: 'info',\n\n // Maps a given level value to the `methodMap` indexes above.\n lookupLevel: function lookupLevel(level) {\n if (typeof level === 'string') {\n var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n if (levelMap >= 0) {\n level = levelMap;\n } else {\n level = parseInt(level, 10);\n }\n }\n\n return level;\n },\n\n // Can be overridden in the host environment\n log: function log(level) {\n level = logger.lookupLevel(level);\n\n if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n var method = logger.methodMap[level];\n if (!console[method]) {\n // eslint-disable-line no-console\n method = 'log';\n }\n\n for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n message[_key - 1] = arguments[_key];\n }\n\n console[method].apply(console, message); // eslint-disable-line no-console\n }\n }\n};\n\nexports['default'] = logger;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUFzQixTQUFTOztBQUUvQixJQUFJLE1BQU0sR0FBRztBQUNYLFdBQVMsRUFBRSxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQztBQUM3QyxPQUFLLEVBQUUsTUFBTTs7O0FBR2IsYUFBVyxFQUFFLHFCQUFTLEtBQUssRUFBRTtBQUMzQixRQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRTtBQUM3QixVQUFJLFFBQVEsR0FBRyxlQUFRLE1BQU0sQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLFdBQVcsRUFBRSxDQU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FOOTER\n// ./~/handlebars/dist/cjs/handlebars/logger.js\n// module id = 57\n// module chunks = 0","/* global window */\n'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (Handlebars) {\n /* istanbul ignore next */\n var root = typeof global !== 'undefined' ? global : window,\n $Handlebars = root.Handlebars;\n /* istanbul ignore next */\n Handlebars.noConflict = function () {\n if (root.Handlebars === Handlebars) {\n root.Handlebars = $Handlebars;\n }\n return Handlebars;\n };\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O3FCQUNlLFVBQVMsVUFBVSxFQUFFOztBQUVsQyxNQUFJLElBQUksR0FBRyxPQUFPLE1BQU0sS0FBSyxXQUFXLEdBQUcsTUFBTSxHQUFHLE1BQU07TUFDdEQsV0FBVyxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUM7O0FBRWxDLFlBQVUsQ0FBQyxVQUFVLEdBQUcsWUFBVztBQUNqQyxRQUFJLElBQUksQ0FBQyxVQUFVLEtBQUssVUFBVSxFQUFFO0FBQ2xDLFVBQUksQ0FBQyxVQUFVLEdBQUcsV0FBVyxDQUFDO0tBQy9CO0FBQ0QsV0FBTyxVQUFVLENBQUM7R0FDbkIsQ0FBQztDQUNIIiwiZmlsZSI6Im5vLWNvbmZsaWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFsIHdpbmRvdyAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oSGFuZGxlYmFycykge1xuICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICBsZXQgcm9vdCA9IHR5cGVvZiBnbG9iYWwgIT09ICd1bmRlZmluZWQnID8gZ2xvYmFsIDogd2luZG93LFxuICAgICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/no-conflict.js\n// module id = 58\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.checkRevision = checkRevision;\nexports.template = template;\nexports.wrapProgram = wrapProgram;\nexports.resolvePartial = resolvePartial;\nexports.invokePartial = invokePartial;\nexports.noop = noop;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _utils = require('./utils');\n\nvar Utils = _interopRequireWildcard(_utils);\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _base = require('./base');\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = _base.COMPILER_REVISION;\n\n if (compilerRevision !== currentRevision) {\n if (compilerRevision < currentRevision) {\n var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n }\n }\n}\n\nfunction template(templateSpec, env) {\n /* istanbul ignore next */\n if (!env) {\n throw new _exception2['default']('No environment passed to template');\n }\n if (!templateSpec || !templateSpec.main) {\n throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n }\n\n templateSpec.main.decorator = templateSpec.main_d;\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as psuedo-supported APIs.\n env.VM.checkRevision(templateSpec.compiler);\n\n function invokePartialWrapper(partial, context, options) {\n if (options.hash) {\n context = Utils.extend({}, context, options.hash);\n if (options.ids) {\n options.ids[0] = true;\n }\n }\n\n partial = env.VM.resolvePartial.call(this, partial, context, options);\n var result = env.VM.invokePartial.call(this, partial, context, options);\n\n if (result == null && env.compile) {\n options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n result = options.partials[options.name](context, options);\n }\n if (result != null) {\n if (options.indent) {\n var lines = result.split('\\n');\n for (var i = 0, l = lines.length; i < l; i++) {\n if (!lines[i] && i + 1 === l) {\n break;\n }\n\n lines[i] = options.indent + lines[i];\n }\n result = lines.join('\\n');\n }\n return result;\n } else {\n throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n }\n }\n\n // Just add water\n var container = {\n strict: function strict(obj, name) {\n if (!(name in obj)) {\n throw new _exception2['default']('\"' + name + '\" not defined in ' + obj);\n }\n return obj[name];\n },\n lookup: function lookup(depths, name) {\n var len = depths.length;\n for (var i = 0; i < len; i++) {\n if (depths[i] && depths[i][name] != null) {\n return depths[i][name];\n }\n }\n },\n lambda: function lambda(current, context) {\n return typeof current === 'function' ? current.call(context) : current;\n },\n\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n\n fn: function fn(i) {\n var ret = templateSpec[i];\n ret.decorator = templateSpec[i + '_d'];\n return ret;\n },\n\n programs: [],\n program: function program(i, data, declaredBlockParams, blockParams, depths) {\n var programWrapper = this.programs[i],\n fn = this.fn(i);\n if (data || depths || blockParams || declaredBlockParams) {\n programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n }\n return programWrapper;\n },\n\n data: function data(value, depth) {\n while (value && depth--) {\n value = value._parent;\n }\n return value;\n },\n merge: function merge(param, common) {\n var obj = param || common;\n\n if (param && common && param !== common) {\n obj = Utils.extend({}, common, param);\n }\n\n return obj;\n },\n // An empty object to use as replacement for null-contexts\n nullContext: Object.seal({}),\n\n noop: env.VM.noop,\n compilerInfo: templateSpec.compiler\n };\n\n function ret(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var data = options.data;\n\n ret._setup(options);\n if (!options.partial && templateSpec.useData) {\n data = initData(context, data);\n }\n var depths = undefined,\n blockParams = templateSpec.useBlockParams ? [] : undefined;\n if (templateSpec.useDepths) {\n if (options.depths) {\n depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n } else {\n depths = [context];\n }\n }\n\n function main(context /*, options*/) {\n return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n }\n main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n return main(context, options);\n }\n ret.isTop = true;\n\n ret._setup = function (options) {\n if (!options.partial) {\n container.helpers = container.merge(options.helpers, env.helpers);\n\n if (templateSpec.usePartial) {\n container.partials = container.merge(options.partials, env.partials);\n }\n if (templateSpec.usePartial || templateSpec.useDecorators) {\n container.decorators = container.merge(options.decorators, env.decorators);\n }\n } else {\n container.helpers = options.helpers;\n container.partials = options.partials;\n container.decorators = options.decorators;\n }\n };\n\n ret._child = function (i, data, blockParams, depths) {\n if (templateSpec.useBlockParams && !blockParams) {\n throw new _exception2['default']('must pass block params');\n }\n if (templateSpec.useDepths && !depths) {\n throw new _exception2['default']('must pass parent depths');\n }\n\n return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n };\n return ret;\n}\n\nfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n function prog(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var currentDepths = depths;\n if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n currentDepths = [context].concat(depths);\n }\n\n return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n }\n\n prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\n prog.program = i;\n prog.depth = depths ? depths.length : 0;\n prog.blockParams = declaredBlockParams || 0;\n return prog;\n}\n\nfunction resolvePartial(partial, context, options) {\n if (!partial) {\n if (options.name === '@partial-block') {\n partial = options.data['partial-block'];\n } else {\n partial = options.partials[options.name];\n }\n } else if (!partial.call && !options.name) {\n // This is a dynamic partial that returned a string\n options.name = partial;\n partial = options.partials[partial];\n }\n return partial;\n}\n\nfunction invokePartial(partial, context, options) {\n // Use the current closure context to save the partial-block if this partial\n var currentPartialBlock = options.data && options.data['partial-block'];\n options.partial = true;\n if (options.ids) {\n options.data.contextPath = options.ids[0] || options.data.contextPath;\n }\n\n var partialBlock = undefined;\n if (options.fn && options.fn !== noop) {\n (function () {\n options.data = _base.createFrame(options.data);\n // Wrapper function to get access to currentPartialBlock from the closure\n var fn = options.fn;\n partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n // Restore the partial-block from the closure for the execution of the block\n // i.e. the part inside the block of the partial call.\n options.data = _base.createFrame(options.data);\n options.data['partial-block'] = currentPartialBlock;\n return fn(context, options);\n };\n if (fn.partials) {\n options.partials = Utils.extend({}, options.partials, fn.partials);\n }\n })();\n }\n\n if (partial === undefined && partialBlock) {\n partial = partialBlock;\n }\n\n if (partial === undefined) {\n throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n } else if (partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nfunction noop() {\n return '';\n}\n\nfunction initData(context, data) {\n if (!data || !('root' in data)) {\n data = data ? _base.createFrame(data) : {};\n data.root = context;\n }\n return data;\n}\n\nfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n if (fn.decorator) {\n var props = {};\n prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n Utils.extend(prog, props);\n }\n return prog;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBQzhCLFFBQVE7O0FBRWxFLFNBQVMsYUFBYSxDQUFDLFlBQVksRUFBRTtBQUMxQyxNQUFNLGdCQUFnQixHQUFHLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztNQUN2RCxlQUFlLDBCQUFvQixDQUFDOztBQUUxQyxNQUFJLGdCQUFnQixLQUFLLGVBQWUsRUFBRTtBQUN4QyxRQUFJLGdCQUFnQixHQUFHLGVBQWUsRUFBRTtBQUN0QyxVQUFNLGVBQWUsR0FBRyx1QkFBaUIsZUFBZSxDQUFDO1VBQ25ELGdCQUFnQixHQUFHLHVCQUFpQixnQkFBZ0IsQ0FBQyxDQUFDO0FBQzVELFlBQU0sMkJBQWMseUZBQXlGLEdBQ3ZHLHFEQUFxRCxHQUFHLGVBQWUsR0FBRyxtREFBbUQsR0FBRyxnQkFBZ0IsR0FBRyxJQUFJLENBQUMsQ0FBQztLQUNoSyxNQUFNOztBQUVMLFlBQU0sMkJBQWMsd0ZBQXdGLEdBQ3RHLGlEQUFpRCxHQUFHLF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IG9wdGlvbnMubmFtZSArICcgY291bGQgbm90IGJlIGZvdW5kJyk7XG4gIH0gZWxzZSBpZiAocGFydGlhbCBpbnN0YW5jZW9mIEZ1bmN0aW9uKSB7XG4gICAgcmV0dXJuIHBhcnRpYWwoY29udGV4dCwgb3B0aW9ucyk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIG5vb3AoKSB7IHJldHVybiAnJzsgfVxuXG5mdW5jdGlvbiBpbml0RGF0YShjb250ZXh0LCBkYXRhKSB7XG4gIGlmICghZGF0YSB8fCAhKCdyb290JyBpbiBkYXRhKSkge1xuICAgIGRhdGEgPSBkYXRhID8gY3JlYXRlRnJhbWUoZGF0YSkgOiB7fTtcbiAgICBkYXRhLnJvb3QgPSBjb250ZXh0O1xuICB9XG4gIHJldHVybiBkYXRhO1xufVxuXG5mdW5jdGlvbiBleGVjdXRlRGVjb3JhdG9ycyhmbiwgcHJvZywgY29udGFpbmVyLCBkZXB0aHMsIGRhdGEsIGJsb2NrUGFyYW1zKSB7XG4gIGlmIChmbi5kZWNvcmF0b3IpIHtcbiAgICBsZXQgcHJvcHMgPSB7fTtcbiAgICBwcm9nID0gZm4uZGVjb3JhdG9yKHByb2csIHByb3BzLCBjb250YWluZXIsIGRlcHRocyAmJiBkZXB0aHNbMF0sIGRhdGEsIGJsb2NrUGFyYW1zLCBkZXB0aHMpO1xuICAgIFV0aWxzLmV4dGVuZChwcm9nLCBwcm9wcyk7XG4gIH1cbiAgcmV0dXJuIHByb2c7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/runtime.js\n// module id = 59\n// module chunks = 0","// Build out our basic SafeString type\n'use strict';\n\nexports.__esModule = true;\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n return '' + this.string;\n};\n\nexports['default'] = SafeString;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/safe-string.js\n// module id = 60\n// module chunks = 0","/**\n * @fileoverview Add autoscroll feature to elements that prevented text selection.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domevent = require('../common/domevent');\nvar domutil = require('../common/domutil');\nvar Point = require('../common/point');\n\nvar SCROLL_INTERVAL = 30;\nvar SCROLL_MAX = 15;\nvar SCROLL_CLICK_INCREASED = 2; // IE에서 스크롤 바 클릭 시 실제 UI pixel 보다 넓게 잡히는 현상 offset.\n\n/**\n * Add autoscroll feature to elements that prevented text selection.\n * @constructor\n * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n */\nfunction AutoScroll(container) {\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * @type {AutoScroll.DIRECTION}\n */\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n /**\n * @type {number}\n */\n this._offset = 0;\n\n /**\n * interval to scrolling\n * @type {number}\n */\n this._intervalID = 0;\n\n domevent.on(container, {\n 'mousedown': this._onMouseDown\n }, this);\n}\n\n/**\n * @enum\n */\nAutoScroll.DIRECTION = {\n INSIDE: 0,\n TOP: 1,\n RIGHT: 2,\n BOTTOM: 3,\n LEFT: 4\n};\n\n/**\n * Instance destroy method.\n */\nAutoScroll.prototype.destroy = function() {\n domevent.off(this.container, {\n 'mousedown': this._onMouseDown,\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n\n window.clearInterval(this._intervalID);\n this._intervalID = this._direction = this.container = null;\n};\n\n/**\n * Normalize ClientRect and calculate each position of edges.\n * @param {ClientRect} clientRect - ClientRect object of element.\n * @returns {object} edges.\n */\nAutoScroll.prototype._getEdgePositions = function(clientRect) {\n return {\n top: clientRect.top,\n right: clientRect.left + clientRect.width,\n bottom: clientRect.bottom,\n left: clientRect.left\n };\n};\n\n/**\n * Get element real size (\"real size\" -> size without scrollbar)\n * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n * @returns {number[]} real size [width, height]\n */\nAutoScroll.prototype.getRealSize = function(el) {\n var computed = domutil.getComputedStyle(el),\n border,\n padding;\n\n border = parseFloat(computed.getPropertyValue('border-top-width')) +\n parseFloat(computed.getPropertyValue('border-bottom-width'));\n padding = parseFloat(computed.getPropertyValue('padding-top')) +\n parseFloat(computed.getPropertyValue('padding-bottom'));\n\n return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n};\n\n/**\n * Check supplied element has scrollbar.\n * @param {HTMLElement} el - element want to know has scrollbar.\n * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n */\nAutoScroll.prototype.hasScrollbar = function(el) {\n var realSize = this.getRealSize(el);\n\n return [\n el.offsetWidth > Math.ceil(realSize[0]),\n el.offsetHeight > Math.ceil(realSize[1])\n ];\n};\n\n/**\n * @param {HTMLElement} el - element want to know.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {boolean} mouse pointer is on the scrollbar?\n */\nAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n var realSize = this.getRealSize(el),\n pos = domevent.getMousePosition(mouseEvent, el),\n mouseInScrollbar = false;\n\n mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\n return mouseInScrollbar;\n};\n\n/**\n * MouseDown event handler\n * @param {MouseEvent} mouseDownEvent - mouse down event\n */\nAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n return;\n }\n\n window.clearInterval(this._intervalID);\n this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\n domevent.on(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * MouseMove event handler\n * @param {MouseEvent} mouseEvent - mouse move event object.\n */\nAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n pos = Point.n(domevent.getMousePosition(mouseEvent));\n\n if (pos.y >= edge.top && pos.y <= edge.bottom &&\n pos.x >= edge.left && pos.x <= edge.right) {\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n return;\n }\n\n if (pos.y < edge.top) {\n this._direction = AutoScroll.DIRECTION.TOP;\n this._offset = edge.top - pos.y;\n\n return;\n }\n\n if (pos.y > edge.bottom) {\n this._direction = AutoScroll.DIRECTION.BOTTOM;\n this._offset = pos.y - edge.bottom;\n\n return;\n }\n\n if (pos.x < edge.left) {\n this._direction = AutoScroll.DIRECTION.LEFT;\n this._offset = edge.left - pos.x;\n\n return;\n }\n\n this._direction = AutoScroll.DIRECTION.RIGHT;\n this._offset = pos.x - edge.right;\n};\n\n/**\n * MouseUp event handler.\n */\nAutoScroll.prototype._onMouseUp = function() {\n window.clearInterval(this._intervalID);\n this._intervalID = 0;\n this._direction = AutoScroll.DIRECTION.INSIDE;\n this._offset = 0;\n\n domevent.off(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * Interval tick event handler\n */\nAutoScroll.prototype._onTick = function() {\n var direction = this._direction,\n container,\n factor;\n\n if (!direction) {\n return;\n }\n\n container = this.container;\n factor = Math.min(this._offset, SCROLL_MAX);\n\n switch (direction) {\n case AutoScroll.DIRECTION.TOP:\n container.scrollTop -= factor;\n break;\n case AutoScroll.DIRECTION.RIGHT:\n container.scrollLeft += factor;\n break;\n case AutoScroll.DIRECTION.BOTTOM:\n container.scrollTop += factor;\n break;\n default:\n container.scrollLeft -= factor;\n break;\n }\n};\n\nmodule.exports = AutoScroll;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/autoScroll.js\n// module id = 61\n// module chunks = 0","/**\n * @fileoverview Dirty flagging module for objects.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar common = require('tui-code-snippet');\nvar existy = common.isExisty,\n pick = common.pick,\n isFunc = common.isFunction;\n\n/**\n * Mixin module for dirty flagging on specific objects.\n * @mixin\n * @example\n * var obj = { hello: 'good', test: '123' };\n * dirty.mixin(obj);\n *\n * obj.set('hello', 'world');\n * obj.isDirty(); // true\n * obj.isPropChanged('hello'); // true\n * obj.isPropChanged('test'); // false\n * obj.dirty(false);\n *\n * obj.isDirty(); // false\n * obj.isPropChanged('hello'); // false\n */\nvar dirty = {\n /**\n * Set property value with dirty flagging.\n * @param {string} propName Property name.\n * @param {*} value Proprty value.\n */\n set: function(propName, value) {\n var originValue = this[propName];\n\n if (originValue === value) {\n return;\n }\n\n this[propName] = value;\n\n if (!this._changed) {\n /**\n * Save changed properties.\n * @memberof dirty\n * @name _changed\n * @type {Object}\n */\n this._changed = {};\n }\n\n this._changed[propName] = true;\n\n /**\n * Dirty flag\n * @type {Boolean}\n * @name _dirty\n * @memberof dirty\n */\n this._dirty = true;\n },\n\n /**\n * Check dirty flag.\n * @returns {boolean} Property is changed.\n */\n isDirty: function() {\n return !!this._dirty;\n },\n\n /**\n * Set dirty flag manually.\n * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n */\n dirty: function(toDirty) {\n toDirty = existy(toDirty) ? toDirty : true;\n\n /* istanbul ignore else */\n if (!toDirty) {\n this._changed = {};\n }\n\n this._dirty = toDirty;\n },\n\n /**\n * Delete property safety.\n * @param {String} propName The name of property.\n */\n deleteProp: function(propName) {\n delete this[propName];\n\n if (this._changed) {\n delete this._changed[propName];\n }\n },\n\n /**\n * Check the changes with specific property.\n * @param {String} propName The name of property you want.\n * @returns {boolean} Is property changed?\n */\n isPropChanged: function(propName) {\n if (!this._changed) {\n return false;\n }\n\n return this._changed[propName] === true;\n },\n\n /**\n * Mixin to specific objects.\n * @param {Object} target The object to mix this module.\n * @memberof module:util/dirty\n * @example\n * function Animal() {}\n * dirty.mixin(Animal.prototype);\n */\n mixin: function(target) {\n var methodFilterR = /(^_|mixin|wrap)/;\n\n common.forEachOwnProperties(dirty, function(o, k) {\n if (!methodFilterR.test(k)) {\n target[k] = dirty[k];\n }\n });\n },\n\n /**\n * Wrapper method for dirty flagging.\n *\n * This method invoke after invoked specific method that added by you.\n *\n * The method want to add are must exist before add.\n * @param {object} target Target object to method wrap.\n * @param {(string|object)} methodName\n * Method name to wrap or methodName: flag objects.\n * @param {boolean} [flag=true]\n * this will used to flagging by dirty flagger after invoke the methods added by you.\n * @memberof module:util/dirty\n * @example\n * function Animal(name) {\n * this.name = name;\n * }\n * Animal.prototype.growl = jasmine.createSpy('growl');\n * Animal.prototype.test = function() {\n * return this.name;\n * };\n *\n * dirty.mixin(Animal.prototype);\n * // single\n * dirty.wrap(Animal.prototype, 'growl', true);\n * // multiple\n * dirty.wrap(Animap.prototype, {\n * growl: true,\n * test: false\n * });\n *\n */\n wrap: function(target, methodName, flag) {\n var wrap = dirty.wrap,\n fn;\n\n if (common.isObject(methodName)) {\n common.forEachOwnProperties(methodName, function(_flag, _name) {\n wrap(target, _name, _flag);\n });\n\n return;\n }\n\n flag = existy(flag) ? flag : true;\n\n if (!target._wrapper) {\n /**\n * @param {function} _fn Original method to wrap.\n * @param {boolean} flagToSet The boolean value to using dirty flagging.\n * @returns {*} The result value of original method.\n * @name _wrapper\n * @memberof dirty\n */\n target._wrapper = function(_fn, flagToSet) {\n return function() {\n var args = Array.prototype.slice.call(arguments);\n var result = _fn.apply(this, args); // eslint-disable-line\n this._dirty = flagToSet; // eslint-disable-line\n\n return result;\n };\n };\n }\n\n if (existy(pick(target, methodName)) &&\n isFunc(target[methodName]) &&\n !existy(pick(target, methodName, '_wrapped'))) {\n fn = target[methodName];\n target[methodName] = target._wrapper(fn, flag);\n target[methodName]._wrapped = true;\n }\n }\n};\n\nmodule.exports = dirty;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/dirty.js\n// module id = 62\n// module chunks = 0","/**\n * @fileoverview Mixin module for models.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\nvar util = require('tui-code-snippet');\nvar spaceRx = /^\\s*|\\s*$/g,\n model;\n\nvar datetime = require('../common/datetime');\n\n/**\n * Mixin module for models.\n * @mixin\n */\nmodel = {\n /**\n * string trim\n * @param {string} str string to trim\n * @returns {string} trimed string\n */\n trim: function(str) {\n return str.replace(spaceRx, '');\n },\n /**\n * The collections of validator functions.\n */\n validators: {\n /**\n * check all of supplied fields(property) is not undefined or empty string.\n * @param {object} instance model instance.\n * @param {string[]} fields property names to check.\n * @returns {boolean} return true when supplied fields are not undefined or empty string.\n */\n required: function(instance, fields) {\n var valid = true,\n isValid = function(obj) {\n return !util.isUndefined(obj) && model.trim(obj) !== '';\n };\n\n util.forEach(fields, function(fieldName) {\n valid = isValid(instance[fieldName]);\n\n return valid;\n });\n\n return valid;\n },\n\n /**\n * check supplied fields are valid dates and valid date ranges.\n * @param {object} instance model instance.\n * @param {Date[]} fields array of date range (start, end)\n * @returns {boolean} is valid date range?\n */\n dateRange: function(instance, fields) {\n var start, end;\n\n if (!util.isExisty(instance) || fields.length !== 2) {\n return true;\n }\n\n start = new TZDate(instance[fields[0]]);\n end = new TZDate(instance[fields[1]]);\n\n if (!datetime.isValid(start) || !datetime.isValid(end)) {\n return false;\n }\n\n if (datetime.compare(start, end) === 1) {\n return false;\n }\n\n return true;\n }\n },\n\n /**\n * Check validate for model instance.\n *\n * The validate are works on a basis of constructor's \"schema\" property.\n *\n * You can customize validators add some method to model#validators.\n * @returns {Boolean} model is valid?\n */\n isValid: function() {\n var self = this,\n schema = this.constructor.schema,\n validators = model.validators,\n validator,\n valid = true;\n\n if (!schema) {\n return true;\n }\n\n util.forEach(schema, function(values, validatorName) {\n validator = validators[validatorName];\n\n if (validator) {\n valid = validator(self, values);\n\n return valid; // returning false can stop this loop\n }\n\n return true;\n });\n\n return valid;\n },\n\n /**\n * Make data object form instance.\n *\n * It return object fill with all owned properties but exclude functions.\n * @returns {object} Data object\n */\n parameterize: function() {\n var param = {},\n isFunc = util.isFunction;\n\n util.forEach(this, function(value, propName) {\n if (!isFunc(value)) {\n param[propName] = value;\n }\n });\n\n return param;\n },\n\n /**\n * Mixin model module to supplied target.\n * @param {Object} target The object of want to mixed.\n * @example\n * function Man() {\n * this.name = 'john';\n * }\n * model.mixin(Man.prototype);\n */\n mixin: function(target) {\n util.forEach(model, function(method, name) {\n if (name !== 'mixin') {\n target[name] = method;\n }\n });\n }\n};\n\nmodule.exports = model;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/model.js\n// module id = 63\n// module chunks = 0","/**\n * @fileoverview Panel class for VLayout module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VPanel\n * @param {number} options.index - index of panel in vlayout\n * @param {number} [options.minHeight=0] - minimum height of panel\n * @param {number} [options.height] - initial height of panel\n * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n * @param {string} [options.className] - additional class name to add element\n * @param {HTMLElement} container - container element\n */\nfunction VPanel(options, container) {\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n index: 0,\n name: '0',\n minHeight: 0,\n maxHeight: null,\n height: null,\n isSplitter: false,\n autoHeight: false,\n className: ''\n }, options);\n\n /**\n * @type {number}\n */\n this.index = this.options.index;\n\n /**\n * @type {string}\n */\n this.name = this.options.name || String(this.index);\n\n this.isHeightForcedSet = false;\n\n this._initPanel(this.options, container);\n}\n\nutil.inherit(VPanel, View);\n\n/**\n * whether this panel is splitter?\n * @returns {boolean} panel is splitter?\n */\nVPanel.prototype.isSplitter = function() {\n return this.options.isSplitter;\n};\n\n/**\n * set height of html element\n * @param {HTMLElement} [container] - container element\n * @param {number} newHeight - height\n * @param {boolean} force - whether ignore max-length\n */\nVPanel.prototype.setHeight = function(container, newHeight, force) {\n var maxHeight = this.options.maxHeight;\n var minHeight = this.options.minHeight;\n var autoHeight = this.options.autoHeight;\n container = container || this.container;\n\n // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n if (!force && this.isHeightForcedSet && !autoHeight) {\n return;\n }\n\n if (force) {\n this.isHeightForcedSet = true;\n } else if (maxHeight) {\n newHeight = Math.min(newHeight, maxHeight);\n }\n newHeight = Math.max(minHeight, newHeight);\n\n container.style.height = newHeight + 'px';\n};\n\n/**\n * Calculate new height of panel and remains by supplied height growth\n * @param {number} growth - growth value\n * @returns {number[]} newHeight, remainHeight\n */\nVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n var height = this.getHeight(),\n newHeight = height + growth,\n resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\n return [resizeTo, height - resizeTo];\n};\n\n/**\n * get outer height of panel element\n * @returns {number} outer height of panel element\n */\nVPanel.prototype.getHeight = function() {\n return domutil.getSize(this.container)[1];\n};\n\n/**\n * add design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.addClass = function(className) {\n domutil.addClass(this.container, className);\n};\n\n/**\n * remove design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.removeClass = function(className) {\n domutil.removeClass(this.container, className);\n};\n\n/**\n * initialize panel element\n * @param {PanelOptions} options - options for panel\n * @param {HTMLDivElement} container - panel element\n */\nVPanel.prototype._initPanel = function(options, container) {\n var height;\n\n domutil.setData(container, 'panelIndex', options.index);\n\n if (options.isSplitter) {\n domutil.addClass(container, config.classname('splitter'));\n\n return;\n }\n\n if (options.className) {\n domutil.addClass(container, options.className);\n }\n\n if (options.autoHeight) {\n domutil.setData(container, 'autoHeight', true);\n } else {\n height = common.limit(options.height || 0,\n [options.minHeight],\n [options.maxHeight || options.height]\n );\n\n options.height = height;\n this.setHeight(container, height);\n }\n};\n\nmodule.exports = VPanel;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/vpanel.js\n// module id = 64\n// module chunks = 0","/**\n * @fileoverview Base calendar controller\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Schedule = require('../model/schedule');\nvar ScheduleViewModel = require('../model/viewModel/scheduleViewModel');\nvar datetime = require('../common/datetime');\nvar common = require('../common/common');\n\n/**\n * @constructor\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @mixes util.CustomEvents\n */\nfunction Base(options) {\n options = options || {};\n\n /**\n * function for group each schedule models.\n * @type {function}\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {string} group key\n */\n this.groupFunc = options.groupFunc || function(viewModel) {\n if (viewModel.model.isAllDay) {\n return 'allday';\n }\n\n return 'time';\n };\n\n /**\n * schedules collection.\n * @type {Collection}\n */\n this.schedules = common.createScheduleCollection();\n\n /**\n * Matrix for multidate schedules.\n * @type {object.}\n */\n this.dateMatrix = {};\n}\n\n/**\n * Calculate contain dates in schedule.\n * @private\n * @param {Schedule} schedule The instance of schedule.\n * @returns {array} contain dates.\n */\nBase.prototype._getContainDatesInSchedule = function(schedule) {\n var range = datetime.range(\n datetime.start(schedule.getStarts()),\n datetime.end(schedule.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n );\n\n return range;\n};\n\n/**********\n * CRUD\n **********/\n\n/**\n * Create an schedule instance from raw data.\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {object} options Data object to create schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that created.\n */\nBase.prototype.createSchedule = function(options, silent) {\n var schedule,\n scheduleData = {\n data: options\n };\n\n /**\n * @event Base#beforeCreateSchedule\n * @type {Calendar~Schedule[]}\n */\n if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n return null;\n }\n\n schedule = this.addSchedule(Schedule.create(options));\n\n if (!silent) {\n /**\n * @event Base#createdSchedule\n * @type {Schedule}\n */\n this.fire('createdSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n * @param {boolean} [silent=false] - set true then don't fire events.\n * @returns {Schedule[]} The instance list of Schedule that created.\n */\nBase.prototype.createSchedules = function(dataList, silent) {\n var self = this;\n\n return util.map(dataList, function(data) {\n return self.createSchedule(data, silent);\n });\n};\n\n/**\n * Update an schedule.\n * @emits Base#updateSchedule\n * @param {Schedule} schedule - schedule instance to update\n * @param {object} options updated object data.\n * @returns {Schedule} updated schedule instance\n */\nBase.prototype.updateSchedule = function(schedule, options) {\n var start = options.start || schedule.start;\n var end = options.end || schedule.end;\n\n options = options || {};\n\n if (options.title) {\n schedule.set('title', options.title);\n }\n\n if (options.isAllDay) {\n schedule.set('isAllDay', options.isAllDay);\n }\n\n if (options.start || options.end) {\n if (schedule.isAllDay) {\n schedule.setAllDayPeriod(start, end);\n } else {\n schedule.setTimePeriod(start, end);\n }\n }\n\n if (options.color) {\n schedule.set('color', options.color);\n }\n\n if (options.bgColor) {\n schedule.set('bgColor', options.bgColor);\n }\n\n if (options.borderColor) {\n schedule.set('borderColor', options.borderColor);\n }\n\n if (options.origin) {\n schedule.set('origin', options.origin);\n }\n\n if (!util.isUndefined(options.isPending)) {\n schedule.set('isPending', options.isPending);\n }\n\n if (!util.isUndefined(options.isFocused)) {\n schedule.set('isFocused', options.isFocused);\n }\n\n this._removeFromMatrix(schedule);\n this._addToMatrix(schedule);\n\n /**\n * @event Base#updateSchedule\n */\n this.fire('updateSchedule');\n\n return schedule;\n};\n\n/**\n * Delete schedule instance from controller.\n * @param {Schedule} schedule - schedule instance to delete\n * @returns {Schedule} deleted model instance.\n */\nBase.prototype.deleteSchedule = function(schedule) {\n this._removeFromMatrix(schedule);\n this.schedules.remove(schedule);\n\n return schedule;\n};\n\n/**\n * Set date matrix to supplied schedule instance.\n * @param {Schedule} schedule - instance of schedule.\n */\nBase.prototype._addToMatrix = function(schedule) {\n var ownMatrix = this.dateMatrix;\n var containDates = this._getContainDatesInSchedule(schedule);\n\n util.forEach(containDates, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\n matrix.push(util.stamp(schedule));\n });\n};\n\n/**\n * Remove schedule's id from matrix.\n * @param {Schedule} schedule - instance of schedule\n */\nBase.prototype._removeFromMatrix = function(schedule) {\n var modelID = util.stamp(schedule);\n\n util.forEach(this.dateMatrix, function(matrix) {\n var index = util.inArray(modelID, matrix);\n\n if (~index) {\n matrix.splice(index, 1);\n }\n }, this);\n};\n\n/**\n * Add an schedule instance.\n * @emits Base#addedSchedule\n * @param {Schedule} schedule The instance of Schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that added.\n */\nBase.prototype.addSchedule = function(schedule, silent) {\n this.schedules.add(schedule);\n this._addToMatrix(schedule);\n\n if (!silent) {\n /**\n * @event Base#addedSchedule\n * @type {object}\n */\n this.fire('addedSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * split schedule model by ymd.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @param {Collection} scheduleCollection - collection of schedule model.\n * @returns {object.} splitted schedule model collections.\n */\nBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownMatrix = this.dateMatrix,\n result = {};\n\n util.forEachArray(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd],\n collection;\n\n collection = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n util.forEachArray(matrix, function(id) {\n scheduleCollection.doWhenHas(id, function(schedule) {\n collection.add(schedule);\n });\n });\n }\n });\n\n return result;\n};\n\n/**\n * Return schedules in supplied date range.\n *\n * available only YMD.\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @returns {object.} schedule collection grouped by dates.\n */\nBase.prototype.findByDateRange = function(start, end) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownSchedules = this.schedules.items,\n ownMatrix = this.dateMatrix,\n dformat = datetime.format,\n result = {},\n matrix,\n ymd,\n viewModels;\n\n util.forEachArray(range, function(date) {\n ymd = dformat(date, 'YYYYMMDD');\n matrix = ownMatrix[ymd];\n viewModels = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n return ScheduleViewModel.create(ownSchedules[id]);\n }));\n }\n });\n\n return result;\n};\n\nBase.prototype.clearSchedules = function() {\n this.dateMatrix = {};\n this.schedules.clear();\n /**\n * for inner view when clear schedules\n * @event Base#clearSchedules\n * @type {Schedule}\n */\n this.fire('clearSchedules');\n};\n\n// mixin\nutil.CustomEvents.mixin(Base);\n\nmodule.exports = Base;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/base.js\n// module id = 65\n// module chunks = 0","/**\n * @fileoverview Core methods for schedule block placing\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachArr = util.forEachArray,\n aps = Array.prototype.slice;\n\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar Collection = require('../../common/collection');\nvar ScheduleViewModel = require('../../model/viewModel/scheduleViewModel');\n\nvar Core = {\n /**\n * Calculate collision group.\n * @param {array} viewModels List of viewmodels.\n * @returns {array} Collision Group.\n */\n getCollisionGroup: function(viewModels) {\n var collisionGroups = [],\n foundPrevCollisionSchedule = false,\n previousScheduleList;\n\n if (!viewModels.length) {\n return collisionGroups;\n }\n\n collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n forEachArr(viewModels.slice(1), function(schedule, index) {\n foundPrevCollisionSchedule = false;\n previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\n forEachArr(previousScheduleList, function(previous) {\n if (schedule.collidesWith(previous)) {\n // 이전 일정들과 겹치는 경우 겹치는 일정의 Collision Group을\n // 찾아 이 일정을 추가한다\n foundPrevCollisionSchedule = true;\n\n forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n // 겹치는 이전 일정을 찾은 경우 그 일정이 속한\n // Collision Group에 이 일정을 포함시킨다.\n group.push(util.stamp(schedule.valueOf()));\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n if (!foundPrevCollisionSchedule) {\n // 이 일정은 이전일정과 겹치지 않는 일정이므로\n // 새 Collision Group을 구성한다.\n collisionGroups.push([util.stamp(schedule.valueOf())]);\n }\n });\n\n return collisionGroups;\n },\n\n /**\n * Get row length by column index in 2d matrix.\n * @param {array[]} arr2d Matrix\n * @param {number} col Column index.\n * @returns {number} Last row number in column.\n */\n getLastRowInColumn: function(arr2d, col) {\n var row = arr2d.length;\n\n while (row > 0) {\n row -= 1;\n if (!util.isUndefined(arr2d[row][col])) {\n return row;\n }\n }\n\n return false;\n },\n\n /**\n * Calculate matrix for appointment block element placing.\n * @param {Collection} collection model collection.\n * @param {array[]} collisionGroups Collision groups for schedule set.\n * @returns {array} matrices\n */\n getMatrices: function(collection, collisionGroups) {\n var result = [],\n getLastRowInColumn = Core.getLastRowInColumn;\n\n forEachArr(collisionGroups, function(group) {\n var matrix = [[]];\n\n forEachArr(group, function(scheduleID) {\n var schedule = collection.items[scheduleID],\n col = 0,\n found = false,\n nextRow,\n lastRowInColumn;\n\n while (!found) {\n lastRowInColumn = getLastRowInColumn(matrix, col);\n\n if (lastRowInColumn === false) {\n matrix[0].push(schedule);\n found = true;\n } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n nextRow = lastRowInColumn + 1;\n if (util.isUndefined(matrix[nextRow])) {\n matrix[nextRow] = [];\n }\n matrix[nextRow][col] = schedule;\n found = true;\n }\n\n col += 1;\n }\n });\n\n result.push(matrix);\n });\n\n return result;\n },\n\n /**\n * Filter that get schedule model in supplied date ranges.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @returns {function} schedule filter function\n */\n getScheduleInDateRangeFilter: function(start, end) {\n return function(model) {\n var ownStarts = model.getStarts(),\n ownEnds = model.getEnds();\n\n // shorthand condition of\n //\n // (ownStarts >= start && ownEnds <= end) ||\n // (ownStarts < start && ownEnds >= start) ||\n // (ownEnds > end && ownStarts <= end)\n return !(ownEnds < start || ownStarts > end);\n };\n },\n\n /**\n * Position each view model for placing into container\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {array} matrices - matrices from controller\n * @param {function} [iteratee] - iteratee function invoke each view models\n */\n positionViewModels: function(start, end, matrices, iteratee) {\n var ymdListToRender;\n\n ymdListToRender = util.map(\n datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n function(date) {\n return datetime.format(date, 'YYYYMMDD');\n }\n );\n\n forEachArr(matrices, function(matrix) {\n forEachArr(matrix, function(column) {\n forEachArr(column, function(viewModel, index) {\n var ymd, dateLength;\n\n if (!viewModel) {\n return;\n }\n\n ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n dateLength = datetime.range(\n datetime.start(viewModel.getStarts()),\n datetime.end(viewModel.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n ).length;\n\n viewModel.top = index;\n viewModel.left = util.inArray(ymd, ymdListToRender);\n viewModel.width = dateLength;\n\n if (iteratee) {\n iteratee(viewModel);\n }\n });\n });\n });\n },\n\n /**\n * Limit start, end date each view model for render properly\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n * model collection or ScheduleViewModel\n * @returns {ScheduleViewModel} return view model when third parameter is\n * view model\n */\n limitRenderRange: function(start, end, viewModelColl) {\n /**\n * Limit render range for view models\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {ScheduleViewModel} view model that limited render range\n */\n function limit(viewModel) {\n if (viewModel.getStarts() < start) {\n viewModel.exceedLeft = true;\n viewModel.renderStarts = new TZDate(start.getTime());\n }\n\n if (viewModel.getEnds() > end) {\n viewModel.exceedRight = true;\n viewModel.renderEnds = new TZDate(end.getTime());\n }\n\n return viewModel;\n }\n\n if (viewModelColl.constructor === Collection) {\n viewModelColl.each(limit);\n\n return null;\n }\n\n return limit(viewModelColl);\n },\n\n /**\n * Convert schedule model collection to view model collection.\n * @param {Collection} modelColl - collection of schedule model\n * @returns {Collection} collection of schedule view model\n */\n convertToViewModel: function(modelColl) {\n var viewModelColl;\n\n viewModelColl = new Collection(function(viewModel) {\n return viewModel.cid();\n });\n\n modelColl.each(function(model) {\n viewModelColl.add(ScheduleViewModel.create(model));\n });\n\n return viewModelColl;\n }\n};\n\nmodule.exports = Core;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/core.js\n// module id = 66\n// module chunks = 0","/**\n * @fileoverview Controller mixin for Month View\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar array = require('../../common/array'),\n datetime = require('../../common/datetime'),\n Collection = require('../../common/collection');\nvar mmax = Math.max;\n\nvar Month = {\n /**\n * Filter function for find time schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is time schedule?\n */\n _onlyTimeFilter: function(viewModel) {\n return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n },\n\n /**\n * Filter function for find allday schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is allday schedule?\n */\n _onlyAlldayFilter: function(viewModel) {\n return viewModel.model.isAllDay || viewModel.hasMultiDates;\n },\n\n /**\n * Weight top value +1 for month view render\n * @param {ScheduleViewModel} viewModel - schedule view model\n */\n _weightTopValue: function(viewModel) {\n viewModel.top = viewModel.top || 0;\n viewModel.top += 1;\n },\n\n /**\n * Adjust render range to render properly.\n *\n * Limit start, end for each allday schedules and expand start, end for\n * each time schedules\n * @this Base\n * @param {Date} start - render start date\n * @param {Date} end - render end date\n * @param {Collection} vColl - view model collection\n * property.\n */\n _adjustRenderRange: function(start, end, vColl) {\n var ctrlCore = this.Core;\n\n vColl.each(function(viewModel) {\n if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n ctrlCore.limitRenderRange(start, end, viewModel);\n }\n });\n },\n\n /**\n * Get max top index value for allday schedules in specific date (YMD)\n * @this Base\n * @param {string} ymd - yyyymmdd formatted value\n * @param {Collection} vAlldayColl - collection of allday schedules\n * @returns {number} max top index value in date\n */\n _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n var dateMatrix = this.dateMatrix,\n topIndexesInDate = [];\n util.forEach(dateMatrix[ymd], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topIndexesInDate.push(viewModel.top);\n });\n });\n\n if (topIndexesInDate.length > 0) {\n return mmax.apply(null, topIndexesInDate);\n }\n\n return 0;\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _adjustTimeTopIndex: function(vColl) {\n var ctrlMonth = this.Month;\n var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var maxIndexInYMD = {};\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\n if (util.isUndefined(alldayMaxTopInYMD)) {\n alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n }\n maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n (alldayMaxTopInYMD + 1);\n });\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _stackTimeFromTop: function(vColl) {\n var ctrlMonth = this.Month;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var indiceInYMD = {};\n var dateMatrix = this.dateMatrix;\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var topArrayInYMD = indiceInYMD[scheduleYMD];\n var maxTopInYMD;\n var i;\n\n if (util.isUndefined(topArrayInYMD)) {\n topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n util.forEach(dateMatrix[scheduleYMD], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topArrayInYMD.push(viewModel.top);\n });\n });\n }\n\n if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n for (i = 1; i <= maxTopInYMD; i += 1) {\n timeViewModel.top = i;\n if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n break;\n }\n }\n }\n topArrayInYMD.push(timeViewModel.top);\n });\n },\n\n /**\n * Convert multi-date time schedule to all-day schedule\n * @this Base\n * @param {Collection} vColl - view model collection\n * property.\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n var start = model.getStarts();\n var end = model.getEnds();\n\n viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\n if (!model.isAllDay && viewModel.hasMultiDates) {\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.end(end);\n }\n });\n },\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @param {Date} start - start date to find schedules\n * @param {Date} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n * @returns {object} view model data\n */\n findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n var ctrlCore = this.Core,\n ctrlMonth = this.Month,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n coll, vColl, vList,\n collisionGroup,\n matrices;\n\n alldayFirstMode = alldayFirstMode || false;\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n coll = this.schedules.find(filter);\n vColl = ctrlCore.convertToViewModel(coll);\n ctrlMonth._addMultiDatesInfo(vColl);\n ctrlMonth._adjustRenderRange(start, end, vColl);\n vList = vColl.sort(array.compare.schedule.asc);\n\n collisionGroup = ctrlCore.getCollisionGroup(vList);\n matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n if (alldayFirstMode) {\n ctrlMonth._adjustTimeTopIndex(vColl);\n } else {\n ctrlMonth._stackTimeFromTop(vColl);\n }\n\n return matrices;\n }\n};\n\nmodule.exports = Month;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/month.js\n// module id = 67\n// module chunks = 0","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Controller mixin modules for day views.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar Collection = require('../../common/collection');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\n\n/**\n * @mixin Base.Week\n */\nvar Week = {\n /**********\n * TIME GRID VIEW\n **********/\n\n /**\n * Make array with start and end times on schedules.\n * @this Base.Week\n * @param {array[]} matrix - matrix from controller.\n * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n */\n generateTimeArrayInRow: function(matrix) {\n var row,\n col,\n schedule,\n map = [],\n cursor = [],\n maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n return col.length;\n }));\n\n for (col = 1; col < maxColLen; col += 1) {\n row = 0;\n schedule = util.pick(matrix, row, col);\n\n while (schedule) {\n cursor.push([schedule.getStarts().getTime(), schedule.getEnds().getTime()]);\n\n row += 1;\n schedule = util.pick(matrix, row, col);\n }\n\n map.push(cursor);\n cursor = [];\n }\n\n return map;\n },\n\n /**\n * Get collision information from list\n * @this Base\n * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n * @param {number} start - schedule start time that want to detect collisions.\n * @param {number} end - schedule end time that want to detect collisions.\n * @returns {boolean} target has collide in supplied array?\n */\n hasCollide: function(arr, start, end) {\n var startStart,\n startEnd,\n endStart,\n endEnd,\n getFunc = function(index) {\n return function(block) {\n return block[index];\n };\n },\n abs = Math.abs,\n compare = array.compare.num.asc,\n hasCollide;\n\n if (!arr.length) {\n return false;\n }\n\n startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\n return hasCollide;\n },\n\n /**\n * Initialize values to viewmodels for detect real collision at rendering phase.\n * @this Base\n * @param {array[]} matrices - Matrix data.\n */\n getCollides: function(matrices) {\n util.forEachArray(matrices, function(matrix) {\n var binaryMap,\n maxRowLength;\n\n binaryMap = Week.generateTimeArrayInRow(matrix);\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n util.forEachArray(matrix, function(row) {\n util.forEachArray(row, function(viewModel, col) {\n var startTime,\n endTime,\n hasCollide,\n i;\n\n if (!viewModel) {\n return;\n }\n\n startTime = viewModel.getStarts().getTime() + 1;\n endTime = viewModel.getEnds().getTime() - 1;\n\n for (i = (col + 1); i < maxRowLength; i += 1) {\n hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\n if (hasCollide) {\n viewModel.hasCollide = true;\n break;\n }\n\n viewModel.extraSpace += 1;\n }\n });\n });\n });\n },\n\n /**\n * create view model for time view part\n * @this Base\n * @param {Date} start - start date.\n * @param {Date} end - end date.\n * @param {Collection} time - view model collection.\n * @returns {object} view model for time part.\n */\n getViewModelForTimeView: function(start, end, time) {\n var self = this,\n ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n result = {};\n\n util.forEach(ymdSplitted, function(collection, ymd) {\n var viewModels = collection.sort(array.compare.schedule.asc),\n collisionGroups,\n matrices;\n\n collisionGroups = self.Core.getCollisionGroup(viewModels);\n matrices = self.Core.getMatrices(collection, collisionGroups);\n self.Week.getCollides(matrices);\n\n result[ymd] = matrices;\n });\n\n return result;\n },\n\n /**********\n * ALLDAY VIEW\n **********/\n\n /**\n * Set hasMultiDates flag to true and set date ranges for rendering\n * @this Base\n * @param {Collection} vColl - view model collection\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n viewModel.hasMultiDates = true;\n viewModel.renderStarts = datetime.start(model.getStarts());\n viewModel.renderEnds = datetime.end(model.getEnds());\n });\n },\n\n /**\n * create view model for allday view part\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n * @returns {object} allday viewModel.\n */\n getViewModelForAlldayView: function(start, end, viewModelColl) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n viewModels,\n collisionGroups,\n matrices;\n\n if (!viewModelColl || !viewModelColl.length) {\n return [];\n }\n\n ctrlWeek._addMultiDatesInfo(viewModelColl);\n ctrlCore.limitRenderRange(start, end, viewModelColl);\n\n viewModels = viewModelColl.sort(array.compare.schedule.asc);\n collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\n matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n ctrlCore.positionViewModels(start, end, matrices);\n\n return matrices;\n },\n\n /**********\n * READ\n **********/\n\n /**\n * Populate schedules in date range.\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @returns {object} schedules grouped by dates.\n */\n findByDateRange: function(start, end, andFilters) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n modelColl,\n group;\n\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n modelColl = this.schedules.find(filter);\n modelColl = ctrlCore.convertToViewModel(modelColl);\n\n group = modelColl.groupBy(['task', 'allday', 'time'], this.groupFunc);\n group.task = ctrlWeek.getViewModelForAlldayView(start, end, group.task);\n group.allday = ctrlWeek.getViewModelForAlldayView(start, end, group.allday);\n group.time = ctrlWeek.getViewModelForTimeView(start, end, group.time);\n\n return group;\n }\n};\n\nmodule.exports = Week;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/week.js\n// module id = 68\n// module chunks = 0","/**\n * @fileoverview Factory module for control all other factory.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet'),\n Handlebars = require('handlebars-template-loader/runtime');\nvar dw = require('../common/dw'),\n datetime = require('../common/datetime'),\n Layout = require('../view/layout'),\n Drag = require('../handler/drag'),\n controllerFactory = require('./controller'),\n weekViewFactory = require('./weekView'),\n monthViewFactory = require('./monthView'),\n TZDate = require('../common/timezone').Date,\n config = require('../config'),\n timezone = require('../common/timezone');\n\nvar mmin = Math.min;\n\n/**\n * @typedef {object} Schedule\n * @property {string} id - unique schedule id depends on calendar id\n * @property {string} calendarId - unique calendar id\n * @property {string} title - schedule title\n * @property {string} start - start time\n * @property {string} end - end time\n * @property {boolean} isAllDay - all day schedule\n * @property {string} category - schedule type('milestone', 'task', allday', 'time')\n * @property {string} dueDateClass - task schedule type string\n * (any string value is ok and mandatory if category is 'task')\n * @property {boolean} isPending - in progress flag to do something like network job(The schedule will be transparent.)\n * @property {boolean} isFocused - focused schedule flag\n * @property {boolean} isVisible - schedule visibility flag\n * @property {boolean} isReadOnly - schedule read-only flag\n * @property {string} [color] - schedule text color\n * @property {string} [bgColor] - schedule background color\n * @property {string} [borderColor] - schedule left border color\n * @property {string} customStyle - schedule's custom css class\n * @property {any} raw - user data\n */\n\n/**\n * @typedef {object} RenderRange - rendered range\n * @property {Date} start - start date\n * @property {Date} end - end date\n */\n\n/**\n * @typedef {object} Options - calendar option object\n * @property {string} [cssPrefix] - CSS classname prefix\n * @property {string} [defaultView='week'] - default view of calendar\n * @property {string} [defaultDate=null] - default date to render calendar. if not supplied, use today.\n * @property {object} [calendarColor] - preset calendar colors\n * @property {string} [calendarColor.color] - calendar color\n * @property {string} [calendarColor.bgColor] - calendar background color\n * @property {string} [calendarColor.borderColor] - calendar left border color\n * @property {boolean} [calendarColor.render] - immediately apply colors when setCalendarColor called.\n * @property {boolean} [taskView=true] - show the milestone and task in weekly, daily view\n * @property {boolean} [scheduleView=true] - show the all day and time grid in weekly, daily view\n * @property {object} [template] - template option\n * @property {function} [template.milestoneTitle] - milestone title(at left column) template function\n * @property {function} [template.milestone] - milestone template function\n * @property {function} [template.taskTitle] - task title(at left column) template function\n * @property {function} [template.task] - task template function\n * @property {function} [template.alldayTitle] - allday title(at left column) template function\n * @property {function} [template.allday] - allday template function\n * @property {function} [template.time] - time template function\n * @property {function} [template.monthMoreTitleDate] - month more layer title template function\n * @property {function} [template.monthMoreClose] - month more layer close button template function\n * @property {function} [template.monthGridHeader] - month grid header(date, decorator, title) template function\n * @property {function} [template.monthGridFooter] - month grid footer(date, decorator, title) template function\n * @property {function} [template.monthGridHeaderExceed] - month grid header(exceed schedule count) template function\n * @property {function} [template.monthGridFooterExceed] - month grid footer(exceed schedule count) template function\n * @property {function} [template.weekDayname] - weekly dayname template function\n * @property {function} [template.monthDayname] - monthly dayname template function\n * @property {object} [week] - options for week view\n * @property {number} [week.startDayOfWeek=0] - start day of week\n * @property {Array.} [week.panelHeights] - each panel height px(Milestone, Task, Allday View Panel)\n * @property {Array.} [week.daynames] - day names in weekly and daily.\n * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {boolean} [week.narrowWeekend=false] - make weekend column narrow(1/2 width)\n * @property {boolean} [week.workweek=false] - show only 5 days except for weekend\n * @property {string} [week.alldayViewType='scroll'] - set view type of allday panel. ('scroll'|'toggle')\n * @property {object} [month] - options for month view\n * @property {Array.} [month.daynames] - day names in monthly.\n * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {number} [month.startDayOfWeek=0] - start day of week\n * @property {boolean} [month.narrowWeekend=false] - make weekend column narrow(1/2 width)\n * @property {boolean} [month.visibleWeeksCount=6] - visible week count in monthly(0 or null are same with 6)\n * @property {number} [month.visibleScheduleCount] - visible schedule count in monthly grid\n * @property {object} [month.moreLayerSize] - more layer size\n * @property {object} [month.moreLayerSize.width=null] - css width value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [month.moreLayerSize.height=null] - css height value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [month.grid] - grid's header and footer information\n * @property {object} [month.grid.header] - grid's header informatioin\n * @property {number} [month.grid.header.height=34] - grid's header height\n * @property {object} [month.grid.footer] - grid's footer informatioin\n * @property {number} [month.grid.footer.height=34] - grid's footer height\n * @property {Array.} [schedules] - array of Schedule data for add calendar after initialize.\n */\n\n/**\n * @typedef {class} CustomEvents\n * https://nhnent.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html\n */\n\n/**\n * @typedef {object} TimeCreationGuide - time creation guide instance to present selected time period\n * @property {HTMLElement} guideElement - guide element\n * @property {Object.} guideElements - map by key. It can be used in monthly view\n * @property {function} clearGuideElement - hide the creation guide\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var guide = event.guide;\n * // use guideEl$'s left, top to locate your schedule creation popup\n * var guideEl$ = guide.guideElement ?\n * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n *\n * // after that call this to hide the creation guide\n * guide.clearGuideElement();\n * });\n */\n\n/**\n * Calendar class\n * @constructor\n * @mixes CustomEvents\n * @param {HTMLElement|string} container - container element or selector id\n * @param {Options} options - calendar options\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * defaultView: 'week',\n * taskView: true,\n * scheduleView: true,\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'Milestone';\n * },\n * task: function(schedule) {\n * return '  #' + schedule.title;\n * },\n * taskTitle: function() {\n * return '';\n * },\n * allday: function(schedule) {\n * return schedule.title + ' ';\n * },\n * alldayTitle: function() {\n * return 'All Day';\n * },\n * time: function(schedule) {\n * return schedule.title + ' ' + schedule.start;\n * }\n * },\n * month: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * },\n * week: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * panelHeights: [80, 80, 120],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * }\n * });\n */\nfunction Calendar(container, options) {\n var opt;\n\n if (util.isString(container)) {\n container = document.querySelector(container);\n }\n\n /**\n * calendar options\n * @type {Options}\n */\n this.options = opt = util.extend({\n calendarColor: {},\n groupFunc: function(viewModel) {\n var model = viewModel.model;\n\n if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n return 'allday';\n }\n\n return model.category;\n },\n controller: null,\n defaultView: 'week',\n taskView: true,\n scheduleView: true,\n defaultDate: new TZDate(),\n template: util.extend({\n allday: null,\n time: null\n }, util.pick(options, 'template') || {}),\n week: util.extend({}, util.pick(options, 'week') || {}),\n month: util.extend({}, util.pick(options, 'month') || {}),\n schedules: []\n }, options);\n\n this.options.week = util.extend({\n startDayOfWeek: 0,\n workweek: false\n }, util.pick(this.options, 'week') || {});\n\n this.options.month = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible) &&\n (schedule.category === 'allday' || schedule.category === 'time');\n }\n }, util.pick(options, 'month') || {});\n\n /**\n * Calendar color map\n * @type {object}\n * @private\n */\n this.calendarColor = opt.calendarColor;\n\n /**\n * @type {HTMLElement}\n * @private\n */\n this.container = container;\n\n /**\n * Current rendered date\n * @type {Date}\n * @readonly\n */\n this.renderDate = opt.defaultDate;\n\n /**\n * start and end date of weekly, monthly\n * @type {RenderRange}\n * @readonly\n */\n this.renderRange = {\n start: null,\n end: null\n };\n\n /**\n * base controller\n * @type {Base}\n * @private\n */\n this.controller = opt.controller || this.createController();\n\n /**\n * layout view (layout manager)\n * @type {Layout}\n * @private\n */\n this.layout = new Layout(container);\n\n /**\n * global drag handler\n * @type {Drag}\n * @private\n */\n this.dragHandler = new Drag({distance: 10}, this.layout.container);\n\n /**\n * current rendered view name. ('day', 'week', 'month')\n * @type {string}\n * @default 'week'\n * @readonly\n */\n this.viewName = opt.defaultView;\n\n /**\n * previous rendered view name\n * @type {string}\n * @private\n */\n this.prevViewName = this.viewName;\n\n /**\n * Refresh method. it can be ref different functions for each view modes.\n * @type {function}\n * @private\n */\n this.refreshMethod = null;\n\n /**\n * Scroll to now. It can be called for 'week', 'day' view modes.\n * @type {function}\n * @private\n */\n this.scrollToNowMethod = null;\n\n this.initialize();\n}\n\n/**\n * Create controller instance\n * @returns {Base} controller instance\n * @private\n */\nCalendar.prototype.createController = function() {\n return controllerFactory(this.options);\n};\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Week} week view instance\n * @private\n */\nCalendar.prototype.createWeekView = function(controller, container, dragHandler, options) {\n return weekViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n};\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Month} month view instance\n * @private\n */\nCalendar.prototype.createMonthView = function(controller, container, dragHandler, options) {\n return monthViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n};\n\n/**\n * destroy calendar instance.\n */\nCalendar.prototype.destroy = function() {\n this.dragHandler.destroy();\n this.controller.off();\n this.layout.clear();\n this.layout.destroy();\n\n util.forEach(this.options.template, function(func, name) {\n if (func) {\n Handlebars.unregisterHelper(name + '-tmpl');\n }\n });\n\n this.options = this.renderDate = this.controller =\n this.layout = this.dragHandler = this.viewName = this.prevViewName =\n this.refreshMethod = this.scrollToNowMethod = null;\n};\n\n/**\n * Initialize calendar\n * @private\n */\nCalendar.prototype.initialize = function() {\n var controller = this.controller,\n viewName = this.viewName,\n opt = this.options;\n\n this.layout.controller = controller;\n\n if (opt.schedules && opt.schedules.length) {\n this.createSchedules(opt.schedules, true);\n }\n\n util.forEach(opt.template, function(func, name) {\n if (func) {\n Handlebars.registerHelper(name + '-tmpl', func);\n }\n });\n\n this.toggleView(viewName, true);\n};\n\n/**********\n * CRUD Methods\n **********/\n\n/**\n * Create schedules and render calendar.\n * @param {Array.} schedules - schedule data list\n * @param {boolean} [silent=false] - no auto render after creation when set true\n * @example\n * calendar.createSchedules([\n * {\n * id: '1',\n * calendarId: '1',\n * title: 'my schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T22:30:00+09:00',\n * end: '2018-01-19T02:30:00+09:00'\n * },\n * {\n * id: '2',\n * calendarId: '1',\n * title: 'second schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T17:30:00+09:00',\n * end: '2018-01-19T17:31:00+09:00'\n * }\n * ]);\n */\nCalendar.prototype.createSchedules = function(schedules, silent) {\n var calColor = this.calendarColor;\n\n util.forEach(schedules, function(obj) {\n var color = calColor[obj.calendarId];\n\n if (color) {\n obj.color = color.color;\n obj.bgColor = color.bgColor;\n obj.borderColor = color.borderColor;\n }\n });\n\n this.controller.createSchedules(schedules, silent);\n\n if (!silent) {\n this.render();\n }\n};\n\n/**\n * Get schedule by schedule id and calendar id.\n * @param {string} id - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {Schedule} schedule object\n * @example\n * var schedule = calendar.getSchedule(scheduleId, calendarId);\n * console.log(schedule.title);\n */\nCalendar.prototype.getSchedule = function(id, calendarId) {\n return this.controller.schedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n};\n\n/**\n * Update the schedule\n * @param {string} id - ID of schedule to update\n * @param {string} calendarId - calendarId of schedule to update\n * @param {Schedule} scheduleData - schedule data to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var startTime = event.start;\n * var endTime = event.end;\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * start: startTime,\n * end: endTime\n * });\n * });\n */\nCalendar.prototype.updateSchedule = function(id, calendarId, scheduleData) {\n var ctrl = this.controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n\n if (schedule) {\n ctrl.updateSchedule(schedule, scheduleData);\n this.render();\n }\n};\n\n/**\n * Delete schedule.\n * @fires Calendar#beforeDeleteSchedule\n * @param {string} id - ID of schedule to delete\n * @param {string} calendarId - calendarId of schedule to delete\n */\nCalendar.prototype.deleteSchedule = function(id, calendarId) {\n var ctrl = this.controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n\n if (!schedule) {\n return;\n }\n\n /**\n * Fire this event when delete a schedule.\n * @event Calendar#beforeDeleteSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to delete\n * @example\n * calendar.on('beforeDeleteSchedule', function() {\n * alert('The schedule is removed.');\n * });\n */\n this.fire('beforeDeleteSchedule', {\n schedule: schedule\n });\n\n ctrl.deleteSchedule(schedule);\n this.render();\n};\n\n/**********\n * Private Methods\n **********/\n\n/**\n * Set child view's options recursively\n * @param {View} view - parent view\n * @param {function} func - option manipulate function\n * @private\n */\nCalendar.prototype.setOptionRecurseively = function(view, func) {\n view.recursive(function(childView) {\n var opt = childView.options;\n\n if (!opt) {\n return;\n }\n\n func(opt);\n });\n};\n\n/**\n * @param {string|Date} date - date to show in calendar\n * @param {number} [startDayOfWeek=0] - start day of week\n * @param {boolean} [workweek=false] - only show work week\n * @returns {array} render range\n * @private\n */\nCalendar.prototype.getWeekDayRange = function(date, startDayOfWeek, workweek) {\n var day, start, end, range,\n msFrom = datetime.millisecondsFrom;\n\n startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n date = util.isDate(date) ? date : new TZDate(date);\n day = date.getDay();\n\n // calculate default render range first.\n start = new TZDate(\n Number(date) -\n msFrom('day', day) +\n msFrom('day', startDayOfWeek)\n );\n\n end = new TZDate(Number(start) + msFrom('day', 6));\n\n if (day < startDayOfWeek) {\n start = new TZDate(Number(start) - msFrom('day', 7));\n end = new TZDate(Number(end) - msFrom('day', 7));\n }\n\n if (workweek) {\n range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n );\n\n range = util.filter(range, function(weekday) {\n return !datetime.isWeekend(weekday.getDay());\n });\n\n start = range[0];\n end = range[range.length - 1];\n }\n\n return [start, end];\n};\n\n/**\n * Toggle schedules visibility by calendar ID\n * @param {string} calendarId - calendar id value\n * @param {boolean} toHide - set true to hide schedules\n * @param {boolean} render - set true then render after change visible property each models\n * @private\n */\nCalendar.prototype._toggleSchedulesByCalendarID = function(calendarId, toHide, render) {\n var ownSchedules = this.controller.schedules;\n\n calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\n ownSchedules.each(function(schedule) {\n if (~util.inArray(schedule.calendarId, calendarId)) {\n schedule.set('isVisible', !toHide);\n }\n });\n\n if (render) {\n this.render();\n }\n};\n\n/**********\n * General Methods\n **********/\n\n/**\n * Render the calendar.\n * @example\n * var silent = true;\n * calendar.clear();\n * calendar.createSchedules(schedules, silent);\n * calendar.render();\n */\nCalendar.prototype.render = function() {\n this.layout.render();\n};\n\n/**\n * Delete all schedules and clear view.\n * @example\n * calendar.clear();\n * calendar.createSchedules(schedules, true);\n * calendar.render();\n */\nCalendar.prototype.clear = function() {\n this.controller.clearSchedules();\n this.render();\n};\n\n/**\n * Scroll to now in daily, weekly view\n * @example\n * function onNewSchedules(schedules) {\n * calendar.createSchedules(schedules);\n * if (calendar.viewName !== 'month') {\n * calendar.scrollToNow();\n * }\n * }\n */\nCalendar.prototype.scrollToNow = function() {\n if (this.scrollToNowMethod) {\n this.scrollToNowMethod();\n }\n};\n\n/**\n * Refresh the calendar layout.\n * @example\n * window.addEventListener('resize', function() {\n * calendar.refresh();\n * });\n */\nCalendar.prototype.refresh = function() {\n if (this.refreshMethod) {\n this.refreshMethod();\n }\n\n this.render();\n};\n\n/**\n * Refresh child views\n * @param {string} [viewName] - the name of view to render. if not supplied then refresh all.\n * @private\n */\nCalendar.prototype.refreshChildView = function(viewName) {\n if (!viewName) {\n this.render();\n\n return;\n }\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n this.layout.children.items[viewName].render();\n};\n\n/**\n * Move to today.\n * @example\n * function onClickTodayBtn() {\n * calendar.today();\n * }\n */\nCalendar.prototype.today = function() {\n this.renderDate = new TZDate();\n\n this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n this.move();\n this.render();\n};\n\n/**\n * Move the calendar amount of offset value\n * @param {number} offset - offset value.\n * @private\n * @example\n * // move previous week when \"week\" view.\n * // move previous month when \"month\" view.\n * calendar.move(-1);\n */\nCalendar.prototype.move = function(offset) {\n var renderDate = dw(this.renderDate),\n viewName = this.viewName,\n view = this.getCurrentView(),\n recursiveSet = this.setOptionRecurseively,\n startDate, endDate, tempDate,\n startDayOfWeek, visibleWeeksCount, workweek, datetimeOptions;\n\n offset = util.isExisty(offset) ? offset : 0;\n\n if (viewName === 'month') {\n startDayOfWeek = util.pick(this.options, 'month', 'startDayOfWeek') || 0;\n visibleWeeksCount = mmin(util.pick(this.options, 'month', 'visibleWeeksCount') || 0, 6);\n workweek = util.pick(this.options, 'month', 'workweek') || false;\n\n if (visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n\n renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\n recursiveSet(view, function(opt) {\n opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM-DD');\n });\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: true,\n workweek: workweek\n };\n\n renderDate.addMonth(offset);\n tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\n recursiveSet(view, function(opt) {\n opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM');\n });\n }\n\n startDate = tempDate[0][0];\n endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n } else if (viewName === 'week') {\n renderDate.addDate(offset * 7);\n startDayOfWeek = util.pick(this.options, 'week', 'startDayOfWeek') || 0;\n workweek = util.pick(this.options, 'week', 'workweek') || false;\n tempDate = this.getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\n startDate = tempDate[0];\n endDate = tempDate[1];\n\n recursiveSet(view, function(opt) {\n opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n });\n } else if (viewName === 'day') {\n renderDate.addDate(offset);\n startDate = endDate = renderDate.d;\n\n recursiveSet(view, function(opt) {\n opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n });\n }\n\n this.renderDate = renderDate.d;\n this.renderRange = {\n start: startDate,\n end: endDate\n };\n};\n\n/**\n * Move to specific date\n * @param {(Date|string)} date - date to move\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.viewName === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.toggleView('day', true);\n * }\n * });\n */\nCalendar.prototype.setDate = function(date) {\n if (util.isString(date)) {\n date = datetime.parse(date);\n }\n\n this.renderDate = new TZDate(Number(date));\n this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n this.move(0);\n this.render();\n};\n\n/**\n * Move the calendar forward a day, a week, a month\n * @example\n * function moveToNextOrPrevRange(val) {\n calendar.clear();\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.next = function() {\n this.move(1);\n this.render();\n};\n\n/**\n * Move the calendar backward a day, a week, a month\n * @example\n * function moveToNextOrPrevRange(val) {\n calendar.clear();\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.prev = function() {\n this.move(-1);\n this.render();\n};\n\n/**\n * Return current rendered view.\n * @returns {View} current view instance\n * @private\n */\nCalendar.prototype.getCurrentView = function() {\n var viewName = this.viewName;\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n return util.pick(this.layout.children.items, viewName);\n};\n\n/**\n * Change calendar's schedule color with option\n * @param {string} calendarId - calendar ID\n * @param {object} option - color data object\n * @param {string} option.color - text color of schedule element\n * @param {string} option.bgColor - bg color of schedule element\n * @param {string} option.borderColor - border color of schedule element\n * @param {boolean} [option.render=true] - set false then does not auto render.\n * @example\n * calendar.setCalendarColor('1', {\n * color: '#e8e8e8',\n * bgColor: '#585858',\n * render: false\n * });\n * calendar.setCalendarColor('2', {\n * color: '#282828',\n * bgColor: '#dc9656',\n * render: false\n * });\n * calendar.setCalendarColor('3', {\n * color: '#a16946',\n * bgColor: '#ab4642',\n * render: true\n * });\n */\nCalendar.prototype.setCalendarColor = function(calendarId, option) {\n var calColor = this.calendarColor,\n ownSchedules = this.controller.schedules,\n ownColor = calColor[calendarId];\n\n if (!util.isObject(option)) {\n config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n }\n\n ownColor = calColor[calendarId] = util.extend({\n color: '#000',\n bgColor: '#a1b56c',\n borderColor: '#a1b56c',\n render: true\n }, option);\n\n ownSchedules.each(function(model) {\n if (model.calendarId !== calendarId) {\n return;\n }\n\n model.color = ownColor.color;\n model.bgColor = ownColor.bgColor;\n model.borderColor = ownColor.borderColor;\n });\n\n if (ownColor.render) {\n this.render();\n }\n};\n\n/**\n * Show schedules visibility by calendar ID\n * @param {string|string[]} calendarId - calendar id value\n * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n * @private\n */\nCalendar.prototype.showSchedulesByCalendarID = function(calendarId, render) {\n render = util.isExisty(render) ? render : true;\n this._toggleSchedulesByCalendarID(calendarId, false, render);\n};\n\n/**\n * Hide schedules visibility by calendar ID\n * @param {string|string[]} calendarId - calendar id value\n * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n * @private\n */\nCalendar.prototype.hideSchedulesByCalendarID = function(calendarId, render) {\n render = util.isExisty(render) ? render : true;\n this._toggleSchedulesByCalendarID(calendarId, true, render);\n};\n\n/**********\n * Custom Events\n **********/\n\n/**\n * 각 뷰의 클릭 핸들러와 사용자 클릭 이벤트 핸들러를 잇기 위한 브릿지 개념의 이벤트 핸들러\n * @fires Calendar#clickSchedule\n * @param {object} clickScheduleData - 'clickSchedule' 핸들러의 이벤트 데이터\n * @private\n */\nCalendar.prototype._onClick = function(clickScheduleData) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent\n * @example\n * calendar.on('clickSchedule', function(event) {\n * var schedule = event.schedule;\n *\n * if (lastClickSchedule) {\n * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n * isFocused: false\n * });\n * }\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * isFocused: true\n * });\n *\n * lastClickSchedule = schedule;\n * // open detail view\n * });\n */\n this.fire('clickSchedule', clickScheduleData);\n};\n\n/**\n * dayname 클릭 이벤트 핸들러\n * @fires Calendar#clickDayname\n * @param {object} clickScheduleData - 'clickDayname' 핸들러의 이벤트 데이터\n * @private\n */\nCalendar.prototype._onClickDayname = function(clickScheduleData) {\n /**\n * Fire this event when click a day name in weekly.\n * @event Calendar#clickDayname\n * @type {object}\n * @property {string} date - date string by format 'YYYY-MM-DD'\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.viewName === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.toggleView('day', true);\n * }\n * });\n */\n this.fire('clickDayname', clickScheduleData);\n};\n\n/**\n * @fires {Calendar#beforeCreateSchedule}\n * @param {object} createScheduleData - select schedule data from allday, time\n * @private\n */\nCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n /**\n * Fire this event when select time period in daily, weekly, monthly.\n * @event Calendar#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - allday schedule\n * @property {Date} start - selected start time\n * @property {Date} end - selected end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name like 'click', 'dblclick'\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var startTime = event.start;\n * var endTime = event.end;\n * var isAllDay = event.isAllDay;\n * var guide = event.guide;\n * var triggerEventName = event.triggerEventName;\n * var schedule;\n *\n * if (triggerEventName === 'click') {\n * // open writing simple schedule popup\n * schedule = {...};\n * } else if (triggerEventName === 'dblclick') {\n * // open writing detail schedule popup\n * schedule = {...};\n * }\n *\n * calendar.createSchedules([schedule]);\n * });\n */\n this.fire('beforeCreateSchedule', createScheduleData);\n};\n\n/**\n * @fires Calendar#beforeUpdateSchedule\n * @param {object} updateScheduleData - update schedule data\n * @private\n */\nCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n /**\n * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n * @event Calendar#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var startTime = event.start;\n * var endTime = event.end;\n *\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * start: startTime,\n * end: endTime\n * });\n * });\n */\n this.fire('beforeUpdateSchedule', updateScheduleData);\n};\n\n/**\n * @fires Calendar#resizePanel\n * @param {object} resizeScheduleData - resize schedule data object\n * @private\n */\nCalendar.prototype._onResizePanel = function(resizeScheduleData) {\n /**\n * Fire this event when resize view panels(milestone, task, allday).\n * @event Calendar#resizePanel\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n * @example\n * calendar.on('resizePanel', function(layoutData) {\n * console.log(layoutData);\n * // do something to resize your UI if necessary.\n * });\n */\n this.fire('resizePanel', resizeScheduleData);\n};\n\n/**\n * 캘린더 팩토리 클래스와 주뷰, 월뷰의 이벤트 연결을 토글한다\n * @param {boolean} isAttach - true면 이벤트 연결함.\n * @param {Week|Month} view - 주뷰 또는 월뷰\n * @private\n */\nCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n var self = this,\n handler = view.handler,\n isMonthView = view.viewName === 'month',\n method = isAttach ? 'on' : 'off';\n\n util.forEach(handler.click, function(clickHandler) {\n clickHandler[method]('clickSchedule', self._onClick, self);\n });\n\n util.forEach(handler.dayname, function(clickHandler) {\n clickHandler[method]('clickDayname', self._onClickDayname, self);\n });\n\n util.forEach(handler.creation, function(creationHandler) {\n creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n });\n\n util.forEach(handler.move, function(moveHandler) {\n moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n util.forEach(handler.resize, function(resizeHandler) {\n resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n if (!isMonthView) {\n view.vLayout[method]('resize', self._onResizePanel, self);\n }\n};\n\n/**\n * Toggle current view\n * @param {string} newViewName - new view name to render\n * @param {boolean} force - force render despite of current view and new view are equal\n * @example\n * // daily view\n * calendar.toggleView('day', true);\n *\n * // weekly view\n * calendar.toggleView('week', true);\n *\n * // monthly view(default 6 weeks view)\n * calendar.options.month.visibleWeeksCount = 6; // or null\n * calendar.toggleView('month', true);\n *\n * // 2 weeks monthly view\n * calendar.options.month.visibleWeeksCount = 2;\n * calendar.toggleView('month', true);\n *\n * // 3 weeks monthly view\n * calendar.options.month.visibleWeeksCount = 3;\n * calendar.toggleView('month', true);\n *\n * // narrow weekend\n * calendar.options.month.narrowWeekend = true;\n * calendar.options.week.narrowWeekend = true;\n * calendar.toggleView(calendar.viewName, true);\n *\n * // change start day of week(from monday)\n * calendar.options.month.startDayOfWeek = 1;\n * calendar.options.week.startDayOfWeek = 1;\n * calendar.toggleView(calendar.viewName, true);\n */\nCalendar.prototype.toggleView = function(newViewName, force) {\n var self = this,\n layout = this.layout,\n controller = this.controller,\n dragHandler = this.dragHandler,\n options = this.options,\n viewName = this.viewName,\n created;\n\n if (!force && viewName === newViewName) {\n return;\n }\n\n this._setViewName(newViewName);\n\n // convert day to week\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n if (newViewName === 'day') {\n newViewName = 'week';\n }\n layout.children.doWhenHas(viewName, function(view) {\n self._toggleViewSchedule(false, view);\n });\n\n layout.clear();\n\n if (newViewName === 'month') {\n created = this.createMonthView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n } else if (newViewName === 'week' || newViewName === 'day') {\n created = this.createWeekView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n }\n\n layout.addChild(created.view);\n\n layout.children.doWhenHas(newViewName, function(view) {\n self._toggleViewSchedule(true, view);\n });\n\n this.refreshMethod = created.refresh;\n this.scrollToNowMethod = created.scrollToNow;\n\n this.move();\n this.render();\n};\n\n/**\n * Toggle task view('Milestone', 'Task') panel\n * @param {boolean} enabled - use task view\n * @example\n * // There is no milestone, task, so hide those view panel\n * calendar.toggleTaskView(false);\n *\n * // There are some milestone, task, so show those view panel.\n * calendar.toggleTaskView(true);\n */\nCalendar.prototype.toggleTaskView = function(enabled) {\n var viewName = this.viewName,\n options = this.options;\n\n options.taskView = enabled;\n\n this.toggleView(viewName, true);\n};\n\n/**\n * Toggle schedule view('AllDay', TimeGrid') panel\n * @param {boolean} enabled - use task view\n * @example\n * // hide those view panel to show only 'Milestone', 'Task'\n * calendar.toggleScheduleView(false);\n *\n * // show those view panel.\n * calendar.toggleScheduleView(true);\n */\nCalendar.prototype.toggleScheduleView = function(enabled) {\n var viewName = this.viewName,\n options = this.options;\n\n options.scheduleView = enabled;\n\n this.toggleView(viewName, true);\n};\n\n/**\n * Set current view name\n * @param {string} viewName - new view name to render\n * @private\n */\nCalendar.prototype._setViewName = function(viewName) {\n this.prevViewName = this.viewName;\n this.viewName = viewName;\n};\n\n/**\n * Get schedule by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {HTMLElement} schedule element if found or null\n * @example\n * var element = calendar.getElement(scheduleId, calendarId);\n * console.log(element);\n */\nCalendar.prototype.getElement = function(scheduleId, calendarId) {\n var schedule = this.getSchedule(scheduleId, calendarId);\n if (schedule) {\n return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n }\n\n return null;\n};\n\n/**\n * Set timezone offset\n * @param {number} offset - offset (min)\n * @static\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n */\nCalendar.setTimezoneOffset = function(offset) {\n timezone.setOffset(offset);\n};\n\n/**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n * @static\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n * });\n */\nCalendar.setTimezoneOffsetCallback = function(callback) {\n timezone.setOffsetCallback(callback);\n};\n\nutil.CustomEvents.mixin(Calendar);\n\nmodule.exports = Calendar;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/calendar.js\n// module id = 69\n// module chunks = 0","/**\n * @fileoverview Controller factory module.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Base = require('../controller/base'),\n Core = require('../controller/viewMixin/core'),\n Week = require('../controller/viewMixin/week'),\n Month = require('../controller/viewMixin/month'),\n datetime = require('../common/datetime');\n\n/**\n * Mixin object. create object property to target and mix to that\n * @param {object} from - source object\n * @param {object} to - target object\n * @param {string} propertyName - property name\n */\nfunction mixin(from, to, propertyName) {\n var obj = to[propertyName] = {};\n\n util.forEach(from, function(method, methodName) {\n obj[methodName] = util.bind(method, to);\n });\n}\n\n/**\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @returns {Base} The controller instance.\n */\nmodule.exports = function(options) {\n var controller = new Base(options),\n originQuery;\n\n mixin(Core, controller, 'Core');\n mixin(Week, controller, 'Week');\n mixin(Month, controller, 'Month');\n\n /**********\n * Override Week#findByDateRange for support schedules that category is 'miles\n * tone', 'task'.\n **********/\n\n originQuery = controller.Week.findByDateRange;\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @override\n * @param {Date} start - start date to find schedules\n * @param {Date} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @returns {object} view model data\n */\n function findByDateRange(start, end, andFilters) {\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ymdRange = util.map(dateRange, function(d) {\n return datetime.format(d, 'YYYY-MM-DD');\n }),\n viewModels;\n\n andFilters = andFilters || [];\n viewModels = originQuery(start, end, andFilters);\n\n util.forEach(viewModels, function(coll, key, obj) {\n var groupedByYMD;\n\n // Change view model\n if (key === 'milestone') {\n groupedByYMD = coll.groupBy(ymdRange, function(viewModel) {\n return datetime.format(viewModel.model.end, 'YYYY-MM-DD');\n });\n\n obj[key] = groupedByYMD;\n }\n });\n\n return viewModels;\n }\n\n controller.Week.findByDateRange = findByDateRange;\n\n return controller;\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/controller.js\n// module id = 70\n// module chunks = 0","/**\n * @fileoverview Month view factory module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n array = require('../common/array'),\n datetime = require('../common/datetime'),\n domutil = require('../common/domutil'),\n Month = require('../view/month/month'),\n MonthClick = require('../handler/month/click'),\n MonthCreation = require('../handler/month/creation'),\n MonthResize = require('../handler/month/resize'),\n MonthMove = require('../handler/month/move'),\n More = require('../view/month/more');\n\n/**\n * Get the view model for more layer\n * @param {TZDate} date - date has more schedules\n * @param {HTMLElement} target - target element\n * @param {Collection} schedules - schedule collection\n * @returns {object} view model\n */\nfunction getViewModelForMoreLayer(date, target, schedules) {\n schedules.each(function(schedule) {\n var model = schedule.model;\n schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n });\n\n return {\n target: target,\n date: datetime.format(date, 'YYYY.MM.DD'),\n schedules: schedules.sort(array.compare.schedule.asc)\n };\n}\n\n/**\n * @param {Base} baseController - controller instance\n * @param {HTMLElement} layoutContainer - container element for month view\n * @param {Drag} dragHandler - drag handler instance\n * @param {object} options - options\n * @returns {object} view instance and refresh method\n */\nfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n var monthViewContainer, monthView, moreView;\n var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n\n monthViewContainer = domutil.appendHTMLElement(\n 'div', layoutContainer, config.classname('month'));\n\n monthView = new Month(options.month, monthViewContainer, baseController.Month);\n moreView = new More(options.month, layoutContainer);\n\n // handlers\n clickHandler = new MonthClick(dragHandler, monthView, baseController);\n creationHandler = new MonthCreation(dragHandler, monthView, baseController);\n resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n moveHandler = new MonthMove(dragHandler, monthView, baseController);\n\n clearSchedulesHandler = function() {\n if (moreView) {\n moreView.hide();\n }\n };\n\n onUpdateSchedule = function() {\n if (moreView) {\n moreView.refresh();\n }\n };\n\n // binding +n click schedule\n clickHandler.on('clickMore', function(clickMoreSchedule) {\n var date = clickMoreSchedule.date,\n target = clickMoreSchedule.target,\n schedules = util.pick(baseController.findByDateRange(\n datetime.start(date),\n datetime.end(date)\n ), clickMoreSchedule.ymd);\n\n schedules.items = util.filter(schedules.items, function(item) {\n return options.month.scheduleFilter(item.model);\n });\n\n if (schedules && schedules.length) {\n moreView.render(getViewModelForMoreLayer(date, target, schedules));\n }\n });\n\n // binding clear schedules\n baseController.on('clearSchedules', clearSchedulesHandler);\n\n // bind update schedule event\n baseController.on('updateSchedule', onUpdateSchedule);\n\n moveHandler.on('monthMoveStart_from_morelayer', function() {\n moreView.hide();\n });\n\n monthView.handler = {\n click: {\n 'default': clickHandler\n },\n creation: {\n 'default': creationHandler\n },\n resize: {\n 'default': resizeHandler\n },\n move: {\n 'default': moveHandler\n }\n };\n\n monthView._beforeDestroy = function() {\n moreView.destroy();\n baseController.off('clearSchedules', clearSchedulesHandler);\n baseController.off('updateSchedule', onUpdateSchedule);\n\n util.forEach(monthView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n };\n\n // add controller\n monthView.controller = baseController.Month;\n\n return {\n view: monthView,\n refresh: function() {\n monthView.vLayout.refresh();\n }\n };\n}\n\nmodule.exports = createMonthView;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/monthView.js\n// module id = 71\n// module chunks = 0","/**\n * @fileoverview Factory module for WeekView\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar VLayout = require('../common/vlayout');\nvar reqAnimFrame = require('../common/reqAnimFrame');\n// Parent views\nvar Week = require('../view/week/week');\n\n// Sub views\nvar DayName = require('../view/week/dayname');\nvar TimeGrid = require('../view/week/timeGrid');\nvar Allday = require('../view/week/allday');\nvar Milestone = require('../view/week/milestone');\nvar TaskView = require('../view/week/taskview');\n\n// Handlers\nvar AlldayClick = require('../handler/allday/click');\nvar AlldayCreation = require('../handler/allday/creation');\nvar AlldayMove = require('../handler/allday/move');\nvar AlldayResize = require('../handler/allday/resize');\nvar DayNameClick = require('../handler/time/clickDayname');\nvar TimeClick = require('../handler/time/click');\nvar TimeCreation = require('../handler/time/creation');\nvar TimeMove = require('../handler/time/move');\nvar TimeResize = require('../handler/time/resize');\nvar MilestoneClick = require('../handler/milestone/click');\n\nvar DEFAULT_VIEW_SEQUENCE = ['Milestone', 'Task', 'AllDay', 'TimeGrid'];\nvar DEFAULT_VIEWS = {\n 'Milestone': {\n minHeight: 20,\n height: 80,\n maxHeight: 80,\n show: true\n },\n 'Task': {\n minHeight: 40,\n height: 120,\n maxHeight: 120,\n show: true\n },\n 'AllDay': {\n minHeight: 20,\n height: 80,\n maxHeight: 80,\n show: true,\n maxExpandCount: 10\n },\n 'TimeGrid': {\n autoHeight: true,\n show: true\n }\n};\n\n/* eslint-disable complexity*/\nmodule.exports = function(baseController, layoutContainer, dragHandler, options) {\n var viewSequence = options.week.viewSequence || DEFAULT_VIEW_SEQUENCE,\n views = options.week.views || DEFAULT_VIEWS,\n panels = [],\n isAllDayPanelFirstRender = true;\n var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout,\n milestoneView, taskView, alldayView, timeGridView, alldayPanel;\n\n weekView = new Week(null, options.week, layoutContainer);\n weekView.handler = {\n click: {},\n dayname: {},\n creation: {},\n move: {},\n resize: {}\n };\n\n // Change visibilities\n util.forEach(views, function(value, key) {\n if (key === 'Milestone' || key === 'Task') {\n value.show = options.taskView;\n } else if (key === 'AllDay' || key === 'TimeGrid') {\n value.show = options.scheduleView;\n }\n });\n\n // Make panels by view sequence and visibilities\n util.forEach(viewSequence, function(name) {\n var view = views[name];\n if (view.show) {\n if (panels.length) {\n panels.push({\n isSplitter: true\n });\n }\n panels.push(util.extend({\n name: name\n }, view));\n }\n });\n\n if (panels.length) {\n panels[panels.length - 1].autoHeight = true;\n panels[panels.length - 1].maxHeight = null;\n }\n\n dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\n /**********\n * 일자표기 (상단 일월화수...)\n **********/\n dayNameView = new DayName(options.week, dayNameContainer);\n weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n weekView.addChild(dayNameView);\n\n /**********\n * 수직 레이아웃 모듈 초기화\n **********/\n vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\n vLayout = new VLayout({\n panels: panels,\n panelHeights: options.week.panelHeights || []\n }, vLayoutContainer);\n\n weekView.vLayout = vLayout;\n\n if (util.pick(views, 'Milestone').show) {\n /**********\n * 마일스톤\n **********/\n milestoneView = new Milestone(options.week, vLayout.getPanelByName('Milestone').container);\n milestoneView.on('afterRender', function(viewModel) {\n vLayout.getPanelByName('Milestone').setHeight(null, viewModel.height);\n });\n weekView.addChild(milestoneView);\n weekView.handler.click.milestone = new MilestoneClick(dragHandler, milestoneView, baseController);\n }\n\n if (util.pick(views, 'Task').show) {\n /**********\n * 업무\n **********/\n taskView = new TaskView(options.week, vLayout.getPanelByName('Task').container);\n taskView.on('afterRender', function() {\n vLayout.getPanelByName('Task').setHeight(null, taskView.contentHeight);\n });\n weekView.addChild(taskView);\n weekView.handler.click.task = new AlldayClick(dragHandler, taskView, baseController);\n weekView.handler.move.task = new AlldayMove(dragHandler, taskView, baseController);\n }\n\n if (util.pick(views, 'AllDay').show) {\n /**********\n * 종일일정\n **********/\n alldayPanel = vLayout.getPanelByName('AllDay');\n alldayView = new Allday(options.week, alldayPanel.container, alldayPanel.options);\n alldayView.on('afterRender', function() {\n if (alldayView.viewType === 'toggle' && !alldayView.collapsed) {\n alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n }\n if (isAllDayPanelFirstRender) {\n alldayPanel.setHeight(null, alldayView.options.height);\n isAllDayPanelFirstRender = false;\n } else {\n alldayPanel.setHeight(null, alldayView.contentHeight);\n }\n });\n\n weekView.addChild(alldayView);\n weekView.handler.click.allday = new AlldayClick(dragHandler, alldayView, baseController);\n weekView.handler.creation.allday = new AlldayCreation(dragHandler, alldayView, baseController);\n weekView.handler.move.allday = new AlldayMove(dragHandler, alldayView, baseController);\n weekView.handler.resize.allday = new AlldayResize(dragHandler, alldayView, baseController);\n\n weekView.handler.click.allday.on('clickExpand', function() {\n alldayView.prevMaxHeight = alldayView.aboutMe.maxHeight;\n alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n alldayPanel.isHeightForcedSet = false;\n alldayView.collapsed = false;\n alldayView.aboutMe.forcedLayout = false;\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n weekView.handler.click.allday.on('clickCollapse', function() {\n var newHeight = alldayView.prevMaxHeight;\n delete alldayView.prevMaxHeight;\n alldayPanel.options.maxHeight = newHeight;\n alldayPanel.setHeight(null, newHeight);\n alldayView.collapsed = true;\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n alldayPanel.on('resize', function() {\n alldayView.aboutMe.forcedLayout = true;\n weekView.render();\n });\n }\n\n if (util.pick(views, 'TimeGrid').show) {\n /**********\n * 시간별 일정\n **********/\n timeGridView = new TimeGrid(options.week, vLayout.getPanelByName('TimeGrid').container);\n weekView.addChild(timeGridView);\n weekView.handler.click.time = new TimeClick(dragHandler, timeGridView, baseController);\n weekView.handler.creation.time = new TimeCreation(dragHandler, timeGridView, baseController);\n weekView.handler.move.time = new TimeMove(dragHandler, timeGridView, baseController);\n weekView.handler.resize.time = new TimeResize(dragHandler, timeGridView, baseController);\n }\n\n weekView.on('afterRender', function() {\n vLayout.refresh();\n });\n\n // add controller\n weekView.controller = baseController.Week;\n\n // add destroy\n weekView._beforeDestroy = function() {\n util.forEach(weekView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n weekView.off();\n };\n\n return {\n view: weekView,\n refresh: function() {\n var weekViewHeight = weekView.getViewBound().height,\n daynameViewHeight = domutil.getBCRect(\n dayNameView.container\n ).height;\n\n vLayout.container.style.height =\n weekViewHeight - daynameViewHeight + 'px';\n vLayout.refresh();\n },\n scrollToNow: function() {\n if (timeGridView) {\n timeGridView.scrollToNow();\n }\n }\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/weekView.js\n// module id = 72\n// module chunks = 0","/**\n * @fileoverview Click handle module for allday schedules\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar AlldayMove = require('./move');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayClick(dragHandler, alldayView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy handler module\n */\nAlldayClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.alldayView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nAlldayClick.prototype.checkExpectCondition = AlldayMove.prototype.checkExpectedCondition;\n\n/**\n * Click event handler\n * @param {object} clickEvent - click event data\n * @emits AlldayClick#clickSchedule\n */\nAlldayClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n scheduleCollection = this.baseController.schedules,\n collapseElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-collapse-btn')\n );\n var blockElement, moreElement, scheduleElement;\n\n if (collapseElement) {\n self.fire('clickCollapse');\n\n return;\n }\n\n if (!timeView) {\n return;\n }\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-week')\n );\n\n if (moreElement) {\n self.fire('clickExpand');\n\n return;\n }\n\n scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n if (scheduleElement) {\n blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(AlldayClick);\n\nmodule.exports = AlldayClick;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/click.js\n// module id = 73\n// module chunks = 0","/**\n * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar alldayCore = require('./core');\nvar AlldayCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CutomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayCreation(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {AlldayCreationGuide}\n */\n this.guide = new AlldayCreationGuide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(alldayView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destroy method\n */\nAlldayCreation.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (this.alldayView && this.alldayView.container) {\n domevent.off(this.alldayView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.alldayView = this.baseController = this.getScheduleDataFunc = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target).trim();\n var isAllDay = domutil.closest(target, config.classname('.allday-container'));\n var excludeTarget = true;\n var matches, schedulesElement;\n\n if (!isAllDay) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n ) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n return false;\n }\n\n schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n return false;\n }\n\n target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {AlldayCreation#beforeCreateSchedule}\n * @param {object} scheduleData - schedule data from AlldayCreation module.\n */\nAlldayCreation.prototype._createSchedule = function(scheduleData) {\n var dateRange = scheduleData.range,\n startXIndex = scheduleData.dragStartXIndex,\n xIndex = scheduleData.xIndex,\n start, end;\n\n // when inverse start, end then change it.\n if (xIndex < startXIndex) {\n startXIndex = xIndex + startXIndex;\n xIndex = startXIndex - xIndex;\n startXIndex = startXIndex - xIndex;\n }\n\n start = new TZDate(dateRange[startXIndex].getTime());\n end = datetime.end(dateRange[xIndex]);\n\n /**\n * @event {AlldayCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: true,\n start: start,\n end: end,\n guide: this.guide,\n triggerEventName: scheduleData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler method.\n * @emits AlldayCreation#alldayCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n */\nAlldayCreation.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n\n scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\n /**\n * @event AlldayCreation#alldayCreationDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayCreationDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayCreation#alldayCreationDrag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nAlldayCreation.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\n /**\n * @event AlldayCreation#alldayCreationDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayCreationDrag', scheduleData);\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayCreation#alldayCreationDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n */\nAlldayCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n var scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\n this._createSchedule(scheduleData);\n\n /**\n * @event AlldayCreation#alldayCreationDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayCreationDragend', scheduleData);\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayCreation#alldayCreationClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData.originEvent);\n scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('alldayCreationClick', scheduleData);\n self._createSchedule(scheduleData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Dblclick event handler method.\n * @emits AlldayCreation#alldayCreationClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayCreation.prototype._onDblClick = function(clickEventData) {\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData);\n scheduleData = getScheduleDataFunc(clickEventData);\n\n this.fire('alldayCreationClick', scheduleData);\n\n this._createSchedule(scheduleData);\n\n this._requestOnClick = false;\n};\n\ncommon.mixin(alldayCore, AlldayCreation);\nutil.CustomEvents.mixin(AlldayCreation);\n\nmodule.exports = AlldayCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/creation.js\n// module id = 74\n// module chunks = 0","/**\n * @fileoverview Guide element for Allday.Creation\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for Allday.Creation dragging effect.\n * @constructor\n * @param {AlldayCreation} alldayCreation - instance of AlldayCreation.\n */\nfunction AlldayCreationGuide(alldayCreation) {\n /**\n * @type {AlldayCreation}\n */\n this.alldayCreation = alldayCreation;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = document.createElement('div');\n\n this.initializeGuideElement();\n\n alldayCreation.on({\n alldayCreationDragstart: this._createGuideElement,\n alldayCreationDrag: this._onDrag,\n alldayCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.alldayCreation.off(this);\n this.alldayCreation = this.scheduleContainer = this.guideElement = null;\n};\n\n/**\n * initialize guide element's default style.\n */\nAlldayCreationGuide.prototype.initializeGuideElement = function() {\n domutil.addClass(this.guideElement, config.classname('allday-guide-creation-block'));\n};\n\n/**\n * Drag event handler\n * @param {object} scheduleData - schedule data from Allday.Creation handler.\n */\nAlldayCreationGuide.prototype._onDrag = function(scheduleData) {\n this._refreshGuideElement(scheduleData, true);\n};\n\n/**\n * Get element width based on narrowWeekend\n * @param {number} dragStartIndex - grid start index\n * @param {number} dragEndIndex - grid end index\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nAlldayCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n var width = 0;\n var i = dragStartIndex;\n for (; i <= dragEndIndex; i += 1) {\n width += grids[i] ? grids[i].width : 0;\n }\n\n return width;\n};\n\n/**\n * Refresh guide element.\n * @param {object} scheduleData - schedule data from Allday.Creation handler.\n * @param {boolean} defer - If set to true, set style in the next frame\n */\nAlldayCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n var guideElement = this.guideElement,\n data = scheduleData,\n dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n leftPercent,\n widthPercent;\n\n leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\n /** eslint-disable require-jsdoc */\n function setStyle() {\n guideElement.style.display = 'block';\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n }\n\n if (defer) {\n reqAnimFrame.requestAnimFrame(setStyle);\n } else {\n setStyle();\n }\n};\n\n/**\n * Clear guide element.\n */\nAlldayCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement;\n\n domutil.remove(guideElement);\n\n guideElement.style.display = 'none';\n guideElement.style.left = '';\n guideElement.style.width = '';\n};\n\n/**\n * Create guide element\n * @param {object} dragStartEventData - schedule data object of Allday.Creation.\n */\nAlldayCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var alldayCreation = this.alldayCreation,\n alldayView = alldayCreation.alldayView,\n alldayContainerElement = alldayView.container,\n scheduleContainer = domutil.find(config.classname('.weekday-grid'), alldayContainerElement);\n\n scheduleContainer.appendChild(this.guideElement);\n this._refreshGuideElement(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - event data object of Allday.Creation.\n */\nAlldayCreationGuide.prototype._onDrag = function(dragEventData) {\n this._refreshGuideElement(dragEventData);\n};\n\nmodule.exports = AlldayCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/creationGuide.js\n// module id = 75\n// module chunks = 0","/**\n * @fileoverview Effect module for Allday.Move\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * Class for Allday.Move dragging effect.\n * @constructor\n * @param {AlldayMove} alldayMove - instance of AlldayMove.\n */\nfunction AlldayMoveGuide(alldayMove) {\n /**\n * @type {AlldayMove}\n */\n this.alldayMove = alldayMove;\n\n /**\n * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {number}\n */\n this._dragStartXIndex = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n alldayMove.on({\n 'alldayMoveDragstart': this._onDragStart,\n 'alldayMoveDrag': this._onDrag,\n 'alldayMoveDragend': this._clearGuideElement,\n 'alldayMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.alldayMove.off(this);\n this.alldayMove = this.scheduleContainer = this._dragStartXIndex =\n this.elements = this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nAlldayMoveGuide.prototype._clearGuideElement = function() {\n this._showOriginScheduleBlocks();\n\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nAlldayMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n var scheduleBlocks = domutil.find(\n config.classname('.weekday-schedule-block'),\n this.alldayMove.alldayView.container,\n true\n );\n\n this.elements = util.filter(scheduleBlocks, function(schedule) {\n return domutil.getData(schedule, 'id') === modelID;\n });\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nAlldayMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * @param {Schedule} model - model\n * @param {HTMLElement} parent - parent element\n * Highlight element blocks\n */\nAlldayMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\n util.forEach(elements, function(el) {\n el.style.margin = '0';\n\n if (!model.isFocused) {\n el.style.backgroundColor = el.style.color;\n el.style.borderLeftColor = el.style.color;\n el.style.color = '#ffffff';\n }\n });\n};\n\n/**\n * Refresh guide element.\n * @param {number} leftPercent - left percent of guide element.\n * @param {number} widthPercent - width percent of guide element.\n * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n * @param {boolean} isExceededRight - schedule end is later then render end date?\n */\nAlldayMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n\n if (isExceededLeft) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n }\n\n if (isExceededRight) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n }\n });\n};\n\n/**\n * Get schedule block information from schedule data.\n *\n * For example, there is single schedule has 10 length. but render range in view is 5 then\n * rendered block must be cut out to render properly. in this case, this method return\n * how many block are cut before rendering.\n *\n * 이벤트 데이터에서 이벤트 블록 엘리먼트 렌더링에 대한 필요 정보를 추출한다.\n *\n * ex) 렌더링 된 블록의 길이는 5지만 실제 이 이벤트는 10의 길이를 가지고 있을 때\n * 좌 우로 몇 만큼 잘려있는지에 관한 정보를 반환함.\n * @param {object} dragStartEventData - schedule data from Allday.Move handler.\n * @returns {function} function that return schedule block information.\n */\nAlldayMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n datesInRange = dragStartEventData.datesInRange,\n range = dragStartEventData.range,\n baseWidthPercent = (100 / datesInRange),\n originScheduleStarts = datetime.start(model.start),\n originScheduleEnds = datetime.end(model.end),\n renderStartDate = datetime.start(range[0]),\n renderEndDate = datetime.end(range[range.length - 1]),\n fromLeft = (new TZDate(originScheduleStarts.getTime() -\n renderStartDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0,\n fromRight = (new TZDate(originScheduleEnds.getTime() -\n renderEndDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0;\n\n return function(indexOffset) {\n return {\n baseWidthPercent: baseWidthPercent,\n fromLeft: fromLeft + indexOffset,\n fromRight: fromRight + indexOffset\n };\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var alldayViewContainer = this.alldayMove.alldayView.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n domutil.addClass(guideElement, config.classname('allday-guide-move'));\n scheduleContainer.appendChild(guideElement);\n\n this._dragStartXIndex = dragStartEventData.xIndex;\n this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\n this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nAlldayMoveGuide.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStartXIndex = this._dragStartXIndex,\n datesInRange = dragEventData.datesInRange,\n grids = dragEventData.grids,\n scheduleData,\n isExceededLeft,\n isExceededRight,\n originLength,\n leftIndex,\n size,\n newLeft,\n newWidth;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n isExceededLeft = scheduleData.fromLeft < 0;\n isExceededRight = scheduleData.fromRight > 0;\n\n leftIndex = Math.max(0, scheduleData.fromLeft);\n originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\n newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\n this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n};\n\n/**\n * Get schedule width based on grids\n * @param {number} left - left index\n * @param {number} size - schedule width\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getScheduleBlockWidth(left, size, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n for (; i < size; i += 1) {\n left = (left + i) % length;\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nmodule.exports = AlldayMoveGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/moveGuide.js\n// module id = 76\n// module chunks = 0","/**\n * @fileoverview Resize handler module for Allday view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar AlldayCore = require('./core');\nvar AlldayResizeGuide = require('./resizeGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayResize(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * Temporary variable for dragStart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {AlldayResizeGuide}\n */\n this.guide = new AlldayResizeGuide(this);\n}\n\n/**\n * Destroy method\n */\nAlldayResize.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.alldayView = this.baseController =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayResize.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n target = domutil.closest(target, config.classname('.weekday'));\n\n if (!target) {\n return false;\n }\n\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler.\n * @emits AlldayResize#alldayResizeDragstart\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.baseController,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event AlldayResize#alldayResizeDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('alldayResizeDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayResize#alldayResizeDrag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nAlldayResize.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @event AlldayResize#alldayResizeDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayResizeDrag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule instance to base controller.\n * @fires AlldayResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from AlldayResize handler.\n */\nAlldayResize.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newEnds = new TZDate(schedule.end.getTime());\n\n newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n newEnds = new TZDate(Math.max(datetime.end(schedule.start).getTime(), newEnds.getTime()));\n\n /**\n * @event AlldayResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {date} start - start time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayResize#alldayResizeDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nAlldayResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event AlldayResize#alldayResizeDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayResizeDragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayResize#alldayResizeClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayResize.prototype._onClick = function(clickEventData) {\n /**\n * @event AlldayResize#alldayResizeClick\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'alldayResizeClick', true);\n};\n\ncommon.mixin(AlldayCore, AlldayResize);\nutil.CustomEvents.mixin(AlldayResize);\n\nmodule.exports = AlldayResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/resize.js\n// module id = 77\n// module chunks = 0","/**\n * @fileoverview Resize Guide module.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @param {AlldayResize} alldayResize - instance of AlldayResize\n */\nfunction AlldayResizeGuide(alldayResize) {\n /**\n * @type {AlldayResize}\n */\n this.alldayResize = alldayResize;\n\n /**\n * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n alldayResize.on({\n 'alldayResizeDragstart': this._onDragStart,\n 'alldayResizeDrag': this._onDrag,\n 'alldayResizeDragend': this._clearGuideElement,\n 'alldayResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.alldayResize.off(this);\n this.alldayResize = this.scheduleContainer = this.getScheduleDataFunc =\n this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nAlldayResizeGuide.prototype._clearGuideElement = function() {\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} newWidth - new width percentage value to resize guide element.\n */\nAlldayResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.width = newWidth + '%';\n });\n};\n\n/**\n * Return function that calculate guide element's new width percentage value.\n * @param {object} dragStartEventData - dragstart schedule data.\n * @returns {function} return function that calculate guide element new width percentage.\n */\nAlldayResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n viewOptions = this.alldayResize.alldayView.options,\n fromLeft = (new TZDate(\n model.start.getTime() - datetime.parse(viewOptions.renderStartDate)\n )) / datetime.MILLISECONDS_PER_DAY | 0,\n grids = dragStartEventData.grids;\n\n return function(xIndex) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\n for (; i < length; i += 1) {\n if (i > fromLeft && i <= xIndex) {\n width += grids[i] ? grids[i].width : 0;\n }\n }\n\n return width;\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var alldayViewContainer = this.alldayResize.alldayView.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n domutil.addClass(guideElement, config.classname('allday-guide-move'));\n scheduleContainer.appendChild(guideElement);\n\n this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nAlldayResizeGuide.prototype._onDrag = function(dragEventData) {\n var func = this.getScheduleDataFunc;\n\n if (!func) {\n return;\n }\n\n this.refreshGuideElement(func(dragEventData.xIndex));\n};\n\nmodule.exports = AlldayResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/resizeGuide.js\n// module id = 78\n// module chunks = 0","/**\n * @fileoverview 마일스톤 항목 클릭 이벤트 핸들러 모듈\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * 마일스톤 클릭 이벤트 핸들러 모듈\n * @constructor\n * @implelements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} dragHandler - dragHandler instance\n * @param {Milestone} milestoneView - milstone view instance\n * @param {Base} baseController - baseController instance\n */\nfunction MilestoneClick(dragHandler, milestoneView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Milestone}\n */\n this.milestoneView = milestoneView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy\n */\nMilestoneClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dragHandler = this.milestoneView = this.baseController = null;\n};\n\n/**\n * @param {HTMLElement} target - check reponsibility to this handler module supplied element\n * @returns {boolean|string} return false when handler has no responsibility for supplied element.\n * otherwise, return schedule model id that related with target element.\n */\nMilestoneClick.prototype.checkExpectedCondition = function(target) {\n target = domutil.closest(target, config.classname('.milestone-item'));\n\n if (!target) {\n return false;\n }\n\n return domutil.getData(target, 'id');\n};\n\n/**\n * @emits MilestoneClick#clickSchedule\n * @param {object} clickEvent - click event object\n */\nMilestoneClick.prototype._onClick = function(clickEvent) {\n var self = this,\n modelID = this.checkExpectedCondition(clickEvent.target);\n\n if (!modelID) {\n return;\n }\n\n this.baseController.schedules.doWhenHas(modelID, function(schedule) {\n /**\n * @events MilestoneClick#clickEvent\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(MilestoneClick);\n\nmodule.exports = MilestoneClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/milestone/click.js\n// module id = 79\n// module chunks = 0","/**\n * @fileoverview Click handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Month} [monthView] - Month view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction MonthClick(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.monthView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * @fires MonthClick#clickMore\n * @param {object} clickEvent - click event object\n */\nMonthClick.prototype._onClick = function(clickEvent) {\n var self = this,\n moreElement,\n scheduleCollection = this.baseController.schedules,\n blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-month')\n );\n\n if (moreElement) {\n self.fire('clickMore', {\n date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n target: moreElement,\n ymd: domutil.getData(moreElement, 'ymd')\n });\n }\n\n if (blockElement) {\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(MonthClick);\n\nmodule.exports = MonthClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/click.js\n// module id = 80\n// module chunks = 0","/**\n * @fileoverview Creation handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar array = require('../../common/array');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar getMousePosDate = require('./core');\nvar Guide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthCreation(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * Cache for dragging session\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthCreationGuide}\n */\n this.guide = new Guide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destructor\n */\nMonthCreation.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.guide.destroy();\n\n if (this.monthView && this.monthView.container) {\n domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.monthView = this.baseController =\n this.getScheduleData = this._cache = this.guide = null;\n};\n\n/**\n * Fire before create schedule\n * @fires {MonthCreation#beforeCreateSchedule}\n * @param {object} eventData - cache data from single dragging session\n */\nMonthCreation.prototype._createSchedule = function(eventData) {\n /**\n * @event {MonthCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: eventData.isAllDay,\n start: eventData.start,\n end: eventData.end,\n guide: this.guide.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {object} dragStartEvent - dragStart event data\n */\nMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n var eventData;\n\n if (!isElementWeekdayGrid(dragStartEvent.target)) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosDate(this.monthView);\n\n eventData = this.getScheduleData(dragStartEvent.originEvent);\n\n this._cache = {\n start: new TZDate(Number(eventData.date))\n };\n\n /**\n * @event {MonthCreation#monthCreationDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragstart', eventData);\n};\n\n/**\n * Drag event handler\n * @fires {MonthCreation#monthCreationDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthCreation.prototype._onDrag = function(dragEvent) {\n var eventData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEvent.originEvent);\n\n if (!eventData) {\n return;\n }\n\n /**\n * @event {MonthCreation#monthCreationDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDrag', eventData);\n};\n\n/**\n * DragEnd event handler\n * @fires {MonthCreation#monthCreationDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var eventData;\n var times;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (eventData) {\n cache.end = new TZDate(Number(eventData.date));\n cache.isAllDay = true;\n\n times = [\n Number(cache.start),\n Number(cache.end)\n ].sort(array.compare.num.asc);\n\n cache.start = new TZDate(times[0]);\n cache.end = datetime.end(new TZDate(times[1]));\n\n this._createSchedule(cache);\n }\n\n /**\n * @event {MonthCreation#monthCreationDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragend', eventData);\n\n this.getScheduleData = this._cache = null;\n};\n\n/**\n * Dblclick event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onDblClick = function(e) {\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e);\n\n this.fire('monthCreationClick', eventData);\n\n range = this._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\n this._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n\n this._requestOnClick = false;\n};\n\n/**\n * Click event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onClick = function(e) {\n var self = this;\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('monthCreationClick', eventData);\n\n range = self._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\n self._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Adjust time to our o'clock\n * @param {TZDate} start - start time\n * @param {TZDate} end - end time\n * @returns {Object} start and end\n */\nMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n var now = new TZDate();\n var hours = now.getHours();\n var minutes = now.getMinutes();\n\n // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n if (minutes <= 30) {\n minutes = 0;\n } else {\n minutes = 30;\n }\n start.setHours(hours, minutes, 0, 0);\n end.setHours(hours + 1, minutes, 0, 0);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * Returns whether the given element is Weekday-Schedule.\n * @param {HTMLElement} el - target element\n * @returns {boolean}\n */\nfunction isElementWeekdayGrid(el) {\n return domutil.closest(el, config.classname('.weekday-grid'))\n && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n}\n\nutil.CustomEvents.mixin(MonthCreation);\n\nmodule.exports = MonthCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/creation.js\n// module id = 81\n// module chunks = 0","/**\n * @fileoverview Creation guide module for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthCreation} monthCreation - instance of MonthCreation\n */\nfunction MonthCreationGuide(monthCreation) {\n /**\n * @type {MonthCreation}\n */\n this.monthCreation = monthCreation;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthCreation.on({\n monthCreationDragstart: this._createGuideElement,\n monthCreationDrag: this._onDrag,\n monthCreationDragend: this._onDragEnd,\n monthCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthCreationGuide.prototype.destroy = function() {\n this.monthCreation.off(this);\n\n if (this.guide) {\n this.guide.destroy();\n }\n\n this.guide = this.monthCreation = null;\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n var options = {\n isCreationMode: true,\n height: '100%',\n top: 0\n };\n\n this.guide = new MonthGuide(options, this.monthCreation.monthView);\n this.guide.start(dragStartEvent);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthCreationGuide.prototype._onDragEnd = function() {\n // Do nothing. 사용자가 직접 destroy 호출\n this.guide = null;\n};\n\nmodule.exports = MonthCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/creationGuide.js\n// module id = 82\n// module chunks = 0","/**\n * @fileoverview Move handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n getMousePosData = require('./core'),\n MonthMoveGuide = require('./moveGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthMove(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthMoveGuide}\n */\n this.guide = new MonthMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthMove.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Update target schedule\n * @fires {MonthMove#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthMove.prototype.updateSchedule = function(scheduleCache) {\n var schedule = scheduleCache.model;\n var duration = schedule.duration().getTime();\n var startDateRaw = datetime.raw(schedule.start);\n var dragEndTime = Number(scheduleCache.end);\n var newStartDate = new TZDate(dragEndTime);\n\n newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\n /**\n * @event MonthMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStartDate,\n end: new TZDate(newStartDate.getTime() + duration)\n });\n};\n\n/**\n * Get schedule block to clone for month guide effect\n * @param {HTMLElement} target - target element that related with drag schedule\n * @returns {HTMLElement} element to create guide effect\n */\nMonthMove.prototype.getMonthScheduleBlock = function(target) {\n var blockSelector = config.classname('.weekday-schedule-block');\n\n return domutil.closest(target, blockSelector);\n};\n\n/**\n * Get schedule block from more layer\n * @param {HTMLElement} target - element to check\n * @returns {HTMLElement} schedule element\n */\nMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n var className = config.classname('.month-more-schedule');\n\n return domutil.closest(target, className);\n};\n\n/**\n * Check handler has permission to handle fired schedule\n * @fires {MonthMove#monthMoveStart_from_morelayer}\n * @param {HTMLElement} target - target element of fired schedule\n * @returns {(string|null)} model instance ID related with schedule. if handle\n * has not permission to handle the schedule then return null.\n */\nMonthMove.prototype.hasPermissionToHandle = function(target) {\n var modelID = null;\n var blockElement;\n\n if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return null;\n }\n\n blockElement = this.getMonthScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n } else {\n blockElement = this.getMoreLayerScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n /**\n * Fire for notificate that the drag schedule start at more layer view.\n * @event {MonthMove#monthMoveStart_from_morelayer}\n */\n this.fire('monthMoveStart_from_morelayer');\n }\n }\n\n return modelID;\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthMove#monthMoveDragstart}\n * @param {object} dragStartEvent - drag start schedule data\n */\nMonthMove.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID = this.hasPermissionToHandle(target),\n model,\n scheduleData;\n\n if (!modelID) {\n return;\n }\n\n model = this.baseController.schedules.items[modelID];\n\n if (model.isReadOnly) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.originEvent = dragStartEvent.originEvent;\n scheduleData.target = this.getMonthScheduleBlock(target);\n scheduleData.model = model;\n\n this._cache = {\n model: model,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthMove#monthMoveDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthMoveDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthMove#monthMoveDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthMove.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = util.extend({\n originEvent: dragEvent.originEvent\n }, this.getScheduleData(dragEvent.originEvent));\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthMove#monthMoveDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDrag', scheduleData);\n};\n\n/**\n * Event handler for Drag#dragEnd\n * @fires {MonthMove#monthMoveDragend}\n * @param {object} dragEndEvent - dragend event data\n */\nMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(Number(scheduleData.date));\n this.updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthMoveDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthMove);\n\nmodule.exports = MonthMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/move.js\n// module id = 83\n// module chunks = 0","/**\n * @fileoverview Module for modification of guide element for move in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent'),\n FloatingLayer = require('../../common/floatingLayer'),\n tmpl = require('./moveGuide.hbs'),\n Schedule = require('../../model/schedule');\n\n/**\n * @constructor\n * @param {MonthMove} monthMove - month/move module instance\n */\nfunction MonthMoveGuide(monthMove) {\n /**\n * @type {MonthMove}\n */\n this.monthMove = monthMove;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = null;\n\n monthMove.on({\n monthMoveDragstart: this._onDragStart,\n monthMoveDrag: this._onDrag,\n monthMoveDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthMoveGuide.prototype.destroy = function() {\n this.monthMove.off(this);\n this._clearGridBgColor();\n\n if (this.layer) {\n this.layer.destroy();\n }\n\n if (this.element) {\n domutil.remove(this.element);\n }\n\n this.monthMove = this.elements = this.layer = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthMove.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\nMonthMoveGuide.prototype._getHighlightColorModel = function(model) {\n return {\n bgColor: model.color\n };\n};\n\n/**\n * Clear background color for filled grid element.\n */\nMonthMoveGuide.prototype._clearGridBgColor = function() {\n var selector = config.classname('.weekday-filled'),\n className = config.classname('weekday-filled'),\n beforeGridElement = domutil.find(selector,\n this.monthMove.monthView.container);\n\n if (beforeGridElement) {\n domutil.removeClass(beforeGridElement, className);\n }\n};\n\n/**\n * Fill background color of date grids relatied with model updates.\n * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n */\nMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n className = config.classname('weekday-filled'),\n targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\n this._clearGridBgColor();\n\n if (!gridElements || !gridElements[targetIndex]) {\n return;\n }\n\n domutil.addClass(gridElements[targetIndex], className);\n};\n\n/**\n * Handler for MonthMove#dragStart\n * @param {object} dragStartEvent - dragStart schedule data object\n */\nMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n var monthView = this.monthMove.monthView,\n firstWeekdayView = monthView.children.single(),\n weekdayOptions = firstWeekdayView.options,\n widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n container = monthView.container,\n mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n model = dragStartEvent.model,\n layer = new FloatingLayer(null, container);\n\n this._hideOriginScheduleBlocks(model.cid());\n\n this.layer = layer;\n layer.setSize(widthPercent + '%', height);\n layer.setPosition(mousePos[0], mousePos[1]);\n layer.setContent(tmpl({\n model: util.extend(\n Schedule.create(model),\n model,\n this._getHighlightColorModel(model)\n )\n }));\n layer.show();\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n};\n\n/**\n * Handler for MonthMove#drag\n * @param {object} dragEvent - drag event data object\n */\nMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n var container = this.monthMove.monthView.container,\n mousePos = domevent.getMousePosition(\n dragEvent.originEvent,\n container\n );\n\n this._updateGridBgColor(dragEvent);\n\n if (!this.layer) {\n return;\n }\n\n this.layer.setPosition(mousePos[0], mousePos[1]);\n};\n\n/**\n * Handler for MonthMove#dragEnd\n */\nMonthMoveGuide.prototype._onDragEnd = function() {\n this._showOriginScheduleBlocks();\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._clearGridBgColor();\n this.layer.destroy();\n this.layer = null;\n};\n\nmodule.exports = MonthMoveGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/moveGuide.js\n// module id = 84\n// module chunks = 0","/**\n * @fileoverview Module for resize schedule in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n getMousePosData = require('./core'),\n MonthResizeGuide = require('./resizeGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthResize(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthResizeGuide}\n */\n this.guide = new MonthResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthResize.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Fire event for update model\n * @fires {MonthResize#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthResize.prototype._updateSchedule = function(scheduleCache) {\n // 일정의 시작 일자를 변경할 순 없음.\n // 종료시간만 변경 가능.\n var newEnd = datetime.end(new TZDate(Number(scheduleCache.end))),\n schedule = scheduleCache.schedule;\n\n /**\n * @event MonthResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: new TZDate(Number(schedule.getStarts())),\n end: newEnd\n });\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthResize#monthResizeDragstart}\n * @param {object} dragStartEvent - drag start event data\n */\nMonthResize.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID, schedule,\n scheduleData;\n\n if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return;\n }\n\n target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\n if (!target) {\n return;\n }\n\n modelID = domutil.getData(target, 'id');\n schedule = this.baseController.schedules.items[modelID];\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.target = target;\n scheduleData.model = schedule;\n\n this._cache = {\n schedule: schedule,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthCreation#monthResizeDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthResizeDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthResize.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEvent.originEvent);\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthResize#monthResizeDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDrag', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(Number(scheduleData.date));\n this._updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthResizeDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthResize);\n\nmodule.exports = MonthResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/resize.js\n// module id = 85\n// module chunks = 0","/**\n * @fileoverview Module for modification of guide element in schedule resize\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthResize} monthResize - month/resize module instance\n */\nfunction MonthResizeGuide(monthResize) {\n /**\n * @type {MonthResize}\n */\n this.monthResize = monthResize;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthResize.on({\n monthResizeDragstart: this._onDragStart,\n monthResizeDrag: this._onDrag,\n monthResizeDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthResizeGuide.prototype.destroy = function() {\n this.monthResize.off(this);\n this.guide.destroy();\n\n this.guide = this.monthResize = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthResize.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n el.style.display = 'none';\n });\n};\n\n/**\n * Show element blocks\n */\nMonthResizeGuide.prototype._showScheduleBlocks = function() {\n util.forEach(this.elements, function(el) {\n el.style.display = 'block';\n });\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthResize\n */\nMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n this.guide = new MonthGuide({\n isResizeMode: true\n }, this.monthResize.monthView);\n\n this._hideScheduleBlocks(dragStartEvent.model.cid());\n\n this.guide.start(dragStartEvent);\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - event data from MonthCreation\n */\nMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthResizeGuide.prototype._onDragEnd = function() {\n this._showScheduleBlocks();\n\n this.guide.destroy();\n this.elements = this.guide = null;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\nmodule.exports = MonthResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/resizeGuide.js\n// module id = 86\n// module chunks = 0","/**\n * @fileoverview Allday event click event hander module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeClick(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.timeGridView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nTimeClick.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits TimeClick#clickEvent\n */\nTimeClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n schedulesCollection = this.baseController.schedules;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events TimeClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(TimeClick);\n\nmodule.exports = TimeClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/click.js\n// module id = 87\n// module chunks = 0","/**\n * @fileoverview Dayname click event hander module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayName} [dayNameView] - DayName view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction DayNameClick(dragHandler, dayNameView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayName}\n */\n this.dayNameView = dayNameView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayNameClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dayNameView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayNameClick.prototype.checkExpectCondition = function(target) {\n var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\n if (!container) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits DayNameClick#clickDayname\n */\nDayNameClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n daynameView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.dayname'));\n\n if (!daynameView || !blockElement) {\n return;\n }\n\n /**\n * @events DayNameClick#clickDayname\n * @type {object}\n * @property {string} date - click date\n */\n self.fire('clickDayname', {\n date: domutil.getData(blockElement, 'date')\n });\n};\n\nutil.CustomEvents.mixin(DayNameClick);\n\nmodule.exports = DayNameClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/clickDayname.js\n// module id = 88\n// module chunks = 0","/**\n * @fileoverview Handling creation events from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar TimeCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeCreation(dragHandler, timeGridView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * TimeGrid view instance.\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {TimeCreationGuide}\n */\n this.guide = new TimeCreationGuide(this);\n\n /**\n * Temporary function for single drag session's calc.\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * Temporary function for drag start data cache.\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destroy method\n */\nTimeCreation.prototype.destroy = function() {\n var timeGridView = this.timeGridView;\n\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (timeGridView && timeGridView.container) {\n domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this.guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n */\nTimeCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n target = target.parentNode;\n cssClass = domutil.getClass(target);\n }\n\n matches = cssClass.match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, matches[1]);\n};\n\n/**\n * Drag#dragStart event handler.\n * @emits TimeCreation#timeCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n eventData;\n\n if (!result) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @event TimeCreation#timeCreationDragstart\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeCreation#timeCreationDrag\n * @param {object} dragEventData - event data from Drag#drag.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n eventData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n eventData = getScheduleDataFunc(dragEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDrag\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDrag', eventData);\n};\n\n/**\n * @fires TimeCreation#beforeCreateSchedule\n * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n * or TimeCreation#timeCreationClick\n */\nTimeCreation.prototype._createSchedule = function(eventData) {\n var relatedView = eventData.relatedView,\n createRange = eventData.createRange,\n nearestGridTimeY = eventData.nearestGridTimeY,\n baseDate,\n dateStart,\n dateEnd,\n start,\n end;\n\n if (!createRange) {\n createRange = [\n nearestGridTimeY,\n nearestGridTimeY + datetime.millisecondsFrom('minutes', 30)\n ];\n }\n\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.end(baseDate);\n start = Math.max(dateStart.getTime(), createRange[0]);\n end = Math.min(dateEnd.getTime(), createRange[1]);\n\n /**\n * @event TimeCreation#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: false,\n start: new TZDate(start),\n end: new TZDate(end),\n guide: this.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeCreation#timeCreationDragend\n * @param {object} dragEndEventData - event data from Drag#dragend\n */\nTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n var self = this,\n dragStart = this._dragStart;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * Function for manipulate event data before firing event\n * @param {object} eventData - event data\n */\n function reviseFunc(eventData) {\n var range = [\n dragStart.nearestGridTimeY,\n eventData.nearestGridTimeY\n ].sort(array.compare.num.asc);\n range[1] += datetime.millisecondsFrom('hour', 0.5);\n\n eventData.createRange = range;\n\n self._createSchedule(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDragend\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {number[]} createRange - milliseconds range between drag start and end to create.\n */\n this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Drag#click event handler\n * @emits TimeCreation#timeCreationClick\n * @param {object} clickEventData - event data from Drag#click.\n */\nTimeCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var condResult, getScheduleDataFunc, eventData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n condResult = this.checkExpectedCondition(clickEventData.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('timeCreationClick', eventData);\n self._createSchedule(eventData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Dblclick event handler\n * @param {MouseEvent} e - Native MouseEvent\n */\nTimeCreation.prototype._onDblClick = function(e) {\n var condResult, getScheduleDataFunc, eventData;\n\n condResult = this.checkExpectedCondition(e.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(e);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n\n this._requestOnClick = false;\n};\n\ntimeCore.mixin(TimeCreation);\nutil.CustomEvents.mixin(TimeCreation);\n\nmodule.exports = TimeCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/creation.js\n// module id = 89\n// module chunks = 0","/**\n * @fileoverview Module for Time.Creation effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar TZDate = require('../../common/timezone').Date;\nvar MIN30 = (datetime.MILLISECONDS_PER_MINUTES * 30);\n\n/**\n * Class for Time.Creation dragging effect.\n * @constructor\n * @param {TimeCreation} timeCreation - instance of TimeCreation.\n */\nfunction TimeCreationGuide(timeCreation) {\n /**\n * Guide element for creation effect.\n * @type {HTMLElement}\n */\n this.guideElement = global.document.createElement('div');\n\n /**\n * @type {HTMLDivElement}\n */\n this.guideTimeElement = domutil.appendHTMLElement(\n 'span',\n this.guideElement,\n config.classname('time-guide-creation-label')\n );\n\n domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\n /**\n * @type {TimeCreation}\n */\n this.timeCreation = timeCreation;\n\n /**\n * @type {array}\n */\n this._styleUnit = null;\n\n /**\n * @type {array}\n */\n this._styleStart = null;\n\n /**\n * @type {function}\n */\n this._styleFunc = null;\n\n timeCreation.on({\n timeCreationDragstart: this._createGuideElement,\n timeCreationDrag: this._onDrag,\n timeCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method.\n */\nTimeCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.timeCreation.off(this);\n this.timeCreation = this._styleUnit = this._styleStart =\n this._styleFunc = this.guideElement = this.guideTimeElement = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement,\n timeElement = this.guideTimeElement;\n\n domutil.remove(guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.display = 'none';\n guideElement.style.top = '';\n guideElement.style.height = '';\n timeElement.innerHTML = '';\n });\n};\n\n/**\n * Refresh guide element\n * @param {number} top - The number of guide element's style top\n * @param {number} height - The number of guide element's style height\n * @param {Date} start - start time of schedule to create\n * @param {Date} end - end time of schedule to create\n * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n */\nTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n var guideElement = this.guideElement;\n var timeElement = this.guideTimeElement;\n\n guideElement.style.top = top + 'px';\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n\n timeElement.innerHTML = datetime.format(new TZDate(start), 'HH:mm') +\n ' - ' + datetime.format(new TZDate(end), 'HH:mm');\n\n if (bottomLabel) {\n domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n } else {\n domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n }\n};\n\n/**\n * Get unit data of calculating new style of guide element by user interaction\n * @param {Time} relatedView - time view instance related with schedule\n * @returns {array} unit data.\n */\nTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n var viewOpt = relatedView.options,\n viewHeight = relatedView.getViewBound().height,\n hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n todayStart = datetime.parse(viewOpt.ymd),\n todayEnd = datetime.end(todayStart);\n\n todayStart.setHours(0, 0, 0, 0);\n todayStart.setHours(viewOpt.hourStart);\n\n // [0] height of view\n // [1] hour length of view\n // [2] start time of view\n // [3] end time of view\n // [4] height of view for one hour\n return [\n viewHeight,\n hourLength,\n Number(todayStart),\n Number(todayEnd),\n viewHeight / hourLength\n ];\n};\n\n/**\n * Applying limitation to supplied data and return it.\n * @param {number} top - top pixel of guide element\n * @param {number} height - height pixel of guide element\n * @param {number} start - relative time value of dragstart point\n * @param {number} end - relative time value of dragend point\n * @returns {array} limited style data\n */\nTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n var unitData = this._styleUnit;\n\n top = common.limit(top, [0], [unitData[0]]);\n height = common.limit(top + height, [0], [unitData[0]]) - top;\n start = common.limit(start, [unitData[2]], [unitData[3]]);\n end = common.limit(end, [unitData[2]], [unitData[3]]);\n\n return [top, height, start, end];\n};\n\n/**\n * Get function to calculate guide element UI data from supplied units\n * @param {number} viewHeight - total height of view's container element\n * @param {number} hourLength - hour length that rendered in time view\n * @param {number} todayStart - time for view's start date\n * @returns {function} UI data calculator function\n */\nTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n var todayEnd = Number(datetime.end(new TZDate(Number(todayStart))));\n\n /**\n * Get top, time value from schedule dat\n * @param {object} scheduleData - schedule data object\n * @returns {number[]} top, time\n */\n function getStyleData(scheduleData) {\n var gridY = scheduleData.nearestGridY,\n gridTimeY = scheduleData.nearestGridTimeY,\n top, time;\n\n top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n time = common.limit(gridTimeY, [todayStart], [todayEnd]);\n\n return [top, time];\n }\n\n return getStyleData;\n};\n\n/**\n * DragStart event handler\n * @param {object} dragStartEventData - dragStart schedule data.\n */\nTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var relatedView = dragStartEventData.relatedView,\n unitData, styleFunc, styleData, result;\n\n unitData = this._styleUnit = this._getUnitData(relatedView);\n styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n styleData = this._styleStart = styleFunc(dragStartEventData);\n\n result = this._limitStyleData(\n styleData[0],\n (unitData[4] / 2),\n styleData[1],\n (styleData[1] + MIN30)\n );\n\n this._refreshGuideElement.apply(this, result);\n\n relatedView.container.appendChild(this.guideElement);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEventData - drag schedule data.\n */\nTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n var styleFunc = this._styleFunc,\n unitData = this._styleUnit,\n startStyle = this._styleStart,\n refreshGuideElement = this._refreshGuideElement.bind(this),\n heightOfHalfHour,\n endStyle,\n result;\n\n if (!styleFunc || !unitData || !startStyle) {\n return;\n }\n\n heightOfHalfHour = (unitData[4] / 2);\n endStyle = styleFunc(dragEventData);\n\n if (endStyle[0] > startStyle[0]) {\n result = this._limitStyleData(\n startStyle[0],\n (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n startStyle[1],\n (endStyle[1] + MIN30)\n );\n } else {\n result = this._limitStyleData(\n endStyle[0],\n (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n endStyle[1],\n (startStyle[1] + MIN30)\n );\n result.push(true);\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n refreshGuideElement.apply(null, result);\n });\n};\n\nmodule.exports = TimeCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/creationGuide.js\n// module id = 90\n// module chunks = 0","/**\n * @fileoverview Handling move schedules from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeMoveGuide = require('./moveGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeMove(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeMoveGuide}\n */\n this._guide = new TimeMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method.\n */\nTimeMove.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {boolean|object} - return object when satiate condition.\n */\nTimeMove.prototype.checkExpectCondition = function(target) {\n if (!domutil.closest(target, config.classname('.time-schedule'))) {\n return false;\n }\n\n return this._getTimeView(target);\n};\n\n/**\n * Get Time view container from supplied element.\n * @param {HTMLElement} target - element to find time view container.\n * @returns {object|boolean} - return time view instance when finded.\n */\nTimeMove.prototype._getTimeView = function(target) {\n var container = domutil.closest(target, config.classname('.time-date')),\n matches;\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeMove#timeMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart schedule data.\n */\nTimeMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData,\n ctrl = this.baseController,\n targetModelID,\n targetModel;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n targetModel = ctrl.schedules.items[targetModelID];\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n model: targetModel\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeMove#timeMoveDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} model - model instance\n */\n this.fire('timeMoveDragstart', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveDrag\n * @param {MouseEvent} dragEventData - mousemove event object\n * @param {string} [overrideEventName] - name of emitting event to override.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n timeView = this._getTimeView(dragEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n if (!timeView || !getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n currentView: timeView,\n targetModelID: dragStart.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeMove#timeMoveDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n */\nTimeMove.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n dateDiff = 0,\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n currentView = scheduleData.currentView,\n scheduleDuration,\n dateStart,\n dateEnd,\n newStarts,\n newEnds,\n baseDate;\n\n if (!schedule || !currentView) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.end(baseDate);\n newStarts = new TZDate(schedule.getStarts().getTime() + timeDiff);\n newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n scheduleDuration = schedule.duration();\n\n if (currentView) {\n dateDiff = currentView.getDate() - relatedView.getDate();\n }\n\n if (newStarts < dateStart) {\n newStarts = new TZDate(dateStart.getTime());\n newEnds = new TZDate(newStarts.getTime() + scheduleDuration.getTime());\n } else if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd.getTime());\n newStarts = new TZDate(newEnds.getTime() - scheduleDuration.getTime());\n }\n\n newStarts = new TZDate(newStarts.getTime() + dateDiff);\n newEnds = new TZDate(newEnds.getTime() + dateDiff);\n\n /**\n * @event TimeMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * @emits TimeMove#timeMoveDragend\n * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n */\nTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n currentView = this._getTimeView(dragEndEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n currentView: currentView,\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeMove#timeMoveDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeMoveDragend', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveClick\n * @param {MouseEvent} clickEventData - click mouse event object.\n */\nTimeMove.prototype._onClick = function(clickEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n /**\n * @event TimeMove#timeMoveClick\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeMoveClick', scheduleData);\n};\n\ntimeCore.mixin(TimeMove);\nutil.CustomEvents.mixin(TimeMove);\n\nmodule.exports = TimeMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/move.js\n// module id = 91\n// module chunks = 0","/**\n * @fileoverview Module for Time.Move effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar FloatingLayer = require('../../common/floatingLayer');\nvar tmpl = require('../../view/template/week/timeMoveGuide.hbs');\nvar TZDate = require('../../common/timezone').Date;\nvar Schedule = require('../../model/schedule');\n\n/**\n * Class for Time.Move effect.\n * @constructor\n * @param {TimeMove} timeMove - The instance of TimeMove.\n */\nfunction TimeMoveGuide(timeMove) {\n /**\n * @type {FloatingLayer}\n */\n this._guideLayer = null;\n\n /**\n * @Type {Schedule}\n */\n this._model = null;\n\n /**\n * @type {object}\n */\n this._lastDrag = null;\n\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeMove}\n */\n this.timeMove = timeMove;\n\n /**\n * @type {HTMLElement}\n */\n this._container = null;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n timeMove.on({\n 'timeMoveDragstart': this._onDragStart,\n 'timeMoveDrag': this._onDrag,\n 'timeMoveDragend': this._clearGuideElement,\n 'timeMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeMove.off(this);\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n this._getTopFunc = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeMoveGuide.prototype._clearGuideElement = function() {\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n\n this._showOriginScheduleBlocks();\n\n this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.addClass(this.guideElement, className);\n }\n};\n\n/**\n * Show element blocks\n */\nTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.removeClass(this.guideElement, className);\n }\n};\n\nTimeMoveGuide.prototype._getHighlightColorModel = function(model) {\n return {\n bgColor: model.color\n };\n};\n\n/**\n * Refresh guide element\n * @param {string} top - guide element's style top.\n * @param {Schedule} model - updated model\n */\nTimeMoveGuide.prototype._refreshGuideElement = function(top, model) {\n var self = this;\n\n reqAnimFrame.requestAnimFrame(function() {\n if (!self._guideLayer) {\n return;\n }\n self._guideLayer.setPosition(0, top);\n self._guideLayer.setContent(tmpl({model: model}));\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var guideElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n );\n\n if (!guideElement) {\n return;\n }\n\n this._startTopPixel = parseFloat(guideElement.style.top);\n this._startGridY = dragStartEventData.nearestGridY;\n this.guideElement = guideElement;\n this._container = dragStartEventData.relatedView.container;\n\n this._model = util.extend(\n Schedule.create(dragStartEventData.model),\n dragStartEventData.model,\n this._getHighlightColorModel(dragStartEventData.model)\n );\n this._lastDrag = dragStartEventData;\n\n this._resetGuideLayer();\n this._hideOriginScheduleBlocks();\n};\n\n/**\n * TimeMove#timeMoveDrag event handler\n * @param {object} dragEventData - drag event data\n */\nTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.currentView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n guideHeight = parseFloat(this.guideElement.style.height),\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n timeDiff = dragEventData.nearestGridTimeY - this._lastDrag.nearestGridTimeY,\n bottomLimit,\n top;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n if (this._container !== timeView.container) {\n this._container = timeView.container;\n this._resetGuideLayer();\n }\n\n top = this._startTopPixel + gridYOffsetPixel;\n bottomLimit = viewHeight - guideHeight;\n\n top = Math.max(top, 0);\n top = Math.min(top, bottomLimit);\n\n // update time\n this._model.start = new TZDate(this._model.getStarts().getTime() + timeDiff);\n this._model.end = new TZDate(this._model.getEnds().getTime() + timeDiff);\n this._lastDrag = dragEventData;\n\n this._refreshGuideElement(top, this._model);\n};\n\nTimeMoveGuide.prototype._resetGuideLayer = function() {\n if (this._guideLayer) {\n this._guideLayer.destroy();\n this._guideLayer = null;\n }\n this._guideLayer = new FloatingLayer(null, this._container);\n this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n this._guideLayer.setPosition(0, this.guideElement.style.top);\n this._guideLayer.setContent(tmpl({model: this._model}));\n this._guideLayer.show();\n};\n\nmodule.exports = TimeMoveGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/moveGuide.js\n// module id = 92\n// module chunks = 0","/**\n * @fileoverview Handling resize schedules from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeResizeGuide = require('./resizeGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeResize(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeResizeGuide}\n */\n this._guide = new TimeResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method\n */\nTimeResize.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * @param {HTMLElement} target - element to check condition.\n * @returns {object|boolean} - return time view instance or false\n */\nTimeResize.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n return false;\n }\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeResize#timeResizeDragstart\n * @param {object} dragStartEventData - event data of Drag#dragstart\n */\nTimeResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: domutil.getData(blockElement, 'id')\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeResizeDragstart', scheduleData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeResize#timeResizeDrag\n * @param {object} dragEventData - event data of Drag#drag custom event.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n startScheduleData = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !startScheduleData) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n targetModelID: startScheduleData.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeResize#timeResizeDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n */\nTimeResize.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n dateEnd,\n newEnds,\n baseDate;\n\n if (!schedule) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\n baseDate = new TZDate(relatedView.getDate());\n dateEnd = datetime.end(baseDate);\n newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n\n if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd.getTime());\n }\n\n if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n newEnds = new TZDate(schedule.getStarts().getTime() + datetime.millisecondsFrom('minutes', 30));\n }\n\n /**\n * @event TimeResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeResize#timeResizeDragend\n * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n */\nTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeResize#timeResizeDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeResizeDragend', scheduleData);\n\n this._getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * @emits TimeResize#timeResizeClick\n */\nTimeResize.prototype._onClick = function() {\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeClick\n */\n this.fire('timeResizeClick');\n};\n\ntimeCore.mixin(TimeResize);\nutil.CustomEvents.mixin(TimeResize);\n\nmodule.exports = TimeResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/resize.js\n// module id = 93\n// module chunks = 0","/**\n * @fileoverview Module for Time.Resize effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\n\n/**\n * Class for Time.Resize effect.\n * @constructor\n * @param {TimeResize} timeResize - the instance of TimeResize handler.\n */\nfunction TimeResizeGuide(timeResize) {\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeResize}\n */\n this.timeResize = timeResize;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {HTMLElement}\n */\n this._originScheduleElement = null;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n /**\n * @type {number}\n */\n this._startHeightPixel = 0;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n timeResize.on({\n 'timeResizeDragstart': this._onDragStart,\n 'timeResizeDrag': this._onDrag,\n 'timeResizeDragend': this._clearGuideElement,\n 'timeResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeResize.off(this);\n this.guideElement = this.timeResize = this._getTopFunc =\n this._originScheduleElement = this._startHeightPixel =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeResizeGuide.prototype._clearGuideElement = function() {\n var guideElement = this.guideElement,\n originElement = this._originScheduleElement;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing'));\n }\n\n if (originElement) {\n originElement.style.display = 'block';\n }\n\n domutil.remove(guideElement);\n\n this.guideElement = this._getTopFunc = this._originScheduleElement =\n this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Refresh guide element\n * @param {string} height - guide element's style height.\n */\nTimeResizeGuide.prototype._refreshGuideElement = function(height) {\n var guideElement = this.guideElement;\n\n if (!guideElement) {\n return;\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var originElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n ),\n guideElement;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing'));\n }\n\n if (!originElement) {\n return;\n }\n\n this._startGridY = dragStartEventData.nearestGridY;\n this._startHeightPixel = parseFloat(originElement.style.height);\n this._startTopPixel = parseFloat(originElement.style.top);\n\n this._originScheduleElement = originElement;\n guideElement = this.guideElement = originElement.cloneNode(true);\n domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\n originElement.style.display = 'none';\n dragStartEventData.relatedView.container.appendChild(guideElement);\n};\n\n/**\n * @param {object} dragEventData - event data from Drag#drag.\n */\nTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.relatedView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n guideElement = this.guideElement,\n guideTop = parseFloat(guideElement.style.top),\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n // hourLength : viewHeight = gridYOffset : X;\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n minHeight,\n maxHeight,\n height;\n\n height = (this._startHeightPixel + gridYOffsetPixel);\n // at least large than 30min from schedule start time.\n minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n minHeight -= this._startTopPixel;\n // smaller than 24h\n maxHeight = viewHeight - guideTop;\n\n height = Math.max(height, minHeight);\n height = Math.min(height, maxHeight);\n\n this._refreshGuideElement(height);\n};\n\nmodule.exports = TimeResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/resizeGuide.js\n// module id = 94\n// module chunks = 0","/**\n * @fileoverview Layout view. wrap all view containers at outside.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\nvar View = require('./view');\n\n/**\n * Layout view for toggle each child view. It will controlled via navigation UI.\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container Container element to use layout view.\n */\nfunction Layout(container) {\n container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * @type {Collection} Child view collection.\n */\n this.children = new Collection(function(childView) {\n return childView.viewName;\n });\n /* eslint-enable*/\n}\n\nutil.inherit(Layout, View);\n\n/**\n * Clear child views.\n */\nLayout.prototype.clear = function() {\n this.children.each(function(childView) {\n childView.destroy();\n });\n\n this.children.clear();\n this.container.innerHTML = '';\n};\n\n/**\n * Remove child view.\n * @override\n * @param {(string|View)} viewName - name of view or instance.\n */\nLayout.prototype.removeChild = function(viewName) {\n this.children.remove(viewName);\n};\n\n/**\n * Toggle child views.\n * @param {string} viewName - Name of view.\n */\nLayout.prototype.toggleChildView = function(viewName) {\n var container,\n prefix = ['add', 'remove'],\n flag;\n\n this.children.each(function(childView) {\n container = childView.container;\n flag = Number(childView.viewName === viewName);\n domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n });\n};\n\nmodule.exports = Layout;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/layout.js\n// module id = 95\n// module chunks = 0","/**\n * @fileoverview Month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('./month.hbs'),\n View = require('../view'),\n VLayout = require('../..//common/vlayout'),\n WeekdayInMonth = require('./weekdayInMonth');\nvar mmin = Math.min;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {function} [options.scheduleFilter] - schedule filter\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {string} [options.renderMonth='2015-12'] - render month\n * @param {string[]} [options.daynames] - daynames to use upside of month view\n * @param {HTMLElement} container - container element\n * @param {Base.Month} controller - controller instance\n */\nfunction Month(options, container, controller) {\n View.call(this, container);\n\n /**\n * @type {Base.Month}\n */\n this.controller = controller;\n\n /**\n * @type {VLayout}\n */\n this.vLayout = new VLayout({\n panels: [\n {height: 42},\n {autoHeight: true}\n ]\n }, container);\n\n /**\n * @type {string}\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n startDayOfWeek: 0,\n renderMonth: '2018-01',\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n narrowWeekend: false,\n visibleWeeksCount: null,\n grid: {\n header: {\n height: 34\n },\n footer: {\n height: 34\n }\n }\n }, options);\n\n this.options.grid.header = util.extend({\n height: 34\n }, util.pick(options, 'grid', 'header'));\n this.options.grid.footer = util.extend({\n height: 34\n }, util.pick(options, 'grid', 'footer'));\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = datetime.getGridLeftAndWidth(\n this.options.daynames.length,\n this.options.narrowWeekend,\n this.options.startDayOfWeek);\n}\n\nutil.inherit(Month, View);\n\n/**\n * Name of view. for managing subview at layout view\n * @type {string}\n */\nMonth.prototype.viewName = 'month';\n\n/**\n * Get calendar array by supplied date\n * @param {string} renderMonthStr - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n * @returns {array.} calendar array\n */\nMonth.prototype._getMonthCalendar = function(renderMonthStr) {\n var date = datetime.parse(renderMonthStr) || datetime.parse(renderMonthStr + '-01');\n var startDayOfWeek = this.options.startDayOfWeek || 0;\n var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n var workweek = this.options.workweek || false;\n var datetimeOptions, calendar;\n\n if (this.options.visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: true,\n workweek: workweek\n };\n }\n\n calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\n return calendar;\n};\n\n/**\n * Create children view (week) and add children\n * @param {HTMLElement} container - container element to render weeks\n * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n */\nMonth.prototype._renderChildren = function(container, calendar) {\n var self = this;\n var weekCount = calendar.length;\n var heightPercent = 100 / weekCount;\n var opt = this.options;\n var renderMonth = opt.renderMonth;\n var narrowWeekend = opt.narrowWeekend;\n var startDayOfWeek = opt.startDayOfWeek;\n var visibleWeeksCount = opt.visibleWeeksCount;\n var visibleScheduleCount = opt.visibleScheduleCount;\n var gridOption = opt.grid;\n\n container.innerHTML = '';\n this.children.clear();\n\n util.forEach(calendar, function(weekArr) {\n var start = new TZDate(Number(weekArr[0])),\n end = new TZDate(Number(weekArr[weekArr.length - 1])),\n weekdayViewContainer,\n weekdayView;\n\n weekdayViewContainer = domutil.appendHTMLElement(\n 'div', container, config.classname('month-week-item'));\n\n weekdayView = new WeekdayInMonth({\n renderMonth: renderMonth,\n heightPercent: heightPercent,\n renderStartDate: datetime.format(start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(end, 'YYYY-MM-DD'),\n narrowWeekend: narrowWeekend,\n startDayOfWeek: startDayOfWeek,\n visibleWeeksCount: visibleWeeksCount,\n visibleScheduleCount: visibleScheduleCount,\n grid: gridOption\n }, weekdayViewContainer);\n\n self.addChild(weekdayView);\n });\n};\n\n/**\n * Render month view\n * @override\n */\nMonth.prototype.render = function() {\n var opt = this.options,\n vLayout = this.vLayout,\n controller = this.controller,\n daynames = opt.daynames,\n workweek = opt.workweek,\n calendar = this._getMonthCalendar(opt.renderMonth),\n scheduleFilter = opt.scheduleFilter,\n grids,\n daynameViewModel,\n baseViewModel;\n\n grids = this.grids = datetime.getGridLeftAndWidth(\n opt.daynames.length,\n opt.narrowWeekend,\n opt.startDayOfWeek\n );\n\n daynameViewModel = util.map(\n util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n function(day, index) {\n return {\n day: day,\n label: daynames[day],\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0\n };\n }\n );\n\n if (workweek) {\n grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\n daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n return !datetime.isWeekend(daynameModel.day);\n });\n\n util.forEach(daynameViewModel, function(daynameModel, index) {\n daynameModel.width = grids[index] ? grids[index].width : 0;\n daynameModel.left = grids[index] ? grids[index].left : 0;\n });\n }\n\n baseViewModel = {\n daynames: daynameViewModel\n };\n\n vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\n this._renderChildren(vLayout.panels[1].container, calendar);\n\n this.children.each(function(childView) {\n var start = datetime.parse(childView.options.renderStartDate);\n var end = datetime.parse(childView.options.renderEndDate);\n var eventsInDateRange = controller.findByDateRange(\n datetime.start(start),\n datetime.end(end),\n scheduleFilter\n );\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY);\n var viewModel = {\n eventsInDateRange: eventsInDateRange,\n range: dateRange.slice(0, grids.length),\n grids: grids\n };\n\n childView.render(viewModel);\n });\n};\n\nmodule.exports = Month;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/month.js\n// module id = 96\n// module chunks = 0","/**\n * @fileoverview Floating layer for displaying schedule in specific date\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar OUT_PADDING = 5;\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n FloatingLayer = require('../../common/floatingLayer'),\n common = require('../../common/common'),\n tmpl = require('./more.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {object} [options.moreLayerSize] - more layer size\n * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {HTMLElement} container = container element\n */\nfunction More(options, container) {\n View.call(this, container);\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n moreLayerSize: {\n width: null,\n height: null\n }\n }, options);\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(More, View);\n\n/**\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nMore.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n var className = config.classname('month-more-close');\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Mousedown event handler for hiding more layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nMore.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n moreLayer = domutil.closest(target, config.classname('.month-more'));\n\n if (moreLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Get new position for more layer by +n element itself\n * @param {HTMLElement} target - parent grid-line element of +n element\n * @param {HTMLElement} weekItem - weekItem container element\n * @returns {number[]} new position of more layer\n */\nMore.prototype._getRenderPosition = function(target, weekItem) {\n var pos = domevent.getMousePosition({\n clientX: domutil.getPosition(target)[0],\n clientY: domutil.getPosition(weekItem)[1]\n }, this.container);\n var containerSize = domutil.getSize(this.container);\n var left = pos[0] - OUT_PADDING;\n var top = pos[1] - OUT_PADDING;\n\n left = common.ratio(containerSize[0], 100, left) + '%';\n top = common.ratio(containerSize[1], 100, top) + '%';\n\n return [left, top];\n};\n\n/**\n * @override\n */\nMore.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nMore.prototype.render = function(viewModel) {\n var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n var layer = this.layer;\n var self = this;\n var pos = this._getRenderPosition(target, weekItem);\n var height = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n var width = target.offsetWidth + (OUT_PADDING * 2);\n var optMoreLayerSize = this.options.moreLayerSize;\n this._viewModel = viewModel;\n\n if (optMoreLayerSize.width) {\n width = optMoreLayerSize.width;\n }\n\n if (optMoreLayerSize.height) {\n height = optMoreLayerSize.height;\n }\n\n layer.setContent(tmpl(viewModel));\n if (weekItem.parentElement.lastElementChild === weekItem) {\n layer.setLTRB({\n left: pos[0],\n bottom: 0\n });\n layer.setSize(width, '');\n } else {\n layer.setPosition(pos[0], pos[1]);\n layer.setSize(width, height);\n }\n\n layer.show();\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Hide layer\n */\nMore.prototype.hide = function() {\n this.layer.hide();\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nMore.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(tmpl(this._viewModel));\n }\n};\n\nmodule.exports = More;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/more.js\n// module id = 97\n// module chunks = 0","/**\n * @fileoverview Monthday in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common.js'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n Weekday = require('../weekday'),\n baseTmpl = require('./weekdayInMonth.hbs'),\n scheduleTmpl = require('./weekdayInMonthSchedule.hbs');\nvar mfloor = Math.floor,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction WeekdayInMonth(options, container) {\n Weekday.call(this, options, container);\n container.style.height = options.heightPercent + '%';\n}\n\nutil.inherit(WeekdayInMonth, Weekday);\n\n/**\n * Get schedule container element's bound properly by override\n *\n * View#getViewBound.\n * @override\n */\nWeekdayInMonth.prototype.getViewBound = function() {\n var bound = View.prototype.getViewBound.call(this);\n\n return bound;\n};\n\n/**\n * Get limit index of schedule block in current view\n * @returns {number} limit index\n */\nWeekdayInMonth.prototype._getRenderLimitIndex = function() {\n var opt = this.options;\n var containerHeight = this.getViewBound().height;\n var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n var visibleScheduleCount = opt.visibleScheduleCount || 0;\n var count;\n\n containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\n count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\n if (!visibleScheduleCount) {\n visibleScheduleCount = count;\n }\n\n return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n renderLimitIdx = this._getRenderLimitIndex(),\n exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range);\n var baseViewModel;\n\n viewModel = util.extend({\n exceedDate: exceedDate\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n matrices: viewModel.eventsInDateRange,\n gridHeaderHeight: gridHeaderHeight,\n gridFooterHeight: gridFooterHeight,\n renderLimitIdx: renderLimitIdx + 1\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainer,\n contentStr = '';\n\n if (!this.options.visibleWeeksCount) {\n setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth);\n }\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n scheduleContainer = domutil.find(\n config.classname('.weekday-schedules'),\n container\n );\n\n if (!scheduleContainer) {\n return;\n }\n\n contentStr += scheduleTmpl(baseViewModel);\n\n scheduleContainer.innerHTML = contentStr;\n\n common.setAutoEllipsis(\n config.classname('.weekday-schedule-title'),\n container\n );\n};\n\nWeekdayInMonth.prototype._beforeDestroy = function() {\n};\n\n/**\n * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n * @param {Array} dates - 날짜정보 배열\n * @param {string} renderMonthStr - 현재 렌더링중인 월 (YYYYMM)\n */\nfunction setIsOtherMonthFlag(dates, renderMonthStr) {\n var renderMonth = Number(renderMonthStr.substring(5));\n\n util.forEach(dates, function(dateObj) {\n dateObj.isOtherMonth = dateObj.month !== renderMonth;\n });\n}\n\nmodule.exports = WeekdayInMonth;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonth.js\n// module id = 98\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Helpers for handlebar templates.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Handlebars = require('handlebars-template-loader/runtime');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar config = require('../../config');\n\n/**\n * Get CSS syntax for element size\n * @param {number} value - size value to apply element\n * @param {string} postfix - postfix string ex) px, em, %\n * @param {string} prefix - property name ex) width, height\n * @returns {string} CSS syntax\n */\nfunction getElSize(value, postfix, prefix) {\n prefix = prefix || '';\n if (util.isNumber(value)) {\n return prefix + ':' + value + postfix;\n }\n\n return prefix + ':auto';\n}\n\n/**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\nfunction getElLeft(viewModel, grids) {\n return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n}\n\n/**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getElWidth(viewModel, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n var left;\n for (; i < viewModel.width; i += 1) {\n left = (viewModel.left + i) % length;\n left += parseInt((viewModel.left + i) / length, 10);\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nHandlebars.registerHelper({\n /**\n * Stamp supplied object\n *\n * Commonly use for rendering object's unique ID to rendered view\n * @param {object} obj - object to stamp\n * @returns {number} stamp value\n */\n 'stamp': function(obj) {\n return util.stamp(obj);\n },\n\n /**\n * Whether supplied object are equal?\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} result of operation\n */\n 'equal': function(a, b) {\n return a === b;\n },\n\n /**\n * OR\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'or': function(a, b) {\n return a || b;\n },\n\n /**\n * Compare object or apply logical operation by customizable oper parameter\n * @param {*} a - a\n * @param {string} oper - operator ex) '==', '<'\n * @param {*} b - b\n * @param {Handlebars} options - handlebar options\n * @returns {boolean} result of operation\n */\n 'fi': function(a, oper, b, options) {\n switch (oper) {\n case '==':\n return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n case '===':\n return (a === b) ? options.fn(this) : options.inverse(this);\n case '!==':\n return (a !== b) ? options.fn(this) : options.inverse(this);\n case '<':\n return (a < b) ? options.fn(this) : options.inverse(this);\n case '||':\n return (a || b) ? options.fn(this) : options.inverse(this);\n default:\n throw new Error('Not match operation');\n }\n },\n\n /**\n * Get hhmm formatted time str\n * @param {Date} date - date object\n * @returns {string} formatted value\n */\n 'hhmm': function(date) {\n return datetime.format(date, 'HH:mm');\n },\n\n /**\n * Get `width` stylesheet string\n * @param {number} width - width percentage\n * @returns {string} css style part\n */\n 'common-width': function(width) {\n return getElSize(width, '%', 'width');\n },\n\n /**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\n 'grid-left': function(viewModel, grids) {\n return getElLeft(viewModel, grids);\n },\n\n /**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\n 'grid-width': function(viewModel, grids) {\n return getElWidth(viewModel, grids);\n },\n\n /**\n * Use in time.hbs\n * @param {ScheduleViewModel} viewModel viewModel\n * @returns {string} element size css class\n */\n 'time-scheduleBlock': function(viewModel) {\n var top = getElSize(viewModel.top, 'px', 'top'),\n left = getElSize(viewModel.left, '%', 'left'),\n width = getElSize(viewModel.width, '%', 'width'),\n height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n var height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'holiday': function(day) {\n var cssClass = '';\n\n if (day === 0) {\n cssClass = config.classname('holiday-sun');\n }\n\n if (day === 6) {\n cssClass = config.classname('holiday-sat');\n }\n\n return cssClass;\n },\n\n /**\n * Add supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'add': function(a, b) {\n return a + b;\n },\n\n /**\n * Multiply supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'multiply': function(a, b) {\n return a * b;\n },\n\n /**\n * Divide supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'divide': function(a, b) {\n return a / b;\n },\n\n /**\n * Subtract supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'subtract': function(a, b) {\n return a - b;\n },\n\n /**\n * Get css prefix in global configuration\n * @returns {string} css prefix\n */\n 'CSS_PREFIX': function() {\n return config.cssPrefix;\n },\n\n /**********\n * Default schedule template\n **********/\n\n 'milestone-tmpl': function(model) {\n return ' ' +\n common.stripTags(model.title);\n },\n\n 'milestoneTitle-tmpl': function() {\n return '마일스톤';\n },\n\n 'task-tmpl': function(model) {\n return ' ' +\n common.stripTags(model.title);\n },\n\n 'taskTitle-tmpl': function() {\n return '업무';\n },\n\n 'alldayTitle-tmpl': function() {\n return '종일';\n },\n\n 'alldayCollapseBtnTitle-tmpl': function() {\n return '∧';\n },\n\n 'allday-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'time-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'monthMoreTitleDate-tmpl': function(date) {\n return date;\n },\n\n 'monthMoreClose-tmpl': function() {\n return 'close';\n },\n\n 'monthGridHeader-tmpl': function(model) {\n return '' + model.date + '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'monthGridFooter-tmpl': function() {\n return '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'weekDayname-tmpl': function(model) {\n return '' + model.date + ' ' + model.dayName;\n },\n\n 'monthDayname-tmpl': function(model) {\n return model.label;\n },\n\n 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '+' + hiddenSchedules;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/helper.js\n// module id = 99\n// module chunks = 0","/**\n * @fileoverview View of allday schedule container inside of Week view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n View = require('../view'),\n WeekdayInWeek = require('./weekdayInWeek'),\n tmpl = require('../template/week/allday.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n * @param {number} [options.height=60] - minimum height of schedule container element.\n * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n * @param {HTMLElement} container Container element.\n * @param {object} aboutMe allday panel name and height\n */\nfunction Allday(options, container, aboutMe) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('allday-container')\n );\n\n /**\n * rendering options.\n * @type {object}\n */\n this.options = util.extend({\n title: 'All-day',\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: 18,\n scheduleGutter: 2,\n scheduleContainerTop: 1,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange.allday;\n }\n }, options);\n\n /**\n * height of content\n */\n this.contentHeight = 0;\n\n this.viewType = options.alldayViewType || 'scroll';\n this.collapsed = (this.viewType === 'toggle');\n this.aboutMe = util.extend(\n aboutMe, {\n name: 'allday'\n }\n );\n\n this.maxScheduleInDay = 0;\n\n View.call(this, container);\n}\n\nutil.inherit(Allday, View);\n\n/**\n * create month week view model for render allday schedules in top of week views.\n * @override\n * @param {object} viewModel - viewModel from parent views.\n */\nAllday.prototype.render = function(viewModel) {\n var container = this.container;\n var scheduleContainerTop = this.options.scheduleContainerTop;\n var self = this;\n var weekdayView;\n\n container.innerHTML = tmpl(this.options);\n\n this.children.clear();\n\n weekdayView = new WeekdayInWeek(\n this.options,\n domutil.find(config.classname('.weekday-container'), container),\n this.aboutMe\n );\n weekdayView.collapsed = this.collapsed;\n weekdayView.on('afterRender', function(weekdayViewModel) {\n self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n self.maxScheduleInDay = weekdayViewModel.maxScheduleInDay;\n });\n\n this.addChild(weekdayView);\n\n this.children.each(function(childView) {\n childView.collapsed = this.collapsed;\n childView.render(viewModel);\n }, this);\n\n this.fire('afterRender', viewModel);\n};\n\nAllday.prototype.getExpandMaxHeight = function() {\n var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n var maxExpandCount = this.aboutMe.maxExpandCount;\n\n if (this.maxScheduleInDay > maxExpandCount) {\n return scheduleHeight * (maxExpandCount + 0.5);\n }\n\n return scheduleHeight * maxExpandCount;\n};\n\nmodule.exports = Allday;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/allday.js\n// module id = 100\n// module chunks = 0","/**\n * @fileoverview View for rendering daynames\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar daynameTmpl = require('../template/week/daynames.hbs');\n\n/**\n * @constructor\n * @param {object} options - options for dayname view\n * @param {HTMLElement} container Container element to use.\n * @extends {View}\n */\nfunction DayName(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('dayname-container')\n );\n\n this.options = util.extend({\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n }, options);\n\n View.call(this, container);\n}\n\nutil.inherit(DayName, View);\n\n/**\n * Get default viewmodels.\n * @param {Date} start The date of start render\n * @param {Date} end The end of end render\n * @param {object} grids grid data(width, left, day)\n * @returns {array} viewmodel.\n */\nDayName.prototype._getBaseViewModel = function(start, end, grids) {\n var daynames = this.options.daynames,\n viewModel;\n\n viewModel = util.map(datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ), function(d, i) {\n var day = d.getDay();\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: datetime.isSameDate(d, new TZDate()),\n date: d.getDate(),\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n renderDate: datetime.format(d, 'YYYY-MM-DD')\n };\n });\n\n return viewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel View model from parent (WeekView)\n */\nDayName.prototype.render = function(viewModel) {\n var _viewModel = this._getBaseViewModel(\n viewModel.renderStartDate,\n viewModel.renderEndDate,\n viewModel.grids\n );\n\n this.container.innerHTML = daynameTmpl(_viewModel);\n};\n\nmodule.exports = DayName;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/dayname.js\n// module id = 101\n// module chunks = 0","/**\n * @fileoverview 마일스톤 뷰\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../../view/view');\nvar tmpl = require('../template/week//milestone.hbs');\n\n// item height + gutter (defined in css)\nvar ITEM_HEIGHT = 17;\n\n// list padding-top (defined in css)\nvar LIST_PADDING_TOP = 1;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n * @param {number} [options.minHeight=52] - min-height of milestone view\n * @param {number} [options.lineHeight=12] - line height of milestone view\n * @param {HTMLElement} container - container element\n */\nfunction Milestone(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('milestone-container')\n );\n\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n renderStartDate: '',\n renderEndDate: ''\n }, options);\n}\n\nutil.inherit(Milestone, View);\n\n/**\n * Get base viewmodel for task view\n * @param {object} [viewModel] - view model from parent view\n * @returns {object} view model for task view\n */\nMilestone.prototype._getBaseViewModel = function(viewModel) {\n var schedules = {},\n range = viewModel.range,\n height,\n today = datetime.format(new TZDate(), 'YYYY-MM-DD'),\n viewModelSchedules = util.pick(viewModel.schedulesInDateRange, 'milestone'),\n grids = viewModel.grids,\n i = 0;\n\n // 일정이 없는 경우라도 빈 객체를 생성\n util.forEach(range, function(d) {\n schedules[datetime.format(d, 'YYYY-MM-DD')] = {length: 0};\n });\n\n util.extend(schedules, viewModelSchedules);\n\n util.forEach(schedules, function(schedule, key) {\n schedule.isToday = (key === today);\n schedule.left = grids[i] ? grids[i].left : 0;\n schedule.width = grids[i] ? grids[i].width : 0;\n i += 1;\n });\n\n height = LIST_PADDING_TOP;\n height += Math.max.apply(null, util.map(schedules, function(coll) {\n return coll.length;\n })) * ITEM_HEIGHT;\n\n return {\n schedules: schedules,\n height: height\n };\n};\n\n/**\n * 마일스톤 뷰 렌더링\n * @override\n */\nMilestone.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this._getBaseViewModel(viewModel);\n\n container.style.minHeight = this.options.minHeight + 'px';\n container.innerHTML = tmpl(baseViewModel);\n\n util.forEach(domutil.find('li', container, true), function(el) {\n if (el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n\n this.fire('afterRender', baseViewModel);\n};\n\nmodule.exports = Milestone;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/milestone.js\n// module id = 102\n// module chunks = 0","/**\n * @fileoverview Task view for upper area of Week view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n View = require('../view'),\n WeekdayInWeek = require('./weekdayInWeek'),\n tmpl = require('../template/week/taskview.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for TaskView\n * @param {string} options.renderStartDate - start date of this view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of this view's render date. YYYY-MM-DD\n * @param {number} [options.height=60] - minimum height of schedule container element.\n * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n \n * @param {HTMLElement} container - container element\n */\nfunction TaskView(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('task-container')\n );\n\n /**\n * rendering options.\n * @type {object}\n */\n this.options = util.extend({\n title: 'task',\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: 18,\n scheduleGutter: 2,\n scheduleContainerTop: 1,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange.task;\n }\n }, options);\n\n /**\n * height of content\n */\n this.contentHeight = 0;\n\n View.call(this, container);\n}\n\nutil.inherit(TaskView, View);\n\n/**\n * 업무 뷰 렌더링\n * @override\n */\nTaskView.prototype.render = function(viewModel) {\n var container = this.container;\n var scheduleContainerTop = this.options.scheduleContainerTop;\n var self = this;\n var weekdayView;\n\n container.innerHTML = tmpl(this.options);\n\n this.children.clear();\n\n weekdayView = new WeekdayInWeek(\n this.options,\n domutil.find(config.classname('.weekday-container'), container)\n );\n weekdayView.on('afterRender', function(weekdayViewModel) {\n self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n });\n\n this.addChild(weekdayView);\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n });\n\n this.fire('afterRender', viewModel);\n};\n\nmodule.exports = TaskView;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/taskview.js\n// module id = 103\n// module chunks = 0","/**\n * @fileoverview View of time.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\nvar timeTmpl = require('../template/week/time.hbs');\n\nvar forEachArr = util.forEachArray;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options Options\n * @param {number} options.index Date index in week view.\n * @param {number} options.width Date element width (percent)\n * @param {string} options.ymd YYYMMDD string for this view\n * @param {boolean} options.isToday when set true then assign today design class to container.\n * @param {number} options.hourStart Can limit of render hour start.\n * @param {number} options.hourEnd Can limit of render hour end.\n * @param {HTMLElement} container Element to use container for this view.\n */\nfunction Time(options, container) {\n View.call(this, container);\n\n this.options = util.extend({\n index: 0,\n width: 0,\n ymd: '',\n isToday: false,\n pending: false,\n hourStart: 0,\n hourEnd: 24,\n defaultMarginBottom: 2,\n minHeight: 18.5\n }, options);\n\n this.timeTmpl = timeTmpl;\n container.style.width = options.width + '%';\n container.style.left = options.left + '%';\n\n if (this.options.isToday) {\n domutil.addClass(this.container, config.classname('today'));\n }\n}\n\nutil.inherit(Time, View);\n\n/**\n * Convert YYYYMMDD formatted string date to Date.\n * @param {string} str formatted string.\n * @returns {Date} start of date.\n */\nTime.prototype._parseDateGroup = function(str) {\n var y = parseInt(str.substr(0, 4), 10),\n m = parseInt(str.substr(4, 2), 10),\n d = parseInt(str.substr(6, 2), 10);\n\n return new TZDate(y, m - 1, d);\n};\n\n/**\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n * @param {number} options.baseHeight - pixel value related with baseMS options.\n * @param {number[]} options.baseLeft - left position percents for each columns.\n * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n * @param {number} options.columnIndex - the number index of schedule blocks.\n * it represent rendering index from left sides in view.\n * @returns {object} bound object for supplied view model.\n */\nTime.prototype.getScheduleViewBound = function(viewModel, options) {\n var baseMS = options.baseMS;\n var baseHeight = options.baseHeight;\n var cropped = false;\n var offsetStart, width, height, top;\n var isReadOnly = util.pick(viewModel, 'model', 'isReadOnly') || false;\n\n offsetStart = viewModel.valueOf().start - options.todayStart;\n\n // containerHeight : milliseconds in day = x : schedule's milliseconds\n top = (baseHeight * offsetStart) / baseMS;\n height = (baseHeight * viewModel.duration()) / baseMS;\n width = options.baseWidth * (viewModel.extraSpace + 1);\n\n // set width auto when has no collisions.\n if (!viewModel.hasCollide) {\n width = null;\n }\n\n if (height + top > baseHeight) {\n height = baseHeight - top;\n cropped = true;\n }\n\n if (isReadOnly) {\n cropped = true;\n }\n\n return {\n top: top,\n left: options.baseLeft[options.columnIndex],\n width: width,\n height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n cropped: cropped\n };\n};\n\n/**\n * Set viewmodels for rendering.\n * @param {string} ymd The date of schedules. YYYYMMDD format.\n * @param {array} matrices The matrices for schedule placing.\n */\nTime.prototype._getBaseViewModel = function(ymd, matrices) {\n var self = this,\n options = this.options,\n hourStart = options.hourStart,\n hourEnd = options.hourEnd,\n containerHeight,\n todayStart,\n baseMS;\n\n /**\n * Calculate each schedule element bounds relative with rendered hour milliseconds and\n * wrap each schedule model to viewmodels.\n */\n containerHeight = this.getViewBound().height;\n todayStart = this._parseDateGroup(ymd);\n todayStart.setHours(hourStart);\n baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\n forEachArr(matrices, function(matrix) {\n var maxRowLength,\n widthPercent,\n leftPercents,\n i;\n\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n widthPercent = 100 / maxRowLength;\n\n leftPercents = [];\n for (i = 0; i < maxRowLength; i += 1) {\n leftPercents[i] = widthPercent * i;\n }\n\n forEachArr(matrix, function(row) {\n forEachArr(row, function(viewModel, col) {\n var viewBound;\n\n if (!viewModel) {\n return;\n }\n\n viewBound = self.getScheduleViewBound(viewModel, {\n todayStart: todayStart,\n baseMS: baseMS,\n baseLeft: leftPercents,\n baseWidth: widthPercent,\n baseHeight: containerHeight,\n columnIndex: col\n });\n\n util.extend(viewModel, viewBound);\n });\n });\n });\n};\n\n/**\n * @returns {Date} - Date of this view.\n */\nTime.prototype.getDate = function() {\n return this._parseDateGroup(this.options.ymd);\n};\n\n/**\n * @override\n * @param {string} ymd The date of schedules. YYYYMMDD format\n * @param {array} matrices Matrices for placing schedules\n */\nTime.prototype.render = function(ymd, matrices) {\n this._getBaseViewModel(ymd, matrices);\n this.container.innerHTML = this.timeTmpl({\n matrices: matrices\n });\n};\n\nmodule.exports = Time;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/time.js\n// module id = 104\n// module chunks = 0","/**\n * @fileoverview View for rendered schedules by times.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar View = require('../view');\nvar Time = require('./time');\nvar AutoScroll = require('../../common/autoScroll');\nvar mainTmpl = require('../template/week/timeGrid.hbs');\n\nvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\nvar SIXTY_SECONDS = 60;\n\n/**\n * start~end 까지의 시간 레이블 목록을 반환한다.\n * 현재 시간과 가까운 레이블의 경우 hidden:true로 설정한다.\n * @param {number} start - 시작시간\n * @param {number} end - 끝시간\n * @param {boolean} hasHourMarker - 현재 시간이 표시되는지 여부\n * @returns {Array.}\n */\nfunction getHoursLabels(start, end, hasHourMarker) {\n var now = new TZDate();\n var nowMinutes = now.getMinutes();\n var nowHours = now.getHours();\n var hoursRange = util.range(start, end);\n var nowAroundHours = null;\n\n if (hasHourMarker) {\n if (nowMinutes < 20) {\n nowAroundHours = nowHours;\n } else if (nowMinutes > 40) {\n nowAroundHours = nowHours + 1;\n }\n }\n\n return hoursRange.map(function(hours) {\n return {\n hours: hours,\n hidden: nowAroundHours === hours\n };\n });\n}\n/**\n * @constructor\n * @extends {View}\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n * @param {number} [options.hourStart=0] You can change view's start hours.\n * @param {number} [options.hourEnd=0] You can change view's end hours.\n * @param {HTMLElement} container Container element.\n */\nfunction TimeGrid(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('timegrid-container')\n );\n\n View.call(this, container);\n\n if (!util.browser.safari) {\n /**\n * @type {AutoScroll}\n */\n this._autoScroll = new AutoScroll(container);\n }\n\n /**\n * Time view options.\n * @type {object}\n */\n this.options = util.extend({\n renderStartDate: '',\n renderEndDate: '',\n hourStart: 0,\n hourEnd: 24\n }, options);\n\n /**\n * Interval id for hourmarker animation.\n * @type {number}\n */\n this.intervalID = 0;\n\n /**\n * timer id for hourmarker initial state\n * @type {number}\n */\n this.timerID = 0;\n\n /**\n * @type {boolean}\n */\n this._scrolled = false;\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n this.attachEvent();\n}\n\nutil.inherit(TimeGrid, View);\n\n/**********\n * Prototype props\n **********/\n\n/**\n * @type {string}\n */\nTimeGrid.prototype.viewName = 'timegrid';\n\n/**\n * Destroy view.\n * @override\n */\nTimeGrid.prototype._beforeDestroy = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n\n if (this._autoScroll) {\n this._autoScroll.destroy();\n }\n\n this._autoScroll = this.hourmarker = this.intervalID = this.timerID = this._cacheParentViewModel = null;\n};\n\n/**\n * @param {Date} [time] - date object to convert pixel in grids.\n * use **Date.now()** when not supplied.\n * @returns {number} The pixel value represent current time in grids.\n */\nTimeGrid.prototype._getTopPercentByTime = function(time) {\n var opt = this.options,\n raw = datetime.raw(time || new TZDate()),\n hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n datetime.millisecondsFrom('minutes', raw.m) +\n datetime.millisecondsFrom('seconds', raw.s) +\n raw.ms,\n topPercent;\n\n topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\n return common.limit(topPercent, [0], [100]);\n};\n\n/**\n * Get Hourmarker viewmodel.\n * @param {Date} now - now\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel of hourmarker.\n */\nTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n var todaymarkerLeft = -1,\n viewModel;\n\n now = now || new TZDate();\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(now, date)) {\n todaymarkerLeft = grids[index] ? grids[index].left : 0;\n }\n });\n\n viewModel = {\n currentHours: now.getHours(),\n hourmarkerTop: this._getTopPercentByTime(now),\n hourmarkerText: datetime.format(now, 'HH:mm'),\n todaymarkerLeft: todaymarkerLeft\n };\n\n return viewModel;\n};\n\n/**\n * Get base viewModel.\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getBaseViewModel = function(grids, range) {\n var opt = this.options;\n var viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range);\n viewModel.hoursLabels = getHoursLabels(opt.hourStart, opt.hourEnd, viewModel.todaymarkerLeft >= 0);\n\n return viewModel;\n};\n\n/**\n * Reconcilation child views and render.\n * @param {object} viewModels Viewmodel\n * @param {object} grids grid information(width, left, day)\n * @param {HTMLElement} container Container element for each time view.\n */\nTimeGrid.prototype._renderChildren = function(viewModels, grids, container) {\n var self = this,\n options = this.options,\n childOption,\n child,\n isToday,\n today = datetime.format(new TZDate(), 'YYYYMMDD'),\n i = 0;\n\n // clear contents\n container.innerHTML = '';\n this.children.clear();\n\n // reconcilation of child views\n util.forEach(viewModels, function(schedules, ymd) {\n isToday = ymd === today;\n\n childOption = {\n index: i,\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n ymd: ymd,\n isToday: isToday,\n isPending: options.isPending,\n isFocused: options.isFocused,\n hourStart: options.hourStart,\n hourEnd: options.hourEnd\n };\n\n child = new Time(\n childOption,\n domutil.appendHTMLElement('div', container, config.classname('time-date'))\n );\n child.render(ymd, schedules);\n\n self.addChild(child);\n\n i += 1;\n });\n};\n\n/**\n * @override\n * @param {object} viewModel ViewModel list from Week view.\n */\nTimeGrid.prototype.render = function(viewModel) {\n var timeViewModel = viewModel.schedulesInDateRange.time,\n container = this.container,\n grids = viewModel.grids,\n range = viewModel.range,\n baseViewModel = this._getBaseViewModel(grids, range),\n scheduleLen = util.keys(timeViewModel).length;\n\n this._cacheParentViewModel = viewModel;\n\n if (!scheduleLen) {\n return;\n }\n\n baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\n container.innerHTML = mainTmpl(baseViewModel);\n\n /**********\n * Render children\n **********/\n this._renderChildren(\n timeViewModel,\n grids,\n domutil.find(config.classname('.timegrid-schedules-container'), container)\n );\n\n this._hourLabels = domutil.find('ul', container);\n\n /**********\n * Render hourmarker\n **********/\n this.hourmarker = domutil.find(config.classname('.timegrid-hourmarker'), container);\n\n if (!this._scrolled) {\n this._scrolled = true;\n this.scrollToNow();\n }\n};\n\n/**\n * Refresh hourmarker element.\n */\nTimeGrid.prototype.refreshHourmarker = function() {\n var hourmarker = this.hourmarker,\n grids = this._cacheParentViewModel ? this._cacheParentViewModel.grids : null,\n range = this._cacheParentViewModel ? this._cacheParentViewModel.range : null,\n viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range),\n todaymarker,\n hourmarkerText;\n\n if (!hourmarker || !viewModel) {\n return;\n }\n\n todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n hourmarkerText = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n\n reqAnimFrame.requestAnimFrame(function() {\n hourmarker.style.display = 'block';\n hourmarker.style.top = viewModel.hourmarkerTop + '%';\n todaymarker.style.display = (viewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n hourmarkerText.innerHTML = viewModel.hourmarkerText;\n });\n};\n\n/**\n * Attach events\n */\nTimeGrid.prototype.attachEvent = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n this.intervalID = this.timerID = null;\n\n this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n};\n\n/**\n * Scroll time grid to current hourmarker.\n */\nTimeGrid.prototype.scrollToNow = function() {\n var self = this,\n container = this.container;\n var offsetTop,\n viewBound,\n scrollTop,\n scrollAmount,\n scrollBy,\n scrollFn;\n\n if (!self.hourmarker) {\n return;\n }\n\n offsetTop = this.hourmarker.offsetTop;\n viewBound = this.getViewBound();\n scrollTop = offsetTop;\n scrollAmount = viewBound.height / 4;\n scrollBy = 10;\n\n scrollFn = function() {\n if (scrollTop > offsetTop - scrollAmount) {\n scrollTop -= scrollBy;\n container.scrollTop = scrollTop;\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n } else {\n container.scrollTop = offsetTop - scrollAmount;\n }\n };\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n};\n\n/**********\n * Schedule handlers\n **********/\n\n/**\n * Interval tick handler\n */\nTimeGrid.prototype.onTick = function() {\n if (this.timerID) {\n clearTimeout(this.timerID);\n this.timerID = null;\n }\n\n if (!this.intervalID) {\n this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n }\n this.refreshHourmarker();\n};\n\nmodule.exports = TimeGrid;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/timeGrid.js\n// module id = 105\n// module chunks = 0","/**\n * @fileoverview View of days UI.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\n\n/**\n * FullCalendar 에서는 날짜 정보만 사용(YYYY-MM-DD) 하고,\n * SplitTimeCalendar 에서는 타임존 정보까지 포함된 문자열을 사용하기 때문에 분기처리함.\n * @param {String} dateString - date string\n * @returns {TZDate}\n */\nfunction parseRangeDateString(dateString) {\n if (dateString.length === 10) {\n return datetime.parse(dateString);\n }\n\n return new TZDate(dateString);\n}\n\n/**\n * @constructor\n * @param {Base.Week} controller The controller mixin part.\n * @param {object} options View options\n * @param {string} [options.renderStartDate] Start date of render.\n * if not supplied then use -3d from today. YYYY-MM-DD format.\n * @param {string} [options.renderEndDate] End date of render.\n * if not supplied then use +3d from today. YYYY-MM-DD format.\n * @param {string} [options.cssPrefix] - CSS classname prefix\n * @param {HTMLElement} container The element to use container for this view.\n * @extends {View}\n */\nfunction Week(controller, options, container) {\n var range;\n\n container = domutil.appendHTMLElement('div', container);\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('week-container'));\n\n range = this._getRenderDateRange(new TZDate());\n\n /**\n * @type {object} Options for view.\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /**\n * Week controller mixin.\n * @type {Base.Week}\n */\n this.controller = controller;\n}\n\nutil.inherit(Week, View);\n\n/**********\n * Override props\n **********/\n\n/**\n * Render each child view with schedules in ranges.\n * @fires Week#afterRender\n * @override\n */\nWeek.prototype.render = function() {\n var options = this.options,\n scheduleFilter = options.scheduleFilter,\n narrowWeekend = options.narrowWeekend,\n startDayOfWeek = options.startDayOfWeek,\n workweek = options.workweek;\n var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\n renderStartDate = parseRangeDateString(options.renderStartDate);\n renderEndDate = parseRangeDateString(options.renderEndDate);\n\n range = datetime.range(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n datetime.MILLISECONDS_PER_DAY\n );\n\n if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n range = util.filter(range, function(date) {\n return !datetime.isWeekend(date.getDay());\n });\n\n renderStartDate = range[0];\n renderEndDate = range[range.length - 1];\n }\n\n schedulesInDateRange = this.controller.findByDateRange(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n scheduleFilter\n );\n\n grids = datetime.getGridLeftAndWidth(\n range.length,\n narrowWeekend,\n startDayOfWeek,\n workweek\n );\n\n viewModel = {\n schedulesInDateRange: schedulesInDateRange,\n renderStartDate: renderStartDate,\n renderEndDate: renderEndDate,\n grids: grids,\n range: range\n };\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n });\n\n /**\n * @event Week#afterRender\n */\n this.fire('afterRender');\n};\n\n/**********\n * Prototype props\n **********/\n\nWeek.prototype.viewName = 'week';\n\n/**\n * Calculate default render date range from supplied date.\n * @param {Date} baseDate base date.\n * @returns {object} date range.\n */\nWeek.prototype._getRenderDateRange = function(baseDate) {\n var base = datetime.start(baseDate),\n start = new TZDate(Number(base)),\n end = new TZDate(Number(base));\n\n start.setDate(start.getDate() - 3);\n end.setDate(end.getDate() + 3);\n\n return {\n start: start,\n end: end\n };\n};\n\nutil.CustomEvents.mixin(Week);\n\nmodule.exports = Week;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/week.js\n// module id = 106\n// module chunks = 0"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///tui-calendar.min.js","webpack:///webpack/bootstrap 739569ed3bd81592b156","webpack:///./src/index.js","webpack:///external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}","webpack:///./src/js/common/domutil.js","webpack:///./src/js/config.js","webpack:///./src/js/common/datetime.js","webpack:///./src/js/common/timezone.js","webpack:///./src/js/common/common.js","webpack:///./~/handlebars/runtime.js","webpack:///./src/js/view/view.js","webpack:///./src/js/common/domevent.js","webpack:///./~/handlebars/dist/cjs/handlebars/utils.js","webpack:///./src/js/common/reqAnimFrame.js","webpack:///./src/js/common/collection.js","webpack:///./~/handlebars/dist/cjs/handlebars/exception.js","webpack:///./src/js/common/array.js","webpack:///./src/js/common/dw.js","webpack:///./src/js/common/floatingLayer.js","webpack:///./src/js/handler/allday/core.js","webpack:///./src/js/handler/month/core.js","webpack:///./src/js/handler/time/core.js","webpack:///./src/js/model/schedule.js","webpack:///./~/handlebars-template-loader/runtime/index.js","webpack:///./~/handlebars/dist/cjs/handlebars/base.js","webpack:///./src/js/common/point.js","webpack:///./src/js/common/vlayout.js","webpack:///./src/js/handler/allday/move.js","webpack:///./src/js/handler/drag.js","webpack:///./src/js/handler/month/guide.js","webpack:///./src/js/model/viewModel/scheduleViewModel.js","webpack:///./src/js/view/week/weekdayInWeek.js","webpack:///./src/js/view/weekday.js","webpack:///./src/js/handler/month/guide.hbs","webpack:///./src/js/handler/month/moveGuide.hbs","webpack:///./src/js/view/month/month.hbs","webpack:///./src/js/view/month/more.hbs","webpack:///./src/js/view/month/weekdayInMonth.hbs","webpack:///./src/js/view/month/weekdayInMonthSchedule.hbs","webpack:///./src/js/view/template/week/allday.hbs","webpack:///./src/js/view/template/week/daynames.hbs","webpack:///./src/js/view/template/week/milestone.hbs","webpack:///./src/js/view/template/week/taskview.hbs","webpack:///./src/js/view/template/week/time.hbs","webpack:///./src/js/view/template/week/timeGrid.hbs","webpack:///./src/js/view/template/week/timeMoveGuide.hbs","webpack:///./src/js/view/week/weekdayInWeek.hbs","webpack:///./~/handlebars/dist/cjs/handlebars.runtime.js","webpack:///./~/handlebars/dist/cjs/handlebars/decorators.js","webpack:///./~/handlebars/dist/cjs/handlebars/decorators/inline.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/each.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/helper-missing.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/if.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/log.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/lookup.js","webpack:///./~/handlebars/dist/cjs/handlebars/helpers/with.js","webpack:///./~/handlebars/dist/cjs/handlebars/logger.js","webpack:///./~/handlebars/dist/cjs/handlebars/no-conflict.js","webpack:///./~/handlebars/dist/cjs/handlebars/runtime.js","webpack:///./~/handlebars/dist/cjs/handlebars/safe-string.js","webpack:///./src/js/common/autoScroll.js","webpack:///./src/js/common/dirty.js","webpack:///./src/js/common/model.js","webpack:///./src/js/common/vpanel.js","webpack:///./src/js/controller/base.js","webpack:///./src/js/controller/viewMixin/core.js","webpack:///./src/js/controller/viewMixin/month.js","webpack:///./src/js/controller/viewMixin/week.js","webpack:///./src/js/factory/calendar.js","webpack:///./src/js/factory/controller.js","webpack:///./src/js/factory/monthView.js","webpack:///./src/js/factory/weekView.js","webpack:///./src/js/handler/allday/click.js","webpack:///./src/js/handler/allday/creation.js","webpack:///./src/js/handler/allday/creationGuide.js","webpack:///./src/js/handler/allday/moveGuide.js","webpack:///./src/js/handler/allday/resize.js","webpack:///./src/js/handler/allday/resizeGuide.js","webpack:///./src/js/handler/milestone/click.js","webpack:///./src/js/handler/month/click.js","webpack:///./src/js/handler/month/creation.js","webpack:///./src/js/handler/month/creationGuide.js","webpack:///./src/js/handler/month/move.js","webpack:///./src/js/handler/month/moveGuide.js","webpack:///./src/js/handler/month/resize.js","webpack:///./src/js/handler/month/resizeGuide.js","webpack:///./src/js/handler/time/click.js","webpack:///./src/js/handler/time/clickDayname.js","webpack:///./src/js/handler/time/creation.js","webpack:///./src/js/handler/time/creationGuide.js","webpack:///./src/js/handler/time/move.js","webpack:///./src/js/handler/time/moveGuide.js","webpack:///./src/js/handler/time/resize.js","webpack:///./src/js/handler/time/resizeGuide.js","webpack:///./src/js/view/layout.js","webpack:///./src/js/view/month/month.js","webpack:///./src/js/view/month/more.js","webpack:///./src/js/view/month/weekdayInMonth.js","webpack:///./src/js/view/template/helper.js","webpack:///./src/js/view/week/allday.js","webpack:///./src/js/view/week/dayname.js","webpack:///./src/js/view/week/milestone.js","webpack:///./src/js/view/week/taskview.js","webpack:///./src/js/view/week/time.js","webpack:///./src/js/view/week/timeGrid.js","webpack:///./src/js/view/week/week.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_1__","modules","__webpack_require__","moduleId","installedModules","id","loaded","call","m","c","p","trim","str","replace","domutil","domevent","Collection","util","posKey","CSS_AUTO_REGEX","appendHTMLElement","tagName","container","className","el","document","createElement","appendChild","body","remove","parentNode","removeChild","get","getElementById","_matcher","selector","cssClassSelector","idSelector","test","hasClass","nodeName","toLowerCase","find","multiple","recurse","cursor","childNodes","i","len","length","isFilter","result","push","isFirst","found","isUndefined","isFunction","isString","window","closest","excludeEl","parent","text","ret","nodeType","textContent","firstChild","nextSibling","nodeValue","setData","key","data","dataset","setAttribute","getData","getAttribute","name","classList","getClass","RegExp","contains","addClass","setClass","forEachArray","split","value","add","baseVal","removeClass","removed","getStyle","style","css","currentStyle","defaultView","getComputedStyle","getPropertyValue","prop","re","arguments","toUpperCase","setPosition","x","y","left","isNumber","top","setLTRB","ltrb","props","forEach","getPosition","clear","bound","getBoundingClientRect","parseFloat","getSize","width","height","isNull","offsetWidth","offsetHeight","getBCRect","rect","extend","testProp","documentElement","getFormData","formElement","groupedByName","noDisabledFilter","disabled","output","apply","concat","groupBy","elements","each","type","checked","toArray","pop","opt","selected","map","userSelectProperty","supportSelectStart","prevSelectStyle","disableTextSelection","dom","on","preventDefault","enableTextSelection","off","disableImageDrag","enableImageDrag","cssPrefix","alldayGetViewID","alldayCheckPermission","timeGetViewID","config","throwError","msg","alert","classname","charAt","slice","allday","getViewIDRegExp","checkCondRegExp","time","global","datetime","tokenFunc","TZDate","Date","dw","dateFormatRx","memo","millisecondsTo","millisecondsFrom","YYYYMMDD","date","getFullYear","leadingZero","getMonth","getDate","join","YYYY","String","MM","DD","HH:mm","hour","getHours","minutes","getMinutes","MILLISECONDS_PER_DAY","MILLISECONDS_PER_HOUR","MILLISECONDS_PER_MINUTES","_convMilliseconds","iteratee","conv","index","day","seconds","isNaN","reduce","cache","v","range","start","end","step","startTime","getTime","endTime","d","addDate","clone","compare","d1","d2","_d1","_d2","isSameMonth","isSameDate","sameMonth","isValid","toUTC","l","offset","getTimezoneOffset","number","zero","parse","fixMonth","separator","ymd","hms","matches","match","indexOf","splice","substr","Number","raw","M","h","s","getSeconds","ms","getMilliseconds","setHours","format","forEachOwnProperties","converter","token","startDateOfMonth","startDate","setDate","endDateOfMonth","endDate","setMonth","arr2dCalendar","month","options","weekArr","startIndex","endIndex","totalDate","afterDates","week","calendar","startDayOfWeek","isAlways6Week","visibleWeeksCount","workweek","inArray","getDay","isWeekend","getGridLeftAndWidth","days","narrowWeekend","limitDaysToApplyNarrowWeekend","uniformWidth","wideWidth","accumulatedWidth","dates","filter","model","timestamp","now","MIN_TO_MS","getCustomTimezoneOffset","timezoneOffsetCallback","customOffsetMs","createDateWithMultipleArgs","args","utc","UTC","createDateWithSingleArg","arg","Error","_date","getterMethods","setterMethods","prototype","setTime","valueOf","methodName","setOffset","setOffsetCallback","callback","restoreOffset","scheduleIDGetter","schedule","cid","aps","Array","createScheduleCollection","initItems","collection","ratio","a","b","nearest","diff","Math","abs","nearestIndex","min","pick2","obj","paths","pick","val","then","fn","mixin","from","to","limit","minArr","maxArr","max","stripTags","firstIn2dArray","arr2d","lastIn2dArray","lastRow","lastCol","setAutoEllipsis","scrollWidth","View","stamp","cssprefix","children","view","addChild","items","render","childView","recursive","skipThis","resize","_onResize","_beforeDestroy","_destroy","innerHTML","destroy","isChildView","getViewBound","position","size","CustomEvents","browser","eventKey","DRAG","START","END","mousedown","touchstart","pointerdown","MSPointerDown","MOVE","types","context","_on","handler","originHandler","e","event","_checkMouse","addEventListener","attachEvent","_off","removeEventListener","detachEvent","keys","msie","version","once","onceHandler","self","isObject","stopPropagation","cancelBubble","returnValue","stop","disableScrollPropagation","disableClickPropagation","getMousePosition","mouseEvent","relativeElement","clientX","clientLeft","clientY","clientTop","getWheelDelta","delta","wheelDelta","detail","related","relatedTarget","err","trigger","eventData","rMouseEvent","exec","dispatchEvent","fireEvent","eventObj","evt","bubbles","cancelable","screenX","screenY","ctrlKey","altKey","shiftKey","metaKey","button","undefined","createEvent","initMouseEvent","createEventObject","propName","0","1","2","getMouseButton","primary","secondary","wheel","implementation","hasFeature","escapeChar","chr","escape","Object","hasOwnProperty","array","escapeExpression","string","toHTML","possible","badChars","isEmpty","isArray","createFrame","object","frame","_parent","blockParams","params","ids","path","appendContextPath","contextPath","__esModule","&","<",">","\"","'","`","=","toString","getPrefixed","requestFn","cancelFn","requestAnimationFrame","cancelAnimationFrame","requestAnimFrame","bind","cancelAnimFrame","getItemIDFn","isFunc","getItemID","forEachProp","forEachArr","isObj","and","filters","cnt","item","or","merge","collections","cols","newItems","merged","col","_id","ownItems","o","itemToRemove","has","isExisty","doWhenHas","groupFunc","baseValue","keyIsFunc","k","single","useFilter","sort","compareFunction","arr","Exception","message","node","loc","line","column","tmp","constructor","idx","errorProps","captureStackTrace","lineNumber","defineProperty","enumerable","nop","bsearch","search","currentIndex","comp","minIndex","maxIndex","stringASC","booleanASC","booleanDESC","numberASC","_a","_b","numberDESC","stringDESC","stringASCIgnoreCase","stringDESCIgnoreCase","scheduleASC","durationA","durationB","allDayCompare","startsCompare","modelA","modelB","isAllDay","hasMultiDates","getStarts","duration","asc","bool","desc","num","ascIgnoreCase","descIgnoreCase","DW","safe","addMonth","prevMonth","prevYear","isBetween","FloatingLayer","layerContainer","sibling","PROP_KEY","zIndex","getLargestZIndex","INIT_ZINDEX","display","inherit","isVisible","setSize","w","setContent","html","zIndexes","layer","focus","zIndexForShow","show","hide","getX","grids","grid","common","mmax","mmin","alldayCore","_retriveScheduleData","alldayView","datesInRange","containerWidth","mousePos","dragStartXIndex","weekdayView","getRenderDateRange","getRenderDateGrids","pos","mouseX","xIndex","relatedView","triggerEvent","getMousePosDate","monthView","relativeContainer","mfloor","weekCount","weeks","sizeX","dayCount","sizeY","weekColl","vLayout","panels","floor","Point","timeCore","_calcGridYIndex","baseMil","floored","timeView","viewHeight","viewTime","hourLength","hourEnd","hourStart","mouseY","n","gridY","timeY","nearestGridY","nearestGridTimeY","target","srcElement","originEvent","proto","method","Schedule","title","color","bgColor","borderColor","calendarId","category","dueDateClass","customStyle","isPending","isFocused","isReadOnly","dirty","SCHEDULE_CATEGORY","MILESTONE","TASK","ALLDAY","TIME","schema","required","dateRange","create","inst","init","setAllDayPeriod","setTimePeriod","substring","setMinutes","getEnds","equals","collidesWith","ownStarts","ownEnds","_interopRequireDefault","default","HandlebarsEnvironment","helpers","partials","decorators","_helpers","registerDefaultHelpers","_decorators","registerDefaultDecorators","_utils","_exception","_exception2","_logger","_logger2","VERSION","COMPILER_REVISION","REVISION_CHANGES","3","4","5","6","7","objectType","logger","log","registerHelper","unregisterHelper","registerPartial","partial","unregisterPartial","registerDecorator","unregisterDecorator","useRound","round","getRatio","point","factor","toFactor","multiplyBy","_divideBy","_add","subtract","_subtract","divideBy","_multiplyBy","_round","reverse","_reverse","_floor","ceil","_ceil","rotate","deg","center","cos","sin","_rotate","rad","PI","toFixed","distanceTo","sqrt","VLayout","tempHeights","panelHeights","_drag","Drag","distance","exclude","dragStart","_onDragStart","drag","_onDrag","dragEnd","_onDragEnd","_dragData","panelOpt","isSplitter","autoHeight","shift","addPanels","refresh","VPanel","mAbs","getLayoutData","heightList","panel","getHeight","setLayoutData","setHeight","nextPanel","prevPanel","_initializeGuideElement","element","cloned","cloneNode","_refreshGuideElement","_clearGuideElement","_resize","splPanel","startY","resizeInfo","diffY","resizedHeight","resizeMap","toDown","backwardMethod","forwardMethod","getResizeInfoByGrowth","pair","fire","_getMouseYAdditionalLimit","upper","below","func","minHeight","oEvent","splIndex","splHeight","splOffsetY","guideElement","minY","maxY","dragData","asideMinMax","layoutData","remainHeight","panelToFillHeight","layoutHeight","usedHeight","addPanel","frag","createDocumentFragment","option","getPanelByName","AlldayMove","dragHandler","baseController","_dragStart","guide","AlldayMoveGuide","AlldayCore","checkExpectedCondition","parentView","cssClass","dragStartEventData","scheduleBlockElement","modelID","targetModel","getScheduleDataFunc","scheduleData","controller","excludeTarget","schedules","click","_onClick","dragEventData","_updateSchedule","dateOffset","newStarts","newEnds","dragEndEventData","overrideEventName","skipUpdate","clickEventData","_onMouseDown","_cancelled","_isMoved","_distance","_dragStartFired","_dragStartEventData","_clearData","_toggleDragEvent","toBind","domMethod","mousemove","_onMouseMove","mouseup","_onMouseUp","_getEventData","mouseDownEvent","mouseMoveEvent","invoke","mouseUpEvent","MonthGuide","label","isResizeMode","isCreationMode","startCoord","guideElements","tmpl","mabs","clearGuideElement","_getRatioValueInWeek","_createGuideElement","_getGuideElement","_getCoordByDate","getIdxFromDiff","monthStart","renderStartDate","isBefore","dateDW","startDW","endDW","_getLimitedCoord","coord","toIndex","dragStartEvent","temp","parseInt","update","_updateGuides","inds","ind","exceedLClass","exceedRClass","exceedL","exceedR","_getOriginIndicate","mouseCoord","right","_getMouseIndicate","_getContainIndicate","_removeGuideElements","yCoords","guides","_getExcludesInRange","numbers","excludes","limitedCoord","renderedYIndex","yCoordsToUpdate","yCoordsToRemove","renderIndication","guideYCoord","indicate","ScheduleViewModel","hasCollide","extraSpace","hidden","renderStarts","exceedLeft","renderEnds","exceedRight","viewModel","WeekdayInWeek","aboutMe","Weekday","baseViewModel","viewType","getBaseViewModel","collapsed","collapseBtnIndex","marginLeft","_getMaxScheduleInDay","matrices","matrix","row","_getMinHeight","maxScheduleInDay","contentHeight","scheduleHeight","scheduleGutter","maxHeight","containerBottomGutter","_updateExceedDate","exceedDate","_excludeExceedSchedules","visibleScheduleCount","panelHeight","getViewModelFunc","forcedLayout","maxExpandCount","getExceedDate","schedulesInDateRange","scheduleContainerTop","floatingButtonTop","_calculateFloatingBtnTop","panelName","containerHeight","_cacheParentViewModel","today","gridWidth","scheduleBlockHeight","scheduleBlockGutter","isToday","hiddenSchedules","maxCount","eventsInDateRange","_initExceedDate","period","Handlebars","template","depth0","helper","CSS_PREFIX","helperMissing","nullContext","hash","stack1","alias1","alias2","alias3","alias4","unless","program","inverse","noop","compiler","main","useData","lambda","holiday","daynames","fi","alias5","8","10","12","14","isOtherMonth","renderLimitIdx","gridHeaderHeight","11","13","15","17","19","20","22","24","26","renderDate","cropped","9","hours","hourmarkerTop","hourmarkerText","todaymarkerLeft","hoursLabels","showHourMarker","multiply","16","18","25","27","28","30","31","_interopRequireWildcard","newObj","hb","base","Utils","SafeString","_handlebarsSafeString2","_handlebarsException2","VM","runtime","spec","_handlebarsBase","_handlebarsSafeString","_handlebarsException","_handlebarsUtils","_handlebarsRuntime","_handlebarsNoConflict","_handlebarsNoConflict2","instance","_decoratorsInline2","_decoratorsInline","original","_helpersBlockHelperMissing2","_helpersEach2","_helpersHelperMissing2","_helpersIf2","_helpersLog2","_helpersLookup2","_helpersWith2","_helpersBlockHelperMissing","_helpersEach","_helpersHelperMissing","_helpersIf","_helpersLog","_helpersLookup","_helpersWith","execIteration","field","last","first","j","priorKey","conditional","includeZero","level","methodMap","lookupLevel","levelMap","console","_len","_key","$Handlebars","noConflict","checkRevision","compilerInfo","compilerRevision","currentRevision","_base","runtimeVersions","compilerVersions","templateSpec","env","invokePartialWrapper","resolvePartial","invokePartial","compile","compilerOptions","indent","lines","depths","_setup","initData","useBlockParams","useDepths","executeDecorators","decorator","main_d","strict","lookup","current","programs","declaredBlockParams","programWrapper","wrapProgram","depth","param","seal","isTop","usePartial","useDecorators","_child","prog","currentDepths","currentPartialBlock","partialBlock","Function","AutoScroll","_direction","DIRECTION","INSIDE","_offset","_intervalID","SCROLL_INTERVAL","SCROLL_MAX","SCROLL_CLICK_INCREASED","TOP","RIGHT","BOTTOM","LEFT","clearInterval","_getEdgePositions","clientRect","bottom","getRealSize","border","padding","computed","clientWidth","clientHeight","hasScrollbar","realSize","isOnScrollbar","mouseInScrollbar","setInterval","_onTick","edge","direction","scrollTop","scrollLeft","existy","set","originValue","_changed","_dirty","isDirty","toDirty","deleteProp","isPropChanged","methodFilterR","wrap","flag","_flag","_name","_wrapper","_fn","flagToSet","_wrapped","spaceRx","validators","fields","valid","fieldName","validator","values","validatorName","parameterize","isHeightForcedSet","_initPanel","newHeight","force","growth","resizeTo","Base","dateMatrix","_getContainDatesInSchedule","createSchedule","silent","addSchedule","createSchedules","dataList","updateSchedule","origin","_removeFromMatrix","_addToMatrix","deleteSchedule","ownMatrix","containDates","splitScheduleByDateRange","scheduleCollection","findByDateRange","viewModels","ownSchedules","dformat","clearSchedules","Core","getCollisionGroup","previousScheduleList","collisionGroups","foundPrevCollisionSchedule","previous","group","getLastRowInColumn","getMatrices","scheduleID","nextRow","lastRowInColumn","getScheduleInDateRangeFilter","positionViewModels","ymdListToRender","dateLength","limitRenderRange","viewModelColl","convertToViewModel","modelColl","Month","_onlyTimeFilter","_onlyAlldayFilter","_weightTopValue","_adjustRenderRange","vColl","ctrlCore","_getAlldayMaxTopIndexAtYMD","vAlldayColl","topIndexesInDate","_adjustTimeTopIndex","ctrlMonth","getAlldayMaxTopIndexAtYMD","sortedTimeSchedules","maxIndexInYMD","timeViewModel","scheduleYMD","alldayMaxTopInYMD","_stackTimeFromTop","indiceInYMD","maxTopInYMD","topArrayInYMD","_addMultiDatesInfo","andFilters","alldayFirstMode","coll","vList","collisionGroup","Week","generateTimeArrayInRow","maxColLen","startStart","startEnd","endStart","endEnd","getFunc","block","getCollides","binaryMap","maxRowLength","getViewModelForTimeView","ymdSplitted","getViewModelForAlldayView","ctrlWeek","task","Calendar","querySelector","calendarColor","taskView","scheduleView","defaultDate","scheduleFilter","Boolean","renderRange","createController","layout","Layout","viewName","prevViewName","refreshMethod","scrollToNowMethod","initialize","controllerFactory","weekViewFactory","monthViewFactory","timezone","createWeekView","createMonthView","toggleView","calColor","getSchedule","ctrl","setOptionRecurseively","getWeekDayRange","msFrom","isDate","weekday","_toggleSchedulesByCalendarID","toHide","scrollToNow","refreshChildView","_setViewName","move","tempDate","datetimeOptions","getCurrentView","recursiveSet","renderMonth","renderEndDate","next","prev","setCalendarColor","ownColor","showSchedulesByCalendarID","hideSchedulesByCalendarID","clickScheduleData","_onClickDayname","_onBeforeCreate","createScheduleData","_onBeforeUpdate","updateScheduleData","_onResizePanel","resizeScheduleData","_toggleViewSchedule","isAttach","isMonthView","clickHandler","dayname","creation","creationHandler","moveHandler","resizeHandler","newViewName","created","toggleTaskView","enabled","toggleScheduleView","getElement","scheduleId","setTimezoneOffset","setTimezoneOffsetCallback","propertyName","ymdRange","originQuery","groupedByYMD","getViewModelForMoreLayer","layoutContainer","monthViewContainer","moreView","clearSchedulesHandler","onUpdateSchedule","More","MonthClick","MonthCreation","MonthResize","MonthMove","clickMoreSchedule","reqAnimFrame","DayName","TimeGrid","Allday","Milestone","TaskView","AlldayClick","AlldayCreation","AlldayResize","DayNameClick","TimeClick","TimeCreation","TimeMove","TimeResize","MilestoneClick","DEFAULT_VIEW_SEQUENCE","DEFAULT_VIEWS","Task","AllDay","weekView","dayNameContainer","dayNameView","vLayoutContainer","milestoneView","timeGridView","alldayPanel","viewSequence","views","isAllDayPanelFirstRender","milestone","getExpandMaxHeight","prevMaxHeight","weekViewHeight","daynameViewHeight","checkExpectCondition","clickEvent","blockElement","scheduleElement","collapseElement","_onClickMoreElement","moreElement","AlldayCreationGuide","_requestOnClick","_onDblClick","CLICK_DELAY","schedulesElement","_createSchedule","startXIndex","triggerEventName","setTimeout","alldayCreation","scheduleContainer","initializeGuideElement","alldayCreationDragstart","alldayCreationDrag","alldayCreationClick","_getGuideWidth","dragStartIndex","dragEndIndex","defer","setStyle","leftPercent","widthPercent","dragEndXIndex","alldayContainerElement","alldayMove","_dragStartXIndex","alldayMoveDragstart","alldayMoveDrag","alldayMoveDragend","alldayMoveClick","getScheduleBlockWidth","_showOriginScheduleBlocks","_hideOriginScheduleBlocks","scheduleBlocks","_highlightScheduleBlocks","margin","backgroundColor","borderLeftColor","refreshGuideElement","isExceededLeft","isExceededRight","_getScheduleBlockDataFunc","baseWidthPercent","originScheduleStarts","originScheduleEnds","fromLeft","fromRight","indexOffset","alldayViewContainer","originLength","leftIndex","newLeft","newWidth","AlldayResizeGuide","alldayResize","alldayResizeDragstart","alldayResizeDrag","alldayResizeDragend","alldayResizeClick","getGuideElementWidthFunc","viewOptions","getScheduleData","_cache","Guide","isElementWeekdayGrid","dragEvent","dragEndEvent","times","_adjustStartAndEndTime","MonthCreationGuide","monthCreation","monthCreationDragstart","monthCreationDrag","monthCreationDragend","monthCreationClick","MonthMoveGuide","getMousePosData","scheduleCache","startDateRaw","dragEndTime","newStartDate","getMonthScheduleBlock","blockSelector","getMoreLayerScheduleBlock","hasPermissionToHandle","monthMove","monthMoveDragstart","monthMoveDrag","monthMoveDragend","_clearGridBgColor","_getHighlightColorModel","beforeGridElement","_updateGridBgColor","gridElements","targetIndex","firstWeekdayView","weekdayOptions","MonthResizeGuide","newEnd","monthResize","monthResizeDragstart","monthResizeDrag","monthResizeDragend","_hideScheduleBlocks","_showScheduleBlocks","schedulesCollection","daynameView","TimeCreationGuide","_getScheduleDataFunc","revise","baseDate","dateStart","dateEnd","createRange","reviseFunc","condResult","timeCreation","guideTimeElement","_styleUnit","_styleStart","_styleFunc","timeCreationDragstart","timeCreationDrag","timeCreationClick","MIN30","timeElement","bottomLabel","_getUnitData","viewOpt","todayStart","todayEnd","_limitStyleData","unitData","_getStyleDataFunc","getStyleData","gridTimeY","styleFunc","styleData","heightOfHalfHour","endStyle","startStyle","_guide","TimeMoveGuide","_getTimeView","targetModelID","currentView","scheduleDuration","nearestRange","timeDiff","dateDiff","timeMove","_guideLayer","_model","_lastDrag","_container","_getTopFunc","_startGridY","_startTopPixel","timeMoveDragstart","timeMoveDrag","timeMoveDragend","timeMoveClick","_resetGuideLayer","bottomLimit","guideHeight","gridYOffset","gridYOffsetPixel","TimeResizeGuide","startScheduleData","timeResize","_originScheduleElement","_startHeightPixel","timeResizeDragstart","timeResizeDrag","timeResizeDragend","timeResizeClick","originElement","guideTop","toggleChildView","prefix","header","footer","WeekdayInMonth","_getMonthCalendar","renderMonthStr","_renderChildren","heightPercent","gridOption","weekdayViewContainer","daynameViewModel","daynameModel","_viewModel","moreLayerSize","OUT_PADDING","moreLayer","_getRenderPosition","weekItem","containerSize","optMoreLayerSize","parentElement","lastElementChild","debounce","setIsOtherMonthFlag","dateObj","baseTmpl","scheduleTmpl","_getRenderLimitIndex","count","gridFooterHeight","contentStr","getElSize","postfix","getElLeft","getElWidth","equal","oper","hhmm","common-width","grid-left","grid-width","time-scheduleBlock","month-scheduleBlock","blockHeight","paddingTop","divide","milestone-tmpl","milestoneTitle-tmpl","task-tmpl","taskTitle-tmpl","alldayTitle-tmpl","alldayCollapseBtnTitle-tmpl","allday-tmpl","time-tmpl","monthMoreTitleDate-tmpl","monthMoreClose-tmpl","monthGridHeader-tmpl","monthGridHeaderExceed-tmpl","monthGridFooter-tmpl","monthGridFooterExceed-tmpl","weekDayname-tmpl","dayName","monthDayname-tmpl","weekGridFooterExceed-tmpl","alldayViewType","weekdayViewModel","daynameTmpl","_getBaseViewModel","ITEM_HEIGHT","LIST_PADDING_TOP","viewModelSchedules","Time","pending","defaultMarginBottom","timeTmpl","_parseDateGroup","getScheduleViewBound","offsetStart","baseMS","baseHeight","baseWidth","baseLeft","columnIndex","leftPercents","viewBound","getHoursLabels","hasHourMarker","nowMinutes","nowHours","hoursRange","nowAroundHours","safari","_autoScroll","intervalID","timerID","_scrolled","mainTmpl","HOURMARKER_REFRESH_INTERVAL","SIXTY_SECONDS","clearTimeout","hourmarker","_getTopPercentByTime","topPercent","maxMilliseconds","hmsMilliseconds","_getHourmarkerViewModel","currentHours","childOption","child","scheduleLen","_hourLabels","refreshHourmarker","todaymarker","onTick","offsetTop","scrollAmount","scrollBy","scrollFn","parseRangeDateString","dateString","_getRenderDateRange"],"mappings":";;;;;;CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,qBACA,kBAAAC,gBAAAC,IACAD,QAAA,oBAAAJ,GACA,gBAAAC,SACAA,QAAA,SAAAD,EAAAG,QAAA,sBAEAJ,EAAA,IAAAA,EAAA,QAAiCA,EAAA,aAAAC,EAAAD,EAAA,KAAAA,EAAA,YAChCO,KAAA,SAAAC,GACD,MCMgB,UAAUC,GCZ1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAT,OAGA,IAAAC,GAAAS,EAAAD,IACAT,WACAW,GAAAF,EACAG,QAAA,EAUA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AAtC,GAAAuE,OAAAiyB,GAKA,OAHAn0B,GAAAiD,QAAAjD,EAAAzB,UAAA,GACA0B,EAAAgD,QAAAhD,EAAA1B,UAAA,IAGAyB,QACAC,QAIAnM,EAAAsW,aAAApC,MAAAw6B,GAEAhwC,EAAAD,QAAAiwC","file":"tui-calendar.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"tui-code-snippet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"tui-code-snippet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Calendar\"] = factory(require(\"tui-code-snippet\"));\n\telse\n\t\troot[\"tui\"] = root[\"tui\"] || {}, root[\"tui\"][\"Calendar\"] = factory(root[\"tui\"][\"util\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","/*!\n * tui-calendar.min\n * @version 0.9.4 | Thu Mar 29 2018\n * @author NHNEnt FE Development Lab \n * @license undefined\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"tui-code-snippet\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"tui-code-snippet\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Calendar\"] = factory(require(\"tui-code-snippet\"));\n\telse\n\t\troot[\"tui\"] = root[\"tui\"] || {}, root[\"tui\"][\"Calendar\"] = factory((root[\"tui\"] && root[\"tui\"][\"util\"]));\n})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/dist\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview The entry file of fullcalendar\n\t * @author NHN Ent. FE Development Team\n\t */\n\t\n\t'use strict';\n\t\n\t__webpack_require__(31);\n\t__webpack_require__(99);\n\t\n\tmodule.exports = __webpack_require__(69);\n\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\tmodule.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n\t/**\n\t * @fileoverview Utility modules for manipulate DOM elements.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar domevent = __webpack_require__(9);\n\tvar Collection = __webpack_require__(12);\n\tvar util = __webpack_require__(1);\n\t\n\tvar posKey = '_pos',\n\t domutil;\n\t\n\tvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\t\n\t/**\n\t * Trim leading, trailing whitespace\n\t * @param {string} str - string to trim\n\t * @returns {string} trimmed string\n\t */\n\tfunction trim(str) {\n\t return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n\t}\n\t\n\tdomutil = {\n\t /**\n\t * Create DOM element and return it.\n\t * @param {string} tagName Tag name to append.\n\t * @param {HTMLElement} [container] HTML element will be parent to created element.\n\t * if not supplied, will use **document.body**\n\t * @param {string} [className] Design class names to appling created element.\n\t * @returns {HTMLElement} HTML element created.\n\t */\n\t appendHTMLElement: function(tagName, container, className) {\n\t var el;\n\t\n\t className = className || '';\n\t\n\t el = document.createElement(tagName);\n\t el.className = className;\n\t\n\t if (container) {\n\t container.appendChild(el);\n\t } else {\n\t document.body.appendChild(el);\n\t }\n\t\n\t return el;\n\t },\n\t\n\t /**\n\t * Remove element from parent node.\n\t * @param {HTMLElement} el - element to remove.\n\t */\n\t remove: function(el) {\n\t if (el && el.parentNode) {\n\t el.parentNode.removeChild(el);\n\t }\n\t },\n\t\n\t /**\n\t * Get element by id\n\t * @param {string} id element id attribute\n\t * @returns {HTMLElement} element\n\t */\n\t get: function(id) {\n\t return document.getElementById(id);\n\t },\n\t\n\t /**\n\t * Check supplied element is matched selector.\n\t * @param {HTMLElement} el - element to check\n\t * @param {string} selector - selector string to check\n\t * @returns {boolean} match?\n\t */\n\t _matcher: function(el, selector) {\n\t var cssClassSelector = /^\\./,\n\t idSelector = /^#/;\n\t\n\t if (cssClassSelector.test(selector)) {\n\t return domutil.hasClass(el, selector.replace('.', ''));\n\t }\n\t if (idSelector.test(selector)) {\n\t return el.id === selector.replace('#', '');\n\t }\n\t\n\t return el.nodeName.toLowerCase() === selector.toLowerCase();\n\t },\n\t\n\t /**\n\t * Find DOM element by specific selectors.\n\t * below three selector only supported.\n\t *\n\t * 1. css selector\n\t * 2. id selector\n\t * 3. nodeName selector\n\t * @param {string} selector selector\n\t * @param {(HTMLElement|string)} [root] You can assign root element to find\n\t * if not supplied, document.body will use.\n\t * @param {boolean|function} [multiple=false] - set true then return all\n\t * elements that meet condition, if set function then use it filter function.\n\t * @returns {HTMLElement} HTML element finded.\n\t */\n\t find: function(selector, root, multiple) {\n\t var result = [],\n\t found = false,\n\t isFirst = util.isUndefined(multiple) || multiple === false,\n\t isFilter = util.isFunction(multiple);\n\t\n\t if (util.isString(root)) {\n\t root = domutil.get(root);\n\t }\n\t\n\t root = root || window.document.body;\n\t\n\t /**\n\t * Function for recursive find specific node\n\t * @param {HTMLElement} el - element to search\n\t * @param {string} selector - selector\n\t */\n\t function recurse(el, selector) {\n\t var childNodes = el.childNodes,\n\t i = 0,\n\t len = childNodes.length,\n\t cursor;\n\t\n\t for (; i < len; i += 1) {\n\t cursor = childNodes[i];\n\t\n\t if (cursor.nodeName === '#text') {\n\t continue;\n\t }\n\t\n\t if (domutil._matcher(cursor, selector)) {\n\t if ((isFilter && multiple(cursor)) || !isFilter) {\n\t result.push(cursor);\n\t }\n\t\n\t if (isFirst) {\n\t found = true;\n\t break;\n\t }\n\t } else if (cursor.childNodes.length > 0) {\n\t recurse(cursor, selector);\n\t if (found) {\n\t break;\n\t }\n\t }\n\t }\n\t }\n\t\n\t recurse(root, selector);\n\t\n\t return isFirst ? (result[0] || null) : result;\n\t },\n\t\n\t /**\n\t * Find parent element recursively.\n\t * @param {HTMLElement} el - base element to start find.\n\t * @param {string} selector - selector string for find\n\t * @param {boolean} excludeEl - exclude the base element to find\n\t * @returns {HTMLElement} - element finded or null.\n\t */\n\t closest: function(el, selector, excludeEl) {\n\t var parent = el.parentNode;\n\t\n\t if (!excludeEl && domutil._matcher(el, selector)) {\n\t return el;\n\t }\n\t\n\t while (parent && parent !== window.document.body) {\n\t if (domutil._matcher(parent, selector)) {\n\t return parent;\n\t }\n\t\n\t parent = parent.parentNode;\n\t }\n\t\n\t return null;\n\t },\n\t\n\t /**\n\t * Return texts inside element.\n\t * @param {HTMLElement} el target element\n\t * @returns {string} text inside node\n\t */\n\t text: function(el) {\n\t var ret = '',\n\t i = 0,\n\t nodeType = el.nodeType;\n\t\n\t if (nodeType) {\n\t if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n\t // nodes that available contain other nodes\n\t if (typeof el.textContent === 'string') {\n\t return el.textContent;\n\t }\n\t\n\t for (el = el.firstChild; el; el = el.nextSibling) {\n\t ret += domutil.text(el);\n\t }\n\t } else if (nodeType === 3 || nodeType === 4) {\n\t // TEXT, CDATA SECTION\n\t return el.nodeValue;\n\t }\n\t } else {\n\t for (; el[i]; i += 1) {\n\t ret += domutil.text(el[i]);\n\t }\n\t }\n\t\n\t return ret;\n\t },\n\t\n\t /**\n\t * Set data attribute to target element\n\t * @param {HTMLElement} el - element to set data attribute\n\t * @param {string} key - key\n\t * @param {string|number} data - data value\n\t */\n\t setData: function(el, key, data) {\n\t if ('dataset' in el) {\n\t el.dataset[key] = data;\n\t\n\t return;\n\t }\n\t\n\t el.setAttribute('data-' + key, data);\n\t },\n\t\n\t /**\n\t * Get data value from data-attribute\n\t * @param {HTMLElement} el - target element\n\t * @param {string} key - key\n\t * @returns {string} value\n\t */\n\t getData: function(el, key) {\n\t if ('dataset' in el) {\n\t return el.dataset[key];\n\t }\n\t\n\t return el.getAttribute('data-' + key);\n\t },\n\t\n\t /**\n\t * Check element has specific design class name.\n\t * @param {HTMLElement} el target element\n\t * @param {string} name css class\n\t * @returns {boolean} return true when element has that css class name\n\t */\n\t hasClass: function(el, name) {\n\t var className;\n\t\n\t if (!util.isUndefined(el.classList)) {\n\t return el.classList.contains(name);\n\t }\n\t\n\t className = domutil.getClass(el);\n\t\n\t return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n\t },\n\t\n\t /**\n\t * Add design class to HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {string} name css class name\n\t */\n\t addClass: function(el, name) {\n\t var className;\n\t\n\t if (!util.isUndefined(el.classList)) {\n\t util.forEachArray(name.split(' '), function(value) {\n\t el.classList.add(value);\n\t });\n\t } else if (!domutil.hasClass(el, name)) {\n\t className = domutil.getClass(el);\n\t domutil.setClass(el, (className ? className + ' ' : '') + name);\n\t }\n\t },\n\t\n\t /**\n\t *\n\t * Overwrite design class to HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {string} name css class name\n\t */\n\t setClass: function(el, name) {\n\t if (util.isUndefined(el.className.baseVal)) {\n\t el.className = name;\n\t } else {\n\t el.className.baseVal = name;\n\t }\n\t },\n\t\n\t /**\n\t * Element에 cssClass속성을 제거하는 메서드\n\t * Remove specific design class from HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {string} name class name to remove\n\t */\n\t removeClass: function(el, name) {\n\t var removed = '';\n\t\n\t if (!util.isUndefined(el.classList)) {\n\t el.classList.remove(name);\n\t } else {\n\t removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n\t domutil.setClass(el, trim(removed));\n\t }\n\t },\n\t\n\t /**\n\t * Get HTML element's design classes.\n\t * @param {HTMLElement} el target element\n\t * @returns {string} element css class name\n\t */\n\t getClass: function(el) {\n\t if (!el || !el.className) {\n\t return '';\n\t }\n\t\n\t return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n\t },\n\t\n\t /**\n\t * Get specific CSS style value from HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {string} style css attribute name\n\t * @returns {(string|null)} css style value\n\t */\n\t getStyle: function(el, style) {\n\t var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n\t css;\n\t\n\t if ((!value || value === 'auto') && document.defaultView) {\n\t css = document.defaultView.getComputedStyle(el, null);\n\t value = css ? css[style] : null;\n\t }\n\t\n\t return value === 'auto' ? null : value;\n\t },\n\t\n\t /**\n\t * get element's computed style values.\n\t *\n\t * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n\t * @param {HTMLElement} el - element want to get style.\n\t * @returns {object} virtual CSSStyleDeclaration object.\n\t */\n\t getComputedStyle: function(el) {\n\t var defaultView = document.defaultView;\n\t\n\t if (!defaultView || !defaultView.getComputedStyle) {\n\t return {\n\t getPropertyValue: function(prop) {\n\t /* eslint-disable no-useless-escape */\n\t var re = /(\\-([a-z]){1})/g;\n\t if (prop === 'float') {\n\t prop = 'styleFloat';\n\t }\n\t\n\t if (re.test(prop)) {\n\t prop = prop.replace(re, function() {\n\t return arguments[2].toUpperCase();\n\t });\n\t }\n\t\n\t return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n\t }\n\t };\n\t }\n\t\n\t return document.defaultView.getComputedStyle(el);\n\t },\n\t\n\t /**\n\t * Set position CSS style.\n\t * @param {HTMLElement} el target element\n\t * @param {number} [x=0] left pixel value.\n\t * @param {number} [y=0] top pixel value.\n\t */\n\t setPosition: function(el, x, y) {\n\t x = util.isUndefined(x) ? 0 : x;\n\t y = util.isUndefined(y) ? 0 : y;\n\t\n\t el[posKey] = [x, y];\n\t\n\t el.style.left = util.isNumber(x) ? (x + 'px') : x;\n\t el.style.top = util.isNumber(y) ? (y + 'px') : y;\n\t },\n\t\n\t /**\n\t * Set position CSS style with left, top, right, bottom\n\t * @param {HTMLElement} el target element\n\t * @param {object} ltrb object of left, top, right, bottom\n\t * @param {number} [ltrb.left] left pixel value.\n\t * @param {number} [ltrb.top] top pixel value.\n\t * @param {number} [ltrb.right] right pixel value.\n\t * @param {number} [ltrb.bottom] bottom pixel value.\n\t */\n\t setLTRB: function(el, ltrb) {\n\t var props = ['left', 'top', 'right', 'bottom'];\n\t var value;\n\t props.forEach(function(prop) {\n\t value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n\t el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n\t });\n\t },\n\t\n\t /**\n\t * Get position from HTML element.\n\t * @param {HTMLElement} el target element\n\t * @param {boolean} [clear=false] clear cache before calculating position.\n\t * @returns {number[]} point\n\t */\n\t getPosition: function(el, clear) {\n\t var left,\n\t top,\n\t bound;\n\t\n\t if (clear) {\n\t el[posKey] = null;\n\t }\n\t\n\t if (el[posKey]) {\n\t return el[posKey];\n\t }\n\t\n\t left = 0;\n\t top = 0;\n\t\n\t if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n\t 'getBoundingClientRect' in el) {\n\t // 엘리먼트의 left또는 top이 'auto'일 때 수단\n\t bound = el.getBoundingClientRect();\n\t\n\t left = bound.left;\n\t top = bound.top;\n\t } else {\n\t left = parseFloat(el.style.left || 0);\n\t top = parseFloat(el.style.top || 0);\n\t }\n\t\n\t return [left, top];\n\t },\n\t\n\t /**\n\t * Return element's size\n\t * @param {HTMLElement} el target element\n\t * @returns {number[]} width, height\n\t */\n\t getSize: function(el) {\n\t var bound,\n\t width = domutil.getStyle(el, 'width'),\n\t height = domutil.getStyle(el, 'height');\n\t\n\t if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n\t util.isNull(width) || util.isNull(height)) &&\n\t 'getBoundingClientRect' in el) {\n\t bound = el.getBoundingClientRect();\n\t width = bound.width || el.offsetWidth;\n\t height = bound.height || el.offsetHeight;\n\t } else {\n\t width = parseFloat(width || 0);\n\t height = parseFloat(height || 0);\n\t }\n\t\n\t return [width, height];\n\t },\n\t\n\t /**\n\t * Fallback of getBoundingClientRect\n\t * @param {HTMLElement} el - element\n\t * @returns {object} rect\n\t */\n\t getBCRect: function(el) {\n\t var rect = el.getBoundingClientRect();\n\t\n\t rect = util.extend({\n\t width: el.offsetWidth,\n\t height: el.offsetHeight\n\t }, rect);\n\t\n\t return rect;\n\t },\n\t\n\t /**\n\t * Check specific CSS style is available.\n\t * @param {array} props property name to testing\n\t * @returns {(string|boolean)} return true when property is available\n\t * @example\n\t * var props = ['transform', '-webkit-transform'];\n\t * domutil.testProp(props); // 'transform'\n\t */\n\t testProp: function(props) {\n\t var style = document.documentElement.style,\n\t i = 0,\n\t len = props.length;\n\t\n\t for (; i < len; i += 1) {\n\t if (props[i] in style) {\n\t return props[i];\n\t }\n\t }\n\t\n\t return false;\n\t },\n\t\n\t /**\n\t * Get form data\n\t * @param {HTMLFormElement} formElement - form element to extract data\n\t * @returns {object} form data\n\t */\n\t getFormData: function(formElement) {\n\t var groupedByName = new Collection(function() {\n\t return this.length;\n\t }),\n\t noDisabledFilter = function(el) {\n\t return !el.disabled;\n\t },\n\t output = {};\n\t\n\t groupedByName.add.apply(\n\t groupedByName,\n\t domutil.find('input', formElement, noDisabledFilter)\n\t .concat(domutil.find('select', formElement, noDisabledFilter))\n\t .concat(domutil.find('textarea', formElement, noDisabledFilter))\n\t );\n\t\n\t groupedByName = groupedByName.groupBy(function(el) {\n\t return (el && el.getAttribute('name')) || '_other';\n\t });\n\t\n\t util.forEach(groupedByName, function(elements, name) {\n\t if (name === '_other') {\n\t return;\n\t }\n\t\n\t elements.each(function(el) {\n\t var nodeName = el.nodeName.toLowerCase(),\n\t type = el.type,\n\t result = [];\n\t\n\t if (type === 'radio') {\n\t result = [elements.find(function(el) {\n\t return el.checked;\n\t }).toArray().pop()];\n\t } else if (type === 'checkbox') {\n\t result = elements.find(function(el) {\n\t return el.checked;\n\t }).toArray();\n\t } else if (nodeName === 'select') {\n\t elements.find(function(el) {\n\t return !!el.childNodes.length;\n\t }).each(function(el) {\n\t result = result.concat(\n\t domutil.find('option', el, function(opt) {\n\t return opt.selected;\n\t })\n\t );\n\t });\n\t } else {\n\t result = elements.find(function(el) {\n\t return el.value !== '';\n\t }).toArray();\n\t }\n\t\n\t result = util.map(result, function(el) {\n\t return el.value;\n\t });\n\t\n\t if (!result.length) {\n\t result = '';\n\t } else if (result.length === 1) {\n\t result = result[0];\n\t }\n\t\n\t output[name] = result;\n\t });\n\t });\n\t\n\t return output;\n\t }\n\t};\n\t\n\t/*eslint-disable*/\n\tvar userSelectProperty = domutil.testProp([\n\t 'userSelect',\n\t 'WebkitUserSelect',\n\t 'OUserSelect',\n\t 'MozUserSelect',\n\t 'msUserSelect'\n\t]);\n\tvar supportSelectStart = 'onselectstart' in document;\n\tvar prevSelectStyle = '';\n\t/* eslint-enable*/\n\t\n\t/**\n\t * Disable browser's text selection behaviors.\n\t * @method\n\t */\n\tdomutil.disableTextSelection = (function() {\n\t if (supportSelectStart) {\n\t return function(dom) {\n\t domevent.on(dom, 'selectstart', domevent.preventDefault);\n\t };\n\t }\n\t\n\t return function(dom) {\n\t var style = dom.style;\n\t prevSelectStyle = style[userSelectProperty];\n\t style[userSelectProperty] = 'none';\n\t };\n\t})();\n\t\n\t/**\n\t * Enable browser's text selection behaviors.\n\t * @method\n\t */\n\tdomutil.enableTextSelection = (function() {\n\t if (supportSelectStart) {\n\t return function() {\n\t domevent.off(window, 'selectstart', domevent.preventDefault);\n\t };\n\t }\n\t\n\t return function() {\n\t document.documentElement.style[userSelectProperty] = prevSelectStyle;\n\t };\n\t})();\n\t\n\t/**\n\t * Disable browser's image drag behaviors.\n\t */\n\tdomutil.disableImageDrag = function() {\n\t domevent.on(window, 'dragstart', domevent.preventDefault);\n\t};\n\t\n\t/**\n\t * Enable browser's image drag behaviors.\n\t */\n\tdomutil.enableImageDrag = function() {\n\t domevent.off(window, 'dragstart', domevent.preventDefault);\n\t};\n\t\n\tmodule.exports = domutil;\n\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar cssPrefix = 'tui-full-calendar-',\n\t alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n\t alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n\t timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\t\n\tvar config = {\n\t throwError: function(msg) {\n\t alert(msg);\n\t },\n\t\n\t cssPrefix: cssPrefix,\n\t\n\t classname: function(str) {\n\t str = str || '';\n\t\n\t if (str.charAt(0) === '.') {\n\t return '.' + config.cssPrefix + str.slice(1);\n\t }\n\t\n\t return config.cssPrefix + str;\n\t },\n\t\n\t allday: {\n\t getViewIDRegExp: alldayGetViewID,\n\t checkCondRegExp: alldayCheckPermission\n\t },\n\t\n\t time: {\n\t getViewIDRegExp: timeGetViewID\n\t }\n\t};\n\t\n\tmodule.exports = config;\n\t\n\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview datetime utility module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar TZDate = __webpack_require__(5).Date,\n\t dw = __webpack_require__(15);\n\tvar util = __webpack_require__(1);\n\t/* eslint-disable no-useless-escape */\n\tvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\n\tvar datetime, tokenFunc;\n\t\n\tvar memo = {\n\t millisecondsTo: {},\n\t millisecondsFrom: {}\n\t};\n\t\n\ttokenFunc = {\n\t /**\n\t * @param {TZDate} date date object.\n\t * @returns {string} YYYYMMDD\n\t */\n\t 'YYYYMMDD': function(date) {\n\t return [\n\t date.getFullYear(),\n\t datetime.leadingZero(date.getMonth() + 1, 2),\n\t datetime.leadingZero(date.getDate(), 2)\n\t ].join('');\n\t },\n\t /**\n\t * @param {TZDate} date date object\n\t * @returns {string} four digit year number\n\t */\n\t 'YYYY': function(date) {\n\t return String(date.getFullYear());\n\t },\n\t\n\t /**\n\t * @param {TZDate} date date object\n\t * @returns {string} two digit month number\n\t */\n\t 'MM': function(date) {\n\t return datetime.leadingZero(date.getMonth() + 1, 2);\n\t },\n\t\n\t /**\n\t * @param {TZDate} date date object\n\t * @returns {string} two digit date number\n\t */\n\t 'DD': function(date) {\n\t return datetime.leadingZero(date.getDate(), 2);\n\t },\n\t\n\t /**\n\t * @param {TZDate} date date object\n\t * @returns {string} HH:mm\n\t */\n\t 'HH:mm': function(date) {\n\t var hour = date.getHours(),\n\t minutes = date.getMinutes();\n\t\n\t return datetime.leadingZero(hour, 2) + ':' +\n\t datetime.leadingZero(minutes, 2);\n\t }\n\t};\n\t\n\tdatetime = {\n\t /**\n\t * The number of milliseconds one day.\n\t * @type {number}\n\t */\n\t MILLISECONDS_PER_DAY: 86400000,\n\t\n\t /**\n\t * The number of milliseconds one hour.\n\t * @type {number}\n\t */\n\t MILLISECONDS_PER_HOUR: 3600000,\n\t\n\t /**\n\t * The number of milliseconds one minutes.\n\t * @type {number}\n\t */\n\t MILLISECONDS_PER_MINUTES: 60000,\n\t\n\t /**\n\t * convert milliseconds\n\t * @param {string} type - type of value.\n\t * @param {number} value - value to convert.\n\t * @param {function} iteratee - iteratee function to use reduce.\n\t * @returns {number} converted value.\n\t */\n\t _convMilliseconds: function(type, value, iteratee) {\n\t var conv = [24, 60, 60, 1000],\n\t index = {\n\t day: 0,\n\t hour: 1,\n\t minutes: 2,\n\t seconds: 3\n\t };\n\t\n\t if (!(type in index) || global.isNaN(value)) {\n\t return false;\n\t }\n\t\n\t return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n\t },\n\t\n\t /**\n\t * Convert milliseconds value to other type\n\t * @param {type} type convert to type want to. support \"day\", \"hour\",\n\t * \"minutes\", \"seconds\" only.\n\t * @param {value} value - value to convert.\n\t * @returns {number} converted value.\n\t */\n\t millisecondsTo: function(type, value) {\n\t var cache = memo.millisecondsTo,\n\t key = type + value;\n\t\n\t if (cache[key]) {\n\t return cache[key];\n\t }\n\t\n\t cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n\t return m / v;\n\t });\n\t\n\t return cache[key];\n\t },\n\t\n\t /**\n\t * Convert value to milliseconds\n\t * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n\t * @param {value} value - value to convert.\n\t * @returns {number} converted value.\n\t */\n\t millisecondsFrom: function(type, value) {\n\t var cache = memo.millisecondsFrom,\n\t key = type + value;\n\t\n\t if (cache[key]) {\n\t return cache[key];\n\t }\n\t\n\t cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n\t return m * v;\n\t });\n\t\n\t return cache[key];\n\t },\n\t\n\t /**\n\t * Make date array from supplied paramters.\n\t * @param {TZDate} start Start date.\n\t * @param {TZDate} end End date.\n\t * @param {number} step The number of milliseconds to use increment.\n\t * @returns {array} Date array.\n\t */\n\t range: function(start, end, step) {\n\t var startTime = start.getTime();\n\t var endTime = end.getTime();\n\t var cursor = startTime;\n\t var date = dw(startTime);\n\t var result = [];\n\t\n\t while (cursor <= endTime && endTime > date.d.getTime()) {\n\t result.push(new TZDate(date.d));\n\t cursor = cursor + step;\n\t date.addDate(1);\n\t }\n\t\n\t return result;\n\t },\n\t\n\t /**\n\t * Clone supplied date.\n\t * @param {TZDate} date date object to clone.\n\t * @returns {TZDate} Cloned date object\n\t */\n\t clone: function(date) {\n\t return new TZDate(date.getTime());\n\t },\n\t\n\t /**\n\t * Compare two dates.\n\t *\n\t * when first date is latest then seconds then return -1.\n\t *\n\t * return +1 reverse, and return 0 is same.\n\t * @param {TZDate} d1 Date object to compare.\n\t * @param {TZDate} d2 Date object to compare.\n\t * @returns {number} result of compare\n\t */\n\t compare: function(d1, d2) {\n\t var _d1 = d1.getTime(),\n\t _d2 = d2.getTime();\n\t\n\t if (_d1 < _d2) {\n\t return -1;\n\t }\n\t if (_d1 > _d2) {\n\t return 1;\n\t }\n\t\n\t return 0;\n\t },\n\t\n\t /**\n\t * @param {TZDate} d1 - date one\n\t * @param {TZDate} d2 - date two\n\t * @returns {boolean} is two date are same year, month?\n\t */\n\t isSameMonth: function(d1, d2) {\n\t return (d1.getFullYear() === d2.getFullYear() &&\n\t d1.getMonth() === d2.getMonth());\n\t },\n\t\n\t /**\n\t * @param {TZDate} d1 - date one\n\t * @param {TZDate} d2 - date two\n\t * @returns {boolean} is two date are same year, month, date?\n\t */\n\t isSameDate: function(d1, d2) {\n\t var sameMonth = datetime.isSameMonth(d1, d2);\n\t\n\t return sameMonth && (d1.getDate() === d2.getDate());\n\t },\n\t\n\t /**\n\t * Check supplied parameter is valid date object.\n\t * @param {*} d Object to validate.\n\t * @returns {boolean} return true when parameter is valid date object.\n\t */\n\t isValid: function(d) {\n\t if (d instanceof TZDate) {\n\t return !window.isNaN(d.getTime());\n\t }\n\t\n\t return false;\n\t },\n\t\n\t /**\n\t * convert non local date to UTC date.\n\t * @param {TZDate} d Date to convert UTC.\n\t * @returns {TZDate} The UTC Date.\n\t */\n\t toUTC: function(d) {\n\t var l = d.getTime(),\n\t offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\t\n\t return new TZDate(l + offset);\n\t },\n\t\n\t /**\n\t * pad left zero characters.\n\t * @param {number} number number value to pad zero.\n\t * @param {number} length pad length to want.\n\t * @returns {string} padded string.\n\t */\n\t leadingZero: function(number, length) {\n\t var zero = '',\n\t i = 0;\n\t\n\t if (String(number).length > length) {\n\t return String(number);\n\t }\n\t\n\t for (; i < (length - 1); i += 1) {\n\t zero += '0';\n\t }\n\t\n\t return (zero + number).slice(length * -1);\n\t },\n\t\n\t /**\n\t * Convert date string to date object.\n\t *\n\t * Only listed below formats avaliable.\n\t *\n\t * - YYYYMMDD\n\t * - YYYY/MM/DD\n\t * - YYYY-MM-DD\n\t * - YYYY/MM/DD HH:mm:SS\n\t * - YYYY-MM-DD HH:mm:SS\n\t *\n\t * @param {string} str Formatted string.\n\t * @param {number} [fixMonth=-1] - number for fix month calculating.\n\t * @returns {(Date|boolean)} Converted Date object. when supplied str is not available then return false.\n\t */\n\t parse: function(str, fixMonth) {\n\t var separator,\n\t matches = str.match(dateFormatRx),\n\t ymd,\n\t hms;\n\t\n\t if (util.isUndefined(fixMonth)) {\n\t fixMonth = -1;\n\t }\n\t\n\t if (!matches) {\n\t return false;\n\t }\n\t\n\t if (str.length > 8) {\n\t // YYYY/MM/DD\n\t // YYYY-MM-DD\n\t // YYYY/MM/DD HH:mm:SS\n\t // YYYY-MM-DD HH:mm:SS\n\t separator = ~str.indexOf('/') ? '/' : '-';\n\t matches = matches.splice(1);\n\t\n\t ymd = matches[0].split(separator);\n\t hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n\t } else {\n\t // YYYYMMDD\n\t matches = matches[0];\n\t ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n\t hms = [0, 0, 0];\n\t }\n\t\n\t return new TZDate(\n\t Number(ymd[0]),\n\t Number(ymd[1]) + fixMonth,\n\t Number(ymd[2]),\n\t Number(hms[0]),\n\t Number(hms[1]),\n\t Number(hms[2])\n\t );\n\t },\n\t\n\t /**\n\t * Return date object from Date.\n\t * @param {TZDate} date date\n\t * @returns {object} Date object.\n\t */\n\t raw: function(date) {\n\t return {\n\t y: date.getFullYear(),\n\t M: date.getMonth(),\n\t d: date.getDate(),\n\t h: date.getHours(),\n\t m: date.getMinutes(),\n\t s: date.getSeconds(),\n\t ms: date.getMilliseconds()\n\t };\n\t },\n\t\n\t /**\n\t * Return 00:00:00 supplied date.\n\t * @param {TZDate} date date.\n\t * @returns {TZDate} start date.\n\t */\n\t start: function(date) {\n\t var d = new TZDate(date.getTime());\n\t d.setHours(0, 0, 0, 0);\n\t\n\t return d;\n\t },\n\t\n\t /**\n\t * Return 23:59:59 supplied date.\n\t * @param {TZDate} date date.\n\t * @returns {TZDate} end date.\n\t */\n\t end: function(date) {\n\t var d = new TZDate(date.getTime());\n\t d.setHours(23, 59, 59, 0);\n\t\n\t return d;\n\t },\n\t\n\t /**\n\t * Return formatted string as basis of supplied string.\n\t *\n\t * Supported Token Lists.\n\t *\n\t * - YYYY => 1988\n\t * - MM => 01 ~ 12\n\t * - DD => 01 ~ 31\n\t * - YYYYMMDD => 19880925\n\t * @param {TZDate} date String want to formatted.\n\t * @param {string} format format str.\n\t * @returns {string} Formatted date string.\n\t */\n\t format: function(date, format) {\n\t var result = format;\n\t util.forEachOwnProperties(tokenFunc, function(converter, token) {\n\t result = result.replace(token, converter(date));\n\t });\n\t\n\t return result;\n\t },\n\t\n\t /**\n\t * Get start date of specific month\n\t * @param {TZDate} date - date to get start date\n\t * @returns {TZDate} start date of supplied month\n\t */\n\t startDateOfMonth: function(date) {\n\t var startDate = new TZDate(Number(date));\n\t\n\t startDate.setDate(1);\n\t startDate.setHours(0, 0, 0, 0);\n\t\n\t return startDate;\n\t },\n\t\n\t /**\n\t * Get end date of specific month\n\t * @param {TZDate} date - date to get end date\n\t * @returns {TZDate} end date of supplied month\n\t */\n\t endDateOfMonth: function(date) {\n\t var endDate = datetime.startDateOfMonth(date);\n\t\n\t endDate.setMonth(endDate.getMonth() + 1);\n\t endDate.setDate(endDate.getDate() - 1);\n\t endDate.setHours(23, 59, 59);\n\t\n\t return endDate;\n\t },\n\t\n\t /**\n\t * Return 2-dimensional array month calendar\n\t *\n\t * dates that different month with given date are negative values\n\t * @param {TZDate} month - date want to calculate month calendar\n\t * @param {object} options - options\n\t * @param {number} [options.startDayOfWeek=0] - start day of week\n\t * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n\t * @param {number} options.visibleWeeksCount visible weeks count\n\t * @param {boolean} options.workweek - only show work week\n\t * @param {function} [iteratee] - iteratee for customizing calendar object\n\t * @returns {Array.} calendar 2d array\n\t */\n\t arr2dCalendar: function(month, options, iteratee) {\n\t var weekArr,\n\t start, end,\n\t startIndex, endIndex,\n\t totalDate, afterDates,\n\t cursor, week,\n\t calendar = [],\n\t startDayOfWeek = options.startDayOfWeek,\n\t isAlways6Week = options.isAlways6Week,\n\t visibleWeeksCount = options.visibleWeeksCount,\n\t workweek = options.workweek;\n\t\n\t if (visibleWeeksCount) {\n\t start = new TZDate(month);\n\t end = dw(new TZDate(month));\n\t end.addDate(7 * (visibleWeeksCount - 1));\n\t end = end.d;\n\t } else {\n\t start = datetime.startDateOfMonth(month);\n\t end = datetime.endDateOfMonth(month);\n\t }\n\t\n\t // create day number array by startDayOfWeek number\n\t // 4 -> [4, 5, 6, 0, 1, 2, 3]\n\t // 2 -> [2, 3, 4, 5, 6, 0, 1]\n\t weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n\t startIndex = util.inArray(start.getDay(), weekArr);\n\t endIndex = util.inArray(end.getDay(), weekArr);\n\t // free dates after last date of this month\n\t afterDates = 7 - (endIndex + 1);\n\t\n\t if (visibleWeeksCount) {\n\t totalDate = 7 * visibleWeeksCount;\n\t } else {\n\t totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n\t }\n\t cursor = new TZDate(new TZDate(start).setDate(start.getDate() - startIndex));\n\t // iteratee all dates to render\n\t util.forEachArray(util.range(totalDate), function(i) {\n\t var date;\n\t\n\t if (!(i % 7)) {\n\t // group each date by week\n\t week = calendar[i / 7] = [];\n\t }\n\t\n\t date = new TZDate(cursor);\n\t date = iteratee ? iteratee(date) : date;\n\t if (!workweek || !datetime.isWeekend(date.getDay())) {\n\t week.push(date);\n\t }\n\t\n\t // add date\n\t cursor.setDate(cursor.getDate() + 1);\n\t });\n\t\n\t return calendar;\n\t },\n\t\n\t /**\n\t * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n\t *\n\t * @param {number} days - day length of week\n\t * @param {boolean} narrowWeekend - narrow weekend\n\t * @param {number} startDayOfWeek - start day of week\n\t * @param {boolean} workweek - only show work week\n\t * @returns {Array} day, left, width\n\t */\n\t getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n\t var limitDaysToApplyNarrowWeekend = 5;\n\t var uniformWidth = 100 / days;\n\t var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n\t var accumulatedWidth = 0;\n\t var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\t\n\t if (workweek) {\n\t dates = util.filter(dates, function(day) {\n\t return !datetime.isWeekend(day);\n\t });\n\t }\n\t\n\t narrowWeekend = workweek ? false : narrowWeekend;\n\t\n\t return util.map(dates, function(day) {\n\t var model;\n\t var width = narrowWeekend ? wideWidth : uniformWidth;\n\t if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n\t width = wideWidth / 2;\n\t }\n\t\n\t model = {\n\t day: day,\n\t width: width,\n\t left: accumulatedWidth\n\t };\n\t\n\t accumulatedWidth += width;\n\t\n\t return model;\n\t });\n\t },\n\t\n\t /**\n\t * Get that day is weekend\n\t * @param {number} day number\n\t * @returns {boolean} true if weekend or false\n\t */\n\t isWeekend: function(day) {\n\t return day === 0 || day === 6;\n\t }\n\t};\n\t\n\tmodule.exports = datetime;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 5 */\n/***/ function(module, exports) {\n\n\t/**\n\t * @fileoverview timezone\n\t * @author NHN Ent. FE Development Lab \n\t */\n\t'use strict';\n\t\n\tvar MIN_TO_MS = 60 * 1000;\n\tvar customOffsetMs = getTimezoneOffset();\n\tvar timezoneOffsetCallback = null;\n\t\n\tvar getterMethods = [\n\t 'getDate',\n\t 'getDay',\n\t 'getFullYear',\n\t 'getHours',\n\t 'getMilliseconds',\n\t 'getMinutes',\n\t 'getMonth',\n\t 'getSeconds'\n\t];\n\t\n\tvar setterMethods = [\n\t 'setDate',\n\t 'setFullYear',\n\t 'setHours',\n\t 'setMilliseconds',\n\t 'setMinutes',\n\t 'setMonth',\n\t 'setSeconds'\n\t];\n\t\n\t/**\n\t * Get the timezone offset by timestampe\n\t * @param {number} timestamp - timestamp\n\t * @returns {number} timezone offset\n\t */\n\tfunction getTimezoneOffset(timestamp) {\n\t timestamp = timestamp || Date.now();\n\t\n\t return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n\t}\n\t\n\t/**\n\t * Get the custome timezone offset by timestampe\n\t * @param {number} timestamp - timestamp\n\t * @returns {number} timezone offset\n\t */\n\tfunction getCustomTimezoneOffset(timestamp) {\n\t if (timezoneOffsetCallback) {\n\t return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n\t }\n\t\n\t return customOffsetMs;\n\t}\n\t\n\t/**\n\t * Create a Date instance with multiple arguments\n\t * @param {Array} args - arguments\n\t * @returns {Date}\n\t */\n\tfunction createDateWithMultipleArgs(args) {\n\t var utc = Date.UTC.apply(null, args);\n\t\n\t return new Date(utc + getTimezoneOffset(utc));\n\t}\n\t\n\t/**\n\t * Create a Date instance with argument\n\t * @param {Date|TZDate|string|number} arg - arguments\n\t * @returns {Date}\n\t */\n\tfunction createDateWithSingleArg(arg) {\n\t var time;\n\t\n\t if (arg instanceof Date || arg instanceof TZDate) {\n\t time = arg.getTime();\n\t } else if ((typeof arg) === 'string') {\n\t time = Date.parse(arg);\n\t } else if ((typeof arg) === 'number') {\n\t time = arg;\n\t } else if (arg === null) {\n\t time = 0;\n\t } else {\n\t throw new Error('Invalid Type');\n\t }\n\t\n\t return new Date(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n\t}\n\t\n\t/**\n\t * Date Class\n\t */\n\tfunction TZDate() {\n\t var date;\n\t\n\t switch (arguments.length) {\n\t case 0:\n\t date = createDateWithSingleArg(Date.now());\n\t break;\n\t case 1:\n\t date = createDateWithSingleArg(arguments[0]);\n\t break;\n\t default:\n\t date = createDateWithMultipleArgs(arguments);\n\t }\n\t\n\t this._date = date;\n\t}\n\t\n\tTZDate.prototype.setTime = function(time) {\n\t return this._date.setTime(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n\t};\n\t\n\tTZDate.prototype.getTime = function() {\n\t var time = this._date.getTime();\n\t\n\t return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n\t};\n\t\n\tTZDate.prototype.valueOf = function() {\n\t return this.getTime();\n\t};\n\t\n\tgetterMethods.forEach(function(methodName) {\n\t TZDate.prototype[methodName] = function() {\n\t return this._date[methodName].apply(this._date, arguments);\n\t };\n\t});\n\t\n\tsetterMethods.forEach(function(methodName) {\n\t TZDate.prototype[methodName] = function() {\n\t this._date[methodName].apply(this._date, arguments);\n\t\n\t return this.getTime();\n\t };\n\t});\n\t\n\tmodule.exports = {\n\t Date: TZDate,\n\t\n\t /**\n\t * Set offset\n\t * @param {number} offset - timezone offset based on minutes\n\t */\n\t setOffset: function(offset) {\n\t customOffsetMs = offset * MIN_TO_MS;\n\t },\n\t\n\t /**\n\t * Set a callback function to get timezone offset by timestamp\n\t * @param {function} callback - callback function\n\t */\n\t setOffsetCallback: function(callback) {\n\t timezoneOffsetCallback = callback;\n\t },\n\t\n\t /**\n\t * (Use this method only for testing)\n\t * Reset system timezone and custom timezone\n\t */\n\t restoreOffset: function() {\n\t customOffsetMs = getTimezoneOffset();\n\t }\n\t};\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview common/general utilities.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar aps = Array.prototype.slice;\n\t\n\tvar domutil = __webpack_require__(2),\n\t Collection = __webpack_require__(12);\n\t\n\t/**\n\t * Default schedule id getter for collection\n\t * @param {Schedule} schedule - schedule instance\n\t * @returns {string} schedule id\n\t */\n\tfunction scheduleIDGetter(schedule) {\n\t return schedule.cid();\n\t}\n\t\n\tmodule.exports = {\n\t /**\n\t * @param {...*} initItems - items to add newly created collection.\n\t * @returns {Collection} new collection for schedule models.\n\t */\n\t createScheduleCollection: function(initItems) { // eslint-disable-line\n\t var collection = new Collection(scheduleIDGetter);\n\t\n\t if (arguments.length) {\n\t collection.add.apply(collection, arguments);\n\t }\n\t\n\t return collection;\n\t },\n\t\n\t /**\n\t * Get ratio value.\n\t *\n\t * a : b = y : X;\n\t *\n\t * =\n\t *\n\t * X = (b * y) / a;\n\t * @param {number} a - a\n\t * @param {number} b - b\n\t * @param {number} y - y\n\t * @returns {number} ratio value\n\t */\n\t ratio: function(a, b, y) {\n\t // a : b = y : x;\n\t return (b * y) / a;\n\t },\n\t\n\t /**\n\t * Find nearest value from supplied params.\n\t * @param {number} value - value to find.\n\t * @param {array} nearest - nearest array.\n\t * @returns {number} nearest value\n\t */\n\t nearest: function(value, nearest) {\n\t var diff = util.map(nearest, function(v) {\n\t return Math.abs(value - v);\n\t }),\n\t nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\t\n\t return nearest[nearestIndex];\n\t },\n\t\n\t /**\n\t * pick value from object then return utility object to treat it.\n\t * @param {object} obj - object to search supplied path property.\n\t * @param {...string} paths - rest parameter that string value to search property in object.\n\t * @returns {object} pick object.\n\t */\n\t pick2: function(obj, paths) { // eslint-disable-line\n\t var result = util.pick.apply(null, arguments),\n\t pick;\n\t\n\t pick = {\n\t /**\n\t * @returns {*} picked value.\n\t */\n\t val: function() {\n\t return result;\n\t },\n\t\n\t /**\n\t * invoke supplied function in picked object.\n\t *\n\t * the callback context is set picked object.\n\t * @param {string|function} fn - function to invoke in picked object.\n\t * @returns {*} result of invoke.\n\t */\n\t then: function(fn) {\n\t var args;\n\t\n\t if (!result) {\n\t return undefined; //eslint-disable-line\n\t }\n\t\n\t args = aps.call(arguments, 1);\n\t\n\t if (util.isString(fn)) {\n\t return (util.pick(result, fn) || function() {}).apply(result, args);\n\t }\n\t\n\t return fn.call(result, result);\n\t }\n\t };\n\t\n\t return pick;\n\t },\n\t\n\t /**\n\t * Mixin method.\n\t *\n\t * (extend methods except property name 'mixin')\n\t * @param {object} from - mixin object.\n\t * @param {object} to - object to mixin.\n\t */\n\t mixin: function(from, to) {\n\t util.extend(to.prototype, from);\n\t },\n\t\n\t /**\n\t * Limit supplied value base on `minArr`, `maxArr`\n\t * @param {number} value - value\n\t * @param {array} minArr - min\n\t * @param {array} maxArr - max\n\t * @returns {number} limited value\n\t */\n\t limit: function(value, minArr, maxArr) {\n\t var v = Math.max.apply(null, [value].concat(minArr));\n\t v = Math.min.apply(null, [v].concat(maxArr));\n\t\n\t return v;\n\t },\n\t\n\t stripTags: function(str) {\n\t return str.replace(/<([^>]+)>/ig, '');\n\t },\n\t\n\t /**\n\t * Get first value in 2-dimentional array.\n\t * @param {Array.} arr2d - 2-dimentional array\n\t * @returns {*} first value in 2d array\n\t */\n\t firstIn2dArray: function(arr2d) {\n\t return util.pick(arr2d, '0', '0');\n\t },\n\t\n\t /**\n\t * Get last value in 2-dimentional array.\n\t * @param {Array.} arr2d - 2-dimentional array\n\t * @returns {*} last value in 2d array\n\t */\n\t lastIn2dArray: function(arr2d) {\n\t var lastRow = arr2d.length - 1,\n\t lastCol = arr2d[lastRow].length - 1;\n\t\n\t return util.pick(arr2d, lastRow, lastCol);\n\t },\n\t\n\t /**\n\t * Set 'title' attribute for all element that has exceeded content in\n\t * container\n\t * @param {string} selector - CSS selector {@see domutil#find}\n\t * @param {HTMLElement} container - container element\n\t */\n\t setAutoEllipsis: function(selector, container) {\n\t util.forEach(domutil.find(selector, container, true), function(el) {\n\t if (el.offsetWidth < el.scrollWidth) {\n\t el.setAttribute('title', domutil.getData(el, 'title'));\n\t }\n\t });\n\t }\n\t};\n\t\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t// Create a simple path alias to allow browserify to resolve\n\t// the runtime on a supported path.\n\tmodule.exports = __webpack_require__(46)['default'];\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview The base class of views.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar domutil = __webpack_require__(2);\n\tvar Collection = __webpack_require__(12);\n\t\n\t/**\n\t * Base class of views.\n\t *\n\t * All views create own container element inside supplied container element.\n\t * @constructor\n\t * @param {HTMLElement} container Default container element for view.\n\t * you can use this element for this.container syntax.\n\t */\n\tfunction View(container) {\n\t var id = util.stamp(this);\n\t\n\t if (util.isUndefined(container)) {\n\t container = domutil.appendHTMLElement('div');\n\t }\n\t\n\t domutil.addClass(container, this.cssprefix(id));\n\t\n\t /**\n\t * unique id\n\t * @type {number}\n\t */\n\t this.id = id;\n\t\n\t /**\n\t * base element of view.\n\t * @type {HTMLDIVElement}\n\t */\n\t this.container = container;\n\t\n\t /*eslint-disable*/\n\t /**\n\t * child views.\n\t * @type {Collection}\n\t */\n\t this.children = new Collection(function(view) {\n\t return util.stamp(view);\n\t });\n\t /* eslint-enable*/\n\t\n\t /**\n\t * parent view instance.\n\t * @type {View}\n\t */\n\t this.parent = null;\n\t}\n\t\n\t/**\n\t * CSS classname prefix\n\t * @type {string}\n\t */\n\tView.prototype.cssPrefix = 'tui-view-';\n\t\n\t/**\n\t * Add child views.\n\t * @param {View} view The view instance to add.\n\t * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n\t */\n\tView.prototype.addChild = function(view, fn) {\n\t if (fn) {\n\t fn.call(view, this);\n\t }\n\t // add parent view\n\t view.parent = this;\n\t\n\t this.children.add(view);\n\t};\n\t\n\t/**\n\t * Remove added child view.\n\t * @param {(number|View)} id View id or instance itself to remove.\n\t * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n\t */\n\tView.prototype.removeChild = function(id, fn) {\n\t var view = util.isNumber(id) ? this.children.items[id] : id;\n\t\n\t id = util.stamp(view);\n\t\n\t if (fn) {\n\t fn.call(view, this);\n\t }\n\t\n\t this.children.remove(id);\n\t};\n\t\n\t/**\n\t * Render view recursively.\n\t */\n\tView.prototype.render = function() {\n\t this.children.each(function(childView) {\n\t childView.render();\n\t });\n\t};\n\t\n\t/**\n\t * Invoke function recursively.\n\t * @param {function} fn - function to invoke child view recursively\n\t * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n\t */\n\tView.prototype.recursive = function(fn, skipThis) {\n\t if (!util.isFunction(fn)) {\n\t return;\n\t }\n\t\n\t if (!skipThis) {\n\t fn(this);\n\t }\n\t\n\t this.children.each(function(childView) {\n\t childView.recursive(fn);\n\t });\n\t};\n\t\n\t/**\n\t * Resize view recursively to parent.\n\t */\n\tView.prototype.resize = function() {\n\t var args = Array.prototype.slice.call(arguments),\n\t parent = this.parent;\n\t\n\t while (parent) {\n\t if (util.isFunction(parent._onResize)) {\n\t parent._onResize.apply(parent, args);\n\t }\n\t\n\t parent = parent.parent;\n\t }\n\t};\n\t\n\t/**\n\t * Invoking method before destroying.\n\t */\n\tView.prototype._beforeDestroy = function() {};\n\t\n\t/**\n\t * Clear properties\n\t */\n\tView.prototype._destroy = function() {\n\t this._beforeDestroy();\n\t this.children.clear();\n\t this.container.innerHTML = '';\n\t\n\t this.id = this.parent = this.children = this.container = null;\n\t};\n\t\n\t/*eslint-disable*/\n\t/**\n\t * Destroy child view recursively.\n\t */\n\tView.prototype.destroy = function(isChildView) {\n\t this.children.each(function(childView) {\n\t childView.destroy(true);\n\t childView._destroy();\n\t });\n\t\n\t if (isChildView) {\n\t return;\n\t }\n\t\n\t this._destroy();\n\t};\n\t/* eslint-enable*/\n\t\n\t/**\n\t * Calculate view's container element bound.\n\t * @returns {object} The bound of container element.\n\t */\n\tView.prototype.getViewBound = function() {\n\t var container = this.container,\n\t position = domutil.getPosition(container),\n\t size = domutil.getSize(container);\n\t\n\t return {\n\t x: position[0],\n\t y: position[1],\n\t width: size[0],\n\t height: size[1]\n\t };\n\t};\n\t\n\t/**\n\t * Return view default CSS prefix\n\t * @param {string} [className] - if supplied then return prefix added class name\n\t * @returns {string} CSS prefix value\n\t */\n\tView.prototype.cssprefix = function(className) {\n\t return this.cssPrefix + (className || '');\n\t};\n\t\n\tutil.CustomEvents.mixin(View);\n\t\n\tmodule.exports = View;\n\t\n\n\n/***/ },\n/* 9 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint complexity: 0 */\n\t/**\n\t * @fileoverview Utility module for handling DOM events.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar browser = util.browser,\n\t eventKey = '_evt',\n\t DRAG = {\n\t START: ['touchstart', 'mousedown'],\n\t END: {\n\t mousedown: 'mouseup',\n\t touchstart: 'touchend',\n\t pointerdown: 'touchend',\n\t MSPointerDown: 'touchend'\n\t },\n\t MOVE: {\n\t mousedown: 'mousemove',\n\t touchstart: 'touchmove',\n\t pointerdown: 'touchmove',\n\t MSPointerDown: 'touchmove'\n\t }\n\t };\n\t\n\tvar domevent = {\n\t /**\n\t * Bind dom events.\n\t * @param {HTMLElement} obj HTMLElement to bind events.\n\t * @param {(string|object)} types Space splitted events names or eventName:handler object.\n\t * @param {*} fn handler function or context for handler method.\n\t * @param {*} [context] context object for handler method.\n\t */\n\t on: function(obj, types, fn, context) {\n\t if (util.isString(types)) {\n\t util.forEach(types.split(' '), function(type) {\n\t domevent._on(obj, type, fn, context);\n\t });\n\t\n\t return;\n\t }\n\t\n\t util.forEachOwnProperties(types, function(handler, type) {\n\t domevent._on(obj, type, handler, fn);\n\t });\n\t },\n\t\n\t /**\n\t * DOM event binding.\n\t * @param {HTMLElement} obj HTMLElement to bind events.\n\t * @param {String} type The name of events.\n\t * @param {*} fn handler function\n\t * @param {*} [context] context object for handler method.\n\t * @private\n\t */\n\t _on: function(obj, type, fn, context) {\n\t var id,\n\t handler,\n\t originHandler;\n\t\n\t id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\t\n\t if (obj[eventKey] && obj[eventKey][id]) {\n\t return;\n\t }\n\t\n\t handler = function(e) {\n\t fn.call(context || obj, e || window.event);\n\t };\n\t\n\t originHandler = handler;\n\t\n\t if ('addEventListener' in obj) {\n\t if (type === 'mouseenter' || type === 'mouseleave') {\n\t handler = function(e) {\n\t e = e || window.event;\n\t if (!domevent._checkMouse(obj, e)) {\n\t return;\n\t }\n\t originHandler(e);\n\t };\n\t obj.addEventListener((type === 'mouseenter') ?\n\t 'mouseover' : 'mouseout', handler, false);\n\t } else {\n\t if (type === 'mousewheel') {\n\t obj.addEventListener('DOMMouseScroll', handler, false);\n\t }\n\t\n\t obj.addEventListener(type, handler, false);\n\t }\n\t } else if ('attachEvent' in obj) {\n\t obj.attachEvent('on' + type, handler);\n\t }\n\t\n\t obj[eventKey] = obj[eventKey] || {};\n\t obj[eventKey][id] = handler;\n\t },\n\t\n\t /**\n\t * Unbind DOM Event handler.\n\t * @param {HTMLElement} obj HTMLElement to unbind.\n\t * @param {(string|object)} types Space splitted events names or eventName:handler object.\n\t * @param {*} fn handler function or context for handler method.\n\t * @param {*} [context] context object for handler method.\n\t */\n\t off: function(obj, types, fn, context) {\n\t if (util.isString(types)) {\n\t util.forEach(types.split(' '), function(type) {\n\t domevent._off(obj, type, fn, context);\n\t });\n\t\n\t return;\n\t }\n\t\n\t util.forEachOwnProperties(types, function(handler, type) {\n\t domevent._off(obj, type, handler, fn);\n\t });\n\t },\n\t\n\t /**\n\t * Unbind DOM event handler.\n\t * @param {HTMLElement} obj HTMLElement to unbind.\n\t * @param {String} type The name of event to unbind.\n\t * @param {function()} fn Event handler that supplied when binding.\n\t * @param {*} context context object that supplied when binding.\n\t * @private\n\t */\n\t _off: function(obj, type, fn, context) {\n\t var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n\t handler = obj[eventKey] && obj[eventKey][id];\n\t\n\t if (!handler) {\n\t return;\n\t }\n\t\n\t if ('removeEventListener' in obj) {\n\t if (type === 'mouseenter' || type === 'mouseleave') {\n\t obj.removeEventListener((type === 'mouseenter') ?\n\t 'mouseover' : 'mouseout', handler, false);\n\t } else {\n\t if (type === 'mousewheel') {\n\t obj.removeEventListener('DOMMouseScroll', handler, false);\n\t }\n\t\n\t obj.removeEventListener(type, handler, false);\n\t }\n\t } else if ('detachEvent' in obj) {\n\t try {\n\t obj.detachEvent('on' + type, handler);\n\t } catch (e) {} //eslint-disable-line\n\t }\n\t\n\t delete obj[eventKey][id];\n\t\n\t if (util.keys(obj[eventKey]).length) {\n\t return;\n\t }\n\t\n\t // throw exception when deleting host object's property in below IE8\n\t if (util.browser.msie && util.browser.version < 9) {\n\t obj[eventKey] = null;\n\t\n\t return;\n\t }\n\t\n\t delete obj[eventKey];\n\t },\n\t\n\t /**\n\t * Bind DOM event. this event will unbind after invokes.\n\t * @param {HTMLElement} obj HTMLElement to bind events.\n\t * @param {(string|object)} types Space splitted events names or eventName:handler object.\n\t * @param {*} fn handler function or context for handler method.\n\t * @param {*} [context] context object for handler method.\n\t */\n\t once: function(obj, types, fn, context) {\n\t var self = this;\n\t\n\t if (util.isObject(types)) {\n\t util.forEachOwnProperties(types, function(handler, type) {\n\t domevent.once(obj, type, handler, fn);\n\t });\n\t\n\t return;\n\t }\n\t\n\t /**\n\t * Handler for temporary usage for once implementation\n\t */\n\t function onceHandler() {\n\t fn.apply(context || obj, arguments);\n\t self._off(obj, types, onceHandler, context);\n\t }\n\t\n\t domevent.on(obj, types, onceHandler, context);\n\t },\n\t\n\t /**\n\t * Cancel event bubbling.\n\t * @param {Event} e Event object.\n\t */\n\t stopPropagation: function(e) {\n\t if (e.stopPropagation) {\n\t e.stopPropagation();\n\t } else {\n\t e.cancelBubble = true;\n\t }\n\t },\n\t\n\t /**\n\t * Cancel browser default actions.\n\t * @param {Event} e Event object.\n\t */\n\t preventDefault: function(e) {\n\t if (e.preventDefault) {\n\t e.preventDefault();\n\t } else {\n\t e.returnValue = false;\n\t }\n\t },\n\t\n\t /**\n\t * Syntatic sugar of stopPropagation and preventDefault\n\t * @param {Event} e Event object.\n\t */\n\t stop: function(e) {\n\t domevent.preventDefault(e);\n\t domevent.stopPropagation(e);\n\t },\n\t\n\t /**\n\t * Stop scroll events.\n\t * @param {HTMLElement} el HTML element to prevent scroll.\n\t */\n\t disableScrollPropagation: function(el) {\n\t domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n\t },\n\t\n\t /**\n\t * Stop all events related with click.\n\t * @param {HTMLElement} el HTML element to prevent all event related with click.\n\t */\n\t disableClickPropagation: function(el) {\n\t domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n\t },\n\t\n\t /**\n\t * Get mouse position from mouse event.\n\t *\n\t * If supplied relatveElement parameter then return relative position based on element.\n\t * @param {Event} mouseEvent Mouse event object\n\t * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n\t * @returns {number[]} mouse position.\n\t */\n\t getMousePosition: function(mouseEvent, relativeElement) {\n\t var rect;\n\t\n\t if (!relativeElement) {\n\t return [mouseEvent.clientX, mouseEvent.clientY];\n\t }\n\t\n\t rect = relativeElement.getBoundingClientRect();\n\t\n\t return [\n\t mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n\t mouseEvent.clientY - rect.top - relativeElement.clientTop\n\t ];\n\t },\n\t\n\t /**\n\t * Normalize mouse wheel event that different each browsers.\n\t * @param {MouseEvent} e Mouse wheel event.\n\t * @returns {Number} delta\n\t */\n\t getWheelDelta: function(e) {\n\t var delta = 0;\n\t\n\t if (e.wheelDelta) {\n\t delta = e.wheelDelta / 120;\n\t }\n\t\n\t if (e.detail) {\n\t delta = -e.detail / 3;\n\t }\n\t\n\t return delta;\n\t },\n\t\n\t /**\n\t * prevent firing mouseleave event when mouse entered child elements.\n\t * @param {HTMLElement} el HTML element\n\t * @param {MouseEvent} e Mouse event\n\t * @returns {Boolean} leave?\n\t * @private\n\t */\n\t _checkMouse: function(el, e) {\n\t var related = e.relatedTarget;\n\t\n\t if (!related) {\n\t return true;\n\t }\n\t\n\t try {\n\t while (related && (related !== el)) {\n\t related = related.parentNode;\n\t }\n\t } catch (err) {\n\t return false;\n\t }\n\t\n\t return (related !== el);\n\t },\n\t\n\t /**\n\t * Trigger specific events to html element.\n\t * @param {HTMLElement} obj HTMLElement\n\t * @param {string} type Event type name\n\t * @param {object} [eventData] Event data\n\t */\n\t trigger: function(obj, type, eventData) {\n\t var rMouseEvent = /(mouse|click)/;\n\t if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n\t eventData = domevent.mouseEvent(type);\n\t }\n\t\n\t if (obj.dispatchEvent) {\n\t obj.dispatchEvent(eventData);\n\t } else if (obj.fireEvent) {\n\t obj.fireEvent('on' + type, eventData);\n\t }\n\t },\n\t\n\t /**\n\t * Create virtual mouse event.\n\t *\n\t * Tested at\n\t *\n\t * - IE7 ~ IE11\n\t * - Chrome\n\t * - Firefox\n\t * - Safari\n\t * @param {string} type Event type\n\t * @param {object} [eventObj] Event data\n\t * @returns {MouseEvent} Virtual mouse event.\n\t */\n\t mouseEvent: function(type, eventObj) {\n\t var evt,\n\t e;\n\t\n\t e = util.extend({\n\t bubbles: true,\n\t cancelable: (type !== 'mousemove'),\n\t view: window,\n\t wheelDelta: 0,\n\t detail: 0,\n\t screenX: 0,\n\t screenY: 0,\n\t clientX: 0,\n\t clientY: 0,\n\t ctrlKey: false,\n\t altKey: false,\n\t shiftKey: false,\n\t metaKey: false,\n\t button: 0,\n\t relatedTarget: undefined // eslint-disable-line\n\t }, eventObj);\n\t\n\t // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n\t if (browser.msie && browser.version < 9) {\n\t delete e.wheelDelta;\n\t }\n\t\n\t if (typeof document.createEvent === 'function') {\n\t evt = document.createEvent('MouseEvents');\n\t evt.initMouseEvent(type,\n\t e.bubbles, e.cancelable, e.view, e.detail,\n\t e.screenX, e.screenY, e.clientX, e.clientY,\n\t e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n\t e.button, document.body.parentNode\n\t );\n\t } else if (document.createEventObject) {\n\t evt = document.createEventObject();\n\t\n\t util.forEach(e, function(value, propName) {\n\t evt[propName] = value;\n\t }, this);\n\t evt.button = {0: 1,\n\t 1: 4,\n\t 2: 2}[evt.button] || evt.button;\n\t }\n\t\n\t return evt;\n\t },\n\t\n\t /**\n\t * Normalize mouse event's button attributes.\n\t *\n\t * Can detect which button is clicked by this method.\n\t *\n\t * Meaning of return numbers\n\t *\n\t * - 0: primary mouse button\n\t * - 1: wheel button or center button\n\t * - 2: secondary mouse button\n\t * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n\t * @returns {number} - The value of meaning which button is clicked?\n\t */\n\t getMouseButton: function(mouseEvent) {\n\t var button,\n\t primary = '0,1,3,5,7',\n\t secondary = '2,6',\n\t wheel = '4';\n\t\n\t /* istanbul ignore else */\n\t if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n\t return mouseEvent.button;\n\t }\n\t\n\t button = String(mouseEvent.button);\n\t if (primary.indexOf(button) > -1) {\n\t return 0;\n\t }\n\t if (secondary.indexOf(button) > -1) {\n\t return 2;\n\t }\n\t if (~wheel.indexOf(button)) {\n\t return 1;\n\t }\n\t\n\t return -1;\n\t }\n\t};\n\t\n\tmodule.exports = domevent;\n\t\n\n\n/***/ },\n/* 10 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.extend = extend;\n\texports.indexOf = indexOf;\n\texports.escapeExpression = escapeExpression;\n\texports.isEmpty = isEmpty;\n\texports.createFrame = createFrame;\n\texports.blockParams = blockParams;\n\texports.appendContextPath = appendContextPath;\n\tvar escape = {\n\t '&': '&',\n\t '<': '<',\n\t '>': '>',\n\t '\"': '"',\n\t \"'\": ''',\n\t '`': '`',\n\t '=': '='\n\t};\n\t\n\tvar badChars = /[&<>\"'`=]/g,\n\t possible = /[&<>\"'`=]/;\n\t\n\tfunction escapeChar(chr) {\n\t return escape[chr];\n\t}\n\t\n\tfunction extend(obj /* , ...source */) {\n\t for (var i = 1; i < arguments.length; i++) {\n\t for (var key in arguments[i]) {\n\t if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n\t obj[key] = arguments[i][key];\n\t }\n\t }\n\t }\n\t\n\t return obj;\n\t}\n\t\n\tvar toString = Object.prototype.toString;\n\t\n\texports.toString = toString;\n\t// Sourced from lodash\n\t// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n\t/* eslint-disable func-style */\n\tvar isFunction = function isFunction(value) {\n\t return typeof value === 'function';\n\t};\n\t// fallback for older versions of Chrome and Safari\n\t/* istanbul ignore next */\n\tif (isFunction(/x/)) {\n\t exports.isFunction = isFunction = function (value) {\n\t return typeof value === 'function' && toString.call(value) === '[object Function]';\n\t };\n\t}\n\texports.isFunction = isFunction;\n\t\n\t/* eslint-enable func-style */\n\t\n\t/* istanbul ignore next */\n\tvar isArray = Array.isArray || function (value) {\n\t return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n\t};\n\t\n\texports.isArray = isArray;\n\t// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\t\n\tfunction indexOf(array, value) {\n\t for (var i = 0, len = array.length; i < len; i++) {\n\t if (array[i] === value) {\n\t return i;\n\t }\n\t }\n\t return -1;\n\t}\n\t\n\tfunction escapeExpression(string) {\n\t if (typeof string !== 'string') {\n\t // don't escape SafeStrings, since they're already safe\n\t if (string && string.toHTML) {\n\t return string.toHTML();\n\t } else if (string == null) {\n\t return '';\n\t } else if (!string) {\n\t return string + '';\n\t }\n\t\n\t // Force a string conversion as this will be done by the append regardless and\n\t // the regex test will do this transparently behind the scenes, causing issues if\n\t // an object's to string has escaped characters in it.\n\t string = '' + string;\n\t }\n\t\n\t if (!possible.test(string)) {\n\t return string;\n\t }\n\t return string.replace(badChars, escapeChar);\n\t}\n\t\n\tfunction isEmpty(value) {\n\t if (!value && value !== 0) {\n\t return true;\n\t } else if (isArray(value) && value.length === 0) {\n\t return true;\n\t } else {\n\t return false;\n\t }\n\t}\n\t\n\tfunction createFrame(object) {\n\t var frame = extend({}, object);\n\t frame._parent = object;\n\t return frame;\n\t}\n\t\n\tfunction blockParams(params, ids) {\n\t params.path = ids;\n\t return params;\n\t}\n\t\n\tfunction appendContextPath(contextPath, id) {\n\t return (contextPath ? contextPath + '.' : '') + id;\n\t}\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBR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ZS5sZW5ndGggPT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZUZyYW1lKG9iamVjdCkge1xuICBsZXQgZnJhbWUgPSBleHRlbmQoe30sIG9iamVjdCk7XG4gIGZyYW1lLl9wYXJlbnQgPSBvYmplY3Q7XG4gIHJldHVybiBmcmFtZTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGJsb2NrUGFyYW1zKHBhcmFtcywgaWRzKSB7XG4gIHBhcmFtcy5wYXRoID0gaWRzO1xuICByZXR1cm4gcGFyYW1zO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXBwZW5kQ29udGV4dFBhdGgoY29udGV4dFBhdGgsIGlkKSB7XG4gIHJldHVybiAoY29udGV4dFBhdGggPyBjb250ZXh0UGF0aCArICcuJyA6ICcnKSArIGlkO1xufVxuIl19\n\n\n/***/ },\n/* 11 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview RequestAnimFrame\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar requestFn,\n\t cancelFn;\n\t\n\t/**\n\t * Get name with vendor prefix\n\t * @param {string} name - name to prepend prefix\n\t * @returns {string} vendor prefixed name\n\t */\n\tfunction getPrefixed(name) {\n\t return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n\t}\n\t\n\trequestFn = global.requestAnimationFrame ||\n\t getPrefixed('RequestAnimationFrame') ||\n\t function(fn, context) {\n\t fn.call(context);\n\t };\n\t\n\tcancelFn = global.cancelAnimationFrame ||\n\t getPrefixed('CancelAnimationFrame') ||\n\t getPrefixed('CancelRequestAnimationFrame') ||\n\t function() {};\n\t\n\t/**\n\t * @module module:reqAnimFrame\n\t */\n\t\n\tmodule.exports = {\n\t /**\n\t * Shim of requestAnimationFrame\n\t * @param {function} fn callback function\n\t * @param {*} context context for callback\n\t * @returns {number} Unique id\n\t */\n\t requestAnimFrame: function(fn, context) {\n\t return requestFn.call(global, util.bind(fn, context));\n\t },\n\t\n\t /**\n\t * Shim of cancelAnimationFrame\n\t * @param {number} id requestAnimationFrame id\n\t */\n\t cancelAnimFrame: function(id) {\n\t if (!id) {\n\t return;\n\t }\n\t\n\t cancelFn.call(global, id);\n\t }\n\t};\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 12 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Common collections.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar forEachProp = util.forEachOwnProperties,\n\t forEachArr = util.forEachArray,\n\t isFunc = util.isFunction,\n\t isObj = util.isObject;\n\t\n\tvar aps = Array.prototype.slice;\n\t\n\t/**\n\t * Common collection.\n\t *\n\t * It need function for get model's unique id.\n\t *\n\t * if the function is not supplied then it use default function {@link Collection#getItemID}\n\t * @constructor\n\t * @param {function} [getItemIDFn] function for get model's id.\n\t */\n\tfunction Collection(getItemIDFn) {\n\t /**\n\t * @type {object.}\n\t */\n\t this.items = {};\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.length = 0;\n\t\n\t if (isFunc(getItemIDFn)) {\n\t /**\n\t * @type {function}\n\t */\n\t this.getItemID = getItemIDFn;\n\t }\n\t}\n\t\n\t/**********\n\t * static props\n\t **********/\n\t\n\t/**\n\t * Combind supplied function filters and condition.\n\t * @param {...function} filters - function filters\n\t * @returns {function} combined filter\n\t */\n\tCollection.and = function(filters) {\n\t var cnt;\n\t\n\t filters = aps.call(arguments);\n\t cnt = filters.length;\n\t\n\t return function(item) {\n\t var i = 0;\n\t\n\t for (; i < cnt; i += 1) {\n\t if (!filters[i].call(null, item)) {\n\t return false;\n\t }\n\t }\n\t\n\t return true;\n\t };\n\t};\n\t\n\t/**\n\t * Combine multiple function filters with OR clause.\n\t * @param {...function} filters - function filters\n\t * @returns {function} combined filter\n\t */\n\tCollection.or = function(filters) {\n\t var cnt;\n\t\n\t filters = aps.call(arguments);\n\t cnt = filters.length;\n\t\n\t return function(item) {\n\t var i = 1,\n\t result = filters[0].call(null, item);\n\t\n\t for (; i < cnt; i += 1) {\n\t result = (result || filters[i].call(null, item));\n\t }\n\t\n\t return result;\n\t };\n\t};\n\t\n\t/**\n\t * Merge several collections.\n\t *\n\t * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n\t * @param {...Collection} collections collection arguments to merge\n\t * @returns {Collection} merged collection.\n\t */\n\tCollection.merge = function(collections) { // eslint-disable-line\n\t var cols = aps.call(arguments),\n\t newItems = {},\n\t merged = new Collection(cols[0].getItemID),\n\t extend = util.extend;\n\t\n\t forEachArr(cols, function(col) {\n\t extend(newItems, col.items);\n\t });\n\t\n\t merged.items = newItems;\n\t merged.length = util.keys(merged.items).length;\n\t\n\t return merged;\n\t};\n\t\n\t/**********\n\t * prototype props\n\t **********/\n\t\n\t/**\n\t * get model's unique id.\n\t * @param {object} item model instance.\n\t * @returns {number} model unique id.\n\t */\n\tCollection.prototype.getItemID = function(item) {\n\t return String(item._id);\n\t};\n\t\n\t/**\n\t * add models.\n\t * @param {...*} item models to add this collection.\n\t */\n\tCollection.prototype.add = function(item) {\n\t var self = this,\n\t id,\n\t ownItems;\n\t\n\t if (arguments.length > 1) {\n\t forEachArr(aps.call(arguments), function(o) {\n\t self.add(o);\n\t });\n\t\n\t return;\n\t }\n\t\n\t id = this.getItemID(item);\n\t ownItems = this.items;\n\t\n\t if (!ownItems[id]) {\n\t this.length += 1;\n\t }\n\t ownItems[id] = item;\n\t};\n\t\n\t/**\n\t * remove models.\n\t * @param {...(object|string|number)} id model instance or unique id to delete.\n\t * @returns {array} deleted model list.\n\t */\n\tCollection.prototype.remove = function(id) {\n\t var self = this,\n\t removed = [],\n\t ownItems,\n\t itemToRemove;\n\t\n\t if (!this.length) {\n\t return removed;\n\t }\n\t\n\t if (arguments.length > 1) {\n\t removed = util.map(aps.call(arguments), function(_id) {\n\t return self.remove(_id);\n\t });\n\t\n\t return removed;\n\t }\n\t\n\t ownItems = this.items;\n\t\n\t if (isObj(id)) {\n\t id = this.getItemID(id);\n\t }\n\t\n\t if (!ownItems[id]) {\n\t return removed;\n\t }\n\t\n\t this.length -= 1;\n\t itemToRemove = ownItems[id];\n\t delete ownItems[id];\n\t\n\t return itemToRemove;\n\t};\n\t\n\t/**\n\t * remove all models in collection.\n\t */\n\tCollection.prototype.clear = function() {\n\t this.items = {};\n\t this.length = 0;\n\t};\n\t\n\t/**\n\t * check collection has specific model.\n\t * @param {(object|string|number|function)} id model instance or id or filter function to check\n\t * @returns {boolean} is has model?\n\t */\n\tCollection.prototype.has = function(id) {\n\t var isFilter,\n\t has;\n\t\n\t if (!this.length) {\n\t return false;\n\t }\n\t\n\t isFilter = isFunc(id);\n\t has = false;\n\t\n\t if (isFilter) {\n\t this.each(function(item) {\n\t if (id(item) === true) {\n\t has = true;\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t });\n\t } else {\n\t id = isObj(id) ? this.getItemID(id) : id;\n\t has = util.isExisty(this.items[id]);\n\t }\n\t\n\t return has;\n\t};\n\t\n\t/**\n\t * invoke callback when model exist in collection.\n\t * @param {(string|number)} id model unique id.\n\t * @param {function} fn the callback.\n\t * @param {*} [context] callback context.\n\t */\n\tCollection.prototype.doWhenHas = function(id, fn, context) {\n\t var item = this.items[id];\n\t\n\t if (!util.isExisty(item)) {\n\t return;\n\t }\n\t\n\t fn.call(context || this, item);\n\t};\n\t\n\t/**\n\t * Search model. and return new collection.\n\t * @param {function} filter filter function.\n\t * @returns {Collection} new collection with filtered models.\n\t * @example\n\t * collection.find(function(item) {\n\t * return item.edited === true;\n\t * });\n\t *\n\t * function filter1(item) {\n\t * return item.edited === false;\n\t * }\n\t *\n\t * function filter2(item) {\n\t * return item.disabled === false;\n\t * }\n\t *\n\t * collection.find(Collection.and(filter1, filter2));\n\t *\n\t * collection.find(Collection.or(filter1, filter2));\n\t */\n\tCollection.prototype.find = function(filter) {\n\t var result = new Collection();\n\t\n\t if (this.hasOwnProperty('getItemID')) {\n\t result.getItemID = this.getItemID;\n\t }\n\t\n\t this.each(function(item) {\n\t if (filter(item) === true) {\n\t result.add(item);\n\t }\n\t });\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * Group element by specific key values.\n\t *\n\t * if key parameter is function then invoke it and use returned value.\n\t * @param {(string|number|function|array)} key key property or getter function.\n\t * if string[] supplied, create each collection before grouping.\n\t * @param {function} [groupFunc] - function that return each group's key\n\t * @returns {object.} grouped object\n\t * @example\n\t *\n\t * // pass `string`, `number`, `boolean` type value then group by property value.\n\t * collection.groupBy('gender'); // group by 'gender' property value.\n\t * collection.groupBy(50); // group by '50' property value.\n\t *\n\t * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n\t * collection.groupBy(function(item) {\n\t * if (item.score > 60) {\n\t * return 'pass';\n\t * }\n\t * return 'fail';\n\t * });\n\t *\n\t * // pass `array` with first arguments then create each collection before grouping.\n\t * collection.groupBy(['go', 'ruby', 'javascript']);\n\t * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n\t *\n\t * // can pass `function` with `array` then group each elements.\n\t * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n\t * if (item.isFast) {\n\t * return 'go';\n\t * }\n\t *\n\t * return item.name;\n\t * });\n\t */\n\tCollection.prototype.groupBy = function(key, groupFunc) {\n\t var result = {},\n\t collection,\n\t baseValue,\n\t keyIsFunc = isFunc(key),\n\t getItemIDFn = this.getItemID;\n\t\n\t if (util.isArray(key)) {\n\t util.forEachArray(key, function(k) {\n\t result[String(k)] = new Collection(getItemIDFn);\n\t });\n\t\n\t if (!groupFunc) {\n\t return result;\n\t }\n\t\n\t key = groupFunc;\n\t keyIsFunc = true;\n\t }\n\t\n\t this.each(function(item) {\n\t if (keyIsFunc) {\n\t baseValue = key(item);\n\t } else {\n\t baseValue = item[key];\n\t\n\t if (isFunc(baseValue)) {\n\t baseValue = baseValue.apply(item);\n\t }\n\t }\n\t\n\t collection = result[baseValue];\n\t\n\t if (!collection) {\n\t collection = result[baseValue] = new Collection(getItemIDFn);\n\t }\n\t\n\t collection.add(item);\n\t });\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * Return single item in collection.\n\t *\n\t * Returned item is inserted in this collection firstly.\n\t * @param {function} [filter] - function filter\n\t * @returns {object} item.\n\t */\n\tCollection.prototype.single = function(filter) {\n\t var result,\n\t useFilter = util.isFunction(filter);\n\t\n\t this.each(function(item) {\n\t if (!useFilter) {\n\t result = item;\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t if (filter(item)) {\n\t result = item;\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t }, this);\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * sort a basis of supplied compare function.\n\t * @param {function} compareFunction compareFunction\n\t * @returns {array} sorted array.\n\t */\n\tCollection.prototype.sort = function(compareFunction) {\n\t var arr = [];\n\t\n\t this.each(function(item) {\n\t arr.push(item);\n\t });\n\t\n\t if (isFunc(compareFunction)) {\n\t arr = arr.sort(compareFunction);\n\t }\n\t\n\t return arr;\n\t};\n\t\n\t/**\n\t * iterate each model element.\n\t *\n\t * when iteratee return false then break the loop.\n\t * @param {function} iteratee iteratee(item, index, items)\n\t * @param {*} [context] context\n\t */\n\tCollection.prototype.each = function(iteratee, context) {\n\t forEachProp(this.items, iteratee, context || this);\n\t};\n\t\n\t/**\n\t * return new array with collection items.\n\t * @returns {array} new array.\n\t */\n\tCollection.prototype.toArray = function() {\n\t if (!this.length) {\n\t return [];\n\t }\n\t\n\t return util.map(this.items, function(item) {\n\t return item;\n\t });\n\t};\n\t\n\tmodule.exports = Collection;\n\t\n\n\n/***/ },\n/* 13 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\t\n\tfunction Exception(message, node) {\n\t var loc = node && node.loc,\n\t line = undefined,\n\t column = undefined;\n\t if (loc) {\n\t line = loc.start.line;\n\t column = loc.start.column;\n\t\n\t message += ' - ' + line + ':' + column;\n\t }\n\t\n\t var tmp = Error.prototype.constructor.call(this, message);\n\t\n\t // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n\t for (var idx = 0; idx < errorProps.length; idx++) {\n\t this[errorProps[idx]] = tmp[errorProps[idx]];\n\t }\n\t\n\t /* istanbul ignore else */\n\t if (Error.captureStackTrace) {\n\t Error.captureStackTrace(this, Exception);\n\t }\n\t\n\t try {\n\t if (loc) {\n\t this.lineNumber = line;\n\t\n\t // Work around issue under safari where we can't directly set the column value\n\t /* istanbul ignore next */\n\t if (Object.defineProperty) {\n\t Object.defineProperty(this, 'column', {\n\t value: column,\n\t enumerable: true\n\t });\n\t } else {\n\t this.column = column;\n\t }\n\t }\n\t } catch (nop) {\n\t /* Ignore if the browser is very particular */\n\t }\n\t}\n\t\n\tException.prototype = new Error();\n\t\n\texports['default'] = Exception;\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ0EsSUFBTSxVQUFVLEdBQUcsQ0FBQyxhQUFhLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxPQUFPLENBQUMsQ0FBQzs7QUFFbkcsU0FBUyxTQUFTLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRTtBQUNoQyxNQUFJLEdBQUcsR0FBRyxJQUFJLElBQUksSUFBSS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ub3JlIGVsc2UgKi9cbiAgaWYgKEVycm9yLmNhcHR1cmVTdGFja1RyYWNlKSB7XG4gICAgRXJyb3IuY2FwdHVyZVN0YWNrVHJhY2UodGhpcywgRXhjZXB0aW9uKTtcbiAgfVxuXG4gIHRyeSB7XG4gICAgaWYgKGxvYykge1xuICAgICAgdGhpcy5saW5lTnVtYmVyID0gbGluZTtcblxuICAgICAgLy8gV29yayBhcm91bmQgaXNzdWUgdW5kZXIgc2FmYXJpIHdoZXJlIHdlIGNhbid0IGRpcmVjdGx5IHNldCB0aGUgY29sdW1uIHZhbHVlXG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICAgICAgaWYgKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkge1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2NvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogY29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgIH1cbiAgICB9XG4gIH0gY2F0Y2ggKG5vcCkge1xuICAgIC8qIElnbm9yZSBpZiB0aGUgYnJvd3NlciBpcyB2ZXJ5IHBhcnRpY3VsYXIgKi9cbiAgfVxufVxuXG5FeGNlcHRpb24ucHJvdG90eXBlID0gbmV3IEVycm9yKCk7XG5cbmV4cG9ydCBkZWZhdWx0IEV4Y2VwdGlvbjtcbiJdfQ==\n\n\n/***/ },\n/* 14 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Utility module for array sort, binary search.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar datetime = __webpack_require__(4);\n\t\n\t/**\n\t * A module for sorting array.\n\t * @module array\n\t */\n\t\n\t/**********\n\t * Search\n\t **********/\n\t\n\t/**\n\t * search item index using binary search algorithm.\n\t *\n\t * the array must be sorted.\n\t * @param {array} arr array to search.\n\t * @param {(string|number|boolean)} search value to search.\n\t * @param {function} [fn] iteratee for retrieve each element's value to search.\n\t * @param {function} [compare] compare function for specific sort status. default is string ascending.\n\t * @returns {number} The number of item index searched. return negative number when no exist that item.\n\t * It can use insert index after Math.abs()\n\t * @example\n\t *\n\t * var arr = [1, 3, 7, 11, 15, 23];\n\t *\n\t * function sortNumber(a, b) {\n\t * return a - b;\n\t * }\n\t *\n\t * bsearch(arr, 15, null, sortNumber); // 4\n\t * bsearch(arr, 21, null, sortNumber); // -5\n\t *\n\t * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n\t * // [1, 2, 7, 11, 15, 21, 23]\n\t */\n\tfunction bsearch(arr, search, fn, compare) {\n\t var minIndex = 0,\n\t maxIndex = arr.length - 1,\n\t currentIndex,\n\t value,\n\t comp;\n\t\n\t compare = compare || stringASC;\n\t\n\t while (minIndex <= maxIndex) {\n\t currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n\t value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n\t comp = compare(value, search);\n\t\n\t if (comp < 0) {\n\t minIndex = currentIndex + 1;\n\t } else if (comp > 0) {\n\t maxIndex = currentIndex - 1;\n\t } else {\n\t return currentIndex;\n\t }\n\t }\n\t\n\t return ~maxIndex;\n\t}\n\t\n\t/**********\n\t * Compare Functions\n\t **********/\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by ascending.\n\t * @param {boolean} a The boolean to compare\n\t * @param {boolean} b The boolean to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction booleanASC(a, b) {\n\t if (a !== b) {\n\t return a ? -1 : 1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by descending.\n\t * @param {boolean} a The boolean to compare\n\t * @param {boolean} b The boolean to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction booleanDESC(a, b) {\n\t if (a !== b) {\n\t return a ? 1 : -1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by number ascending.\n\t * @param {number} _a The number to compare.\n\t * @param {number} _b The number to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction numberASC(_a, _b) {\n\t var a = Number(_a),\n\t b = Number(_b);\n\t\n\t return a - b;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by number descending.\n\t * @param {number} _a The number to compare.\n\t * @param {number} _b The number to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction numberDESC(_a, _b) {\n\t var a = Number(_a),\n\t b = Number(_b);\n\t\n\t return b - a;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by string ascending\n\t * @param {string} _a The string to compare.\n\t * @param {string} _b The string to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction stringASC(_a, _b) {\n\t var a = String(_a),\n\t b = String(_b);\n\t\n\t if (a > b) {\n\t return 1;\n\t }\n\t if (a < b) {\n\t return -1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by string descending\n\t * @param {string} _a The string to compare.\n\t * @param {string} _b The string to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction stringDESC(_a, _b) {\n\t var a = String(_a),\n\t b = String(_b);\n\t\n\t if (a > b) {\n\t return -1;\n\t }\n\t if (a < b) {\n\t return 1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by string ascending with ignore case.\n\t * @param {string} _a The string to compare.\n\t * @param {string} _b The string to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction stringASCIgnoreCase(_a, _b) {\n\t var a = String(_a).toLowerCase(),\n\t b = String(_b).toLowerCase();\n\t\n\t if (a > b) {\n\t return 1;\n\t }\n\t if (a < b) {\n\t return -1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * compare function for array sort.\n\t *\n\t * sort array by string descending with ignore case.\n\t * @param {string} _a The string to compare.\n\t * @param {string} _b The string to compare.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction stringDESCIgnoreCase(_a, _b) {\n\t var a = String(_a).toLowerCase(),\n\t b = String(_b).toLowerCase();\n\t\n\t if (a > b) {\n\t return -1;\n\t }\n\t if (a < b) {\n\t return 1;\n\t }\n\t\n\t return 0;\n\t}\n\t\n\t/**\n\t * Compare schedule models for sort.\n\t *\n\t * 1. all day schedule first.\n\t * 2. early start.\n\t * 3. longest duration.\n\t * 4. early created.\n\t * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n\t * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n\t * @returns {number} Result of comparison.\n\t */\n\tfunction scheduleASC(a, b) {\n\t var durationA, durationB;\n\t var allDayCompare, startsCompare;\n\t var modelA = a.valueOf();\n\t var modelB = b.valueOf();\n\t\n\t allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\t\n\t if (allDayCompare) {\n\t return allDayCompare;\n\t }\n\t\n\t startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\t\n\t if (startsCompare) {\n\t return startsCompare;\n\t }\n\t\n\t durationA = a.duration().getTime();\n\t durationB = b.duration().getTime();\n\t\n\t if (durationA < durationB) {\n\t return 1;\n\t }\n\t if (durationA > durationB) {\n\t return -1;\n\t }\n\t\n\t return util.stamp(modelA) - util.stamp(modelB);\n\t}\n\t\n\tmodule.exports = {\n\t bsearch: bsearch,\n\t compare: {\n\t schedule: {\n\t asc: scheduleASC\n\t },\n\t bool: {\n\t asc: booleanASC,\n\t desc: booleanDESC\n\t },\n\t num: {\n\t asc: numberASC,\n\t desc: numberDESC\n\t },\n\t str: {\n\t asc: stringASC,\n\t desc: stringDESC,\n\t ascIgnoreCase: stringASCIgnoreCase,\n\t descIgnoreCase: stringDESCIgnoreCase\n\t }\n\t }\n\t};\n\t\n\n\n/***/ },\n/* 15 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Wrapper module for easy calc date object\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @param {Date} date to wrapping DW class\n\t */\n\tfunction DW(date) {\n\t if (!(this instanceof DW)) {\n\t return new DW(date);\n\t }\n\t\n\t if (!(date instanceof TZDate)) {\n\t date = new TZDate(date);\n\t }\n\t\n\t /**\n\t * @type {Date}\n\t */\n\t this.d = date;\n\t}\n\t\n\t/**\n\t * Return d property when supplied object is DW. else return itself\n\t * @param {*} obj - object\n\t * @returns {Date} date\n\t */\n\tDW.prototype.safe = function(obj) {\n\t if (obj.constructor === DW) {\n\t return obj.d;\n\t }\n\t\n\t return obj;\n\t};\n\t\n\t/**\n\t * Clone DW object\n\t * @returns {DW} cloned dwrap object\n\t */\n\tDW.prototype.clone = function() {\n\t return new DW(new TZDate(Number(this.d)));\n\t};\n\t\n\t/**\n\t * Add days\n\t * @param {number} day - day to add\n\t * @returns {DW} wrapper object\n\t */\n\tDW.prototype.addDate = function(day) {\n\t this.d.setDate(this.d.getDate() + day);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Add month. If month value is changed, date set to 1.\n\t * @param {number} m - month to add\n\t * @returns {DW} wrapper object\n\t */\n\tDW.prototype.addMonth = function(m) {\n\t var prevMonth = this.d.getMonth();\n\t var prevYear = this.d.getFullYear();\n\t this.d.setMonth(prevMonth + m);\n\t\n\t // move to first day on the month because plus 1 month on '2017-01-31' means '2017-03-01'\n\t // Don't do it on different year(Because december + 1month is ok)\n\t if (this.d.getFullYear() === prevYear && this.d.getMonth() !== prevMonth) {\n\t this.d.setMonth(prevMonth + m, 1);\n\t }\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Set hour, minutes, seconds, milliseconds\n\t * @param {number} h - hours\n\t * @param {number} m - minutes\n\t * @param {number} s - seconds\n\t * @param {number} ms - milliseconds\n\t * @returns {DW} wrapper object\n\t */\n\tDW.prototype.setHours = function(h, m, s, ms) {\n\t this.d.setHours(h, m, s, ms);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Whether date is between supplied dates?\n\t * @param {Date|DW} d1 - from date\n\t * @param {Date|DW} d2 - to date\n\t * @returns {boolean} is between?\n\t */\n\tDW.prototype.isBetween = function(d1, d2) {\n\t var safe = this.safe;\n\t\n\t return safe(d1) <= this.d && this.d <= safe(d2);\n\t};\n\t\n\tmodule.exports = DW;\n\n\n/***/ },\n/* 16 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Floating layer module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options for floating layer module\n\t * @param {HTMLElement} container - parent continer for floating layer\n\t */\n\tfunction FloatingLayer(options, container) {\n\t var sibling = container[FloatingLayer.PROP_KEY],\n\t layerContainer;\n\t\n\t if (!sibling) {\n\t sibling = container[FloatingLayer.PROP_KEY] = [];\n\t }\n\t\n\t sibling.push(this);\n\t\n\t /**\n\t * @type {Collection}\n\t */\n\t this.sibling = sibling;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\t\n\t layerContainer = document.createElement('div');\n\t layerContainer.style.display = 'none';\n\t layerContainer.style.position = 'absolute';\n\t domutil.addClass(layerContainer, config.classname('floating-layer'));\n\t container.appendChild(layerContainer);\n\t\n\t View.call(this, layerContainer);\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.parent = container;\n\t}\n\t\n\tutil.inherit(FloatingLayer, View);\n\t\n\t/**\n\t * @const\n\t */\n\tFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\t\n\t/**\n\t * @const\n\t */\n\tFloatingLayer.INIT_ZINDEX = 999;\n\t\n\t/**\n\t * Destroy floating layer instance. if there no instnace in parent container\n\t *\n\t * remove instance cache property in container element\n\t */\n\tFloatingLayer.prototype.destroy = function() {\n\t var parent = this.parent,\n\t sibling = this.sibling,\n\t i = 0, cnt = sibling.length;\n\t\n\t for (; i < cnt; i += 1) {\n\t if (sibling[i] === this) {\n\t sibling.splice(i, 1);\n\t break;\n\t }\n\t }\n\t\n\t if (!sibling.length) {\n\t try {\n\t delete parent[FloatingLayer.PROP_KEY];\n\t } catch (e) {\n\t parent[FloatingLayer.PROP_KEY] = null;\n\t }\n\t\n\t parent.style.position = '';\n\t }\n\t\n\t domutil.remove(this.container);\n\t\n\t this.sibling = null;\n\t\n\t View.prototype.destroy.call(this);\n\t};\n\t\n\t/**\n\t * @returns {boolean} whether layer is visible?\n\t */\n\tFloatingLayer.prototype.isVisible = function() {\n\t return this.container.style.display !== 'none';\n\t};\n\t\n\t/**\n\t * Set layer position\n\t * @param {number} x - x coordinate of layer\n\t * @param {number} y - y coordinate of layer\n\t */\n\tFloatingLayer.prototype.setPosition = function(x, y) {\n\t domutil.setPosition(this.container, x, y);\n\t};\n\t\n\t/**\n\t * Set layer left, top, right, bottom position\n\t * @param {object} ltrb object of left, top, right, bottom\n\t * @param {number} [ltrb.left] left pixel value.\n\t * @param {number} [ltrb.top] top pixel value.\n\t * @param {number} [ltrb.right] right pixel value.\n\t * @param {number} [ltrb.bottom] bottom pixel value.\n\t */\n\tFloatingLayer.prototype.setLTRB = function(ltrb) {\n\t domutil.setLTRB(this.container, ltrb);\n\t};\n\t\n\t/**\n\t * Set layer size\n\t * @param {number|string} w - layer width\n\t * @param {number|string} h - layer height\n\t */\n\tFloatingLayer.prototype.setSize = function(w, h) {\n\t var container = this.container;\n\t\n\t w = util.isNumber(w) ? w + 'px' : w;\n\t h = util.isNumber(h) ? h + 'px' : h;\n\t\n\t container.style.width = w;\n\t container.style.height = h;\n\t};\n\t\n\t/**\n\t * Set layer content\n\t * @param {string} html - html string\n\t */\n\tFloatingLayer.prototype.setContent = function(html) {\n\t this.container.innerHTML = html;\n\t};\n\t\n\t/**\n\t * Get largest z-index from sibling layers\n\t * @returns {number} largest z-index value\n\t */\n\tFloatingLayer.prototype.getLargestZIndex = function() {\n\t var zIndexes = util.map(this.sibling, function(layer) {\n\t return layer.zIndex;\n\t });\n\t\n\t return Math.max.apply(null, zIndexes);\n\t};\n\t\n\t/**\n\t * Set focus to layer\n\t */\n\tFloatingLayer.prototype.focus = function() {\n\t var zIndexForShow = this.getLargestZIndex() + 1;\n\t this.container.style.zIndex = this.zIndex = zIndexForShow;\n\t};\n\t\n\t/**\n\t * Show layer\n\t */\n\tFloatingLayer.prototype.show = function() {\n\t this.focus();\n\t this.container.style.display = 'block';\n\t};\n\t\n\t/**\n\t * Hide layer\n\t */\n\tFloatingLayer.prototype.hide = function() {\n\t this.container.style.display = 'none';\n\t};\n\t\n\tmodule.exports = FloatingLayer;\n\t\n\n\n/***/ },\n/* 17 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint no-shadow: 0 */\n\t/**\n\t * @fileoverview Base mixin object for handler/allday\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\tvar common = __webpack_require__(6);\n\t\n\tvar mmax = Math.max,\n\t mmin = Math.min;\n\t\n\t/**\n\t * @mixin Allday.Core\n\t */\n\tvar alldayCore = {\n\t /**\n\t * @param {Allday} alldayView - view instance of allday.\n\t * @param {MouseEvent} mouseEvent - mouse schedule object.\n\t * @returns {function|boolean} function that return schedule data by mouse events.\n\t */\n\t _retriveScheduleData: function(alldayView, mouseEvent) {\n\t var weekdayView = alldayView.children.single(),\n\t container,\n\t datesInRange,\n\t containerWidth,\n\t mousePos,\n\t dragStartXIndex,\n\t grids,\n\t range;\n\t\n\t if (!weekdayView) {\n\t return false;\n\t }\n\t\n\t container = weekdayView.container;\n\t range = weekdayView.getRenderDateRange();\n\t datesInRange = range.length;\n\t grids = weekdayView.getRenderDateGrids();\n\t\n\t containerWidth = domutil.getSize(container)[0];\n\t mousePos = domevent.getMousePosition(mouseEvent, container);\n\t dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\t\n\t /**\n\t * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n\t * @returns {object} schedule data.\n\t */\n\t return function(mouseEvent) {\n\t var pos = domevent.getMousePosition(mouseEvent, container),\n\t mouseX = pos[0],\n\t xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\t\n\t // apply limitation of creation schedule X index.\n\t xIndex = mmax(xIndex, 0);\n\t xIndex = mmin(xIndex, datesInRange - 1);\n\t\n\t return {\n\t relatedView: alldayView,\n\t dragStartXIndex: dragStartXIndex,\n\t datesInRange: datesInRange,\n\t xIndex: xIndex,\n\t triggerEvent: mouseEvent.type,\n\t grids: grids,\n\t range: range\n\t };\n\t };\n\t }\n\t};\n\t\n\t/**\n\t * Get the left index\n\t * @param {Array} grids - grid size information\n\t * @param {number} left - left position(percent)\n\t * @returns {number} grid left index\n\t */\n\tfunction getX(grids, left) {\n\t var i = 0;\n\t var length = grids.length;\n\t var grid;\n\t if (left < 0) {\n\t left = 0;\n\t }\n\t\n\t for (; i < length; i += 1) {\n\t grid = grids[i];\n\t if (grid.left <= left && left <= (grid.left + grid.width)) {\n\t return i;\n\t }\n\t }\n\t\n\t return i;\n\t}\n\t\n\tmodule.exports = alldayCore;\n\t\n\n\n/***/ },\n/* 18 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Module for calculate date by month view and mouse event object\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t domevent = __webpack_require__(9);\n\tvar mfloor = Math.floor;\n\t\n\t/**\n\t * Get high order function that can calc date in mouse point\n\t * @param {Month} monthView - month view\n\t * @returns {function} function return event data by mouse event object\n\t */\n\tfunction getMousePosDate(monthView) {\n\t var weekColl = monthView.children,\n\t weeks = weekColl.sort(function(a, b) {\n\t return util.stamp(a) - util.stamp(b);\n\t }),\n\t weekCount = weekColl.length,\n\t days = weekColl.single().getRenderDateRange(),\n\t dayCount = days.length,\n\t relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n\t size = domutil.getSize(relativeContainer),\n\t grids = monthView.grids;\n\t\n\t /**\n\t * Get the left index\n\t * @param {number} left - left position(percent)\n\t * @returns {number} grid left index\n\t */\n\t function getX(left) {\n\t var i = 0;\n\t var length = grids.length;\n\t var grid;\n\t for (; i < length; i += 1) {\n\t grid = grids[i];\n\t if (grid.left <= left && left <= (grid.left + grid.width)) {\n\t return i;\n\t }\n\t }\n\t\n\t return i;\n\t }\n\t\n\t /**\n\t * Get date related with mouse event object\n\t * @param {object} mouseEvent - click event data\n\t * @returns {object} data related with mouse event\n\t */\n\t function getDate(mouseEvent) {\n\t var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n\t x = getX(common.ratio(size[0], 100, pos[0])),\n\t y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n\t weekdayView, date;\n\t\n\t weekdayView = util.pick(weeks, y);\n\t\n\t if (!weekdayView) {\n\t return null;\n\t }\n\t\n\t date = util.pick(weekdayView.getRenderDateRange(), x);\n\t\n\t if (!date) {\n\t return null;\n\t }\n\t\n\t return {\n\t x: x,\n\t y: y,\n\t sizeX: dayCount,\n\t sizeY: weekCount,\n\t date: date,\n\t weekdayView: weekdayView,\n\t triggerEvent: mouseEvent.type\n\t };\n\t }\n\t\n\t return getDate;\n\t}\n\t\n\tmodule.exports = getMousePosDate;\n\n\n/***/ },\n/* 19 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Core methods for dragging actions\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar common = __webpack_require__(6);\n\tvar datetime = __webpack_require__(4);\n\tvar domevent = __webpack_require__(9);\n\tvar Point = __webpack_require__(23);\n\t\n\t/**\n\t * @mixin Time.Core\n\t */\n\tvar timeCore = {\n\t /**\n\t * Get Y index ratio(hour) in time grids by supplied parameters.\n\t * @param {number} baseMil - base milliseconds number for supplied height.\n\t * @param {number} height - container element height.\n\t * @param {number} y - Y coordinate to calculate hour ratio.\n\t * @returns {number} hour index ratio value.\n\t */\n\t _calcGridYIndex: function(baseMil, height, y) {\n\t // get ratio from right expression > point.y : x = session.height : baseMil\n\t // and convert milliseconds value to hours.\n\t var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n\t floored = result | 0,\n\t nearest = common.nearest(result - floored, [0, 1]);\n\t\n\t return floored + (nearest ? 0.5 : 0);\n\t },\n\t\n\t /**\n\t * Get function to makes event data from Time and mouseEvent\n\t * @param {Time} timeView - Instance of time view.\n\t * @returns {function} - Function that return event data from mouse event.\n\t */\n\t _retriveScheduleData: function(timeView) {\n\t var self = this,\n\t container = timeView.container,\n\t options = timeView.options,\n\t viewHeight = timeView.getViewBound().height,\n\t viewTime = Number(timeView.getDate()),\n\t hourLength = options.hourEnd - options.hourStart,\n\t baseMil = datetime.millisecondsFrom('hour', hourLength);\n\t\n\t /**\n\t * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n\t * @param {object} [extend] - object to extend event data before return.\n\t * @returns {object} - common event data for time.*\n\t */\n\t return util.bind(function(mouseEvent, extend) {\n\t var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n\t gridY = common.ratio(viewHeight, hourLength, mouseY),\n\t timeY = viewTime + datetime.millisecondsFrom('hour', gridY),\n\t nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n\t nearestGridTimeY = viewTime + datetime.millisecondsFrom('hour', nearestGridY + options.hourStart);\n\t\n\t return util.extend({\n\t target: mouseEvent.target || mouseEvent.srcElement,\n\t relatedView: timeView,\n\t originEvent: mouseEvent,\n\t mouseY: mouseY,\n\t gridY: gridY,\n\t timeY: timeY,\n\t nearestGridY: nearestGridY,\n\t nearestGridTimeY: nearestGridTimeY,\n\t triggerEvent: mouseEvent.type\n\t }, extend);\n\t }, this);\n\t },\n\t\n\t /**\n\t * Mixin method.\n\t * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n\t */\n\t mixin: function(obj) {\n\t var proto = obj.prototype;\n\t util.forEach(timeCore, function(method, methodName) {\n\t if (methodName === 'mixin') {\n\t return;\n\t }\n\t\n\t proto[methodName] = method;\n\t });\n\t }\n\t};\n\t\n\tmodule.exports = timeCore;\n\t\n\n\n/***/ },\n/* 20 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint complexity: 0 */\n\t/**\n\t * @fileoverview Model of schedule.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar datetime = __webpack_require__(4);\n\tvar dirty = __webpack_require__(62);\n\tvar model = __webpack_require__(63);\n\t\n\t/**\n\t * 일정 카테고리\n\t * @readonly\n\t * @enum {string}\n\t */\n\tvar SCHEDULE_CATEGORY = {\n\t /** 마일스톤 */\n\t MILESTONE: 'milestone',\n\t\n\t /** 업무 */\n\t TASK: 'task',\n\t\n\t /** 종일일정 */\n\t ALLDAY: 'allday',\n\t\n\t /** 시간별 일정 */\n\t TIME: 'time'\n\t};\n\t\n\t/**\n\t * The model of calendar schedules.\n\t * @constructor\n\t * @mixes dirty\n\t * @mixes model\n\t */\n\tfunction Schedule() {\n\t /**\n\t * `Optional` unique id for various use.\n\t * @type {string}\n\t */\n\t this.id = '';\n\t\n\t /**\n\t * title for schedule.\n\t * @type {string}\n\t */\n\t this.title = '';\n\t\n\t /**\n\t * is schedule is all day schedule?\n\t * @type {boolean}\n\t */\n\t this.isAllDay = false;\n\t\n\t /**\n\t * schedule start\n\t * @type {TZDate}\n\t */\n\t this.start = null;\n\t\n\t /**\n\t * schedule end\n\t * @type {TZDate}\n\t */\n\t this.end = null;\n\t\n\t /**\n\t * schedule text color\n\t * @type {string}\n\t */\n\t this.color = '#000';\n\t\n\t /**\n\t * schedule block visibility\n\t * @type {boolean}\n\t */\n\t this.isVisible = true;\n\t\n\t /**\n\t * schedule background color\n\t * @type {string}\n\t */\n\t this.bgColor = '#a1b56c';\n\t\n\t /**\n\t * schedule left border color\n\t * @type {string}\n\t */\n\t this.borderColor = '#000';\n\t\n\t /**\n\t * 캘린더 ID\n\t * @type {string}\n\t */\n\t this.calendarId = '';\n\t\n\t /**\n\t * 일정 카테고리 (마일스톤, 업무, 종일일정, 시간별일정)\n\t * @type {string}\n\t */\n\t this.category = '';\n\t\n\t /**\n\t * 업무 일정의 경우 구분 (출근전, 점심전, 퇴근전)\n\t * @type {string}\n\t */\n\t this.dueDateClass = '';\n\t\n\t /**\n\t * 커스텀 스타일\n\t * @type {string}\n\t */\n\t this.customStyle = '';\n\t\n\t /**\n\t * in progress flag to do something\n\t * @type {boolean}\n\t */\n\t this.isPending = false;\n\t\n\t /**\n\t * focused schedule flag\n\t * @type {boolean}\n\t */\n\t this.isFocused = false;\n\t\n\t /**\n\t * read-only schedule flag\n\t * @type {boolean}\n\t */\n\t this.isReadOnly = false;\n\t\n\t /**\n\t * 렌더링과 관계 없는 별도 데이터 저장 공간.\n\t * @type {object}\n\t */\n\t this.raw = null;\n\t\n\t // initialize model id\n\t util.stamp(this);\n\t}\n\t\n\t/**********\n\t * static props\n\t **********/\n\t\n\tSchedule.schema = {\n\t required: ['title'],\n\t dateRange: ['start', 'end']\n\t};\n\t\n\t/**\n\t * create schedule model from json(object) data.\n\t * @param {object} data object for model.\n\t * @returns {Schedule} Schedule model instance.\n\t */\n\tSchedule.create = function(data) {\n\t var inst = new Schedule();\n\t inst.init(data);\n\t\n\t return inst;\n\t};\n\t\n\t/**********\n\t * prototype props\n\t **********/\n\t\n\t/**\n\t * Initialize schedule instance.\n\t * @param {object} options options.\n\t */\n\tSchedule.prototype.init = function(options) {\n\t options = util.extend({}, options);\n\t if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n\t options.isAllDay = true;\n\t }\n\t\n\t this.id = options.id || '';\n\t this.title = options.title || '';\n\t this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n\t this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\t\n\t this.color = options.color || this.color;\n\t this.bgColor = options.bgColor || this.bgColor;\n\t this.borderColor = options.borderColor || this.borderColor;\n\t this.calendarId = options.calendarId || '';\n\t this.category = options.category || '';\n\t this.dueDateClass = options.dueDateClass || '';\n\t this.customStyle = options.customStyle || '';\n\t this.isPending = options.isPending || false;\n\t this.isFocused = options.isFocused || false;\n\t this.isReadOnly = options.isReadOnly || false;\n\t\n\t if (this.isAllDay) {\n\t this.setAllDayPeriod(options.start, options.end);\n\t } else {\n\t this.setTimePeriod(options.start, options.end);\n\t }\n\t\n\t if (options.category === SCHEDULE_CATEGORY.MILESTONE ||\n\t options.category === SCHEDULE_CATEGORY.TASK) {\n\t this.start = new TZDate(this.end);\n\t }\n\t\n\t this.raw = options.raw || null;\n\t};\n\t\n\tSchedule.prototype.setAllDayPeriod = function(start, end) {\n\t // 종일일정인 경우 문자열의 날짜정보만 사용한다.\n\t if (util.isString(start)) {\n\t start = datetime.parse(start.substring(0, 10));\n\t }\n\t if (util.isString(end)) {\n\t end = datetime.parse(end.substring(0, 10));\n\t }\n\t\n\t this.start = start;\n\t this.start.setHours(0, 0, 0);\n\t this.end = end || new TZDate(this.start);\n\t this.end.setHours(23, 59, 59);\n\t};\n\t\n\tSchedule.prototype.setTimePeriod = function(start, end) {\n\t this.start = new TZDate(start || Date.now());\n\t this.end = new TZDate(end || this.start);\n\t\n\t if (!end) {\n\t this.end.setMinutes(this.end.getMinutes() + 30);\n\t }\n\t};\n\t\n\t/**\n\t * @returns {Date} render start date.\n\t */\n\tSchedule.prototype.getStarts = function() {\n\t return this.start;\n\t};\n\t\n\t/**\n\t * @returns {Date} render end date.\n\t */\n\tSchedule.prototype.getEnds = function() {\n\t return this.end;\n\t};\n\t\n\t/**\n\t * @returns {number} instance unique id.\n\t */\n\tSchedule.prototype.cid = function() {\n\t return util.stamp(this);\n\t};\n\t\n\t/**\n\t * Check two schedule are equals (means title, isAllDay, start, end are same)\n\t * @param {Schedule} schedule Schedule model instance to compare.\n\t * @returns {boolean} Return false when not same.\n\t */\n\tSchedule.prototype.equals = function(schedule) {\n\t if (this.id !== schedule.id) {\n\t return false;\n\t }\n\t\n\t if (this.title !== schedule.title) {\n\t return false;\n\t }\n\t\n\t if (this.isAllDay !== schedule.isAllDay) {\n\t return false;\n\t }\n\t\n\t if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n\t return false;\n\t }\n\t\n\t if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n\t return false;\n\t }\n\t\n\t if (this.color !== schedule.color) {\n\t return false;\n\t }\n\t\n\t if (this.bgColor !== schedule.bgColor) {\n\t return false;\n\t }\n\t\n\t if (this.borderColor !== schedule.borderColor) {\n\t return false;\n\t }\n\t\n\t return true;\n\t};\n\t\n\t/**\n\t * return duration between start and end.\n\t * @returns {Date} duration (UTC)\n\t */\n\tSchedule.prototype.duration = function() {\n\t var start = this.getStarts(),\n\t end = this.getEnds(),\n\t duration;\n\t\n\t if (this.isAllDay) {\n\t duration = new TZDate(datetime.end(end) - datetime.start(start));\n\t } else {\n\t duration = new TZDate(end - start);\n\t }\n\t\n\t return duration;\n\t};\n\t\n\t/**\n\t * Returns true if the given Schedule coincides with the same time as the\n\t * calling Schedule.\n\t * @param {Schedule} schedule The other schedule to compare with this Schedule.\n\t * @returns {boolean} If the other schedule occurs within the same time as the first object.\n\t */\n\tSchedule.prototype.collidesWith = function(schedule) {\n\t var ownStarts = this.getStarts(),\n\t ownEnds = this.getEnds(),\n\t start = schedule.getStarts(),\n\t end = schedule.getEnds();\n\t\n\t if ((start > ownStarts && start < ownEnds) ||\n\t (end > ownStarts && end < ownEnds) ||\n\t (start <= ownStarts && end >= ownEnds)) {\n\t return true;\n\t }\n\t\n\t return false;\n\t};\n\t\n\tmodel.mixin(Schedule.prototype);\n\tdirty.mixin(Schedule.prototype);\n\t\n\tmodule.exports = Schedule;\n\n\n/***/ },\n/* 21 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tmodule.exports = __webpack_require__(7);\n\n/***/ },\n/* 22 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.HandlebarsEnvironment = HandlebarsEnvironment;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\tvar _exception = __webpack_require__(13);\n\t\n\tvar _exception2 = _interopRequireDefault(_exception);\n\t\n\tvar _helpers = __webpack_require__(49);\n\t\n\tvar _decorators = __webpack_require__(47);\n\t\n\tvar _logger = __webpack_require__(57);\n\t\n\tvar _logger2 = _interopRequireDefault(_logger);\n\t\n\tvar VERSION = '4.0.11';\n\texports.VERSION = VERSION;\n\tvar COMPILER_REVISION = 7;\n\t\n\texports.COMPILER_REVISION = COMPILER_REVISION;\n\tvar REVISION_CHANGES = {\n\t 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n\t 2: '== 1.0.0-rc.3',\n\t 3: '== 1.0.0-rc.4',\n\t 4: '== 1.x.x',\n\t 5: '== 2.0.0-alpha.x',\n\t 6: '>= 2.0.0-beta.1',\n\t 7: '>= 4.0.0'\n\t};\n\t\n\texports.REVISION_CHANGES = REVISION_CHANGES;\n\tvar objectType = '[object Object]';\n\t\n\tfunction HandlebarsEnvironment(helpers, partials, decorators) {\n\t this.helpers = helpers || {};\n\t this.partials = partials || {};\n\t this.decorators = decorators || {};\n\t\n\t _helpers.registerDefaultHelpers(this);\n\t _decorators.registerDefaultDecorators(this);\n\t}\n\t\n\tHandlebarsEnvironment.prototype = {\n\t constructor: HandlebarsEnvironment,\n\t\n\t logger: _logger2['default'],\n\t log: _logger2['default'].log,\n\t\n\t registerHelper: function registerHelper(name, fn) {\n\t if (_utils.toString.call(name) === objectType) {\n\t if (fn) {\n\t throw new _exception2['default']('Arg not supported with multiple helpers');\n\t }\n\t _utils.extend(this.helpers, name);\n\t } else {\n\t this.helpers[name] = fn;\n\t }\n\t },\n\t unregisterHelper: function unregisterHelper(name) {\n\t delete this.helpers[name];\n\t },\n\t\n\t registerPartial: function registerPartial(name, partial) {\n\t if (_utils.toString.call(name) === objectType) {\n\t _utils.extend(this.partials, name);\n\t } else {\n\t if (typeof partial === 'undefined') {\n\t throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n\t }\n\t this.partials[name] = partial;\n\t }\n\t },\n\t unregisterPartial: function unregisterPartial(name) {\n\t delete this.partials[name];\n\t },\n\t\n\t registerDecorator: function registerDecorator(name, fn) {\n\t if (_utils.toString.call(name) === objectType) {\n\t if (fn) {\n\t throw new _exception2['default']('Arg not supported with multiple decorators');\n\t }\n\t _utils.extend(this.decorators, name);\n\t } else {\n\t this.decorators[name] = fn;\n\t }\n\t },\n\t unregisterDecorator: function unregisterDecorator(name) {\n\t delete this.decorators[name];\n\t }\n\t};\n\t\n\tvar log = _logger2['default'].log;\n\t\n\texports.log = log;\n\texports.createFrame = _utils.createFrame;\n\texports.logger = _logger2['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQTRDLFNBQVM7O3lCQUMvQixhQUFhOzs7O3VCQUNFLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNuQyxVQUFVOzs7O0FBRXRCLElBQU0sT0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2VyfTtcbiJdfQ==\n\n\n/***/ },\n/* 23 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview\n\t * Class for represent two dimensional x, y coordinates.\n\t *\n\t * It suppliy a group of functions for manipulate coordinates.\n\t * @author NHN Ent. FE Development Team \n\t * @example\n\t * var p = point(10, 10);\n\t * var r1 = p.add(Point(5, 5));\n\t * console.log(p.toString()) // \"Point(10, 10)\"\n\t * console.log(r1.toString()) // \"Point(15, 15)\"\n\t *\n\t * var p2 = new Point(10, 10);\n\t * p2._add(point(5, 5));\n\t * console.log(p2.toString()) // \"Point(15, 15)\"\n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\t/**\n\t * Class for represent two dimentional x, y coordinates.\n\t * @constructor\n\t * @param {number} x The number of X coordinates.\n\t * @param {number} y The number of Y coordinates.\n\t * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n\t * @example\n\t * var t = new Point(13, 5);\n\t */\n\tfunction Point(x, y, useRound) {\n\t /**\n\t * @type {number}\n\t */\n\t this.x = (useRound ? Math.round(x) : x);\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.y = (useRound ? Math.round(y) : y);\n\t}\n\t\n\t/**********\n\t * static props\n\t **********/\n\t\n\t/**\n\t * Calculate point ratio.\n\t * @param {Point} point The instance of point.\n\t * @param {number} factor From factor\n\t * @param {number} toFactor To factor\n\t * @returns {Point} Point instance calculated.\n\t */\n\tPoint.getRatio = function(point, factor, toFactor) {\n\t if (factor === toFactor) {\n\t return point.clone();\n\t }\n\t\n\t return point.multiplyBy(toFactor)._divideBy(factor);\n\t};\n\t\n\t/**\n\t * Syntatic sugar of new Point()\n\t * @param {(Point|number|number[])} x X coordinate value.\n\t * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n\t * @param {boolean} [useRound] Set true then round initial coordinate values.\n\t * @returns {Point} The instance of point.\n\t * @example\n\t * var p1 = point(10, 15);\n\t * var p2 = point([10, 15]);\n\t */\n\tPoint.n = function(x, y, useRound) {\n\t if (x instanceof Point) {\n\t return x;\n\t }\n\t\n\t if (util.isArray(x)) {\n\t return new Point(x[0], x[1], y);\n\t }\n\t\n\t return new Point(x, y, useRound);\n\t};\n\t\n\t/**********\n\t * prototype props\n\t **********/\n\t\n\t/**\n\t * Clone points\n\t * @returns {Point} The point instance cloned.\n\t */\n\tPoint.prototype.clone = function() {\n\t return new Point(this.x, this.y);\n\t};\n\t\n\t/**\n\t * Add points.\n\t * @param {Point} point The point instance to add.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.add = function(point) {\n\t return this.clone()._add(Point.n(point));\n\t};\n\t\n\t/**\n\t * Add self points.\n\t * @param {Point} point The point instance to add.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._add = function(point) {\n\t this.x += point.x;\n\t this.y += point.y;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Subtract points.\n\t * @param {Point} point The point instance to subtract.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.subtract = function(point) {\n\t return this.clone()._subtract(Point.n(point));\n\t};\n\t\n\t/**\n\t * Subtract points. (manipulate self)\n\t * @param {Point} point The point instance to subtract.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._subtract = function(point) {\n\t this.x -= point.x;\n\t this.y -= point.y;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Divide points.\n\t * @param {number} num The number to divide.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.divideBy = function(num) {\n\t return this.clone()._divideBy(num);\n\t};\n\t\n\t/**\n\t * Divide points. (manipulate self)\n\t * @param {number} num The number to divide.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._divideBy = function(num) {\n\t this.x /= num;\n\t this.y /= num;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Multiply coordinates.\n\t * @param {number} num Thyen number to multiply\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.multiplyBy = function(num) {\n\t return this.clone()._multiplyBy(num);\n\t};\n\t\n\t/**\n\t * Multiply self coordinates.\n\t * @param {number} num The number to multiply.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._multiplyBy = function(num) {\n\t this.x *= num;\n\t this.y *= num;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Round coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.round = function() {\n\t return this.clone()._round();\n\t};\n\t\n\t/**\n\t * Round self coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._round = function() {\n\t this.x = Math.round(this.x);\n\t this.y = Math.round(this.y);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Reverse values between positive and negative.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.reverse = function() {\n\t return this.clone()._reverse();\n\t};\n\t\n\t/**\n\t * Reverse self values between positive and negative.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._reverse = function() {\n\t this.x *= -1;\n\t this.y *= -1;\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Floor coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.floor = function() {\n\t return this.clone()._floor();\n\t};\n\t\n\t/**\n\t * Floor self coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._floor = function() {\n\t this.x = Math.floor(this.x);\n\t this.y = Math.floor(this.y);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Ceil coordinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype.ceil = function() {\n\t return this.clone()._ceil();\n\t};\n\t\n\t/**\n\t * Ceil self coodinates.\n\t * @returns {Point} Point calculated.\n\t */\n\tPoint.prototype._ceil = function() {\n\t this.x = Math.ceil(this.x);\n\t this.y = Math.ceil(this.y);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Rotate point.\n\t * @param {number} deg The number of rotate degree.\n\t * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n\t * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n\t * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n\t * @returns {Point} The point instance rotated.\n\t */\n\tPoint.prototype.rotate = function(deg, center, cos, sin) {\n\t return this.clone()._rotate(deg, center, cos, sin);\n\t};\n\t\n\t/**\n\t * Rotate self.\n\t * @param {number} deg The number of rotate degree.\n\t * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n\t * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n\t * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n\t * @returns {Point} The point instance rotated.\n\t */\n\tPoint.prototype._rotate = function(deg, center, cos, sin) {\n\t var rad = deg * (Math.PI / 180),\n\t x,\n\t y;\n\t\n\t cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n\t sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\t\n\t this._subtract(center);\n\t\n\t x = this.x;\n\t y = this.y;\n\t\n\t this.x = (x * cos) - (y * sin);\n\t this.y = (x * sin) + (y * cos);\n\t\n\t this._add(center);\n\t\n\t return this;\n\t};\n\t\n\t/**\n\t * Calculate distance between two points.\n\t * @param {Point} point Point instance.\n\t * @returns {number} The number of distance between two points.\n\t */\n\tPoint.prototype.distanceTo = function(point) {\n\t var x,\n\t y;\n\t\n\t point = Point.n(point);\n\t\n\t x = point.x - this.x;\n\t y = point.y - this.y;\n\t\n\t return Math.sqrt((x * x) + (y * y));\n\t};\n\t\n\t/**\n\t * Check point equals.\n\t * @param {Point} point Point instance to compare\n\t * @returns {boolean} equality\n\t */\n\tPoint.prototype.equals = function(point) {\n\t point = Point.n(point);\n\t\n\t return point.x === this.x && point.y === this.y;\n\t};\n\t\n\t/**\n\t * Return formatted string. 'Point(x, y)'\n\t * @returns {string} string\n\t */\n\tPoint.prototype.toString = function() {\n\t return 'Point(' + this.x + ', ' + this.y + ')';\n\t};\n\t\n\t/**\n\t * Return coodinates to array. [x, y]\n\t * @returns {number[]} coordinate array.\n\t */\n\tPoint.prototype.toArray = function() {\n\t return [this.x, this.y];\n\t};\n\t\n\tmodule.exports = Point;\n\t\n\n\n/***/ },\n/* 24 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Layout module that supplied split height, resize height features.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t domevent = __webpack_require__(9),\n\t View = __webpack_require__(8),\n\t VPanel = __webpack_require__(64),\n\t Drag = __webpack_require__(26);\n\t\n\tvar mAbs = Math.abs;\n\t\n\t/**\n\t * @typedef PanelOptions\n\t * @type {object}\n\t * @property {number} [minHeight=0] - minimum height of panel\n\t * @property {number} [height=0] - current panel height\n\t * @property {boolean} [splitter=false] - is this panel uses splitter?\n\t * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n\t * @property {string} [className=''] - className string for add created element\n\t */\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options for VLayout module\n\t * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n\t * @param {number[]} [options.panelHeights] - panel height list\n\t * @param {HTMLElement} container - container element\n\t */\n\tfunction VLayout(options, container) {\n\t var opt, tempHeights;\n\t\n\t if (!(this instanceof VLayout)) {\n\t return new VLayout(options, container);\n\t }\n\t\n\t View.call(this, container);\n\t\n\t domutil.addClass(container, config.classname('vlayout-container'));\n\t\n\t /**\n\t * @type {object}\n\t */\n\t opt = this.options = util.extend({\n\t panels: [],\n\t panelHeights: []\n\t }, options);\n\t\n\t /**\n\t * @type {VPanel[]}\n\t */\n\t this.panels = [];\n\t\n\t /**\n\t * @type {Drag}\n\t */\n\t this._drag = new Drag({\n\t distance: 10,\n\t exclude: function(target) {\n\t return !domutil.hasClass(target, config.classname('splitter'));\n\t }\n\t }, container);\n\t\n\t this._drag.on({\n\t dragStart: this._onDragStart,\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._dragData = null;\n\t\n\t if (opt.panels.length) {\n\t if (opt.panelHeights.length) {\n\t tempHeights = opt.panelHeights.slice();\n\t util.forEach(opt.panels, function(panelOpt) {\n\t if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n\t panelOpt.height = tempHeights.shift();\n\t }\n\t });\n\t }\n\t\n\t this.addPanels(opt.panels, this.container);\n\t }\n\t\n\t this.refresh();\n\t}\n\t\n\tutil.inherit(VLayout, View);\n\t\n\t/**\n\t * Get current panels height in layout\n\t * @returns {number[]} height of panels with `autoHeight` false\n\t */\n\tVLayout.prototype.getLayoutData = function() {\n\t var heightList = [];\n\t\n\t util.forEach(this.panels, function(panel) {\n\t if (panel.isSplitter() || panel.options.autoHeight) {\n\t return;\n\t }\n\t\n\t heightList.push(panel.getHeight());\n\t });\n\t\n\t return heightList;\n\t};\n\t\n\t/**\n\t * Set panels height in layout\n\t * @param {number[]} heightList of panels with `autoHeight` false\n\t */\n\tVLayout.prototype.setLayoutData = function(heightList) {\n\t if (!heightList.length) {\n\t return;\n\t }\n\t\n\t util.forEach(this.panels, function(panel) {\n\t if (panel.isSplitter() || panel.options.autoHeight) {\n\t return;\n\t }\n\t\n\t panel.setHeight(null, heightList.shift());\n\t });\n\t\n\t this.refresh();\n\t};\n\t\n\t/**\n\t * Get next panel instance by specific panel\n\t * @param {VPanel} panel - panel instance\n\t * @returns {VPanel} next panel\n\t */\n\tVLayout.prototype.nextPanel = function(panel) {\n\t return this.panels[panel.index + 1];\n\t};\n\t\n\t/**\n\t * Get previous panel instance by specific panel\n\t * @param {VPanel} panel - panel instance\n\t * @returns {VPanel} previous panel\n\t */\n\tVLayout.prototype.prevPanel = function(panel) {\n\t return this.panels[panel.index - 1];\n\t};\n\t\n\t/**\n\t * Initialize resizing guide element\n\t * @param {HTMLElement} element - element to use guide element after cloned\n\t * @param {number} top - top pixel value for guide element\n\t * @returns {HTMLElement} cloned element == guide element\n\t */\n\tVLayout.prototype._initializeGuideElement = function(element, top) {\n\t var cloned = element.cloneNode(true);\n\t\n\t domutil.addClass(cloned, config.classname('splitter-guide'));\n\t this._refreshGuideElement(cloned, top);\n\t this.container.appendChild(cloned);\n\t\n\t return cloned;\n\t};\n\t\n\t/**\n\t * Refresh guide element position\n\t * @param {HTMLElement} element - guide element\n\t * @param {number} top - top pixel value for guide element\n\t */\n\tVLayout.prototype._refreshGuideElement = function(element, top) {\n\t element.style.top = top + 'px';\n\t};\n\t\n\t/**\n\t * Clear guide element position\n\t * @param {HTMLElement} element - guide element\n\t */\n\tVLayout.prototype._clearGuideElement = function(element) {\n\t domutil.remove(element);\n\t};\n\t\n\t/**\n\t * Resize overall panels size\n\t * @param {VPanel} splPanel - splitter panel instance\n\t * @param {number} startY - dragstart Y position\n\t * @param {number} mouseY - dragend Y position\n\t */\n\tVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n\t var diffY = startY - mouseY,\n\t resizedHeight = mAbs(diffY),\n\t resizeMap = [],\n\t toDown = mouseY > startY,\n\t backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n\t forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n\t cursor, resizeInfo;\n\t\n\t cursor = this[backwardMethod](splPanel);\n\t resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n\t resizeMap.push([cursor, resizeInfo[0]]);\n\t\n\t for (cursor = this[forwardMethod](cursor);\n\t util.isExisty(cursor);\n\t cursor = this[forwardMethod](cursor)) {\n\t if (cursor.isSplitter()) {\n\t continue;\n\t }\n\t\n\t resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n\t resizeMap.push([cursor, resizeInfo[0]]);\n\t resizedHeight -= resizeInfo[1];\n\t }\n\t\n\t util.forEach(resizeMap, function(pair) {\n\t pair[0].setHeight(null, pair[1], true);\n\t pair[0].fire('resize');\n\t });\n\t};\n\t\n\t/**\n\t * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n\t * @param {VPanel} splPanel - splitter panel instance\n\t * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n\t */\n\tVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n\t var upper = 0,\n\t below = 0,\n\t cursor,\n\t func = function(panel) {\n\t if (panel.isSplitter()) {\n\t return panel.getHeight();\n\t }\n\t\n\t return panel.options.minHeight;\n\t };\n\t\n\t for (cursor = this.prevPanel(splPanel);\n\t util.isExisty(cursor);\n\t cursor = this.prevPanel(cursor)) {\n\t upper += func(cursor);\n\t }\n\t\n\t for (cursor = this.nextPanel(splPanel);\n\t util.isExisty(cursor);\n\t cursor = this.nextPanel(cursor)) {\n\t below += func(cursor);\n\t }\n\t\n\t return [upper, below];\n\t};\n\t\n\t/**********\n\t * Drag Handlers\n\t **********/\n\t\n\t/**\n\t * Drag start schedule handler\n\t * @param {object} e - drag start schedule data\n\t */\n\tVLayout.prototype._onDragStart = function(e) {\n\t var oEvent = e.originEvent,\n\t target = e.target,\n\t splIndex = domutil.getData(target, 'panelIndex'),\n\t splPanel = this.panels[splIndex],\n\t splHeight = splPanel.getHeight(),\n\t splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n\t mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n\t guideElement = this._initializeGuideElement(target, mouseY);\n\t\n\t splPanel.addClass(config.classname('splitter-focused'));\n\t\n\t this._dragData = {\n\t splPanel: splPanel,\n\t splOffsetY: splOffsetY,\n\t guideElement: guideElement,\n\t startY: mouseY - splOffsetY,\n\t minY: 0,\n\t maxY: this.getViewBound().height - splHeight\n\t };\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(document.body, config.classname('resizing'));\n\t }\n\t};\n\t\n\t/**\n\t * Drag schedule handler\n\t * @param {object} e - drag schedule data\n\t */\n\tVLayout.prototype._onDrag = function(e) {\n\t var dragData = this._dragData,\n\t mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\t\n\t mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\t\n\t this._refreshGuideElement(dragData.guideElement, mouseY);\n\t};\n\t\n\t/**\n\t * Drag end schedule handler\n\t * @fires VLayout#resize\n\t * @param {object} e - dragend schedule data\n\t */\n\tVLayout.prototype._onDragEnd = function(e) {\n\t var dragData = this._dragData,\n\t asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n\t mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\t\n\t // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n\t mouseY = common.limit(\n\t mouseY - dragData.splOffsetY,\n\t [dragData.minY + asideMinMax[0]],\n\t [dragData.maxY - asideMinMax[1]]\n\t );\n\t\n\t this._resize(dragData.splPanel, dragData.startY, mouseY);\n\t\n\t /**\n\t * @event VLayout#resize\n\t * @type {object}\n\t * @property {number[]} layoutData - layout data after resized\n\t */\n\t this.fire('resize', {\n\t layoutData: this.getLayoutData()\n\t });\n\t\n\t this._dragData = null;\n\t this._clearGuideElement(dragData.guideElement);\n\t dragData.splPanel.removeClass(config.classname('splitter-focused'));\n\t domutil.removeClass(document.body, config.classname('resizing'));\n\t};\n\t\n\t/**********\n\t * Methods\n\t **********/\n\t\n\t/**\n\t * refresh each panels\n\t */\n\tVLayout.prototype.refresh = function() {\n\t var panelToFillHeight = [];\n\t var layoutHeight = this.getViewBound().height;\n\t var usedHeight = 0;\n\t var remainHeight;\n\t\n\t if (!layoutHeight) {\n\t return;\n\t }\n\t\n\t util.forEach(this.panels, function(panel) {\n\t if (panel.options.autoHeight) {\n\t panelToFillHeight.push(panel);\n\t } else {\n\t usedHeight += panel.getHeight();\n\t }\n\t });\n\t\n\t remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\t\n\t util.forEach(panelToFillHeight, function(panel) {\n\t panel.setHeight(null, remainHeight);\n\t });\n\t};\n\t\n\t/**\n\t * add panel\n\t * @param {PanelOptions} options - options for panel\n\t * @param {container} [container] - container element\n\t */\n\tVLayout.prototype.addPanel = function(options, container) {\n\t var element = document.createElement('div'),\n\t panels = this.panels,\n\t index = panels.length;\n\t\n\t options = util.extend({\n\t index: index\n\t }, options);\n\t\n\t panels.push(new VPanel(options, element));\n\t\n\t container.appendChild(element);\n\t};\n\t\n\t/**\n\t * Add multiple panel\n\t * @param {PanelOptions[]} options - panel options list\n\t * @param {HTMLElement} container - container element\n\t */\n\tVLayout.prototype.addPanels = function(options, container) {\n\t var self = this,\n\t frag = document.createDocumentFragment();\n\t\n\t util.forEach(options, function(option) {\n\t self.addPanel(option, frag);\n\t });\n\t\n\t container.appendChild(frag);\n\t};\n\t\n\t/**\n\t * Get a panel by name\n\t * @param {string} name - panel's name\n\t * @returns {VPanel}\n\t */\n\tVLayout.prototype.getPanelByName = function(name) {\n\t var found;\n\t util.forEach(this.panels, function(panel) {\n\t if (panel.name === name) {\n\t found = panel;\n\t }\n\t });\n\t\n\t return found;\n\t};\n\t\n\tmodule.exports = VLayout;\n\n\n/***/ },\n/* 25 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Move handler for Allday view.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar common = __webpack_require__(6);\n\tvar domutil = __webpack_require__(2);\n\tvar AlldayCore = __webpack_require__(17);\n\tvar AlldayMoveGuide = __webpack_require__(76);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes AlldayCore\n\t * @mixes CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Allday} [alldayView] - Allday view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction AlldayMove(dragHandler, alldayView, baseController) {\n\t /**\n\t * Drag handler instance.\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * allday view instance.\n\t * @type {Allday}\n\t */\n\t this.alldayView = alldayView;\n\t\n\t /**\n\t * Base controller instance.\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * Temporary variable for dragstart event data.\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t dragHandler.on({\n\t dragStart: this._onDragStart\n\t }, this);\n\t\n\t /**\n\t * @type {AlldayMoveGuide}\n\t */\n\t this.guide = new AlldayMoveGuide(this);\n\t}\n\t\n\tAlldayMove.prototype.destroy = function() {\n\t this.guide.destroy();\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.alldayView = this.baseController =\n\t this.guide = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * Check dragstart target is expected conditions for this handler.\n\t * @param {HTMLElement} target - dragstart event handler's target element.\n\t * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n\t */\n\tAlldayMove.prototype.checkExpectedCondition = function(target) {\n\t var cssClass = domutil.getClass(target),\n\t parentView,\n\t matches;\n\t\n\t if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n\t return false;\n\t }\n\t\n\t parentView = domutil.closest(target, config.classname('.weekday'));\n\t\n\t if (!parentView) {\n\t return false;\n\t }\n\t\n\t cssClass = domutil.getClass(parentView);\n\t matches = cssClass.match(config.allday.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.alldayView.children.items, matches[1]);\n\t};\n\t\n\t/**\n\t * DragStart event handler method.\n\t * @emits AlldayMove#alldayMoveDragstart\n\t * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n\t */\n\tAlldayMove.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t result = this.checkExpectedCondition(target),\n\t controller = this.baseController,\n\t excludeTarget = true,\n\t scheduleBlockElement,\n\t modelID,\n\t targetModel,\n\t getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!result) {\n\t return;\n\t }\n\t\n\t scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n\t if (!scheduleBlockElement) {\n\t return;\n\t }\n\t\n\t modelID = domutil.getData(scheduleBlockElement, 'id');\n\t targetModel = controller.schedules.items[modelID];\n\t\n\t if (!targetModel) {\n\t return;\n\t }\n\t\n\t if (targetModel.isReadOnly) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n\t this.getScheduleDataFunc = getScheduleDataFunc;\n\t scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\t\n\t util.extend(scheduleData, {\n\t scheduleBlockElement: scheduleBlockElement,\n\t model: targetModel\n\t });\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event AlldayMove#alldayMoveDragstart\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t * @property {Schedule} model - data object of model isntance.\n\t * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n\t */\n\t this.fire('alldayMoveDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * Drag event handler method.\n\t * @emits AlldayMove#alldayMoveDrag\n\t * @param {object} dragEventData - Drag#drag event handler eventdata.\n\t */\n\tAlldayMove.prototype._onDrag = function(dragEventData) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t /**\n\t * @schedule AlldayMove#alldayMoveDrag\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire('alldayMoveDrag', getScheduleDataFunc(dragEventData.originEvent));\n\t};\n\t\n\t/**\n\t * Request update schedule model to base controller.\n\t * @fires AlldayMove#beforeUpdateSchedule\n\t * @param {object} scheduleData - schedule data from AlldayMove handler module.\n\t */\n\tAlldayMove.prototype._updateSchedule = function(scheduleData) {\n\t var schedule = scheduleData.targetModel,\n\t dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n\t newStarts = new TZDate(schedule.start.getTime()),\n\t newEnds = new TZDate(schedule.end.getTime());\n\t\n\t newStarts = new TZDate(newStarts.setDate(newStarts.getDate() + dateOffset));\n\t newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n\t\n\t /**\n\t * @event AlldayMove#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: newStarts,\n\t end: newEnds\n\t });\n\t};\n\t\n\t/**\n\t * DragEnd event hander method.\n\t * @emits AlldayMove#alldayMoveDragend\n\t * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {?boolean} skipUpdate - true then skip update schedule model.\n\t */\n\tAlldayMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc,\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\t util.extend(scheduleData, {\n\t targetModel: dragStart.model\n\t });\n\t\n\t if (!skipUpdate) {\n\t this._updateSchedule(scheduleData);\n\t }\n\t\n\t /**\n\t * @event AlldayMove#alldayMoveDragend\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire(overrideEventName || 'alldayMoveDragend', scheduleData);\n\t\n\t this.getScheduleDataFunc = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * Click event handler method.\n\t * @emits AlldayMove#alldayMoveClick\n\t * @param {object} clickEventData - Drag#Click event handler data.\n\t */\n\tAlldayMove.prototype._onClick = function(clickEventData) {\n\t /**\n\t * @event AlldayMove#alldayMoveClick\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this._onDragEnd(clickEventData, 'alldayMoveClick', true);\n\t};\n\t\n\tcommon.mixin(AlldayCore, AlldayMove);\n\tutil.CustomEvents.mixin(AlldayMove);\n\t\n\tmodule.exports = AlldayMove;\n\t\n\n\n/***/ },\n/* 26 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Drag handler for calendar.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\t\n\t/**\n\t * @constructor\n\t * @mixes CustomEvents\n\t * @param {object} options - options for drag handler\n\t * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n\t * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n\t * @param {HTMLElement} container element to watching drag interaction.\n\t */\n\tfunction Drag(options, container) {\n\t domevent.on(container, 'mousedown', this._onMouseDown, this);\n\t\n\t this.options = util.extend({\n\t distance: 10,\n\t exclude: null\n\t }, options);\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.container = container;\n\t\n\t /**\n\t * Flag for represent current dragging session has been cancelled for exclude option.\n\t * @type {boolean}\n\t */\n\t this._cancelled = false;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._isMoved = false;\n\t\n\t /**\n\t * dragging distance in pixel between mousedown and firing dragStart events\n\t * @type {number}\n\t */\n\t this._distance = 0;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._dragStartFired = false;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._dragStartEventData = null;\n\t}\n\t\n\t/**\n\t * Destroy method.\n\t */\n\tDrag.prototype.destroy = function() {\n\t domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n\t this._isMoved = null;\n\t this.container = null;\n\t};\n\t\n\t/**\n\t * Clear cache data for single dragging session.\n\t */\n\tDrag.prototype._clearData = function() {\n\t this._cancelled = false;\n\t this._distance = 0;\n\t this._isMoved = false;\n\t this._dragStartFired = false;\n\t this._dragStartEventData = null;\n\t};\n\t\n\t/**\n\t * Toggle events for mouse dragging.\n\t * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n\t */\n\tDrag.prototype._toggleDragEvent = function(toBind) {\n\t var container = this.container,\n\t domMethod,\n\t method;\n\t\n\t if (toBind) {\n\t domMethod = 'on';\n\t method = 'disable';\n\t } else {\n\t domMethod = 'off';\n\t method = 'enable';\n\t }\n\t\n\t domutil[method + 'TextSelection'](container);\n\t domutil[method + 'ImageDrag'](container);\n\t domevent[domMethod](global.document, {\n\t mousemove: this._onMouseMove,\n\t mouseup: this._onMouseUp\n\t }, this);\n\t};\n\t\n\t/**\n\t * Normalize mouse event object.\n\t * @param {MouseEvent} mouseEvent - mouse event object.\n\t * @returns {object} normalized mouse event data.\n\t */\n\tDrag.prototype._getEventData = function(mouseEvent) {\n\t return {\n\t target: mouseEvent.target || mouseEvent.srcElement,\n\t originEvent: mouseEvent\n\t };\n\t};\n\t\n\t/**\n\t * MouseDown DOM event handler.\n\t * @param {MouseEvent} mouseDownEvent MouseDown event object.\n\t */\n\tDrag.prototype._onMouseDown = function(mouseDownEvent) {\n\t var opt = this.options,\n\t target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\t\n\t // only primary button can start drag.\n\t if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n\t return;\n\t }\n\t\n\t if (opt.exclude && opt.exclude(target)) {\n\t this._cancelled = true;\n\t\n\t return;\n\t }\n\t\n\t this._clearData();\n\t this._dragStartEventData = this._getEventData(mouseDownEvent);\n\t\n\t this._toggleDragEvent(true);\n\t};\n\t\n\t/**\n\t * MouseMove DOM event handler.\n\t * @emits Drag#drag\n\t * @emits Drag#dragStart\n\t * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n\t */\n\tDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n\t var distance;\n\t\n\t if (this._cancelled) {\n\t this._clearData();\n\t\n\t return;\n\t }\n\t\n\t distance = this.options.distance;\n\t // prevent automatic scrolling.\n\t domevent.preventDefault(mouseMoveEvent);\n\t\n\t if (this._distance < distance) {\n\t this._distance += 1;\n\t\n\t return;\n\t }\n\t this._isMoved = true;\n\t\n\t if (!this._dragStartFired) {\n\t this._dragStartFired = true;\n\t\n\t /**\n\t * Drag start events. cancelable.\n\t * @event Drag#dragStart\n\t * @type {object}\n\t * @property {HTMLElement} target - target element in this event.\n\t * @property {MouseEvent} originEvent - original mouse event object.\n\t */\n\t if (!this.invoke('dragStart', this._dragStartEventData)) {\n\t this._toggleDragEvent(false);\n\t this._clearData();\n\t\n\t return;\n\t }\n\t }\n\t\n\t /**\n\t * CalEvents while dragging.\n\t * @event Drag#drag\n\t * @type {object}\n\t * @property {HTMLElement} target - target element in this event.\n\t * @property {MouseEvent} originEvent - original mouse event object.\n\t */\n\t this.fire('drag', this._getEventData(mouseMoveEvent));\n\t};\n\t\n\t/**\n\t * MouseUp DOM event handler.\n\t * @param {MouseEvent} mouseUpEvent MouseUp event object.\n\t * @emits Drag#dragEnd\n\t * @emits Drag#click\n\t */\n\tDrag.prototype._onMouseUp = function(mouseUpEvent) {\n\t if (this._cancelled) {\n\t return;\n\t }\n\t\n\t this._toggleDragEvent(false);\n\t\n\t // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n\t if (this._isMoved) {\n\t this._isMoved = false;\n\t /**\n\t * Drag end events.\n\t * @event Drag#dragEnd\n\t * @type {MouseEvent}\n\t * @property {HTMLElement} target - target element in this event.\n\t * @property {MouseEvent} originEvent - original mouse event object.\n\t */\n\t this.fire('dragEnd', this._getEventData(mouseUpEvent));\n\t } else {\n\t /**\n\t * Click events.\n\t * @event Drag#click\n\t * @type {MouseEvent}\n\t * @property {HTMLElement} target - target element in this event.\n\t * @property {MouseEvent} originEvent - original mouse event object.\n\t */\n\t this.fire('click', this._getEventData(mouseUpEvent));\n\t }\n\t\n\t this._clearData();\n\t};\n\t\n\tutil.CustomEvents.mixin(Drag);\n\t\n\tmodule.exports = Drag;\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 27 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Guide element controller for creation, resize in month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t datetime = __webpack_require__(4),\n\t dw = __webpack_require__(15),\n\t tmpl = __webpack_require__(32);\n\tvar mmax = Math.max,\n\t mmin = Math.min,\n\t mabs = Math.abs,\n\t mfloor = Math.floor;\n\t\n\t/**\n\t * @constructor\n\t * @param {object} [options] - options\n\t * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n\t * guide element?\n\t * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n\t * @param {Month} monthView - Month view instance\n\t */\n\tfunction MonthGuide(options, monthView) {\n\t var self = this;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t top: 0,\n\t height: '20px',\n\t bgColor: '#f7ca88',\n\t label: '새 일정',\n\t isResizeMode: false,\n\t isCreationMode: false\n\t }, options);\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.view = monthView;\n\t\n\t /**\n\t * @type {WeekdayInMonth[]}\n\t */\n\t this.weeks = monthView.children.sort(function(a, b) {\n\t return util.stamp(a) - util.stamp(b);\n\t });\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.days = monthView.children.single().getRenderDateRange().length;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.ratio = util.bind(function(value) {\n\t return common.ratio(self.days, 100, value);\n\t });\n\t\n\t /**\n\t * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n\t * start lower than this coordinate.\n\t * @type {number[]}\n\t */\n\t this.startCoord = [0, 0];\n\t\n\t /**\n\t * @type {Object.}\n\t */\n\t this.guideElements = {};\n\t\n\t /**\n\t * horizontal grid information\n\t * @type {Object}\n\t */\n\t this.grids = monthView.grids;\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthGuide.prototype.destroy = function() {\n\t this.clear();\n\t\n\t this.options = this.view = this.weeks = this.days =\n\t this.ratio = this.startCoord = this.guideElements = null;\n\t};\n\t\n\tMonthGuide.prototype.clearGuideElement = function() {\n\t this.destroy();\n\t};\n\t\n\t/**\n\t * Get ratio value in week.\n\t * @param {number} value - value for calc ratio in week\n\t * @returns {number} percent value\n\t */\n\tMonthGuide.prototype._getRatioValueInWeek = function(value) {\n\t var grid = this.grids[value] || {left: 100};\n\t\n\t return grid.left;\n\t};\n\t\n\t/**\n\t * Create guide element\n\t * @returns {HTMLElement} guide element\n\t */\n\tMonthGuide.prototype._createGuideElement = function() {\n\t var guide = document.createElement('div');\n\t\n\t guide.innerHTML = tmpl(this.options);\n\t\n\t return guide.firstChild;\n\t};\n\t\n\t/**\n\t * Get guide element. if not exist then create one\n\t * @param {number} y - y coordinate\n\t * @returns {?HTMLElement} guide element\n\t */\n\tMonthGuide.prototype._getGuideElement = function(y) {\n\t var guideElements = this.guideElements,\n\t guide = guideElements[y],\n\t weekdayView = this.weeks[y],\n\t container;\n\t\n\t if (!weekdayView) {\n\t return null;\n\t }\n\t\n\t if (!guide) {\n\t guide = this._createGuideElement();\n\t container = weekdayView.container;\n\t container.appendChild(guide);\n\t guideElements[y] = guide;\n\t }\n\t\n\t return guide;\n\t};\n\t\n\t/**\n\t * Get coordinate by supplied date in month\n\t * @param {Date} date - date to find coordinate\n\t * @returns {number[]} coordinate (x, y)\n\t */\n\tMonthGuide.prototype._getCoordByDate = function(date) {\n\t var weeks = this.weeks,\n\t days = this.days,\n\t getIdxFromDiff = function(d1, d2) {\n\t return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n\t },\n\t monthStart = datetime.parse(weeks[0].options.renderStartDate),\n\t isBefore = date < monthStart,\n\t dateDW = dw(date),\n\t startDW = dw(monthStart),\n\t endDW = startDW.clone().addDate(isBefore ? -days : days),\n\t x = getIdxFromDiff(dateDW.d, startDW.d),\n\t y = 0;\n\t\n\t while (!dateDW.isBetween(startDW, endDW)) {\n\t startDW.addDate(isBefore ? -days : days);\n\t endDW = startDW.clone().addDate(days);\n\t x = getIdxFromDiff(dateDW.d, startDW.d);\n\t y += (isBefore ? -1 : 1);\n\t }\n\t\n\t return [x, y];\n\t};\n\t\n\t/**\n\t * Get limited coordinate by supplied coodinates\n\t * @param {number[]} coord - coordinate need to limit\n\t * @param {number[]} [min] - minimum limitaion of coordinate\n\t * @param {number[]} [max] - maximum limitation of coordinate\n\t * @returns {number[]} limited coordiate\n\t */\n\tMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n\t var toIndex = 1,\n\t x = coord[0],\n\t y = coord[1],\n\t result;\n\t\n\t min = min || [0, 0];\n\t max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\t\n\t if (y < min[1]) {\n\t result = min.slice(0);\n\t } else if (y > max[1]) {\n\t result = max.slice(0);\n\t } else {\n\t x = mmax(min[0], x);\n\t x = mmin(max[0], x);\n\t result = [x, y];\n\t }\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * Prepare guide element modification\n\t * @param {object} dragStartEvent - dragStart schedule data from *guide\n\t */\n\tMonthGuide.prototype.start = function(dragStartEvent) {\n\t var opt = this.options,\n\t target = dragStartEvent.target,\n\t model = dragStartEvent.model,\n\t x = dragStartEvent.x,\n\t y = dragStartEvent.y,\n\t temp;\n\t\n\t if (opt.isResizeMode) {\n\t temp = this._getCoordByDate(model.getStarts());\n\t x = temp[0];\n\t y = temp[1];\n\t\n\t util.extend(this.options, {\n\t top: parseInt(target.style.top, 10) + 'px',\n\t height: parseInt(target.style.height, 10) + 'px',\n\t bgColor: model.bgColor,\n\t borderColor: model.borderColor,\n\t label: model.title\n\t });\n\t }\n\t\n\t this.startCoord = [x, y];\n\t this.update(x, y);\n\t};\n\t\n\t/**\n\t * Data for update several guide elements\n\t * @typedef UpdateIndication\n\t * @type {object}\n\t * @property {HTMLElement} guide - guide element\n\t * @property {number} left - left style value\n\t * @property {number} width - width style value\n\t * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n\t * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n\t */\n\t\n\t/**\n\t * Modify HTML element that uses for guide element\n\t * @param {UpdateIndication[]} inds - indication of update severel guide element\n\t */\n\tMonthGuide.prototype._updateGuides = function(inds) {\n\t util.forEach(inds, function(ind) {\n\t var guide = ind.guide,\n\t exceedLClass = config.classname('month-exceed-left'),\n\t exceedRClass = config.classname('month-exceed-right');\n\t\n\t guide.style.display = 'block';\n\t guide.style.left = ind.left + '%';\n\t guide.style.width = ind.width + '%';\n\t\n\t if (ind.exceedL) {\n\t domutil.addClass(guide, exceedLClass);\n\t } else {\n\t domutil.removeClass(guide, exceedLClass);\n\t }\n\t\n\t if (ind.exceedR) {\n\t domutil.addClass(guide, exceedRClass);\n\t } else {\n\t domutil.removeClass(guide, exceedRClass);\n\t }\n\t });\n\t};\n\t\n\t/**\n\t * Get guide element indicate for origin week\n\t * @param {number[]} startCoord - drag start coordinate\n\t * @param {number[]} mouseCoord - mouse coordinate\n\t * @returns {object} indicate\n\t */\n\tMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n\t var left = mmin(startCoord[0], mouseCoord[0]),\n\t right = mmax(startCoord[0], mouseCoord[0]) + 1,\n\t exceedL, exceedR;\n\t\n\t if (mouseCoord[1] > startCoord[1]) {\n\t left = startCoord[0];\n\t right = this.days;\n\t exceedR = true;\n\t } else if (mouseCoord[1] < startCoord[1]) {\n\t left = 0;\n\t right = startCoord[0] + 1;\n\t exceedL = true;\n\t }\n\t\n\t return {\n\t left: this._getRatioValueInWeek(left),\n\t width: this._getRatioValueInWeek(right) -\n\t this._getRatioValueInWeek(left),\n\t exceedL: exceedL,\n\t exceedR: exceedR\n\t };\n\t};\n\t\n\t/**\n\t * Get guide element indicate for week related with mouse position\n\t * @param {number[]} startCoord - drag start coordinate\n\t * @param {number[]} mouseCoord - mouse coordinate\n\t * @returns {object} indicate\n\t */\n\tMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n\t var left = mouseCoord[0],\n\t right = mouseCoord[0] + 1,\n\t exceedL, exceedR;\n\t\n\t if (mouseCoord[1] > startCoord[1]) {\n\t left = 0;\n\t exceedL = true;\n\t } else if (mouseCoord[1] < startCoord[1]) {\n\t right = this.days;\n\t exceedR = true;\n\t }\n\t\n\t return {\n\t left: this._getRatioValueInWeek(left),\n\t width: this._getRatioValueInWeek(right) -\n\t this._getRatioValueInWeek(left),\n\t exceedL: exceedL,\n\t exceedR: exceedR\n\t };\n\t};\n\t\n\t/**\n\t * Get guide element indicate for contained weeks\n\t * @returns {object} indicate\n\t */\n\tMonthGuide.prototype._getContainIndicate = function() {\n\t return {\n\t left: 0,\n\t width: 100,\n\t exceedL: true,\n\t exceedR: true\n\t };\n\t};\n\t\n\t/**\n\t * Remove several guide element that supplied by parameter\n\t * @param {number[]} yCoords - array of y coordinate to remove guide element\n\t */\n\tMonthGuide.prototype._removeGuideElements = function(yCoords) {\n\t var guides = this.guideElements;\n\t\n\t util.forEach(yCoords, function(y) {\n\t domutil.remove(guides[y]);\n\t delete guides[y];\n\t });\n\t};\n\t\n\t/**\n\t * Get excluded numbers in range\n\t * @param {number[]} range - the range. value must be sequencial.\n\t * @param {number[]} numbers - numbers to check\n\t * @returns {number[]} excluded numbers\n\t */\n\tMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n\t var min = mmin.apply(null, range),\n\t max = mmax.apply(null, range),\n\t excludes = [];\n\t\n\t util.forEach(numbers, function(num) {\n\t num = parseInt(num, 10);\n\t if (num < min || num > max) {\n\t excludes.push(num);\n\t }\n\t });\n\t\n\t return excludes;\n\t};\n\t\n\t/**\n\t * Update guide elements by coordinate in month grid from mousemove event\n\t * @param {number} x - x coordinate\n\t * @param {number} y - y coordinate\n\t */\n\tMonthGuide.prototype.update = function(x, y) {\n\t var self = this,\n\t startCoord = this.startCoord,\n\t mouseCoord = [x, y],\n\t limitedCoord = this.options.isResizeMode ?\n\t this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n\t renderedYIndex = util.keys(this.guideElements),\n\t yCoordsToUpdate = util.range(\n\t mmin(startCoord[1], limitedCoord[1]),\n\t mmax(startCoord[1], limitedCoord[1]) + 1\n\t ),\n\t yCoordsToRemove = this._getExcludesInRange(\n\t yCoordsToUpdate,\n\t renderedYIndex\n\t ),\n\t renderIndication = {};\n\t\n\t this._removeGuideElements(yCoordsToRemove);\n\t\n\t util.forEach(yCoordsToUpdate, function(guideYCoord) {\n\t var guide = self._getGuideElement(guideYCoord),\n\t indicate;\n\t\n\t if (!guide) {\n\t return;\n\t }\n\t\n\t if (guideYCoord === startCoord[1]) {\n\t indicate = self._getOriginIndicate(startCoord, limitedCoord);\n\t } else if (guideYCoord === mouseCoord[1]) {\n\t indicate = self._getMouseIndicate(startCoord, mouseCoord);\n\t } else {\n\t indicate = self._getContainIndicate();\n\t }\n\t\n\t renderIndication[guideYCoord] = util.extend({\n\t guide: guide\n\t }, indicate);\n\t });\n\t\n\t this._updateGuides(renderIndication);\n\t};\n\t\n\t/**\n\t * Clear all guide elements\n\t */\n\tMonthGuide.prototype.clear = function() {\n\t util.forEach(this.guideElements, function(element) {\n\t domutil.remove(element);\n\t });\n\t\n\t this.guideElements = {};\n\t};\n\t\n\tmodule.exports = MonthGuide;\n\t\n\n\n/***/ },\n/* 28 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Model for views\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\t/**\n\t * Schedule ViewModel\n\t * @constructor\n\t * @param {Schedule} schedule Schedule instance.\n\t */\n\tfunction ScheduleViewModel(schedule) {\n\t /**\n\t * The model of schedule.\n\t * @type {Schedule}\n\t */\n\t this.model = schedule;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.top = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.left = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.width = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.height = 0;\n\t\n\t /**\n\t * Represent schedule has collide with other schedules when rendering.\n\t * @type {boolean}\n\t */\n\t this.hasCollide = false;\n\t\n\t /**\n\t * Extra space at rigth side of this schedule.\n\t * @type {number}\n\t */\n\t this.extraSpace = 0;\n\t\n\t /**\n\t * represent this schedule block is not visible after rendered.\n\t *\n\t * in month view, some viewmodel in date need to hide when already rendered before dates.\n\t *\n\t * set true then it just shows empty space.\n\t * @type {boolean}\n\t */\n\t this.hidden = false;\n\t\n\t /**\n\t * whether the schedule includes multiple dates\n\t */\n\t this.hasMultiDates = false;\n\t\n\t /**\n\t * represent render start date used at rendering.\n\t *\n\t * if set null then use model's 'start' property.\n\t * @type {TZDate}\n\t */\n\t this.renderStarts = null;\n\t\n\t /**\n\t * whether the actual start-date is before the render-start-date\n\t * @type {boolean}\n\t */\n\t this.exceedLeft = false;\n\t\n\t /**\n\t * represent render end date used at rendering.\n\t *\n\t * if set null then use model's 'end' property.\n\t * @type {TZDate}\n\t */\n\t this.renderEnds = null;\n\t\n\t /**\n\t * whether the actual end-date is after the render-end-date\n\t * @type {boolean}\n\t */\n\t this.exceedRight = false;\n\t}\n\t\n\t/**********\n\t * static props\n\t **********/\n\t\n\t/**\n\t * ScheduleViewModel factory method.\n\t * @param {Schedule} schedule Schedule instance.\n\t * @returns {ScheduleViewModel} ScheduleViewModel instance.\n\t */\n\tScheduleViewModel.create = function(schedule) {\n\t return new ScheduleViewModel(schedule);\n\t};\n\t\n\t/**********\n\t * prototype props\n\t **********/\n\t\n\t/**\n\t * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n\t *\n\t * if renderStarts is not set. return model's start property.\n\t * @override\n\t * @returns {Date} render start date.\n\t */\n\tScheduleViewModel.prototype.getStarts = function() {\n\t if (this.renderStarts) {\n\t return this.renderStarts;\n\t }\n\t\n\t return this.model.start;\n\t};\n\t\n\t/**\n\t * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n\t *\n\t * if renderEnds is not set. return model's end property.\n\t * @override\n\t * @returns {Date} render end date.\n\t */\n\tScheduleViewModel.prototype.getEnds = function() {\n\t if (this.renderEnds) {\n\t return this.renderEnds;\n\t }\n\t\n\t return this.model.end;\n\t};\n\t\n\t/**\n\t * @returns {number} unique number for model.\n\t */\n\tScheduleViewModel.prototype.cid = function() {\n\t return util.stamp(this.model);\n\t};\n\t\n\t/**\n\t * Shadowing valueOf method for schedule sorting.\n\t * @returns {Schedule} The model of schedule.\n\t */\n\tScheduleViewModel.prototype.valueOf = function() {\n\t return this.model;\n\t};\n\t\n\t/**\n\t * Link duration method\n\t * @returns {number} Schedule#duration result.\n\t */\n\tScheduleViewModel.prototype.duration = function() {\n\t return this.model.duration();\n\t};\n\t\n\t/**\n\t * Link collidesWith method\n\t * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n\t * @returns {boolean} Schedule#collidesWith result.\n\t */\n\tScheduleViewModel.prototype.collidesWith = function(viewModel) {\n\t var ownStarts = this.getStarts(),\n\t ownEnds = this.getEnds(),\n\t start = viewModel.getStarts(),\n\t end = viewModel.getEnds();\n\t\n\t if ((start > ownStarts && start < ownEnds) ||\n\t (end > ownStarts && end < ownEnds) ||\n\t (start <= ownStarts && end >= ownEnds)) {\n\t return true;\n\t }\n\t\n\t return false;\n\t};\n\t\n\tmodule.exports = ScheduleViewModel;\n\t\n\n\n/***/ },\n/* 29 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Weekday view for week\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar Weekday = __webpack_require__(30),\n\t tmpl = __webpack_require__(45),\n\t datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar config = __webpack_require__(3);\n\tvar mmax = Math.max,\n\t mmin = Math.min;\n\t\n\t/**\n\t * @constructor\n\t * @extends {Weekday}\n\t * @param {object} options - options for WeekdayInWeek view\n\t * @param {number} [options.containerHeight=40] - minimum height of schedule\n\t * container element.\n\t * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n\t * make create easy.\n\t * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n\t * @param {HTMLDIVElement} container - DOM element to use container for this\n\t * view.\n\t * @param {object} [aboutMe] - parent container info\n\t * @param {string} [aboutMe.name] - panel name ['Milestone'|'Task'|'AllDay'|'TimeGrid']\n\t * @param {boolean} [aboutMe.forcedLayout] - force layout height by dragging\n\t */\n\tfunction WeekdayInWeek(options, container, aboutMe) {\n\t Weekday.call(this, options, container);\n\t this.aboutMe = aboutMe || {};\n\t}\n\t\n\tutil.inherit(WeekdayInWeek, Weekday);\n\t\n\t/**\n\t * Render Weekday view\n\t * @override\n\t */\n\tWeekdayInWeek.prototype.render = function(viewModel) {\n\t var opt = this.options,\n\t container = this.container,\n\t aboutMe = this.aboutMe,\n\t name = aboutMe.name;\n\t var baseViewModel;\n\t\n\t this.viewType = opt[name + 'ViewType'] || '';\n\t\n\t baseViewModel = this.getBaseViewModel(viewModel);\n\t\n\t if (this.viewType === 'toggle') {\n\t baseViewModel.viewType = this.viewType;\n\t baseViewModel.collapsed = this.collapsed ? 'collapsed' : '';\n\t baseViewModel.collapseBtnIndex = aboutMe.collapseBtnIndex;\n\t }\n\t\n\t container.innerHTML = tmpl(baseViewModel);\n\t\n\t util.forEach(domutil.find(config.classname('.weekday-exceed-in-week'), container, true), function(el) {\n\t el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n\t });\n\t\n\t util.forEach(domutil.find(config.classname('.weekday-collapse-btn'), container, true), function(el) {\n\t el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n\t });\n\t\n\t this.fire('afterRender', baseViewModel);\n\t};\n\t\n\t/**\n\t * returns maximum schedule count in day\n\t * @param {array} matrices - The matrices for schedule placing.\n\t * @returns {number} maximum schedule count in day\n\t */\n\tWeekdayInWeek.prototype._getMaxScheduleInDay = function(matrices) {\n\t return mmax.apply(\n\t null,\n\t util.map(matrices, function(matrix) {\n\t return Math.max.apply(null, util.map(matrix, function(row) {\n\t return row.length;\n\t }));\n\t })\n\t );\n\t};\n\t\n\t/**\n\t * returns minimum height for container.\n\t * @param {number} maxScheduleInDay - max schedule blocks in one day\n\t * @returns {number}\n\t */\n\tWeekdayInWeek.prototype._getMinHeight = function(maxScheduleInDay) {\n\t var opt = this.options;\n\t var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n\t + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\t\n\t if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n\t contentHeight += opt.containerBottomGutter;\n\t }\n\t\n\t return contentHeight;\n\t};\n\t\n\t/**\n\t * make and update data of exceed date\n\t * @param {object} exceedDate - data to have exceed date in a week\n\t * @param {TZDate} renderStarts - start date of a week\n\t * @param {TZDate} renderEnds - end date of a week\n\t */\n\tWeekdayInWeek.prototype._updateExceedDate = function(exceedDate, renderStarts, renderEnds) {\n\t var date = datetime.clone(renderStarts);\n\t var day;\n\t\n\t for (; date <= renderEnds; date.setDate(date.getDate() + 1)) {\n\t day = datetime.format(date, 'YYYYMMDD');\n\t if (!exceedDate[day]) {\n\t exceedDate[day] = 1;\n\t } else {\n\t exceedDate[day] += 1;\n\t }\n\t }\n\t};\n\t\n\t/**\n\t * Exclude overflow schedules from matrices\n\t * @param {array} matrices - The matrices for schedule placing.\n\t * @param {number} visibleScheduleCount - maximum visible count on panel\n\t * @param {number} maxScheduleInDay - maximum number of schedules in day\n\t * @returns {array} - The matrices for schedule placing except overflowed schedules.\n\t */\n\tWeekdayInWeek.prototype._excludeExceedSchedules = function(matrices, visibleScheduleCount, maxScheduleInDay) {\n\t if (visibleScheduleCount >= maxScheduleInDay) {\n\t return matrices;\n\t }\n\t\n\t return matrices.map(function(matrix) {\n\t return matrix.map(function(row) {\n\t if (row.length > visibleScheduleCount) {\n\t return row.filter(function(item) {\n\t return item.top < visibleScheduleCount;\n\t }, this);\n\t }\n\t\n\t return row;\n\t }, this);\n\t }, this);\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel - schedules view models\n\t */\n\tWeekdayInWeek.prototype.getBaseViewModel = function(viewModel) {\n\t var opt = this.options;\n\t var matrices = opt.getViewModelFunc(viewModel);\n\t var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n\t var visibleScheduleCount = this.aboutMe.visibleScheduleCount;\n\t var aboutMe = this.aboutMe;\n\t var exceedDate = {};\n\t var baseViewModel, panelHeight;\n\t\n\t if (this.viewType === 'toggle') {\n\t panelHeight = aboutMe.forcedLayout ? this.getViewBound().height : mmin(aboutMe.height, aboutMe.maxHeight);\n\t visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\t if (this.collapsed) {\n\t visibleScheduleCount = mmin(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n\t exceedDate =\n\t this.getExceedDate(visibleScheduleCount,\n\t viewModel.schedulesInDateRange[aboutMe.name],\n\t viewModel.range,\n\t maxScheduleInDay\n\t );\n\t matrices = this._excludeExceedSchedules(matrices, visibleScheduleCount, maxScheduleInDay);\n\t aboutMe.visibleScheduleCount = visibleScheduleCount;\n\t } else {\n\t visibleScheduleCount = mmax(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n\t }\n\t }\n\t\n\t viewModel = util.extend({\n\t exceedDate: exceedDate || {}\n\t }, viewModel);\n\t\n\t baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\t\n\t baseViewModel = util.extend({\n\t minHeight: this._getMinHeight(maxScheduleInDay),\n\t matrices: matrices,\n\t scheduleContainerTop: this.options.scheduleContainerTop,\n\t maxScheduleInDay: maxScheduleInDay,\n\t floatingButtonTop: this._calculateFloatingBtnTop(visibleScheduleCount, maxScheduleInDay),\n\t panelName: aboutMe.name\n\t }, baseViewModel);\n\t\n\t return baseViewModel;\n\t};\n\t\n\t/**\n\t * Calculate absolute top position of floating button layer\n\t * @param {number} visibleScheduleCount - maximum (row) number of schedules that panel can show\n\t * @param {number} maxScheduleInDay - maximum number of schedules in day\n\t * @returns {number} absolute top position of floating buttons in weekday panel\n\t */\n\tWeekdayInWeek.prototype._calculateFloatingBtnTop = function(visibleScheduleCount, maxScheduleInDay) {\n\t var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n\t\n\t if (!this.collapsed && maxScheduleInDay > this.aboutMe.maxExpandCount) {\n\t return (visibleScheduleCount - 0.5) * scheduleHeight;\n\t }\n\t\n\t return (visibleScheduleCount - 1) * scheduleHeight;\n\t};\n\t\n\tmodule.exports = WeekdayInWeek;\n\n\n/***/ },\n/* 30 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Weekday view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t datetime = __webpack_require__(4),\n\t TZDate = __webpack_require__(5).Date,\n\t View = __webpack_require__(8);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - view options.\n\t * @param {number} [options.containerHeight=40] - minimum height of schedule\n\t * container element.\n\t * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n\t * make create easy.\n\t * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n\t * @param {HTMLDIVElement} container - DOM element to use container for this\n\t * view.\n\t */\n\tfunction Weekday(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('weekday')\n\t );\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t containerHeight: 40,\n\t containerBottomGutter: 8,\n\t scheduleHeight: 18,\n\t scheduleGutter: 2,\n\t narrowWeekend: false,\n\t startDayOfWeek: 0,\n\t workweek: false\n\t }, options);\n\t\n\t /*\n\t * cache parent's view model\n\t * @type {object}\n\t */\n\t this._cacheParentViewModel = null;\n\t\n\t View.call(this, container);\n\t}\n\t\n\tutil.inherit(Weekday, View);\n\t\n\t/**\n\t * Get render date range\n\t * @returns {Date[]} rendered date range\n\t */\n\tWeekday.prototype.getRenderDateRange = function() {\n\t return this._cacheParentViewModel.range;\n\t};\n\t\n\t/**\n\t * Get render date grids information\n\t * @returns {Date[]} rendered date grids information\n\t */\n\tWeekday.prototype.getRenderDateGrids = function() {\n\t return this._cacheParentViewModel.grids;\n\t};\n\t\n\t/**\n\t * Get default view model.\n\t * @param {object} viewModel parent's view model\n\t * @returns {object} viewModel to rendering.\n\t */\n\tWeekday.prototype.getBaseViewModel = function(viewModel) {\n\t var opt = this.options;\n\t var range = viewModel.range;\n\t var today = datetime.format(new TZDate(), 'YYYYMMDD');\n\t var gridWidth = (100 / range.length);\n\t var grids = viewModel.grids;\n\t var exceedDate = viewModel.exceedDate || {};\n\t\n\t this._cacheParentViewModel = viewModel;\n\t\n\t return {\n\t width: gridWidth,\n\t scheduleHeight: opt.scheduleHeight,\n\t scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n\t scheduleBlockGutter: opt.scheduleGutter,\n\t dates: util.map(range, function(date, index) {\n\t var day = date.getDay();\n\t var ymd = datetime.format(date, 'YYYYMMDD');\n\t\n\t return {\n\t date: datetime.format(date, 'YYYY-MM-DD'),\n\t month: date.getMonth() + 1,\n\t day: day,\n\t isToday: ymd === today,\n\t ymd: ymd,\n\t hiddenSchedules: exceedDate[ymd] || 0,\n\t width: grids[index] ? grids[index].width : 0,\n\t left: grids[index] ? grids[index].left : 0\n\t };\n\t })\n\t };\n\t};\n\t\n\t/* eslint max-nested-callbacks: 0 */\n\t/**\n\t * Make exceed date information\n\t * @param {number} maxCount - exceed schedule count\n\t * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n\t * @param {Array.} range - date range of one week\n\t * @returns {object} exceedDate\n\t */\n\tWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n\t var exceedDate = this._initExceedDate(range);\n\t\n\t util.forEach(eventsInDateRange, function(matrix) {\n\t util.forEach(matrix, function(column) {\n\t util.forEach(column, function(viewModel) {\n\t var period;\n\t if (!viewModel || viewModel.top < maxCount) {\n\t return;\n\t }\n\t\n\t period = datetime.range(\n\t viewModel.getStarts(),\n\t viewModel.getEnds(),\n\t datetime.MILLISECONDS_PER_DAY\n\t );\n\t\n\t util.forEach(period, function(date) {\n\t var ymd = datetime.format(date, 'YYYYMMDD');\n\t exceedDate[ymd] += 1;\n\t });\n\t });\n\t });\n\t });\n\t\n\t return exceedDate;\n\t};\n\t\n\t/**\n\t * Initiate exceed date information\n\t * @param {Array.} range - date range of one week\n\t * @returns {Object} - initiated exceed date\n\t */\n\tWeekday.prototype._initExceedDate = function(range) {\n\t var exceedDate = {};\n\t\n\t util.forEach(range, function(date) {\n\t var ymd = datetime.format(date, 'YYYYMMDD');\n\t exceedDate[ymd] = 0;\n\t });\n\t\n\t return exceedDate;\n\t};\n\t\n\tmodule.exports = Weekday;\n\n\n/***/ },\n/* 31 */\n/***/ function(module, exports) {\n\n\t// removed by extract-text-webpack-plugin\n\n/***/ },\n/* 32 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \"
    \\n\";\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \"\n\t + alias4(((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"label\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"
    \\n
     
    \\n
    \\n\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t return \"display:none\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isCreationMode : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 33 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" border-left:3px solid \"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n \";\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \" \\n\";\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"7\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 34 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \\n \"\n\t + ((stack1 = (helpers[\"monthDayname-tmpl\"] || (depth0 && depth0[\"monthDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n \\n
    \\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.daynames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 35 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\");\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color: #ffffff; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; border-left:3px solid \"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n\";\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n\t + \"; border-left:3px solid \"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \"\\n\";\n\t},\"7\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\t\n\t return \"
    \\n \\n \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"8\":function(container,depth0,helpers,partials,data) {\n\t return \"\\n background: #ffffff\\n\";\n\t},\"10\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" background:\"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"\\n \";\n\t},\"12\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n color: #ffffff;\\n background-color: \"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"\\n\";\n\t},\"14\":function(container,depth0,helpers,partials,data) {\n\t return \" color:#333;\\n \";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \\n \"\n\t + ((stack1 = (helpers[\"monthMoreTitleDate-tmpl\"] || (depth0 && depth0[\"monthMoreTitleDate-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.date : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n \\n
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 36 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \\n \"\n\t + ((stack1 = (helpers[\"monthGridHeader-tmpl\"] || (depth0 && depth0[\"monthGridHeader-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n \"\n\t + ((stack1 = (helpers[\"monthGridFooter-tmpl\"] || (depth0 && depth0[\"monthGridFooter-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"near-month-day\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"today\";\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"extra-date\";\n\t},\"8\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"monthGridHeaderExceed-tmpl\"] || (depth0 && depth0[\"monthGridHeaderExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"10\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"monthGridFooterExceed-tmpl\"] || (depth0 && depth0[\"monthGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 37 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n\"\n\t + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n\"\n\t + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n\"\n\t + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.top : depth0),\"<\",((stack1 = (data && data.root)) && stack1.renderLimitIdx),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\";\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(19, data, 0),\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-exceed-left\";\n\t},\"8\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-exceed-right\";\n\t},\"10\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n \"\n\t + ((stack1 = helpers.unless.call(alias3,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"11\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-schedule-focused \";\n\t},\"13\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color: #ffffff; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \";\\n\";\n\t},\"15\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n\";\n\t},\"17\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \";\n\t},\"19\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\t\n\t return \"
    \\n \\n \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"20\":function(container,depth0,helpers,partials,data) {\n\t return \" background: #ffffff\\n\";\n\t},\"22\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" background:\"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"\\n\";\n\t},\"24\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \" color: #ffffff;\\n background-color: \"\n\t + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"\\n\";\n\t},\"26\":function(container,depth0,helpers,partials,data) {\n\t return \" color:#333;\\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"useData\":true});\n\n/***/ },\n/* 38 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = ((helper = (helper = helpers[\"alldayTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n\t + \"\\n
    \\n
    \\n
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 39 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \\n \"\n\t + ((stack1 = (helpers[\"weekDayname-tmpl\"] || (depth0 && depth0[\"weekDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n \\n
    \\n\";\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"today\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 40 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\";\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
      \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.items : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"today\";\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing;\n\t\n\t return \"
  • \\n \"\n\t + ((stack1 = (helpers[\"milestone-tmpl\"] || (depth0 && depth0[\"milestone-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"milestone-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
  • \\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = ((helper = (helper = helpers[\"milestoneTitle-tmpl\"] || (depth0 != null ? depth0[\"milestoneTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"milestoneTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n\t + \"\\n
    \\n
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 41 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \"\n\t + ((stack1 = ((helper = (helper = helpers[\"taskTitle-tmpl\"] || (depth0 != null ? depth0[\"taskTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"taskTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n\t + \"\\n
    \\n
    \\n
    \\n
    \";\n\t},\"useData\":true});\n\n/***/ },\n/* 42 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"3\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\t\n\t return \"
    \\n
    \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n \"\n\t + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"time-date-schedule-block-pending\";\n\t},\"7\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"time-schedule-focused \";\n\t},\"9\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color: #ffffff; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \";\\n\";\n\t},\"11\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n\";\n\t},\"13\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \"
     
    \";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 43 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n \"\n\t + alias4(((helper = (helper = helpers.hours || (depth0 != null ? depth0.hours : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hours\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"\\n
    \\n\";\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t return \"display:none\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \"
    \\n\";\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n
    \\n
    \"\n\t + alias4(((helper = (helper = helpers.hourmarkerText || (depth0 != null ? depth0.hourmarkerText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hourmarkerText\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"
    \\n
    \\n
    today
    \\n
    \\n
    \\n
    \\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n
    \\n
    \\n\\n\"\n\t + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.showHourMarker : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 44 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \"
     
    \";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\t\n\t return \"
    \\n
    \"\n\t + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n \"\n\t + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 45 */\n/***/ function(module, exports, __webpack_require__) {\n\n\tvar Handlebars = __webpack_require__(7);\n\tmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\";\n\t},\"2\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"today\";\n\t},\"4\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"5\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n \"\n\t + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"6\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return \"\\n \"\n\t + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"7\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda;\n\t\n\t return \"\\n
    \\n
    \\n\"\n\t + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"task\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.program(20, data, 0),\"data\":data})) != null ? stack1 : \"\")\n\t + \" \"\n\t + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(22, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n
    \\n
    \\n\";\n\t},\"8\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-exceed-left\";\n\t},\"10\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \"\n\t + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-exceed-right\";\n\t},\"12\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n\t + \"weekday-schedule-focused \";\n\t},\"14\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color: #ffffff; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \";\\n\";\n\t},\"16\":function(container,depth0,helpers,partials,data) {\n\t var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\t\n\t return \" color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n\t + \"; background-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n\t + \"; border-color:\"\n\t + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n\t + \";\\n\";\n\t},\"18\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"task-tmpl\"] || (depth0 && depth0[\"task-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"task-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"20\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\t\n\t return \" \"\n\t + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n\t + \"\\n\";\n\t},\"22\":function(container,depth0,helpers,partials,data) {\n\t var helper;\n\t\n\t return \" \";\n\t},\"24\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.viewType : depth0),\"===\",\"toggle\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(25, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"25\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"26\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && data.root)) && stack1.collapsed),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(27, data, 0),\"inverse\":container.program(30, data, 0),\"data\":data})) != null ? stack1 : \"\");\n\t},\"27\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"28\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \" \"\n\t + alias4((helpers[\"weekGridFooterExceed-tmpl\"] || (depth0 && depth0[\"weekGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data}))\n\t + \"\\n\";\n\t},\"30\":function(container,depth0,helpers,partials,data) {\n\t var stack1;\n\t\n\t return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),\"===\",((stack1 = (data && data.root)) && stack1.collapseBtnIndex),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(31, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n\t},\"31\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \"\n\t + ((stack1 = ((helper = (helper = helpers[\"alldayCollapseBtnTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayCollapseBtnTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayCollapseBtnTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n\t var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\t\n\t return \"
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n
    \\n
    \\n \\n
    \\n\"\n\t + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,(depth0 != null ? depth0.panelName : depth0),\"===\",\"allday\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n\t + \"
    \\n\";\n\t},\"useData\":true});\n\n/***/ },\n/* 46 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\t\n\tvar _handlebarsBase = __webpack_require__(22);\n\t\n\tvar base = _interopRequireWildcard(_handlebarsBase);\n\t\n\t// Each of these augment the Handlebars object. No need to setup here.\n\t// (This is done to easily share code between commonjs and browse envs)\n\t\n\tvar _handlebarsSafeString = __webpack_require__(60);\n\t\n\tvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\t\n\tvar _handlebarsException = __webpack_require__(13);\n\t\n\tvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\t\n\tvar _handlebarsUtils = __webpack_require__(10);\n\t\n\tvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\t\n\tvar _handlebarsRuntime = __webpack_require__(59);\n\t\n\tvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\t\n\tvar _handlebarsNoConflict = __webpack_require__(58);\n\t\n\tvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\t\n\t// For compatibility and usage outside of module systems, make the Handlebars object a namespace\n\tfunction create() {\n\t var hb = new base.HandlebarsEnvironment();\n\t\n\t Utils.extend(hb, base);\n\t hb.SafeString = _handlebarsSafeString2['default'];\n\t hb.Exception = _handlebarsException2['default'];\n\t hb.Utils = Utils;\n\t hb.escapeExpression = Utils.escapeExpression;\n\t\n\t hb.VM = runtime;\n\t hb.template = function (spec) {\n\t return runtime.template(spec, hb);\n\t };\n\t\n\t return hb;\n\t}\n\t\n\tvar inst = create();\n\tinst.create = create;\n\t\n\t_handlebarsNoConflict2['default'](inst);\n\t\n\tinst['default'] = inst;\n\t\n\texports['default'] = inst;\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs7SUFBL0IsS0FBSzs7aUNBQ1Esc0JBQXNCOztJQUFuQyxPQUFPOztvQ0FFSSwwQkFBMEI7Ozs7O0FBR2pELFNBQVMsTUFBTSxHQUFHO0FBQ2hCLE1BQUksRUFBRSxHQUFHLElBQUksSUFBSSxDQUFDLHFCQUFxQixFQUFFLENBQUM7O0FBRTFDLE9BQUssQ0FBQyxNQUFNLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxDQUFDO0FBQ3ZCLElBQUUsQ0FBQyxVQUFVLG9DQUFhLENBQUM7QUFDM0IsSUFBRSxDQUFDLFNBQVMsbUNBQVksQ0FBQztBQUN6QixJQUFFLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQztBQUNqQixJQUFFLENBQUMsZ0JBQWdCLEdBQUcsS0FBSyxDQUFDLGdCQUFnQixDQUFDOztBQUU3QyxJQUFFLENBQUMsRUFBRSxHQUFHLE9BQU8sQ0FBQztBQUNoQixJQUFFLENBQUMsUUFBUSxHQUFHLFVBQV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b2R1bGUgc3lzdGVtcywgbWFrZSB0aGUgSGFuZGxlYmFycyBvYmplY3QgYSBuYW1lc3BhY2VcbmZ1bmN0aW9uIGNyZWF0ZSgpIHtcbiAgbGV0IGhiID0gbmV3IGJhc2UuSGFuZGxlYmFyc0Vudmlyb25tZW50KCk7XG5cbiAgVXRpbHMuZXh0ZW5kKGhiLCBiYXNlKTtcbiAgaGIuU2FmZVN0cmluZyA9IFNhZmVTdHJpbmc7XG4gIGhiLkV4Y2VwdGlvbiA9IEV4Y2VwdGlvbjtcbiAgaGIuVXRpbHMgPSBVdGlscztcbiAgaGIuZXNjYXBlRXhwcmVzc2lvbiA9IFV0aWxzLmVzY2FwZUV4cHJlc3Npb247XG5cbiAgaGIuVk0gPSBydW50aW1lO1xuICBoYi50ZW1wbGF0ZSA9IGZ1bmN0aW9uKHNwZWMpIHtcbiAgICByZXR1cm4gcnVudGltZS50ZW1wbGF0ZShzcGVjLCBoYik7XG4gIH07XG5cbiAgcmV0dXJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\n\n\n/***/ },\n/* 47 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.registerDefaultDecorators = registerDefaultDecorators;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _decoratorsInline = __webpack_require__(48);\n\t\n\tvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\t\n\tfunction registerDefaultDecorators(instance) {\n\t _decoratorsInline2['default'](instance);\n\t}\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ==\n\n\n/***/ },\n/* 48 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerDecorator('inline', function (fn, props, container, options) {\n\t var ret = fn;\n\t if (!props.partials) {\n\t props.partials = {};\n\t ret = function (context, options) {\n\t // Create a new partials stack frame prior to exec.\n\t var original = container.partials;\n\t container.partials = _utils.extend({}, original, props.partials);\n\t var ret = fn(context, options);\n\t container.partials = original;\n\t return ret;\n\t };\n\t }\n\t\n\t props.partials[options.args[0]] = options.fn;\n\t\n\t return ret;\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXFCLFVBQVU7O3FCQUVoQixVQUFTLFFBQVEsRUFBR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gb3B0aW9ucykge1xuICAgIGxldCByZXQgPSBmbjtcbiAgICBpZiAoIXByb3BzLnBhcnRpYWxzKSB7XG4gICAgICBwcm9wcy5wYXJ0aWFscyA9IHt9O1xuICAgICAgcmV0ID0gZnVuY3Rpb24oY29udGV4dCwgb3B0aW9ucykge1xuICAgICAgICAvLyBDcmVhdGUgYSBuZXcgcGFydGlhbHMgc3RhY2sgZnJhbWUgcHJpb3IgdG8gZXhlYy5cbiAgICAgICAgbGV0IG9yaWdpbmFsID0gY29udGFpbmVyLnBhcnRpYWxzO1xuICAgICAgICBjb250YWluZXIucGFydGlhbHMgPSBleHRlbmQoe30sIG9yaWdpbmFsLCBwcm9wcy5wYXJ0aWFscyk7XG4gICAgICAgIGxldCByZXQgPSBmbihjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgICAgY29udGFpbmVyLnBhcnRpYWxzID0gb3JpZ2luYWw7XG4gICAgICAgIHJldHVybiByZXQ7XG4gICAgICB9O1xuICAgIH1cblxuICAgIHByb3BzLnBhcnRpYWxzW29wdGlvbnMuYXJnc1swXV0gPSBvcHRpb25zLmZuO1xuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n\n\n/***/ },\n/* 49 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.registerDefaultHelpers = registerDefaultHelpers;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _helpersBlockHelperMissing = __webpack_require__(50);\n\t\n\tvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\t\n\tvar _helpersEach = __webpack_require__(51);\n\t\n\tvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\t\n\tvar _helpersHelperMissing = __webpack_require__(52);\n\t\n\tvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\t\n\tvar _helpersIf = __webpack_require__(53);\n\t\n\tvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\t\n\tvar _helpersLog = __webpack_require__(54);\n\t\n\tvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\t\n\tvar _helpersLookup = __webpack_require__(55);\n\t\n\tvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\t\n\tvar _helpersWith = __webpack_require__(56);\n\t\n\tvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\t\n\tfunction registerDefaultHelpers(instance) {\n\t _helpersBlockHelperMissing2['default'](instance);\n\t _helpersEach2['default'](instance);\n\t _helpersHelperMissing2['default'](instance);\n\t _helpersIf2['default'](instance);\n\t _helpersLog2['default'](instance);\n\t _helpersLookup2['default'](instance);\n\t _helpersWith2['default'](instance);\n\t}\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7eUNBQXVDLGdDQUFnQzs7OzsyQkFDOUMsZ0JBQWdCOzs7O29DQUNQLDBCQUEwQjs7Ozt5QkFDckMsY0FBYzs7OzswQkFDYixlQUFlOzs7OzZCQUNaLGtCQUFrQjs7OzsyQkFDcEIsZ0JBQWdCOzs7O0FBRWxDLFNBQVMsc0JBQXNCLENBQUMsUUFBUSxFQUFFO0FBQy9DLHlDQUEyQixRQUFRLENBQUMsQ0FBQztBQUNyQywyQkFBYSxRQUFRLENBQUMsQ0FBQztBQUN2QixvQ0FBc0IsUUFBUSxDQUFDLENBQUM7QUFDaEMseUJBQVcsUUFBUSxDQUFDLENBQUM7QUFDckIsMEJBQVksUUFBUSxDQUFDLENBQUM7QUFDdEIsNkJBQWUsUUFBUSxDQUFDLENBQUM7QUFDekIsMkJBQWEsUUFBUSxDQUFDLENBQUM7Q0FDeEIiLCJmaWxlIjoiaGVscGVycy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCByZWdpc3RlckJsb2NrSGVscGVyTWlzc2luZyBmcm9tICcuL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcnO1xuaW1wb3J0IHJlZ2lzdGVyRWFjaCBmcm9tICcuL2hlbHBlcnMvZWFjaCc7XG5pbXBvcnQgcmVnaXN0ZXJIZWxwZXJNaXNzaW5nIGZyb20gJy4vaGVscGVycy9oZWxwZXItbWlzc2luZyc7XG5pbXBvcnQgcmVnaXN0ZXJJZiBmcm9tICcuL2hlbHBlcnMvaWYnO1xuaW1wb3J0IHJlZ2lzdGVyTG9nIGZyb20gJy4vaGVscGVycy9sb2cnO1xuaW1wb3J0IHJlZ2lzdGVyTG9va3VwIGZyb20gJy4vaGVscGVycy9sb29rdXAnO1xuaW1wb3J0IHJlZ2lzdGVyV2l0aCBmcm9tICcuL2hlbHBlcnMvd2l0aCc7XG5cbmV4cG9ydCBmdW5jdGlvbiByZWdpc3RlckRlZmF1bHRIZWxwZXJzKGluc3RhbmNlKSB7XG4gIHJlZ2lzdGVyQmxvY2tIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJFYWNoKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJIZWxwZXJNaXNzaW5nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJJZihpbnN0YW5jZSk7XG4gIHJlZ2lzdGVyTG9nKGluc3RhbmNlKTtcbiAgcmVnaXN0ZXJMb29rdXAoaW5zdGFuY2UpO1xuICByZWdpc3RlcldpdGgoaW5zdGFuY2UpO1xufVxuIl19\n\n\n/***/ },\n/* 50 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('blockHelperMissing', function (context, options) {\n\t var inverse = options.inverse,\n\t fn = options.fn;\n\t\n\t if (context === true) {\n\t return fn(this);\n\t } else if (context === false || context == null) {\n\t return inverse(this);\n\t } else if (_utils.isArray(context)) {\n\t if (context.length > 0) {\n\t if (options.ids) {\n\t options.ids = [options.name];\n\t }\n\t\n\t return instance.helpers.each(context, options);\n\t } else {\n\t return inverse(this);\n\t }\n\t } else {\n\t if (options.data && options.ids) {\n\t var data = _utils.createFrame(options.data);\n\t data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n\t options = { data: data };\n\t }\n\t\n\t return fn(context, options);\n\t }\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBc0QsVUFBVTs7cUJBRWpELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQ3pCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUN0QixNQUFNLElBQUksZUFBUSxPQUFPLENBQUMsRUFBRTtBQUMzQixVQUFJLE9BQU8sQ0FBQyxNQUFNLEdBQUcsQ0FBQyxFQUFFO0FBQ3RCLFlBQUksT0FBTyxDQUFDLEdBQUc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mbjtcblxuICAgIGlmIChjb250ZXh0ID09PSB0cnVlKSB7XG4gICAgICByZXR1cm4gZm4odGhpcyk7XG4gICAgfSBlbHNlIGlmIChjb250ZXh0ID09PSBmYWxzZSB8fCBjb250ZXh0ID09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgaWYgKGNvbnRleHQubGVuZ3RoID4gMCkge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCwgb3B0aW9ucy5uYW1lKTtcbiAgICAgICAgb3B0aW9ucyA9IHtkYXRhOiBkYXRhfTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n\n\n/***/ },\n/* 51 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\tvar _exception = __webpack_require__(13);\n\t\n\tvar _exception2 = _interopRequireDefault(_exception);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('each', function (context, options) {\n\t if (!options) {\n\t throw new _exception2['default']('Must pass iterator to #each');\n\t }\n\t\n\t var fn = options.fn,\n\t inverse = options.inverse,\n\t i = 0,\n\t ret = '',\n\t data = undefined,\n\t contextPath = undefined;\n\t\n\t if (options.data && options.ids) {\n\t contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n\t }\n\t\n\t if (_utils.isFunction(context)) {\n\t context = context.call(this);\n\t }\n\t\n\t if (options.data) {\n\t data = _utils.createFrame(options.data);\n\t }\n\t\n\t function execIteration(field, index, last) {\n\t if (data) {\n\t data.key = field;\n\t data.index = index;\n\t data.first = index === 0;\n\t data.last = !!last;\n\t\n\t if (contextPath) {\n\t data.contextPath = contextPath + field;\n\t }\n\t }\n\t\n\t ret = ret + fn(context[field], {\n\t data: data,\n\t blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n\t });\n\t }\n\t\n\t if (context && typeof context === 'object') {\n\t if (_utils.isArray(context)) {\n\t for (var j = context.length; i < j; i++) {\n\t if (i in context) {\n\t execIteration(i, i, i === context.length - 1);\n\t }\n\t }\n\t } else {\n\t var priorKey = undefined;\n\t\n\t for (var key in context) {\n\t if (context.hasOwnProperty(key)) {\n\t // We're running the iterations one step out of sync so we can detect\n\t // the last iteration without have to scan the object twice and create\n\t // an itermediate keys array.\n\t if (priorKey !== undefined) {\n\t execIteration(priorKey, i - 1);\n\t }\n\t priorKey = key;\n\t i++;\n\t }\n\t }\n\t if (priorKey !== undefined) {\n\t execIteration(priorKey, i - 1, true);\n\t }\n\t }\n\t }\n\t\n\t if (i === 0) {\n\t ret = inverse(this);\n\t }\n\t\n\t return ret;\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy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aWVsZF0sIGZpZWxkXSwgW2NvbnRleHRQYXRoICsgZmllbGQsIG51bGxdKVxuICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKGNvbnRleHQgJiYgdHlwZW9mIGNvbnRleHQgPT09ICdvYmplY3QnKSB7XG4gICAgICBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBpZiAoaSBpbiBjb250ZXh0KSB7XG4gICAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvbnRleHQubGVuZ3RoIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsZXQgcHJpb3JLZXk7XG5cbiAgICAgICAgZm9yIChsZXQga2V5IGluIGNvbnRleHQpIHtcbiAgICAgICAgICBpZiAoY29udGV4dC5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgICAgICAvLyBXZSdyZSBydW5uaW5nIHRoZSBpdGVyYXRpb25zIG9uZSBzdGVwIG91dCBvZiBzeW5jIHNvIHdlIGNhbiBkZXRlY3RcbiAgICAgICAgICAgIC8vIHRoZSBsYXN0IGl0ZXJhdGlvbiB3aXRob3V0IGhhdmUgdG8gc2NhbiB0aGUgb2JqZWN0IHR3aWNlIGFuZCBjcmVhdGVcbiAgICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgICBpZiAocHJpb3JLZXkgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBwcmlvcktleSA9IGtleTtcbiAgICAgICAgICAgIGkrKztcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n\n\n/***/ },\n/* 52 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\tvar _exception = __webpack_require__(13);\n\t\n\tvar _exception2 = _interopRequireDefault(_exception);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('helperMissing', function () /* [args, ]options */{\n\t if (arguments.length === 1) {\n\t // A missing field in a {{foo}} construct.\n\t return undefined;\n\t } else {\n\t // Someone is actually trying to call something, blow up.\n\t throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n\t }\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozt5QkFBc0IsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxlQUFlLEVBQUUsaUNBQWdDO0FBQ3ZFLFFBQUksU0FBUyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7O0FBRTFCLGFBQU8sU0FBUyxDQUFDO0tBQ2xCLE1BQU07O0FBRUwsWUFBTSwyQkFBYyxtQkFBbUIsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLENBQUM7S0FDdkY7R0FDRixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJoZWxwZXItbWlzc2luZy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBFeGNlcHRpb24gZnJvbSAnLi4vZXhjZXB0aW9uJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2hlbHBlck1pc3NpbmcnLCBmdW5jdGlvbigvKiBbYXJncywgXW9wdGlvbnMgKi8pIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgLy8gQSBtaXNzaW5nIGZpZWxkIGluIGEge3tmb299fSBjb25zdHJ1Y3QuXG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBTb21lb25lIGlzIGFjdHVhbGx5IHRyeWluZyB0byBjYWxsIHNvbWV0aGluZywgYmxvdyB1cC5cbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oJ01pc3NpbmcgaGVscGVyOiBcIicgKyBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdLm5hbWUgKyAnXCInKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n\n\n/***/ },\n/* 53 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('if', function (conditional, options) {\n\t if (_utils.isFunction(conditional)) {\n\t conditional = conditional.call(this);\n\t }\n\t\n\t // Default behavior is to render the positive path if the value is truthy and not empty.\n\t // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n\t // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n\t if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n\t return options.inverse(this);\n\t } else {\n\t return options.fn(this);\n\t }\n\t });\n\t\n\t instance.registerHelper('unless', function (conditional, options) {\n\t return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.hash });\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBa0MsVUFBVTs7cUJBRTdCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLGtCQUFXLFdBQVcsQ0FBQyxFQUFFO0FBQUUsaUJBQVcsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQUU7Ozs7O0FBS3RFLFFBQUksQUFBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsV0FBVyxJQUFJLENBQUMsV0FBVyxJQUFLLGVBQVEsV0FBVyxDQUFDLEVBQUU7QUFDdkUsYUFBTyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQzlCLE1BQU07QUFDTCxhQUFPLE9BQU8sQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDekI7R0FDRixDQUFDLENBQUM7O0FBRUgsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxXQUFXLEVBQUUsT0FBTyxFQUFFO0FBQy9ELFdBQU8sUUFBUSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENB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b25hbCkpIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmludmVyc2UodGhpcyk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmZuKHRoaXMpO1xuICAgIH1cbiAgfSk7XG5cbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ3VubGVzcycsIGZ1bmN0aW9uKGNvbmRpdGlvbmFsLCBvcHRpb25zKSB7XG4gICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnNbJ2lmJ10uY2FsbCh0aGlzLCBjb25kaXRpb25hbCwge2ZuOiBvcHRpb25zLmludmVyc2UsIGludmVyc2U6IG9wdGlvbnMuZm4sIGhhc2g6IG9wdGlvbnMuaGFzaH0pO1xuICB9KTtcbn1cbiJdfQ==\n\n\n/***/ },\n/* 54 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('log', function () /* message, options */{\n\t var args = [undefined],\n\t options = arguments[arguments.length - 1];\n\t for (var i = 0; i < arguments.length - 1; i++) {\n\t args.push(arguments[i]);\n\t }\n\t\n\t var level = 1;\n\t if (options.hash.level != null) {\n\t level = options.hash.level;\n\t } else if (options.data && options.data.level != null) {\n\t level = options.data.level;\n\t }\n\t args[0] = level;\n\t\n\t instance.log.apply(instance, args);\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ2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cy5sZW5ndGggLSAxXTtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IGFyZ3VtZW50cy5sZW5ndGggLSAxOyBpKyspIHtcbiAgICAgIGFyZ3MucHVzaChhcmd1bWVudHNbaV0pO1xuICAgIH1cblxuICAgIGxldCBsZXZlbCA9IDE7XG4gICAgaWYgKG9wdGlvbnMuaGFzaC5sZXZlbCAhPSBudWxsKSB7XG4gICAgICBsZXZlbCA9IG9wdGlvbnMuaGFzaC5sZXZlbDtcbiAgICB9IGVsc2UgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmRhdGEubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmRhdGEubGV2ZWw7XG4gICAgfVxuICAgIGFyZ3NbMF0gPSBsZXZlbDtcblxuICAgIGluc3RhbmNlLmxvZyguLi4gYXJncyk7XG4gIH0pO1xufVxuIl19\n\n\n/***/ },\n/* 55 */\n/***/ function(module, exports) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('lookup', function (obj, field) {\n\t return obj && obj[field];\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFO0FBQ3JELFdBQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQztHQUMxQixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJsb29rdXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihpbnN0YW5jZSkge1xuICBpbnN0YW5jZS5yZWdpc3RlckhlbHBlcignbG9va3VwJywgZnVuY3Rpb24ob2JqLCBmaWVsZCkge1xuICAgIHJldHVybiBvYmogJiYgb2JqW2ZpZWxkXTtcbiAgfSk7XG59XG4iXX0=\n\n\n/***/ },\n/* 56 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\texports['default'] = function (instance) {\n\t instance.registerHelper('with', function (context, options) {\n\t if (_utils.isFunction(context)) {\n\t context = context.call(this);\n\t }\n\t\n\t var fn = options.fn;\n\t\n\t if (!_utils.isEmpty(context)) {\n\t var data = options.data;\n\t if (options.data && options.ids) {\n\t data = _utils.createFrame(options.data);\n\t data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n\t }\n\t\n\t return fn(context, {\n\t data: data,\n\t blockParams: _utils.blockParams([context], [data && data.contextPath])\n\t });\n\t } else {\n\t return options.inverse(this);\n\t }\n\t });\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUErRSxVQUFVOztxQkFFMUUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3pELFFBQUksa0JBQVcsT0FBTyxDQUFDLEVBQUU7QUFBRSxhQUFPLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUFFOztBQUUxRCxRQUFJLEVBQUUsR0FBR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29udGV4dCA9IGNvbnRleHQuY2FsbCh0aGlzKTsgfVxuXG4gICAgbGV0IGZuID0gb3B0aW9ucy5mbjtcblxuICAgIGlmICghaXNFbXB0eShjb250ZXh0KSkge1xuICAgICAgbGV0IGRhdGEgPSBvcHRpb25zLmRhdGE7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGRhdGEgPSBjcmVhdGVGcmFtZShvcHRpb25zLmRhdGEpO1xuICAgICAgICBkYXRhLmNvbnRleHRQYXRoID0gYXBwZW5kQ29udGV4dFBhdGgob3B0aW9ucy5kYXRhLmNvbnRleHRQYXRoLCBvcHRpb25zLmlkc1swXSk7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBmbihjb250ZXh0LCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dF0sIFtkYXRhICYmIGRhdGEuY29udGV4dFBhdGhdKVxuICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmludmVyc2UodGhpcyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\n\n\n/***/ },\n/* 57 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\tvar logger = {\n\t methodMap: ['debug', 'info', 'warn', 'error'],\n\t level: 'info',\n\t\n\t // Maps a given level value to the `methodMap` indexes above.\n\t lookupLevel: function lookupLevel(level) {\n\t if (typeof level === 'string') {\n\t var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n\t if (levelMap >= 0) {\n\t level = levelMap;\n\t } else {\n\t level = parseInt(level, 10);\n\t }\n\t }\n\t\n\t return level;\n\t },\n\t\n\t // Can be overridden in the host environment\n\t log: function log(level) {\n\t level = logger.lookupLevel(level);\n\t\n\t if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n\t var method = logger.methodMap[level];\n\t if (!console[method]) {\n\t // eslint-disable-line no-console\n\t method = 'log';\n\t }\n\t\n\t for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n\t message[_key - 1] = arguments[_key];\n\t }\n\t\n\t console[method].apply(console, message); // eslint-disable-line no-console\n\t }\n\t }\n\t};\n\t\n\texports['default'] = logger;\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUFzQixTQUFTOztBQUUvQixJQUFJLE1BQU0sR0FBRztBQUNYLFdBQVMsRUFBRSxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQztBQUM3QyxPQUFLLEVBQUUsTUFBTTs7O0FBR2IsYUFBVyxFQUFFLHFCQUFTLEtBQUssRUFBRTtBQUMzQixRQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRTtBQUM3QixVQUFJLFFBQVEsR0FBRyxlQUFRLE1BQU0sQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLFdBQVcsRUFBRSxDQUFDLENBQUM7QUFDOUQsVUFBSSxRQUFRLElBQUksQ0FBQyxFQUFFO0FBQ2pCLGFBQUssR0FBRyxRQUFRLENBQUM7T0FDbEIsTUFBTTtBQUNMLGFBQUssR0FBRyxRQUFRLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO09BQzdCO0tBQ0Y7O0FBRUQsV0FBTyxLQUFLLENBQUM7R0FDZDs7O0FBR0QsS0FBRyxFQUFFLGFBQVMsS0FBSyxFQUFjO0FBQy9CLFNBQUssR0FBRyxNQUFNLENBQUMsV0FBVyxDQUFDL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AgIGxldmVsID0gcGFyc2VJbnQobGV2ZWwsIDEwKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gbGV2ZWw7XG4gIH0sXG5cbiAgLy8gQ2FuIGJlIG92ZXJyaWRkZW4gaW4gdGhlIGhvc3QgZW52aXJvbm1lbnRcbiAgbG9nOiBmdW5jdGlvbihsZXZlbCwgLi4ubWVzc2FnZSkge1xuICAgIGxldmVsID0gbG9nZ2VyLmxvb2t1cExldmVsKGxldmVsKTtcblxuICAgIGlmICh0eXBlb2YgY29uc29sZSAhPT0gJ3VuZGVmaW5lZCcgJiYgbG9nZ2VyLmxvb2t1cExldmVsKGxvZ2dlci5sZXZlbCkgPD0gbGV2ZWwpIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIGlmICghY29uc29sZVttZXRob2RdKSB7ICAgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgICAgIG1ldGhvZCA9ICdsb2cnO1xuICAgICAgfVxuICAgICAgY29uc29sZVttZXRob2RdKC4uLm1lc3NhZ2UpOyAgICAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGVcbiAgICB9XG4gIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IGxvZ2dlcjtcbiJdfQ==\n\n\n/***/ },\n/* 58 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/* global window */\n\t'use strict';\n\t\n\texports.__esModule = true;\n\t\n\texports['default'] = function (Handlebars) {\n\t /* istanbul ignore next */\n\t var root = typeof global !== 'undefined' ? global : window,\n\t $Handlebars = root.Handlebars;\n\t /* istanbul ignore next */\n\t Handlebars.noConflict = function () {\n\t if (root.Handlebars === Handlebars) {\n\t root.Handlebars = $Handlebars;\n\t }\n\t return Handlebars;\n\t };\n\t};\n\t\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8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\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 59 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\texports.__esModule = true;\n\texports.checkRevision = checkRevision;\n\texports.template = template;\n\texports.wrapProgram = wrapProgram;\n\texports.resolvePartial = resolvePartial;\n\texports.invokePartial = invokePartial;\n\texports.noop = noop;\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\t\n\t// istanbul ignore next\n\t\n\tfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\t\n\tvar _utils = __webpack_require__(10);\n\t\n\tvar Utils = _interopRequireWildcard(_utils);\n\t\n\tvar _exception = __webpack_require__(13);\n\t\n\tvar _exception2 = _interopRequireDefault(_exception);\n\t\n\tvar _base = __webpack_require__(22);\n\t\n\tfunction checkRevision(compilerInfo) {\n\t var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n\t currentRevision = _base.COMPILER_REVISION;\n\t\n\t if (compilerRevision !== currentRevision) {\n\t if (compilerRevision < currentRevision) {\n\t var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n\t compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n\t throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n\t } else {\n\t // Use the embedded version info since the runtime doesn't know about this revision yet\n\t throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n\t }\n\t }\n\t}\n\t\n\tfunction template(templateSpec, env) {\n\t /* istanbul ignore next */\n\t if (!env) {\n\t throw new _exception2['default']('No environment passed to template');\n\t }\n\t if (!templateSpec || !templateSpec.main) {\n\t throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n\t }\n\t\n\t templateSpec.main.decorator = templateSpec.main_d;\n\t\n\t // Note: Using env.VM references rather than local var references throughout this section to allow\n\t // for external users to override these as psuedo-supported APIs.\n\t env.VM.checkRevision(templateSpec.compiler);\n\t\n\t function invokePartialWrapper(partial, context, options) {\n\t if (options.hash) {\n\t context = Utils.extend({}, context, options.hash);\n\t if (options.ids) {\n\t options.ids[0] = true;\n\t }\n\t }\n\t\n\t partial = env.VM.resolvePartial.call(this, partial, context, options);\n\t var result = env.VM.invokePartial.call(this, partial, context, options);\n\t\n\t if (result == null && env.compile) {\n\t options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n\t result = options.partials[options.name](context, options);\n\t }\n\t if (result != null) {\n\t if (options.indent) {\n\t var lines = result.split('\\n');\n\t for (var i = 0, l = lines.length; i < l; i++) {\n\t if (!lines[i] && i + 1 === l) {\n\t break;\n\t }\n\t\n\t lines[i] = options.indent + lines[i];\n\t }\n\t result = lines.join('\\n');\n\t }\n\t return result;\n\t } else {\n\t throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n\t }\n\t }\n\t\n\t // Just add water\n\t var container = {\n\t strict: function strict(obj, name) {\n\t if (!(name in obj)) {\n\t throw new _exception2['default']('\"' + name + '\" not defined in ' + obj);\n\t }\n\t return obj[name];\n\t },\n\t lookup: function lookup(depths, name) {\n\t var len = depths.length;\n\t for (var i = 0; i < len; i++) {\n\t if (depths[i] && depths[i][name] != null) {\n\t return depths[i][name];\n\t }\n\t }\n\t },\n\t lambda: function lambda(current, context) {\n\t return typeof current === 'function' ? current.call(context) : current;\n\t },\n\t\n\t escapeExpression: Utils.escapeExpression,\n\t invokePartial: invokePartialWrapper,\n\t\n\t fn: function fn(i) {\n\t var ret = templateSpec[i];\n\t ret.decorator = templateSpec[i + '_d'];\n\t return ret;\n\t },\n\t\n\t programs: [],\n\t program: function program(i, data, declaredBlockParams, blockParams, depths) {\n\t var programWrapper = this.programs[i],\n\t fn = this.fn(i);\n\t if (data || depths || blockParams || declaredBlockParams) {\n\t programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n\t } else if (!programWrapper) {\n\t programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n\t }\n\t return programWrapper;\n\t },\n\t\n\t data: function data(value, depth) {\n\t while (value && depth--) {\n\t value = value._parent;\n\t }\n\t return value;\n\t },\n\t merge: function merge(param, common) {\n\t var obj = param || common;\n\t\n\t if (param && common && param !== common) {\n\t obj = Utils.extend({}, common, param);\n\t }\n\t\n\t return obj;\n\t },\n\t // An empty object to use as replacement for null-contexts\n\t nullContext: Object.seal({}),\n\t\n\t noop: env.VM.noop,\n\t compilerInfo: templateSpec.compiler\n\t };\n\t\n\t function ret(context) {\n\t var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\t\n\t var data = options.data;\n\t\n\t ret._setup(options);\n\t if (!options.partial && templateSpec.useData) {\n\t data = initData(context, data);\n\t }\n\t var depths = undefined,\n\t blockParams = templateSpec.useBlockParams ? [] : undefined;\n\t if (templateSpec.useDepths) {\n\t if (options.depths) {\n\t depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n\t } else {\n\t depths = [context];\n\t }\n\t }\n\t\n\t function main(context /*, options*/) {\n\t return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n\t }\n\t main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n\t return main(context, options);\n\t }\n\t ret.isTop = true;\n\t\n\t ret._setup = function (options) {\n\t if (!options.partial) {\n\t container.helpers = container.merge(options.helpers, env.helpers);\n\t\n\t if (templateSpec.usePartial) {\n\t container.partials = container.merge(options.partials, env.partials);\n\t }\n\t if (templateSpec.usePartial || templateSpec.useDecorators) {\n\t container.decorators = container.merge(options.decorators, env.decorators);\n\t }\n\t } else {\n\t container.helpers = options.helpers;\n\t container.partials = options.partials;\n\t container.decorators = options.decorators;\n\t }\n\t };\n\t\n\t ret._child = function (i, data, blockParams, depths) {\n\t if (templateSpec.useBlockParams && !blockParams) {\n\t throw new _exception2['default']('must pass block params');\n\t }\n\t if (templateSpec.useDepths && !depths) {\n\t throw new _exception2['default']('must pass parent depths');\n\t }\n\t\n\t return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n\t };\n\t return ret;\n\t}\n\t\n\tfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n\t function prog(context) {\n\t var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\t\n\t var currentDepths = depths;\n\t if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n\t currentDepths = [context].concat(depths);\n\t }\n\t\n\t return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n\t }\n\t\n\t prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\t\n\t prog.program = i;\n\t prog.depth = depths ? depths.length : 0;\n\t prog.blockParams = declaredBlockParams || 0;\n\t return prog;\n\t}\n\t\n\tfunction resolvePartial(partial, context, options) {\n\t if (!partial) {\n\t if (options.name === '@partial-block') {\n\t partial = options.data['partial-block'];\n\t } else {\n\t partial = options.partials[options.name];\n\t }\n\t } else if (!partial.call && !options.name) {\n\t // This is a dynamic partial that returned a string\n\t options.name = partial;\n\t partial = options.partials[partial];\n\t }\n\t return partial;\n\t}\n\t\n\tfunction invokePartial(partial, context, options) {\n\t // Use the current closure context to save the partial-block if this partial\n\t var currentPartialBlock = options.data && options.data['partial-block'];\n\t options.partial = true;\n\t if (options.ids) {\n\t options.data.contextPath = options.ids[0] || options.data.contextPath;\n\t }\n\t\n\t var partialBlock = undefined;\n\t if (options.fn && options.fn !== noop) {\n\t (function () {\n\t options.data = _base.createFrame(options.data);\n\t // Wrapper function to get access to currentPartialBlock from the closure\n\t var fn = options.fn;\n\t partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n\t var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\t\n\t // Restore the partial-block from the closure for the execution of the block\n\t // i.e. the part inside the block of the partial call.\n\t options.data = _base.createFrame(options.data);\n\t options.data['partial-block'] = currentPartialBlock;\n\t return fn(context, options);\n\t };\n\t if (fn.partials) {\n\t options.partials = Utils.extend({}, options.partials, fn.partials);\n\t }\n\t })();\n\t }\n\t\n\t if (partial === undefined && partialBlock) {\n\t partial = partialBlock;\n\t }\n\t\n\t if (partial === undefined) {\n\t throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n\t } else if (partial instanceof Function) {\n\t return partial(context, options);\n\t }\n\t}\n\t\n\tfunction noop() {\n\t return '';\n\t}\n\t\n\tfunction initData(context, data) {\n\t if (!data || !('root' in data)) {\n\t data = data ? _base.createFrame(data) : {};\n\t data.root = context;\n\t }\n\t return data;\n\t}\n\t\n\tfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n\t if (fn.decorator) {\n\t var props = {};\n\t prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n\t Utils.extend(prog, props);\n\t }\n\t return prog;\n\t}\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBQzhCLFFBQVE7O0FBRWxFLFNBQVMsYUFBYSxDQUFDLFlBQVksRUFBRTtBQUMxQyxNQUFNLGdCQUFnQixHQUFHLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQztNQUN2RCxlQUFlLDBCQUFvQixDQUFDOztBQUUxQyxNQUFJLGdCQUFnQixLQUFLLGVBQW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dGEsIGJsb2NrUGFyYW1zLCBkZXB0aHMpO1xuICAgIFV0aWxzLmV4dGVuZChwcm9nLCBwcm9wcyk7XG4gIH1cbiAgcmV0dXJuIHByb2c7XG59XG4iXX0=\n\n\n/***/ },\n/* 60 */\n/***/ function(module, exports) {\n\n\t// Build out our basic SafeString type\n\t'use strict';\n\t\n\texports.__esModule = true;\n\tfunction SafeString(string) {\n\t this.string = string;\n\t}\n\t\n\tSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n\t return '' + this.string;\n\t};\n\t\n\texports['default'] = SafeString;\n\tmodule.exports = exports['default'];\n\t//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n\n\n/***/ },\n/* 61 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Add autoscroll feature to elements that prevented text selection.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar domevent = __webpack_require__(9);\n\tvar domutil = __webpack_require__(2);\n\tvar Point = __webpack_require__(23);\n\t\n\tvar SCROLL_INTERVAL = 30;\n\tvar SCROLL_MAX = 15;\n\tvar SCROLL_CLICK_INCREASED = 2; // IE에서 스크롤 바 클릭 시 실제 UI pixel 보다 넓게 잡히는 현상 offset.\n\t\n\t/**\n\t * Add autoscroll feature to elements that prevented text selection.\n\t * @constructor\n\t * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n\t */\n\tfunction AutoScroll(container) {\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.container = container;\n\t\n\t /**\n\t * @type {AutoScroll.DIRECTION}\n\t */\n\t this._direction = AutoScroll.DIRECTION.INSIDE;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._offset = 0;\n\t\n\t /**\n\t * interval to scrolling\n\t * @type {number}\n\t */\n\t this._intervalID = 0;\n\t\n\t domevent.on(container, {\n\t 'mousedown': this._onMouseDown\n\t }, this);\n\t}\n\t\n\t/**\n\t * @enum\n\t */\n\tAutoScroll.DIRECTION = {\n\t INSIDE: 0,\n\t TOP: 1,\n\t RIGHT: 2,\n\t BOTTOM: 3,\n\t LEFT: 4\n\t};\n\t\n\t/**\n\t * Instance destroy method.\n\t */\n\tAutoScroll.prototype.destroy = function() {\n\t domevent.off(this.container, {\n\t 'mousedown': this._onMouseDown,\n\t 'mousemove': this._onMouseMove,\n\t 'mouseup': this._onMouseUp\n\t }, this);\n\t\n\t window.clearInterval(this._intervalID);\n\t this._intervalID = this._direction = this.container = null;\n\t};\n\t\n\t/**\n\t * Normalize ClientRect and calculate each position of edges.\n\t * @param {ClientRect} clientRect - ClientRect object of element.\n\t * @returns {object} edges.\n\t */\n\tAutoScroll.prototype._getEdgePositions = function(clientRect) {\n\t return {\n\t top: clientRect.top,\n\t right: clientRect.left + clientRect.width,\n\t bottom: clientRect.bottom,\n\t left: clientRect.left\n\t };\n\t};\n\t\n\t/**\n\t * Get element real size (\"real size\" -> size without scrollbar)\n\t * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n\t * @returns {number[]} real size [width, height]\n\t */\n\tAutoScroll.prototype.getRealSize = function(el) {\n\t var computed = domutil.getComputedStyle(el),\n\t border,\n\t padding;\n\t\n\t border = parseFloat(computed.getPropertyValue('border-top-width')) +\n\t parseFloat(computed.getPropertyValue('border-bottom-width'));\n\t padding = parseFloat(computed.getPropertyValue('padding-top')) +\n\t parseFloat(computed.getPropertyValue('padding-bottom'));\n\t\n\t return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n\t};\n\t\n\t/**\n\t * Check supplied element has scrollbar.\n\t * @param {HTMLElement} el - element want to know has scrollbar.\n\t * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n\t */\n\tAutoScroll.prototype.hasScrollbar = function(el) {\n\t var realSize = this.getRealSize(el);\n\t\n\t return [\n\t el.offsetWidth > Math.ceil(realSize[0]),\n\t el.offsetHeight > Math.ceil(realSize[1])\n\t ];\n\t};\n\t\n\t/**\n\t * @param {HTMLElement} el - element want to know.\n\t * @param {MouseEvent} mouseEvent - mouse event object.\n\t * @returns {boolean} mouse pointer is on the scrollbar?\n\t */\n\tAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n\t var realSize = this.getRealSize(el),\n\t pos = domevent.getMousePosition(mouseEvent, el),\n\t mouseInScrollbar = false;\n\t\n\t mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n\t realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\t\n\t return mouseInScrollbar;\n\t};\n\t\n\t/**\n\t * MouseDown event handler\n\t * @param {MouseEvent} mouseDownEvent - mouse down event\n\t */\n\tAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n\t // only primary button can start drag.\n\t if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n\t return;\n\t }\n\t\n\t // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n\t if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n\t return;\n\t }\n\t\n\t window.clearInterval(this._intervalID);\n\t this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\t\n\t domevent.on(global, {\n\t 'mousemove': this._onMouseMove,\n\t 'mouseup': this._onMouseUp\n\t }, this);\n\t};\n\t\n\t/**\n\t * MouseMove event handler\n\t * @param {MouseEvent} mouseEvent - mouse move event object.\n\t */\n\tAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n\t var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n\t pos = Point.n(domevent.getMousePosition(mouseEvent));\n\t\n\t if (pos.y >= edge.top && pos.y <= edge.bottom &&\n\t pos.x >= edge.left && pos.x <= edge.right) {\n\t this._direction = AutoScroll.DIRECTION.INSIDE;\n\t\n\t return;\n\t }\n\t\n\t if (pos.y < edge.top) {\n\t this._direction = AutoScroll.DIRECTION.TOP;\n\t this._offset = edge.top - pos.y;\n\t\n\t return;\n\t }\n\t\n\t if (pos.y > edge.bottom) {\n\t this._direction = AutoScroll.DIRECTION.BOTTOM;\n\t this._offset = pos.y - edge.bottom;\n\t\n\t return;\n\t }\n\t\n\t if (pos.x < edge.left) {\n\t this._direction = AutoScroll.DIRECTION.LEFT;\n\t this._offset = edge.left - pos.x;\n\t\n\t return;\n\t }\n\t\n\t this._direction = AutoScroll.DIRECTION.RIGHT;\n\t this._offset = pos.x - edge.right;\n\t};\n\t\n\t/**\n\t * MouseUp event handler.\n\t */\n\tAutoScroll.prototype._onMouseUp = function() {\n\t window.clearInterval(this._intervalID);\n\t this._intervalID = 0;\n\t this._direction = AutoScroll.DIRECTION.INSIDE;\n\t this._offset = 0;\n\t\n\t domevent.off(global, {\n\t 'mousemove': this._onMouseMove,\n\t 'mouseup': this._onMouseUp\n\t }, this);\n\t};\n\t\n\t/**\n\t * Interval tick event handler\n\t */\n\tAutoScroll.prototype._onTick = function() {\n\t var direction = this._direction,\n\t container,\n\t factor;\n\t\n\t if (!direction) {\n\t return;\n\t }\n\t\n\t container = this.container;\n\t factor = Math.min(this._offset, SCROLL_MAX);\n\t\n\t switch (direction) {\n\t case AutoScroll.DIRECTION.TOP:\n\t container.scrollTop -= factor;\n\t break;\n\t case AutoScroll.DIRECTION.RIGHT:\n\t container.scrollLeft += factor;\n\t break;\n\t case AutoScroll.DIRECTION.BOTTOM:\n\t container.scrollTop += factor;\n\t break;\n\t default:\n\t container.scrollLeft -= factor;\n\t break;\n\t }\n\t};\n\t\n\tmodule.exports = AutoScroll;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 62 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Dirty flagging module for objects.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar common = __webpack_require__(1);\n\tvar existy = common.isExisty,\n\t pick = common.pick,\n\t isFunc = common.isFunction;\n\t\n\t/**\n\t * Mixin module for dirty flagging on specific objects.\n\t * @mixin\n\t * @example\n\t * var obj = { hello: 'good', test: '123' };\n\t * dirty.mixin(obj);\n\t *\n\t * obj.set('hello', 'world');\n\t * obj.isDirty(); // true\n\t * obj.isPropChanged('hello'); // true\n\t * obj.isPropChanged('test'); // false\n\t * obj.dirty(false);\n\t *\n\t * obj.isDirty(); // false\n\t * obj.isPropChanged('hello'); // false\n\t */\n\tvar dirty = {\n\t /**\n\t * Set property value with dirty flagging.\n\t * @param {string} propName Property name.\n\t * @param {*} value Proprty value.\n\t */\n\t set: function(propName, value) {\n\t var originValue = this[propName];\n\t\n\t if (originValue === value) {\n\t return;\n\t }\n\t\n\t this[propName] = value;\n\t\n\t if (!this._changed) {\n\t /**\n\t * Save changed properties.\n\t * @memberof dirty\n\t * @name _changed\n\t * @type {Object}\n\t */\n\t this._changed = {};\n\t }\n\t\n\t this._changed[propName] = true;\n\t\n\t /**\n\t * Dirty flag\n\t * @type {Boolean}\n\t * @name _dirty\n\t * @memberof dirty\n\t */\n\t this._dirty = true;\n\t },\n\t\n\t /**\n\t * Check dirty flag.\n\t * @returns {boolean} Property is changed.\n\t */\n\t isDirty: function() {\n\t return !!this._dirty;\n\t },\n\t\n\t /**\n\t * Set dirty flag manually.\n\t * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n\t */\n\t dirty: function(toDirty) {\n\t toDirty = existy(toDirty) ? toDirty : true;\n\t\n\t /* istanbul ignore else */\n\t if (!toDirty) {\n\t this._changed = {};\n\t }\n\t\n\t this._dirty = toDirty;\n\t },\n\t\n\t /**\n\t * Delete property safety.\n\t * @param {String} propName The name of property.\n\t */\n\t deleteProp: function(propName) {\n\t delete this[propName];\n\t\n\t if (this._changed) {\n\t delete this._changed[propName];\n\t }\n\t },\n\t\n\t /**\n\t * Check the changes with specific property.\n\t * @param {String} propName The name of property you want.\n\t * @returns {boolean} Is property changed?\n\t */\n\t isPropChanged: function(propName) {\n\t if (!this._changed) {\n\t return false;\n\t }\n\t\n\t return this._changed[propName] === true;\n\t },\n\t\n\t /**\n\t * Mixin to specific objects.\n\t * @param {Object} target The object to mix this module.\n\t * @memberof module:util/dirty\n\t * @example\n\t * function Animal() {}\n\t * dirty.mixin(Animal.prototype);\n\t */\n\t mixin: function(target) {\n\t var methodFilterR = /(^_|mixin|wrap)/;\n\t\n\t common.forEachOwnProperties(dirty, function(o, k) {\n\t if (!methodFilterR.test(k)) {\n\t target[k] = dirty[k];\n\t }\n\t });\n\t },\n\t\n\t /**\n\t * Wrapper method for dirty flagging.\n\t *\n\t * This method invoke after invoked specific method that added by you.\n\t *\n\t * The method want to add are must exist before add.\n\t * @param {object} target Target object to method wrap.\n\t * @param {(string|object)} methodName\n\t * Method name to wrap or methodName: flag objects.\n\t * @param {boolean} [flag=true]\n\t * this will used to flagging by dirty flagger after invoke the methods added by you.\n\t * @memberof module:util/dirty\n\t * @example\n\t * function Animal(name) {\n\t * this.name = name;\n\t * }\n\t * Animal.prototype.growl = jasmine.createSpy('growl');\n\t * Animal.prototype.test = function() {\n\t * return this.name;\n\t * };\n\t *\n\t * dirty.mixin(Animal.prototype);\n\t * // single\n\t * dirty.wrap(Animal.prototype, 'growl', true);\n\t * // multiple\n\t * dirty.wrap(Animap.prototype, {\n\t * growl: true,\n\t * test: false\n\t * });\n\t *\n\t */\n\t wrap: function(target, methodName, flag) {\n\t var wrap = dirty.wrap,\n\t fn;\n\t\n\t if (common.isObject(methodName)) {\n\t common.forEachOwnProperties(methodName, function(_flag, _name) {\n\t wrap(target, _name, _flag);\n\t });\n\t\n\t return;\n\t }\n\t\n\t flag = existy(flag) ? flag : true;\n\t\n\t if (!target._wrapper) {\n\t /**\n\t * @param {function} _fn Original method to wrap.\n\t * @param {boolean} flagToSet The boolean value to using dirty flagging.\n\t * @returns {*} The result value of original method.\n\t * @name _wrapper\n\t * @memberof dirty\n\t */\n\t target._wrapper = function(_fn, flagToSet) {\n\t return function() {\n\t var args = Array.prototype.slice.call(arguments);\n\t var result = _fn.apply(this, args); // eslint-disable-line\n\t this._dirty = flagToSet; // eslint-disable-line\n\t\n\t return result;\n\t };\n\t };\n\t }\n\t\n\t if (existy(pick(target, methodName)) &&\n\t isFunc(target[methodName]) &&\n\t !existy(pick(target, methodName, '_wrapped'))) {\n\t fn = target[methodName];\n\t target[methodName] = target._wrapper(fn, flag);\n\t target[methodName]._wrapped = true;\n\t }\n\t }\n\t};\n\t\n\tmodule.exports = dirty;\n\t\n\n\n/***/ },\n/* 63 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Mixin module for models.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar util = __webpack_require__(1);\n\tvar spaceRx = /^\\s*|\\s*$/g,\n\t model;\n\t\n\tvar datetime = __webpack_require__(4);\n\t\n\t/**\n\t * Mixin module for models.\n\t * @mixin\n\t */\n\tmodel = {\n\t /**\n\t * string trim\n\t * @param {string} str string to trim\n\t * @returns {string} trimed string\n\t */\n\t trim: function(str) {\n\t return str.replace(spaceRx, '');\n\t },\n\t /**\n\t * The collections of validator functions.\n\t */\n\t validators: {\n\t /**\n\t * check all of supplied fields(property) is not undefined or empty string.\n\t * @param {object} instance model instance.\n\t * @param {string[]} fields property names to check.\n\t * @returns {boolean} return true when supplied fields are not undefined or empty string.\n\t */\n\t required: function(instance, fields) {\n\t var valid = true,\n\t isValid = function(obj) {\n\t return !util.isUndefined(obj) && model.trim(obj) !== '';\n\t };\n\t\n\t util.forEach(fields, function(fieldName) {\n\t valid = isValid(instance[fieldName]);\n\t\n\t return valid;\n\t });\n\t\n\t return valid;\n\t },\n\t\n\t /**\n\t * check supplied fields are valid dates and valid date ranges.\n\t * @param {object} instance model instance.\n\t * @param {Date[]} fields array of date range (start, end)\n\t * @returns {boolean} is valid date range?\n\t */\n\t dateRange: function(instance, fields) {\n\t var start, end;\n\t\n\t if (!util.isExisty(instance) || fields.length !== 2) {\n\t return true;\n\t }\n\t\n\t start = new TZDate(instance[fields[0]]);\n\t end = new TZDate(instance[fields[1]]);\n\t\n\t if (!datetime.isValid(start) || !datetime.isValid(end)) {\n\t return false;\n\t }\n\t\n\t if (datetime.compare(start, end) === 1) {\n\t return false;\n\t }\n\t\n\t return true;\n\t }\n\t },\n\t\n\t /**\n\t * Check validate for model instance.\n\t *\n\t * The validate are works on a basis of constructor's \"schema\" property.\n\t *\n\t * You can customize validators add some method to model#validators.\n\t * @returns {Boolean} model is valid?\n\t */\n\t isValid: function() {\n\t var self = this,\n\t schema = this.constructor.schema,\n\t validators = model.validators,\n\t validator,\n\t valid = true;\n\t\n\t if (!schema) {\n\t return true;\n\t }\n\t\n\t util.forEach(schema, function(values, validatorName) {\n\t validator = validators[validatorName];\n\t\n\t if (validator) {\n\t valid = validator(self, values);\n\t\n\t return valid; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t });\n\t\n\t return valid;\n\t },\n\t\n\t /**\n\t * Make data object form instance.\n\t *\n\t * It return object fill with all owned properties but exclude functions.\n\t * @returns {object} Data object\n\t */\n\t parameterize: function() {\n\t var param = {},\n\t isFunc = util.isFunction;\n\t\n\t util.forEach(this, function(value, propName) {\n\t if (!isFunc(value)) {\n\t param[propName] = value;\n\t }\n\t });\n\t\n\t return param;\n\t },\n\t\n\t /**\n\t * Mixin model module to supplied target.\n\t * @param {Object} target The object of want to mixed.\n\t * @example\n\t * function Man() {\n\t * this.name = 'john';\n\t * }\n\t * model.mixin(Man.prototype);\n\t */\n\t mixin: function(target) {\n\t util.forEach(model, function(method, name) {\n\t if (name !== 'mixin') {\n\t target[name] = method;\n\t }\n\t });\n\t }\n\t};\n\t\n\tmodule.exports = model;\n\t\n\n\n/***/ },\n/* 64 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Panel class for VLayout module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options for VPanel\n\t * @param {number} options.index - index of panel in vlayout\n\t * @param {number} [options.minHeight=0] - minimum height of panel\n\t * @param {number} [options.height] - initial height of panel\n\t * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n\t * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n\t * @param {string} [options.className] - additional class name to add element\n\t * @param {HTMLElement} container - container element\n\t */\n\tfunction VPanel(options, container) {\n\t View.call(this, container);\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t index: 0,\n\t name: '0',\n\t minHeight: 0,\n\t maxHeight: null,\n\t height: null,\n\t isSplitter: false,\n\t autoHeight: false,\n\t className: ''\n\t }, options);\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this.index = this.options.index;\n\t\n\t /**\n\t * @type {string}\n\t */\n\t this.name = this.options.name || String(this.index);\n\t\n\t this.isHeightForcedSet = false;\n\t\n\t this._initPanel(this.options, container);\n\t}\n\t\n\tutil.inherit(VPanel, View);\n\t\n\t/**\n\t * whether this panel is splitter?\n\t * @returns {boolean} panel is splitter?\n\t */\n\tVPanel.prototype.isSplitter = function() {\n\t return this.options.isSplitter;\n\t};\n\t\n\t/**\n\t * set height of html element\n\t * @param {HTMLElement} [container] - container element\n\t * @param {number} newHeight - height\n\t * @param {boolean} force - whether ignore max-length\n\t */\n\tVPanel.prototype.setHeight = function(container, newHeight, force) {\n\t var maxHeight = this.options.maxHeight;\n\t var minHeight = this.options.minHeight;\n\t var autoHeight = this.options.autoHeight;\n\t container = container || this.container;\n\t\n\t // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n\t if (!force && this.isHeightForcedSet && !autoHeight) {\n\t return;\n\t }\n\t\n\t if (force) {\n\t this.isHeightForcedSet = true;\n\t } else if (maxHeight) {\n\t newHeight = Math.min(newHeight, maxHeight);\n\t }\n\t newHeight = Math.max(minHeight, newHeight);\n\t\n\t container.style.height = newHeight + 'px';\n\t};\n\t\n\t/**\n\t * Calculate new height of panel and remains by supplied height growth\n\t * @param {number} growth - growth value\n\t * @returns {number[]} newHeight, remainHeight\n\t */\n\tVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n\t var height = this.getHeight(),\n\t newHeight = height + growth,\n\t resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\t\n\t return [resizeTo, height - resizeTo];\n\t};\n\t\n\t/**\n\t * get outer height of panel element\n\t * @returns {number} outer height of panel element\n\t */\n\tVPanel.prototype.getHeight = function() {\n\t return domutil.getSize(this.container)[1];\n\t};\n\t\n\t/**\n\t * add design class to panel element\n\t * @param {string} className - classname string\n\t */\n\tVPanel.prototype.addClass = function(className) {\n\t domutil.addClass(this.container, className);\n\t};\n\t\n\t/**\n\t * remove design class to panel element\n\t * @param {string} className - classname string\n\t */\n\tVPanel.prototype.removeClass = function(className) {\n\t domutil.removeClass(this.container, className);\n\t};\n\t\n\t/**\n\t * initialize panel element\n\t * @param {PanelOptions} options - options for panel\n\t * @param {HTMLDivElement} container - panel element\n\t */\n\tVPanel.prototype._initPanel = function(options, container) {\n\t var height;\n\t\n\t domutil.setData(container, 'panelIndex', options.index);\n\t\n\t if (options.isSplitter) {\n\t domutil.addClass(container, config.classname('splitter'));\n\t\n\t return;\n\t }\n\t\n\t if (options.className) {\n\t domutil.addClass(container, options.className);\n\t }\n\t\n\t if (options.autoHeight) {\n\t domutil.setData(container, 'autoHeight', true);\n\t } else {\n\t height = common.limit(options.height || 0,\n\t [options.minHeight],\n\t [options.maxHeight || options.height]\n\t );\n\t\n\t options.height = height;\n\t this.setHeight(container, height);\n\t }\n\t};\n\t\n\tmodule.exports = VPanel;\n\t\n\n\n/***/ },\n/* 65 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Base calendar controller\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar Schedule = __webpack_require__(20);\n\tvar ScheduleViewModel = __webpack_require__(28);\n\tvar datetime = __webpack_require__(4);\n\tvar common = __webpack_require__(6);\n\t\n\t/**\n\t * @constructor\n\t * @param {object} options - options for base controller\n\t * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n\t * @mixes util.CustomEvents\n\t */\n\tfunction Base(options) {\n\t options = options || {};\n\t\n\t /**\n\t * function for group each schedule models.\n\t * @type {function}\n\t * @param {ScheduleViewModel} viewModel - view model instance\n\t * @returns {string} group key\n\t */\n\t this.groupFunc = options.groupFunc || function(viewModel) {\n\t if (viewModel.model.isAllDay) {\n\t return 'allday';\n\t }\n\t\n\t return 'time';\n\t };\n\t\n\t /**\n\t * schedules collection.\n\t * @type {Collection}\n\t */\n\t this.schedules = common.createScheduleCollection();\n\t\n\t /**\n\t * Matrix for multidate schedules.\n\t * @type {object.}\n\t */\n\t this.dateMatrix = {};\n\t}\n\t\n\t/**\n\t * Calculate contain dates in schedule.\n\t * @private\n\t * @param {Schedule} schedule The instance of schedule.\n\t * @returns {array} contain dates.\n\t */\n\tBase.prototype._getContainDatesInSchedule = function(schedule) {\n\t var range = datetime.range(\n\t datetime.start(schedule.getStarts()),\n\t datetime.end(schedule.getEnds()),\n\t datetime.MILLISECONDS_PER_DAY\n\t );\n\t\n\t return range;\n\t};\n\t\n\t/**********\n\t * CRUD\n\t **********/\n\t\n\t/**\n\t * Create an schedule instance from raw data.\n\t * @emits Base#beforeCreateSchedule\n\t * @emits Base#createdSchedule\n\t * @param {object} options Data object to create schedule.\n\t * @param {boolean} silent - set true then don't fire events.\n\t * @returns {Schedule} The instance of Schedule that created.\n\t */\n\tBase.prototype.createSchedule = function(options, silent) {\n\t var schedule,\n\t scheduleData = {\n\t data: options\n\t };\n\t\n\t /**\n\t * @event Base#beforeCreateSchedule\n\t * @type {Calendar~Schedule[]}\n\t */\n\t if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n\t return null;\n\t }\n\t\n\t schedule = this.addSchedule(Schedule.create(options));\n\t\n\t if (!silent) {\n\t /**\n\t * @event Base#createdSchedule\n\t * @type {Schedule}\n\t */\n\t this.fire('createdSchedule', schedule);\n\t }\n\t\n\t return schedule;\n\t};\n\t\n\t/**\n\t * @emits Base#beforeCreateSchedule\n\t * @emits Base#createdSchedule\n\t * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n\t * @param {boolean} [silent=false] - set true then don't fire events.\n\t * @returns {Schedule[]} The instance list of Schedule that created.\n\t */\n\tBase.prototype.createSchedules = function(dataList, silent) {\n\t var self = this;\n\t\n\t return util.map(dataList, function(data) {\n\t return self.createSchedule(data, silent);\n\t });\n\t};\n\t\n\t/**\n\t * Update an schedule.\n\t * @emits Base#updateSchedule\n\t * @param {Schedule} schedule - schedule instance to update\n\t * @param {object} options updated object data.\n\t * @returns {Schedule} updated schedule instance\n\t */\n\tBase.prototype.updateSchedule = function(schedule, options) {\n\t var start = options.start || schedule.start;\n\t var end = options.end || schedule.end;\n\t\n\t options = options || {};\n\t\n\t if (options.title) {\n\t schedule.set('title', options.title);\n\t }\n\t\n\t if (options.isAllDay) {\n\t schedule.set('isAllDay', options.isAllDay);\n\t }\n\t\n\t if (options.start || options.end) {\n\t if (schedule.isAllDay) {\n\t schedule.setAllDayPeriod(start, end);\n\t } else {\n\t schedule.setTimePeriod(start, end);\n\t }\n\t }\n\t\n\t if (options.color) {\n\t schedule.set('color', options.color);\n\t }\n\t\n\t if (options.bgColor) {\n\t schedule.set('bgColor', options.bgColor);\n\t }\n\t\n\t if (options.borderColor) {\n\t schedule.set('borderColor', options.borderColor);\n\t }\n\t\n\t if (options.origin) {\n\t schedule.set('origin', options.origin);\n\t }\n\t\n\t if (!util.isUndefined(options.isPending)) {\n\t schedule.set('isPending', options.isPending);\n\t }\n\t\n\t if (!util.isUndefined(options.isFocused)) {\n\t schedule.set('isFocused', options.isFocused);\n\t }\n\t\n\t this._removeFromMatrix(schedule);\n\t this._addToMatrix(schedule);\n\t\n\t /**\n\t * @event Base#updateSchedule\n\t */\n\t this.fire('updateSchedule');\n\t\n\t return schedule;\n\t};\n\t\n\t/**\n\t * Delete schedule instance from controller.\n\t * @param {Schedule} schedule - schedule instance to delete\n\t * @returns {Schedule} deleted model instance.\n\t */\n\tBase.prototype.deleteSchedule = function(schedule) {\n\t this._removeFromMatrix(schedule);\n\t this.schedules.remove(schedule);\n\t\n\t return schedule;\n\t};\n\t\n\t/**\n\t * Set date matrix to supplied schedule instance.\n\t * @param {Schedule} schedule - instance of schedule.\n\t */\n\tBase.prototype._addToMatrix = function(schedule) {\n\t var ownMatrix = this.dateMatrix;\n\t var containDates = this._getContainDatesInSchedule(schedule);\n\t\n\t util.forEach(containDates, function(date) {\n\t var ymd = datetime.format(date, 'YYYYMMDD'),\n\t matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\t\n\t matrix.push(util.stamp(schedule));\n\t });\n\t};\n\t\n\t/**\n\t * Remove schedule's id from matrix.\n\t * @param {Schedule} schedule - instance of schedule\n\t */\n\tBase.prototype._removeFromMatrix = function(schedule) {\n\t var modelID = util.stamp(schedule);\n\t\n\t util.forEach(this.dateMatrix, function(matrix) {\n\t var index = util.inArray(modelID, matrix);\n\t\n\t if (~index) {\n\t matrix.splice(index, 1);\n\t }\n\t }, this);\n\t};\n\t\n\t/**\n\t * Add an schedule instance.\n\t * @emits Base#addedSchedule\n\t * @param {Schedule} schedule The instance of Schedule.\n\t * @param {boolean} silent - set true then don't fire events.\n\t * @returns {Schedule} The instance of Schedule that added.\n\t */\n\tBase.prototype.addSchedule = function(schedule, silent) {\n\t this.schedules.add(schedule);\n\t this._addToMatrix(schedule);\n\t\n\t if (!silent) {\n\t /**\n\t * @event Base#addedSchedule\n\t * @type {object}\n\t */\n\t this.fire('addedSchedule', schedule);\n\t }\n\t\n\t return schedule;\n\t};\n\t\n\t/**\n\t * split schedule model by ymd.\n\t * @param {Date} start - start date\n\t * @param {Date} end - end date\n\t * @param {Collection} scheduleCollection - collection of schedule model.\n\t * @returns {object.} splitted schedule model collections.\n\t */\n\tBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n\t var range = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t ),\n\t ownMatrix = this.dateMatrix,\n\t result = {};\n\t\n\t util.forEachArray(range, function(date) {\n\t var ymd = datetime.format(date, 'YYYYMMDD'),\n\t matrix = ownMatrix[ymd],\n\t collection;\n\t\n\t collection = result[ymd] = common.createScheduleCollection();\n\t\n\t if (matrix && matrix.length) {\n\t util.forEachArray(matrix, function(id) {\n\t scheduleCollection.doWhenHas(id, function(schedule) {\n\t collection.add(schedule);\n\t });\n\t });\n\t }\n\t });\n\t\n\t return result;\n\t};\n\t\n\t/**\n\t * Return schedules in supplied date range.\n\t *\n\t * available only YMD.\n\t * @param {Date} start start date.\n\t * @param {Date} end end date.\n\t * @returns {object.} schedule collection grouped by dates.\n\t */\n\tBase.prototype.findByDateRange = function(start, end) {\n\t var range = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t ),\n\t ownSchedules = this.schedules.items,\n\t ownMatrix = this.dateMatrix,\n\t dformat = datetime.format,\n\t result = {},\n\t matrix,\n\t ymd,\n\t viewModels;\n\t\n\t util.forEachArray(range, function(date) {\n\t ymd = dformat(date, 'YYYYMMDD');\n\t matrix = ownMatrix[ymd];\n\t viewModels = result[ymd] = common.createScheduleCollection();\n\t\n\t if (matrix && matrix.length) {\n\t viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n\t return ScheduleViewModel.create(ownSchedules[id]);\n\t }));\n\t }\n\t });\n\t\n\t return result;\n\t};\n\t\n\tBase.prototype.clearSchedules = function() {\n\t this.dateMatrix = {};\n\t this.schedules.clear();\n\t /**\n\t * for inner view when clear schedules\n\t * @event Base#clearSchedules\n\t * @type {Schedule}\n\t */\n\t this.fire('clearSchedules');\n\t};\n\t\n\t// mixin\n\tutil.CustomEvents.mixin(Base);\n\t\n\tmodule.exports = Base;\n\t\n\n\n/***/ },\n/* 66 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Core methods for schedule block placing\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar forEachArr = util.forEachArray,\n\t aps = Array.prototype.slice;\n\t\n\tvar datetime = __webpack_require__(4);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar Collection = __webpack_require__(12);\n\tvar ScheduleViewModel = __webpack_require__(28);\n\t\n\tvar Core = {\n\t /**\n\t * Calculate collision group.\n\t * @param {array} viewModels List of viewmodels.\n\t * @returns {array} Collision Group.\n\t */\n\t getCollisionGroup: function(viewModels) {\n\t var collisionGroups = [],\n\t foundPrevCollisionSchedule = false,\n\t previousScheduleList;\n\t\n\t if (!viewModels.length) {\n\t return collisionGroups;\n\t }\n\t\n\t collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n\t forEachArr(viewModels.slice(1), function(schedule, index) {\n\t foundPrevCollisionSchedule = false;\n\t previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\t\n\t forEachArr(previousScheduleList, function(previous) {\n\t if (schedule.collidesWith(previous)) {\n\t // 이전 일정들과 겹치는 경우 겹치는 일정의 Collision Group을\n\t // 찾아 이 일정을 추가한다\n\t foundPrevCollisionSchedule = true;\n\t\n\t forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n\t if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n\t // 겹치는 이전 일정을 찾은 경우 그 일정이 속한\n\t // Collision Group에 이 일정을 포함시킨다.\n\t group.push(util.stamp(schedule.valueOf()));\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t });\n\t\n\t return false; // returning false can stop this loop\n\t }\n\t\n\t return true;\n\t });\n\t\n\t if (!foundPrevCollisionSchedule) {\n\t // 이 일정은 이전일정과 겹치지 않는 일정이므로\n\t // 새 Collision Group을 구성한다.\n\t collisionGroups.push([util.stamp(schedule.valueOf())]);\n\t }\n\t });\n\t\n\t return collisionGroups;\n\t },\n\t\n\t /**\n\t * Get row length by column index in 2d matrix.\n\t * @param {array[]} arr2d Matrix\n\t * @param {number} col Column index.\n\t * @returns {number} Last row number in column.\n\t */\n\t getLastRowInColumn: function(arr2d, col) {\n\t var row = arr2d.length;\n\t\n\t while (row > 0) {\n\t row -= 1;\n\t if (!util.isUndefined(arr2d[row][col])) {\n\t return row;\n\t }\n\t }\n\t\n\t return false;\n\t },\n\t\n\t /**\n\t * Calculate matrix for appointment block element placing.\n\t * @param {Collection} collection model collection.\n\t * @param {array[]} collisionGroups Collision groups for schedule set.\n\t * @returns {array} matrices\n\t */\n\t getMatrices: function(collection, collisionGroups) {\n\t var result = [],\n\t getLastRowInColumn = Core.getLastRowInColumn;\n\t\n\t forEachArr(collisionGroups, function(group) {\n\t var matrix = [[]];\n\t\n\t forEachArr(group, function(scheduleID) {\n\t var schedule = collection.items[scheduleID],\n\t col = 0,\n\t found = false,\n\t nextRow,\n\t lastRowInColumn;\n\t\n\t while (!found) {\n\t lastRowInColumn = getLastRowInColumn(matrix, col);\n\t\n\t if (lastRowInColumn === false) {\n\t matrix[0].push(schedule);\n\t found = true;\n\t } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n\t nextRow = lastRowInColumn + 1;\n\t if (util.isUndefined(matrix[nextRow])) {\n\t matrix[nextRow] = [];\n\t }\n\t matrix[nextRow][col] = schedule;\n\t found = true;\n\t }\n\t\n\t col += 1;\n\t }\n\t });\n\t\n\t result.push(matrix);\n\t });\n\t\n\t return result;\n\t },\n\t\n\t /**\n\t * Filter that get schedule model in supplied date ranges.\n\t * @param {Date} start - start date\n\t * @param {Date} end - end date\n\t * @returns {function} schedule filter function\n\t */\n\t getScheduleInDateRangeFilter: function(start, end) {\n\t return function(model) {\n\t var ownStarts = model.getStarts(),\n\t ownEnds = model.getEnds();\n\t\n\t // shorthand condition of\n\t //\n\t // (ownStarts >= start && ownEnds <= end) ||\n\t // (ownStarts < start && ownEnds >= start) ||\n\t // (ownEnds > end && ownStarts <= end)\n\t return !(ownEnds < start || ownStarts > end);\n\t };\n\t },\n\t\n\t /**\n\t * Position each view model for placing into container\n\t * @param {Date} start - start date to render\n\t * @param {Date} end - end date to render\n\t * @param {array} matrices - matrices from controller\n\t * @param {function} [iteratee] - iteratee function invoke each view models\n\t */\n\t positionViewModels: function(start, end, matrices, iteratee) {\n\t var ymdListToRender;\n\t\n\t ymdListToRender = util.map(\n\t datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n\t function(date) {\n\t return datetime.format(date, 'YYYYMMDD');\n\t }\n\t );\n\t\n\t forEachArr(matrices, function(matrix) {\n\t forEachArr(matrix, function(column) {\n\t forEachArr(column, function(viewModel, index) {\n\t var ymd, dateLength;\n\t\n\t if (!viewModel) {\n\t return;\n\t }\n\t\n\t ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n\t dateLength = datetime.range(\n\t datetime.start(viewModel.getStarts()),\n\t datetime.end(viewModel.getEnds()),\n\t datetime.MILLISECONDS_PER_DAY\n\t ).length;\n\t\n\t viewModel.top = index;\n\t viewModel.left = util.inArray(ymd, ymdListToRender);\n\t viewModel.width = dateLength;\n\t\n\t if (iteratee) {\n\t iteratee(viewModel);\n\t }\n\t });\n\t });\n\t });\n\t },\n\t\n\t /**\n\t * Limit start, end date each view model for render properly\n\t * @param {Date} start - start date to render\n\t * @param {Date} end - end date to render\n\t * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n\t * model collection or ScheduleViewModel\n\t * @returns {ScheduleViewModel} return view model when third parameter is\n\t * view model\n\t */\n\t limitRenderRange: function(start, end, viewModelColl) {\n\t /**\n\t * Limit render range for view models\n\t * @param {ScheduleViewModel} viewModel - view model instance\n\t * @returns {ScheduleViewModel} view model that limited render range\n\t */\n\t function limit(viewModel) {\n\t if (viewModel.getStarts() < start) {\n\t viewModel.exceedLeft = true;\n\t viewModel.renderStarts = new TZDate(start.getTime());\n\t }\n\t\n\t if (viewModel.getEnds() > end) {\n\t viewModel.exceedRight = true;\n\t viewModel.renderEnds = new TZDate(end.getTime());\n\t }\n\t\n\t return viewModel;\n\t }\n\t\n\t if (viewModelColl.constructor === Collection) {\n\t viewModelColl.each(limit);\n\t\n\t return null;\n\t }\n\t\n\t return limit(viewModelColl);\n\t },\n\t\n\t /**\n\t * Convert schedule model collection to view model collection.\n\t * @param {Collection} modelColl - collection of schedule model\n\t * @returns {Collection} collection of schedule view model\n\t */\n\t convertToViewModel: function(modelColl) {\n\t var viewModelColl;\n\t\n\t viewModelColl = new Collection(function(viewModel) {\n\t return viewModel.cid();\n\t });\n\t\n\t modelColl.each(function(model) {\n\t viewModelColl.add(ScheduleViewModel.create(model));\n\t });\n\t\n\t return viewModelColl;\n\t }\n\t};\n\t\n\tmodule.exports = Core;\n\t\n\n\n/***/ },\n/* 67 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Controller mixin for Month View\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar array = __webpack_require__(14),\n\t datetime = __webpack_require__(4),\n\t Collection = __webpack_require__(12);\n\tvar mmax = Math.max;\n\t\n\tvar Month = {\n\t /**\n\t * Filter function for find time schedule\n\t * @param {ScheduleViewModel} viewModel - schedule view model\n\t * @returns {boolean} whether model is time schedule?\n\t */\n\t _onlyTimeFilter: function(viewModel) {\n\t return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n\t },\n\t\n\t /**\n\t * Filter function for find allday schedule\n\t * @param {ScheduleViewModel} viewModel - schedule view model\n\t * @returns {boolean} whether model is allday schedule?\n\t */\n\t _onlyAlldayFilter: function(viewModel) {\n\t return viewModel.model.isAllDay || viewModel.hasMultiDates;\n\t },\n\t\n\t /**\n\t * Weight top value +1 for month view render\n\t * @param {ScheduleViewModel} viewModel - schedule view model\n\t */\n\t _weightTopValue: function(viewModel) {\n\t viewModel.top = viewModel.top || 0;\n\t viewModel.top += 1;\n\t },\n\t\n\t /**\n\t * Adjust render range to render properly.\n\t *\n\t * Limit start, end for each allday schedules and expand start, end for\n\t * each time schedules\n\t * @this Base\n\t * @param {Date} start - render start date\n\t * @param {Date} end - render end date\n\t * @param {Collection} vColl - view model collection\n\t * property.\n\t */\n\t _adjustRenderRange: function(start, end, vColl) {\n\t var ctrlCore = this.Core;\n\t\n\t vColl.each(function(viewModel) {\n\t if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n\t ctrlCore.limitRenderRange(start, end, viewModel);\n\t }\n\t });\n\t },\n\t\n\t /**\n\t * Get max top index value for allday schedules in specific date (YMD)\n\t * @this Base\n\t * @param {string} ymd - yyyymmdd formatted value\n\t * @param {Collection} vAlldayColl - collection of allday schedules\n\t * @returns {number} max top index value in date\n\t */\n\t _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n\t var dateMatrix = this.dateMatrix,\n\t topIndexesInDate = [];\n\t util.forEach(dateMatrix[ymd], function(cid) {\n\t vAlldayColl.doWhenHas(cid, function(viewModel) {\n\t topIndexesInDate.push(viewModel.top);\n\t });\n\t });\n\t\n\t if (topIndexesInDate.length > 0) {\n\t return mmax.apply(null, topIndexesInDate);\n\t }\n\t\n\t return 0;\n\t },\n\t\n\t /**\n\t * Adjust time view model's top index value\n\t * @this Base\n\t * @param {Collection} vColl - collection of schedules\n\t */\n\t _adjustTimeTopIndex: function(vColl) {\n\t var ctrlMonth = this.Month;\n\t var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n\t var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n\t var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n\t var maxIndexInYMD = {};\n\t\n\t sortedTimeSchedules.forEach(function(timeViewModel) {\n\t var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n\t var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\t\n\t if (util.isUndefined(alldayMaxTopInYMD)) {\n\t alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n\t getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n\t }\n\t maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n\t (alldayMaxTopInYMD + 1);\n\t });\n\t },\n\t\n\t /**\n\t * Adjust time view model's top index value\n\t * @this Base\n\t * @param {Collection} vColl - collection of schedules\n\t */\n\t _stackTimeFromTop: function(vColl) {\n\t var ctrlMonth = this.Month;\n\t var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n\t var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n\t var indiceInYMD = {};\n\t var dateMatrix = this.dateMatrix;\n\t\n\t sortedTimeSchedules.forEach(function(timeViewModel) {\n\t var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n\t var topArrayInYMD = indiceInYMD[scheduleYMD];\n\t var maxTopInYMD;\n\t var i;\n\t\n\t if (util.isUndefined(topArrayInYMD)) {\n\t topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n\t util.forEach(dateMatrix[scheduleYMD], function(cid) {\n\t vAlldayColl.doWhenHas(cid, function(viewModel) {\n\t topArrayInYMD.push(viewModel.top);\n\t });\n\t });\n\t }\n\t\n\t if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n\t maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n\t for (i = 1; i <= maxTopInYMD; i += 1) {\n\t timeViewModel.top = i;\n\t if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n\t break;\n\t }\n\t }\n\t }\n\t topArrayInYMD.push(timeViewModel.top);\n\t });\n\t },\n\t\n\t /**\n\t * Convert multi-date time schedule to all-day schedule\n\t * @this Base\n\t * @param {Collection} vColl - view model collection\n\t * property.\n\t */\n\t _addMultiDatesInfo: function(vColl) {\n\t vColl.each(function(viewModel) {\n\t var model = viewModel.model;\n\t var start = model.getStarts();\n\t var end = model.getEnds();\n\t\n\t viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\t\n\t if (!model.isAllDay && viewModel.hasMultiDates) {\n\t viewModel.renderStarts = datetime.start(start);\n\t viewModel.renderEnds = datetime.end(end);\n\t }\n\t });\n\t },\n\t\n\t /**\n\t * Find schedule and get view model for specific month\n\t * @this Base\n\t * @param {Date} start - start date to find schedules\n\t * @param {Date} end - end date to find schedules\n\t * @param {function[]} [andFilters] - optional filters to applying search query\n\t * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n\t * @returns {object} view model data\n\t */\n\t findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n\t var ctrlCore = this.Core,\n\t ctrlMonth = this.Month,\n\t filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n\t coll, vColl, vList,\n\t collisionGroup,\n\t matrices;\n\t\n\t alldayFirstMode = alldayFirstMode || false;\n\t andFilters = andFilters || [];\n\t filter = Collection.and.apply(null, [filter].concat(andFilters));\n\t\n\t coll = this.schedules.find(filter);\n\t vColl = ctrlCore.convertToViewModel(coll);\n\t ctrlMonth._addMultiDatesInfo(vColl);\n\t ctrlMonth._adjustRenderRange(start, end, vColl);\n\t vList = vColl.sort(array.compare.schedule.asc);\n\t\n\t collisionGroup = ctrlCore.getCollisionGroup(vList);\n\t matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n\t ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n\t if (alldayFirstMode) {\n\t ctrlMonth._adjustTimeTopIndex(vColl);\n\t } else {\n\t ctrlMonth._stackTimeFromTop(vColl);\n\t }\n\t\n\t return matrices;\n\t }\n\t};\n\t\n\tmodule.exports = Month;\n\t\n\n\n/***/ },\n/* 68 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint no-shadow: 0 */\n\t/**\n\t * @fileoverview Controller mixin modules for day views.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar Collection = __webpack_require__(12);\n\tvar array = __webpack_require__(14);\n\tvar datetime = __webpack_require__(4);\n\t\n\t/**\n\t * @mixin Base.Week\n\t */\n\tvar Week = {\n\t /**********\n\t * TIME GRID VIEW\n\t **********/\n\t\n\t /**\n\t * Make array with start and end times on schedules.\n\t * @this Base.Week\n\t * @param {array[]} matrix - matrix from controller.\n\t * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n\t */\n\t generateTimeArrayInRow: function(matrix) {\n\t var row,\n\t col,\n\t schedule,\n\t map = [],\n\t cursor = [],\n\t maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n\t return col.length;\n\t }));\n\t\n\t for (col = 1; col < maxColLen; col += 1) {\n\t row = 0;\n\t schedule = util.pick(matrix, row, col);\n\t\n\t while (schedule) {\n\t cursor.push([schedule.getStarts().getTime(), schedule.getEnds().getTime()]);\n\t\n\t row += 1;\n\t schedule = util.pick(matrix, row, col);\n\t }\n\t\n\t map.push(cursor);\n\t cursor = [];\n\t }\n\t\n\t return map;\n\t },\n\t\n\t /**\n\t * Get collision information from list\n\t * @this Base\n\t * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n\t * @param {number} start - schedule start time that want to detect collisions.\n\t * @param {number} end - schedule end time that want to detect collisions.\n\t * @returns {boolean} target has collide in supplied array?\n\t */\n\t hasCollide: function(arr, start, end) {\n\t var startStart,\n\t startEnd,\n\t endStart,\n\t endEnd,\n\t getFunc = function(index) {\n\t return function(block) {\n\t return block[index];\n\t };\n\t },\n\t abs = Math.abs,\n\t compare = array.compare.num.asc,\n\t hasCollide;\n\t\n\t if (!arr.length) {\n\t return false;\n\t }\n\t\n\t startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n\t startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n\t endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n\t endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n\t hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\t\n\t return hasCollide;\n\t },\n\t\n\t /**\n\t * Initialize values to viewmodels for detect real collision at rendering phase.\n\t * @this Base\n\t * @param {array[]} matrices - Matrix data.\n\t */\n\t getCollides: function(matrices) {\n\t util.forEachArray(matrices, function(matrix) {\n\t var binaryMap,\n\t maxRowLength;\n\t\n\t binaryMap = Week.generateTimeArrayInRow(matrix);\n\t maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n\t return row.length;\n\t }));\n\t\n\t util.forEachArray(matrix, function(row) {\n\t util.forEachArray(row, function(viewModel, col) {\n\t var startTime,\n\t endTime,\n\t hasCollide,\n\t i;\n\t\n\t if (!viewModel) {\n\t return;\n\t }\n\t\n\t startTime = viewModel.getStarts().getTime() + 1;\n\t endTime = viewModel.getEnds().getTime() - 1;\n\t\n\t for (i = (col + 1); i < maxRowLength; i += 1) {\n\t hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\t\n\t if (hasCollide) {\n\t viewModel.hasCollide = true;\n\t break;\n\t }\n\t\n\t viewModel.extraSpace += 1;\n\t }\n\t });\n\t });\n\t });\n\t },\n\t\n\t /**\n\t * create view model for time view part\n\t * @this Base\n\t * @param {Date} start - start date.\n\t * @param {Date} end - end date.\n\t * @param {Collection} time - view model collection.\n\t * @returns {object} view model for time part.\n\t */\n\t getViewModelForTimeView: function(start, end, time) {\n\t var self = this,\n\t ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n\t result = {};\n\t\n\t util.forEach(ymdSplitted, function(collection, ymd) {\n\t var viewModels = collection.sort(array.compare.schedule.asc),\n\t collisionGroups,\n\t matrices;\n\t\n\t collisionGroups = self.Core.getCollisionGroup(viewModels);\n\t matrices = self.Core.getMatrices(collection, collisionGroups);\n\t self.Week.getCollides(matrices);\n\t\n\t result[ymd] = matrices;\n\t });\n\t\n\t return result;\n\t },\n\t\n\t /**********\n\t * ALLDAY VIEW\n\t **********/\n\t\n\t /**\n\t * Set hasMultiDates flag to true and set date ranges for rendering\n\t * @this Base\n\t * @param {Collection} vColl - view model collection\n\t */\n\t _addMultiDatesInfo: function(vColl) {\n\t vColl.each(function(viewModel) {\n\t var model = viewModel.model;\n\t viewModel.hasMultiDates = true;\n\t viewModel.renderStarts = datetime.start(model.getStarts());\n\t viewModel.renderEnds = datetime.end(model.getEnds());\n\t });\n\t },\n\t\n\t /**\n\t * create view model for allday view part\n\t * @this Base\n\t * @param {Date} start start date.\n\t * @param {Date} end end date.\n\t * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n\t * @returns {object} allday viewModel.\n\t */\n\t getViewModelForAlldayView: function(start, end, viewModelColl) {\n\t var ctrlCore = this.Core,\n\t ctrlWeek = this.Week,\n\t viewModels,\n\t collisionGroups,\n\t matrices;\n\t\n\t if (!viewModelColl || !viewModelColl.length) {\n\t return [];\n\t }\n\t\n\t ctrlWeek._addMultiDatesInfo(viewModelColl);\n\t ctrlCore.limitRenderRange(start, end, viewModelColl);\n\t\n\t viewModels = viewModelColl.sort(array.compare.schedule.asc);\n\t collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\t\n\t matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n\t ctrlCore.positionViewModels(start, end, matrices);\n\t\n\t return matrices;\n\t },\n\t\n\t /**********\n\t * READ\n\t **********/\n\t\n\t /**\n\t * Populate schedules in date range.\n\t * @this Base\n\t * @param {Date} start start date.\n\t * @param {Date} end end date.\n\t * @param {function[]} [andFilters] - optional filters to applying search query\n\t * @returns {object} schedules grouped by dates.\n\t */\n\t findByDateRange: function(start, end, andFilters) {\n\t var ctrlCore = this.Core,\n\t ctrlWeek = this.Week,\n\t filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n\t modelColl,\n\t group;\n\t\n\t andFilters = andFilters || [];\n\t filter = Collection.and.apply(null, [filter].concat(andFilters));\n\t\n\t modelColl = this.schedules.find(filter);\n\t modelColl = ctrlCore.convertToViewModel(modelColl);\n\t\n\t group = modelColl.groupBy(['task', 'allday', 'time'], this.groupFunc);\n\t group.task = ctrlWeek.getViewModelForAlldayView(start, end, group.task);\n\t group.allday = ctrlWeek.getViewModelForAlldayView(start, end, group.allday);\n\t group.time = ctrlWeek.getViewModelForTimeView(start, end, group.time);\n\t\n\t return group;\n\t }\n\t};\n\t\n\tmodule.exports = Week;\n\t\n\n\n/***/ },\n/* 69 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Factory module for control all other factory.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1),\n\t Handlebars = __webpack_require__(21);\n\tvar dw = __webpack_require__(15),\n\t datetime = __webpack_require__(4),\n\t Layout = __webpack_require__(95),\n\t Drag = __webpack_require__(26),\n\t controllerFactory = __webpack_require__(70),\n\t weekViewFactory = __webpack_require__(72),\n\t monthViewFactory = __webpack_require__(71),\n\t TZDate = __webpack_require__(5).Date,\n\t config = __webpack_require__(3),\n\t timezone = __webpack_require__(5);\n\t\n\tvar mmin = Math.min;\n\t\n\t/**\n\t * @typedef {object} Schedule\n\t * @property {string} id - unique schedule id depends on calendar id\n\t * @property {string} calendarId - unique calendar id\n\t * @property {string} title - schedule title\n\t * @property {string} start - start time\n\t * @property {string} end - end time\n\t * @property {boolean} isAllDay - all day schedule\n\t * @property {string} category - schedule type('milestone', 'task', allday', 'time')\n\t * @property {string} dueDateClass - task schedule type string\n\t * (any string value is ok and mandatory if category is 'task')\n\t * @property {boolean} isPending - in progress flag to do something like network job(The schedule will be transparent.)\n\t * @property {boolean} isFocused - focused schedule flag\n\t * @property {boolean} isVisible - schedule visibility flag\n\t * @property {boolean} isReadOnly - schedule read-only flag\n\t * @property {string} [color] - schedule text color\n\t * @property {string} [bgColor] - schedule background color\n\t * @property {string} [borderColor] - schedule left border color\n\t * @property {string} customStyle - schedule's custom css class\n\t * @property {any} raw - user data\n\t */\n\t\n\t/**\n\t * @typedef {object} RenderRange - rendered range\n\t * @property {Date} start - start date\n\t * @property {Date} end - end date\n\t */\n\t\n\t/**\n\t * @typedef {object} Options - calendar option object\n\t * @property {string} [cssPrefix] - CSS classname prefix\n\t * @property {string} [defaultView='week'] - default view of calendar\n\t * @property {string} [defaultDate=null] - default date to render calendar. if not supplied, use today.\n\t * @property {object} [calendarColor] - preset calendar colors\n\t * @property {string} [calendarColor.color] - calendar color\n\t * @property {string} [calendarColor.bgColor] - calendar background color\n\t * @property {string} [calendarColor.borderColor] - calendar left border color\n\t * @property {boolean} [calendarColor.render] - immediately apply colors when setCalendarColor called.\n\t * @property {boolean} [taskView=true] - show the milestone and task in weekly, daily view\n\t * @property {boolean} [scheduleView=true] - show the all day and time grid in weekly, daily view\n\t * @property {object} [template] - template option\n\t * @property {function} [template.milestoneTitle] - milestone title(at left column) template function\n\t * @property {function} [template.milestone] - milestone template function\n\t * @property {function} [template.taskTitle] - task title(at left column) template function\n\t * @property {function} [template.task] - task template function\n\t * @property {function} [template.alldayTitle] - allday title(at left column) template function\n\t * @property {function} [template.allday] - allday template function\n\t * @property {function} [template.time] - time template function\n\t * @property {function} [template.monthMoreTitleDate] - month more layer title template function\n\t * @property {function} [template.monthMoreClose] - month more layer close button template function\n\t * @property {function} [template.monthGridHeader] - month grid header(date, decorator, title) template function\n\t * @property {function} [template.monthGridFooter] - month grid footer(date, decorator, title) template function\n\t * @property {function} [template.monthGridHeaderExceed] - month grid header(exceed schedule count) template function\n\t * @property {function} [template.monthGridFooterExceed] - month grid footer(exceed schedule count) template function\n\t * @property {function} [template.weekDayname] - weekly dayname template function\n\t * @property {function} [template.monthDayname] - monthly dayname template function\n\t * @property {object} [week] - options for week view\n\t * @property {number} [week.startDayOfWeek=0] - start day of week\n\t * @property {Array.} [week.panelHeights] - each panel height px(Milestone, Task, Allday View Panel)\n\t * @property {Array.} [week.daynames] - day names in weekly and daily.\n\t * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n\t * @property {boolean} [week.narrowWeekend=false] - make weekend column narrow(1/2 width)\n\t * @property {boolean} [week.workweek=false] - show only 5 days except for weekend\n\t * @property {string} [week.alldayViewType='scroll'] - set view type of allday panel. ('scroll'|'toggle')\n\t * @property {object} [month] - options for month view\n\t * @property {Array.} [month.daynames] - day names in monthly.\n\t * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n\t * @property {number} [month.startDayOfWeek=0] - start day of week\n\t * @property {boolean} [month.narrowWeekend=false] - make weekend column narrow(1/2 width)\n\t * @property {boolean} [month.visibleWeeksCount=6] - visible week count in monthly(0 or null are same with 6)\n\t * @property {number} [month.visibleScheduleCount] - visible schedule count in monthly grid\n\t * @property {object} [month.moreLayerSize] - more layer size\n\t * @property {object} [month.moreLayerSize.width=null] - css width value(px, 'auto').\n\t * The default value 'null' is to fit a grid cell.\n\t * @property {object} [month.moreLayerSize.height=null] - css height value(px, 'auto').\n\t * The default value 'null' is to fit a grid cell.\n\t * @property {object} [month.grid] - grid's header and footer information\n\t * @property {object} [month.grid.header] - grid's header informatioin\n\t * @property {number} [month.grid.header.height=34] - grid's header height\n\t * @property {object} [month.grid.footer] - grid's footer informatioin\n\t * @property {number} [month.grid.footer.height=34] - grid's footer height\n\t * @property {Array.} [schedules] - array of Schedule data for add calendar after initialize.\n\t */\n\t\n\t/**\n\t * @typedef {class} CustomEvents\n\t * https://nhnent.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html\n\t */\n\t\n\t/**\n\t * @typedef {object} TimeCreationGuide - time creation guide instance to present selected time period\n\t * @property {HTMLElement} guideElement - guide element\n\t * @property {Object.} guideElements - map by key. It can be used in monthly view\n\t * @property {function} clearGuideElement - hide the creation guide\n\t * @example\n\t * calendar.on('beforeCreateSchedule', function(event) {\n\t * var guide = event.guide;\n\t * // use guideEl$'s left, top to locate your schedule creation popup\n\t * var guideEl$ = guide.guideElement ?\n\t * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n\t *\n\t * // after that call this to hide the creation guide\n\t * guide.clearGuideElement();\n\t * });\n\t */\n\t\n\t/**\n\t * Calendar class\n\t * @constructor\n\t * @mixes CustomEvents\n\t * @param {HTMLElement|string} container - container element or selector id\n\t * @param {Options} options - calendar options\n\t * @example\n\t * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n\t * defaultView: 'week',\n\t * taskView: true,\n\t * scheduleView: true,\n\t * template: {\n\t * milestone: function(schedule) {\n\t * return ' ' + schedule.title + '';\n\t * },\n\t * milestoneTitle: function() {\n\t * return 'Milestone';\n\t * },\n\t * task: function(schedule) {\n\t * return '  #' + schedule.title;\n\t * },\n\t * taskTitle: function() {\n\t * return '';\n\t * },\n\t * allday: function(schedule) {\n\t * return schedule.title + ' ';\n\t * },\n\t * alldayTitle: function() {\n\t * return 'All Day';\n\t * },\n\t * time: function(schedule) {\n\t * return schedule.title + ' ' + schedule.start;\n\t * }\n\t * },\n\t * month: {\n\t * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n\t * startDayOfWeek: 0,\n\t * narrowWeekend: true\n\t * },\n\t * week: {\n\t * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n\t * panelHeights: [80, 80, 120],\n\t * startDayOfWeek: 0,\n\t * narrowWeekend: true\n\t * }\n\t * });\n\t */\n\tfunction Calendar(container, options) {\n\t var opt;\n\t\n\t if (util.isString(container)) {\n\t container = document.querySelector(container);\n\t }\n\t\n\t /**\n\t * calendar options\n\t * @type {Options}\n\t */\n\t this.options = opt = util.extend({\n\t calendarColor: {},\n\t groupFunc: function(viewModel) {\n\t var model = viewModel.model;\n\t\n\t if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n\t return 'allday';\n\t }\n\t\n\t return model.category;\n\t },\n\t controller: null,\n\t defaultView: 'week',\n\t taskView: true,\n\t scheduleView: true,\n\t defaultDate: new TZDate(),\n\t template: util.extend({\n\t allday: null,\n\t time: null\n\t }, util.pick(options, 'template') || {}),\n\t week: util.extend({}, util.pick(options, 'week') || {}),\n\t month: util.extend({}, util.pick(options, 'month') || {}),\n\t schedules: []\n\t }, options);\n\t\n\t this.options.week = util.extend({\n\t startDayOfWeek: 0,\n\t workweek: false\n\t }, util.pick(this.options, 'week') || {});\n\t\n\t this.options.month = util.extend({\n\t scheduleFilter: function(schedule) {\n\t return Boolean(schedule.isVisible) &&\n\t (schedule.category === 'allday' || schedule.category === 'time');\n\t }\n\t }, util.pick(options, 'month') || {});\n\t\n\t /**\n\t * Calendar color map\n\t * @type {object}\n\t * @private\n\t */\n\t this.calendarColor = opt.calendarColor;\n\t\n\t /**\n\t * @type {HTMLElement}\n\t * @private\n\t */\n\t this.container = container;\n\t\n\t /**\n\t * Current rendered date\n\t * @type {Date}\n\t * @readonly\n\t */\n\t this.renderDate = opt.defaultDate;\n\t\n\t /**\n\t * start and end date of weekly, monthly\n\t * @type {RenderRange}\n\t * @readonly\n\t */\n\t this.renderRange = {\n\t start: null,\n\t end: null\n\t };\n\t\n\t /**\n\t * base controller\n\t * @type {Base}\n\t * @private\n\t */\n\t this.controller = opt.controller || this.createController();\n\t\n\t /**\n\t * layout view (layout manager)\n\t * @type {Layout}\n\t * @private\n\t */\n\t this.layout = new Layout(container);\n\t\n\t /**\n\t * global drag handler\n\t * @type {Drag}\n\t * @private\n\t */\n\t this.dragHandler = new Drag({distance: 10}, this.layout.container);\n\t\n\t /**\n\t * current rendered view name. ('day', 'week', 'month')\n\t * @type {string}\n\t * @default 'week'\n\t * @readonly\n\t */\n\t this.viewName = opt.defaultView;\n\t\n\t /**\n\t * previous rendered view name\n\t * @type {string}\n\t * @private\n\t */\n\t this.prevViewName = this.viewName;\n\t\n\t /**\n\t * Refresh method. it can be ref different functions for each view modes.\n\t * @type {function}\n\t * @private\n\t */\n\t this.refreshMethod = null;\n\t\n\t /**\n\t * Scroll to now. It can be called for 'week', 'day' view modes.\n\t * @type {function}\n\t * @private\n\t */\n\t this.scrollToNowMethod = null;\n\t\n\t this.initialize();\n\t}\n\t\n\t/**\n\t * Create controller instance\n\t * @returns {Base} controller instance\n\t * @private\n\t */\n\tCalendar.prototype.createController = function() {\n\t return controllerFactory(this.options);\n\t};\n\t\n\t/**\n\t * Create week view instance by dependent module instances\n\t * @param {Base} controller - controller\n\t * @param {HTMLElement} container - container element\n\t * @param {Drag} dragHandler - global drag handler\n\t * @param {object} options - options for week view\n\t * @returns {Week} week view instance\n\t * @private\n\t */\n\tCalendar.prototype.createWeekView = function(controller, container, dragHandler, options) {\n\t return weekViewFactory(\n\t controller,\n\t container,\n\t dragHandler,\n\t options\n\t );\n\t};\n\t\n\t/**\n\t * Create week view instance by dependent module instances\n\t * @param {Base} controller - controller\n\t * @param {HTMLElement} container - container element\n\t * @param {Drag} dragHandler - global drag handler\n\t * @param {object} options - options for week view\n\t * @returns {Month} month view instance\n\t * @private\n\t */\n\tCalendar.prototype.createMonthView = function(controller, container, dragHandler, options) {\n\t return monthViewFactory(\n\t controller,\n\t container,\n\t dragHandler,\n\t options\n\t );\n\t};\n\t\n\t/**\n\t * destroy calendar instance.\n\t */\n\tCalendar.prototype.destroy = function() {\n\t this.dragHandler.destroy();\n\t this.controller.off();\n\t this.layout.clear();\n\t this.layout.destroy();\n\t\n\t util.forEach(this.options.template, function(func, name) {\n\t if (func) {\n\t Handlebars.unregisterHelper(name + '-tmpl');\n\t }\n\t });\n\t\n\t this.options = this.renderDate = this.controller =\n\t this.layout = this.dragHandler = this.viewName = this.prevViewName =\n\t this.refreshMethod = this.scrollToNowMethod = null;\n\t};\n\t\n\t/**\n\t * Initialize calendar\n\t * @private\n\t */\n\tCalendar.prototype.initialize = function() {\n\t var controller = this.controller,\n\t viewName = this.viewName,\n\t opt = this.options;\n\t\n\t this.layout.controller = controller;\n\t\n\t if (opt.schedules && opt.schedules.length) {\n\t this.createSchedules(opt.schedules, true);\n\t }\n\t\n\t util.forEach(opt.template, function(func, name) {\n\t if (func) {\n\t Handlebars.registerHelper(name + '-tmpl', func);\n\t }\n\t });\n\t\n\t this.toggleView(viewName, true);\n\t};\n\t\n\t/**********\n\t * CRUD Methods\n\t **********/\n\t\n\t/**\n\t * Create schedules and render calendar.\n\t * @param {Array.} schedules - schedule data list\n\t * @param {boolean} [silent=false] - no auto render after creation when set true\n\t * @example\n\t * calendar.createSchedules([\n\t * {\n\t * id: '1',\n\t * calendarId: '1',\n\t * title: 'my schedule',\n\t * category: 'time',\n\t * dueDateClass: '',\n\t * start: '2018-01-18T22:30:00+09:00',\n\t * end: '2018-01-19T02:30:00+09:00'\n\t * },\n\t * {\n\t * id: '2',\n\t * calendarId: '1',\n\t * title: 'second schedule',\n\t * category: 'time',\n\t * dueDateClass: '',\n\t * start: '2018-01-18T17:30:00+09:00',\n\t * end: '2018-01-19T17:31:00+09:00'\n\t * }\n\t * ]);\n\t */\n\tCalendar.prototype.createSchedules = function(schedules, silent) {\n\t var calColor = this.calendarColor;\n\t\n\t util.forEach(schedules, function(obj) {\n\t var color = calColor[obj.calendarId];\n\t\n\t if (color) {\n\t obj.color = color.color;\n\t obj.bgColor = color.bgColor;\n\t obj.borderColor = color.borderColor;\n\t }\n\t });\n\t\n\t this.controller.createSchedules(schedules, silent);\n\t\n\t if (!silent) {\n\t this.render();\n\t }\n\t};\n\t\n\t/**\n\t * Get schedule by schedule id and calendar id.\n\t * @param {string} id - ID of schedule\n\t * @param {string} calendarId - calendarId of schedule\n\t * @returns {Schedule} schedule object\n\t * @example\n\t * var schedule = calendar.getSchedule(scheduleId, calendarId);\n\t * console.log(schedule.title);\n\t */\n\tCalendar.prototype.getSchedule = function(id, calendarId) {\n\t return this.controller.schedules.single(function(model) {\n\t return model.id === id && model.calendarId === calendarId;\n\t });\n\t};\n\t\n\t/**\n\t * Update the schedule\n\t * @param {string} id - ID of schedule to update\n\t * @param {string} calendarId - calendarId of schedule to update\n\t * @param {Schedule} scheduleData - schedule data to update\n\t * @example\n\t * calendar.on('beforeUpdateSchedule', function(event) {\n\t * var schedule = event.schedule;\n\t * var startTime = event.start;\n\t * var endTime = event.end;\n\t * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n\t * start: startTime,\n\t * end: endTime\n\t * });\n\t * });\n\t */\n\tCalendar.prototype.updateSchedule = function(id, calendarId, scheduleData) {\n\t var ctrl = this.controller,\n\t ownSchedules = ctrl.schedules,\n\t schedule = ownSchedules.single(function(model) {\n\t return model.id === id && model.calendarId === calendarId;\n\t });\n\t\n\t if (schedule) {\n\t ctrl.updateSchedule(schedule, scheduleData);\n\t this.render();\n\t }\n\t};\n\t\n\t/**\n\t * Delete schedule.\n\t * @fires Calendar#beforeDeleteSchedule\n\t * @param {string} id - ID of schedule to delete\n\t * @param {string} calendarId - calendarId of schedule to delete\n\t */\n\tCalendar.prototype.deleteSchedule = function(id, calendarId) {\n\t var ctrl = this.controller,\n\t ownSchedules = ctrl.schedules,\n\t schedule = ownSchedules.single(function(model) {\n\t return model.id === id && model.calendarId === calendarId;\n\t });\n\t\n\t if (!schedule) {\n\t return;\n\t }\n\t\n\t /**\n\t * Fire this event when delete a schedule.\n\t * @event Calendar#beforeDeleteSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to delete\n\t * @example\n\t * calendar.on('beforeDeleteSchedule', function() {\n\t * alert('The schedule is removed.');\n\t * });\n\t */\n\t this.fire('beforeDeleteSchedule', {\n\t schedule: schedule\n\t });\n\t\n\t ctrl.deleteSchedule(schedule);\n\t this.render();\n\t};\n\t\n\t/**********\n\t * Private Methods\n\t **********/\n\t\n\t/**\n\t * Set child view's options recursively\n\t * @param {View} view - parent view\n\t * @param {function} func - option manipulate function\n\t * @private\n\t */\n\tCalendar.prototype.setOptionRecurseively = function(view, func) {\n\t view.recursive(function(childView) {\n\t var opt = childView.options;\n\t\n\t if (!opt) {\n\t return;\n\t }\n\t\n\t func(opt);\n\t });\n\t};\n\t\n\t/**\n\t * @param {string|Date} date - date to show in calendar\n\t * @param {number} [startDayOfWeek=0] - start day of week\n\t * @param {boolean} [workweek=false] - only show work week\n\t * @returns {array} render range\n\t * @private\n\t */\n\tCalendar.prototype.getWeekDayRange = function(date, startDayOfWeek, workweek) {\n\t var day, start, end, range,\n\t msFrom = datetime.millisecondsFrom;\n\t\n\t startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n\t date = util.isDate(date) ? date : new TZDate(date);\n\t day = date.getDay();\n\t\n\t // calculate default render range first.\n\t start = new TZDate(\n\t Number(date) -\n\t msFrom('day', day) +\n\t msFrom('day', startDayOfWeek)\n\t );\n\t\n\t end = new TZDate(Number(start) + msFrom('day', 6));\n\t\n\t if (day < startDayOfWeek) {\n\t start = new TZDate(Number(start) - msFrom('day', 7));\n\t end = new TZDate(Number(end) - msFrom('day', 7));\n\t }\n\t\n\t if (workweek) {\n\t range = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t );\n\t\n\t range = util.filter(range, function(weekday) {\n\t return !datetime.isWeekend(weekday.getDay());\n\t });\n\t\n\t start = range[0];\n\t end = range[range.length - 1];\n\t }\n\t\n\t return [start, end];\n\t};\n\t\n\t/**\n\t * Toggle schedules visibility by calendar ID\n\t * @param {string} calendarId - calendar id value\n\t * @param {boolean} toHide - set true to hide schedules\n\t * @param {boolean} render - set true then render after change visible property each models\n\t * @private\n\t */\n\tCalendar.prototype._toggleSchedulesByCalendarID = function(calendarId, toHide, render) {\n\t var ownSchedules = this.controller.schedules;\n\t\n\t calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\t\n\t ownSchedules.each(function(schedule) {\n\t if (~util.inArray(schedule.calendarId, calendarId)) {\n\t schedule.set('isVisible', !toHide);\n\t }\n\t });\n\t\n\t if (render) {\n\t this.render();\n\t }\n\t};\n\t\n\t/**********\n\t * General Methods\n\t **********/\n\t\n\t/**\n\t * Render the calendar.\n\t * @example\n\t * var silent = true;\n\t * calendar.clear();\n\t * calendar.createSchedules(schedules, silent);\n\t * calendar.render();\n\t */\n\tCalendar.prototype.render = function() {\n\t this.layout.render();\n\t};\n\t\n\t/**\n\t * Delete all schedules and clear view.\n\t * @example\n\t * calendar.clear();\n\t * calendar.createSchedules(schedules, true);\n\t * calendar.render();\n\t */\n\tCalendar.prototype.clear = function() {\n\t this.controller.clearSchedules();\n\t this.render();\n\t};\n\t\n\t/**\n\t * Scroll to now in daily, weekly view\n\t * @example\n\t * function onNewSchedules(schedules) {\n\t * calendar.createSchedules(schedules);\n\t * if (calendar.viewName !== 'month') {\n\t * calendar.scrollToNow();\n\t * }\n\t * }\n\t */\n\tCalendar.prototype.scrollToNow = function() {\n\t if (this.scrollToNowMethod) {\n\t this.scrollToNowMethod();\n\t }\n\t};\n\t\n\t/**\n\t * Refresh the calendar layout.\n\t * @example\n\t * window.addEventListener('resize', function() {\n\t * calendar.refresh();\n\t * });\n\t */\n\tCalendar.prototype.refresh = function() {\n\t if (this.refreshMethod) {\n\t this.refreshMethod();\n\t }\n\t\n\t this.render();\n\t};\n\t\n\t/**\n\t * Refresh child views\n\t * @param {string} [viewName] - the name of view to render. if not supplied then refresh all.\n\t * @private\n\t */\n\tCalendar.prototype.refreshChildView = function(viewName) {\n\t if (!viewName) {\n\t this.render();\n\t\n\t return;\n\t }\n\t\n\t if (viewName === 'day') {\n\t viewName = 'week';\n\t }\n\t\n\t this.layout.children.items[viewName].render();\n\t};\n\t\n\t/**\n\t * Move to today.\n\t * @example\n\t * function onClickTodayBtn() {\n\t * calendar.today();\n\t * }\n\t */\n\tCalendar.prototype.today = function() {\n\t this.renderDate = new TZDate();\n\t\n\t this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n\t this.move();\n\t this.render();\n\t};\n\t\n\t/**\n\t * Move the calendar amount of offset value\n\t * @param {number} offset - offset value.\n\t * @private\n\t * @example\n\t * // move previous week when \"week\" view.\n\t * // move previous month when \"month\" view.\n\t * calendar.move(-1);\n\t */\n\tCalendar.prototype.move = function(offset) {\n\t var renderDate = dw(this.renderDate),\n\t viewName = this.viewName,\n\t view = this.getCurrentView(),\n\t recursiveSet = this.setOptionRecurseively,\n\t startDate, endDate, tempDate,\n\t startDayOfWeek, visibleWeeksCount, workweek, datetimeOptions;\n\t\n\t offset = util.isExisty(offset) ? offset : 0;\n\t\n\t if (viewName === 'month') {\n\t startDayOfWeek = util.pick(this.options, 'month', 'startDayOfWeek') || 0;\n\t visibleWeeksCount = mmin(util.pick(this.options, 'month', 'visibleWeeksCount') || 0, 6);\n\t workweek = util.pick(this.options, 'month', 'workweek') || false;\n\t\n\t if (visibleWeeksCount) {\n\t datetimeOptions = {\n\t startDayOfWeek: startDayOfWeek,\n\t isAlways6Week: false,\n\t visibleWeeksCount: visibleWeeksCount,\n\t workweek: workweek\n\t };\n\t\n\t renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n\t tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\t\n\t recursiveSet(view, function(opt) {\n\t opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM-DD');\n\t });\n\t } else {\n\t datetimeOptions = {\n\t startDayOfWeek: startDayOfWeek,\n\t isAlways6Week: true,\n\t workweek: workweek\n\t };\n\t\n\t renderDate.addMonth(offset);\n\t tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\t\n\t recursiveSet(view, function(opt) {\n\t opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM');\n\t });\n\t }\n\t\n\t startDate = tempDate[0][0];\n\t endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n\t } else if (viewName === 'week') {\n\t renderDate.addDate(offset * 7);\n\t startDayOfWeek = util.pick(this.options, 'week', 'startDayOfWeek') || 0;\n\t workweek = util.pick(this.options, 'week', 'workweek') || false;\n\t tempDate = this.getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\t\n\t startDate = tempDate[0];\n\t endDate = tempDate[1];\n\t\n\t recursiveSet(view, function(opt) {\n\t opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n\t opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n\t });\n\t } else if (viewName === 'day') {\n\t renderDate.addDate(offset);\n\t startDate = endDate = renderDate.d;\n\t\n\t recursiveSet(view, function(opt) {\n\t opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n\t opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n\t });\n\t }\n\t\n\t this.renderDate = renderDate.d;\n\t this.renderRange = {\n\t start: startDate,\n\t end: endDate\n\t };\n\t};\n\t\n\t/**\n\t * Move to specific date\n\t * @param {(Date|string)} date - date to move\n\t * @example\n\t * calendar.on('clickDayname', function(event) {\n\t * if (calendar.viewName === 'week') {\n\t * calendar.setDate(new Date(event.date));\n\t * calendar.toggleView('day', true);\n\t * }\n\t * });\n\t */\n\tCalendar.prototype.setDate = function(date) {\n\t if (util.isString(date)) {\n\t date = datetime.parse(date);\n\t }\n\t\n\t this.renderDate = new TZDate(Number(date));\n\t this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n\t this.move(0);\n\t this.render();\n\t};\n\t\n\t/**\n\t * Move the calendar forward a day, a week, a month\n\t * @example\n\t * function moveToNextOrPrevRange(val) {\n\t calendar.clear();\n\t if (val === -1) {\n\t calendar.prev();\n\t } else if (val === 1) {\n\t calendar.next();\n\t }\n\t}\n\t */\n\tCalendar.prototype.next = function() {\n\t this.move(1);\n\t this.render();\n\t};\n\t\n\t/**\n\t * Move the calendar backward a day, a week, a month\n\t * @example\n\t * function moveToNextOrPrevRange(val) {\n\t calendar.clear();\n\t if (val === -1) {\n\t calendar.prev();\n\t } else if (val === 1) {\n\t calendar.next();\n\t }\n\t}\n\t */\n\tCalendar.prototype.prev = function() {\n\t this.move(-1);\n\t this.render();\n\t};\n\t\n\t/**\n\t * Return current rendered view.\n\t * @returns {View} current view instance\n\t * @private\n\t */\n\tCalendar.prototype.getCurrentView = function() {\n\t var viewName = this.viewName;\n\t\n\t if (viewName === 'day') {\n\t viewName = 'week';\n\t }\n\t\n\t return util.pick(this.layout.children.items, viewName);\n\t};\n\t\n\t/**\n\t * Change calendar's schedule color with option\n\t * @param {string} calendarId - calendar ID\n\t * @param {object} option - color data object\n\t * @param {string} option.color - text color of schedule element\n\t * @param {string} option.bgColor - bg color of schedule element\n\t * @param {string} option.borderColor - border color of schedule element\n\t * @param {boolean} [option.render=true] - set false then does not auto render.\n\t * @example\n\t * calendar.setCalendarColor('1', {\n\t * color: '#e8e8e8',\n\t * bgColor: '#585858',\n\t * render: false\n\t * });\n\t * calendar.setCalendarColor('2', {\n\t * color: '#282828',\n\t * bgColor: '#dc9656',\n\t * render: false\n\t * });\n\t * calendar.setCalendarColor('3', {\n\t * color: '#a16946',\n\t * bgColor: '#ab4642',\n\t * render: true\n\t * });\n\t */\n\tCalendar.prototype.setCalendarColor = function(calendarId, option) {\n\t var calColor = this.calendarColor,\n\t ownSchedules = this.controller.schedules,\n\t ownColor = calColor[calendarId];\n\t\n\t if (!util.isObject(option)) {\n\t config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n\t }\n\t\n\t ownColor = calColor[calendarId] = util.extend({\n\t color: '#000',\n\t bgColor: '#a1b56c',\n\t borderColor: '#a1b56c',\n\t render: true\n\t }, option);\n\t\n\t ownSchedules.each(function(model) {\n\t if (model.calendarId !== calendarId) {\n\t return;\n\t }\n\t\n\t model.color = ownColor.color;\n\t model.bgColor = ownColor.bgColor;\n\t model.borderColor = ownColor.borderColor;\n\t });\n\t\n\t if (ownColor.render) {\n\t this.render();\n\t }\n\t};\n\t\n\t/**\n\t * Show schedules visibility by calendar ID\n\t * @param {string|string[]} calendarId - calendar id value\n\t * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n\t * @private\n\t */\n\tCalendar.prototype.showSchedulesByCalendarID = function(calendarId, render) {\n\t render = util.isExisty(render) ? render : true;\n\t this._toggleSchedulesByCalendarID(calendarId, false, render);\n\t};\n\t\n\t/**\n\t * Hide schedules visibility by calendar ID\n\t * @param {string|string[]} calendarId - calendar id value\n\t * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n\t * @private\n\t */\n\tCalendar.prototype.hideSchedulesByCalendarID = function(calendarId, render) {\n\t render = util.isExisty(render) ? render : true;\n\t this._toggleSchedulesByCalendarID(calendarId, true, render);\n\t};\n\t\n\t/**********\n\t * Custom Events\n\t **********/\n\t\n\t/**\n\t * 각 뷰의 클릭 핸들러와 사용자 클릭 이벤트 핸들러를 잇기 위한 브릿지 개념의 이벤트 핸들러\n\t * @fires Calendar#clickSchedule\n\t * @param {object} clickScheduleData - 'clickSchedule' 핸들러의 이벤트 데이터\n\t * @private\n\t */\n\tCalendar.prototype._onClick = function(clickScheduleData) {\n\t /**\n\t * Fire this event when click a schedule.\n\t * @event Calendar#clickSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent\n\t * @example\n\t * calendar.on('clickSchedule', function(event) {\n\t * var schedule = event.schedule;\n\t *\n\t * if (lastClickSchedule) {\n\t * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n\t * isFocused: false\n\t * });\n\t * }\n\t * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n\t * isFocused: true\n\t * });\n\t *\n\t * lastClickSchedule = schedule;\n\t * // open detail view\n\t * });\n\t */\n\t this.fire('clickSchedule', clickScheduleData);\n\t};\n\t\n\t/**\n\t * dayname 클릭 이벤트 핸들러\n\t * @fires Calendar#clickDayname\n\t * @param {object} clickScheduleData - 'clickDayname' 핸들러의 이벤트 데이터\n\t * @private\n\t */\n\tCalendar.prototype._onClickDayname = function(clickScheduleData) {\n\t /**\n\t * Fire this event when click a day name in weekly.\n\t * @event Calendar#clickDayname\n\t * @type {object}\n\t * @property {string} date - date string by format 'YYYY-MM-DD'\n\t * @example\n\t * calendar.on('clickDayname', function(event) {\n\t * if (calendar.viewName === 'week') {\n\t * calendar.setDate(new Date(event.date));\n\t * calendar.toggleView('day', true);\n\t * }\n\t * });\n\t */\n\t this.fire('clickDayname', clickScheduleData);\n\t};\n\t\n\t/**\n\t * @fires {Calendar#beforeCreateSchedule}\n\t * @param {object} createScheduleData - select schedule data from allday, time\n\t * @private\n\t */\n\tCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n\t /**\n\t * Fire this event when select time period in daily, weekly, monthly.\n\t * @event Calendar#beforeCreateSchedule\n\t * @type {object}\n\t * @property {boolean} isAllDay - allday schedule\n\t * @property {Date} start - selected start time\n\t * @property {Date} end - selected end time\n\t * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n\t * @property {string} triggerEventName - event name like 'click', 'dblclick'\n\t * @example\n\t * calendar.on('beforeCreateSchedule', function(event) {\n\t * var startTime = event.start;\n\t * var endTime = event.end;\n\t * var isAllDay = event.isAllDay;\n\t * var guide = event.guide;\n\t * var triggerEventName = event.triggerEventName;\n\t * var schedule;\n\t *\n\t * if (triggerEventName === 'click') {\n\t * // open writing simple schedule popup\n\t * schedule = {...};\n\t * } else if (triggerEventName === 'dblclick') {\n\t * // open writing detail schedule popup\n\t * schedule = {...};\n\t * }\n\t *\n\t * calendar.createSchedules([schedule]);\n\t * });\n\t */\n\t this.fire('beforeCreateSchedule', createScheduleData);\n\t};\n\t\n\t/**\n\t * @fires Calendar#beforeUpdateSchedule\n\t * @param {object} updateScheduleData - update schedule data\n\t * @private\n\t */\n\tCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n\t /**\n\t * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n\t * @event Calendar#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t * @example\n\t * calendar.on('beforeUpdateSchedule', function(event) {\n\t * var schedule = event.schedule;\n\t * var startTime = event.start;\n\t * var endTime = event.end;\n\t *\n\t * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n\t * start: startTime,\n\t * end: endTime\n\t * });\n\t * });\n\t */\n\t this.fire('beforeUpdateSchedule', updateScheduleData);\n\t};\n\t\n\t/**\n\t * @fires Calendar#resizePanel\n\t * @param {object} resizeScheduleData - resize schedule data object\n\t * @private\n\t */\n\tCalendar.prototype._onResizePanel = function(resizeScheduleData) {\n\t /**\n\t * Fire this event when resize view panels(milestone, task, allday).\n\t * @event Calendar#resizePanel\n\t * @type {object}\n\t * @property {number[]} layoutData - layout data after resized\n\t * @example\n\t * calendar.on('resizePanel', function(layoutData) {\n\t * console.log(layoutData);\n\t * // do something to resize your UI if necessary.\n\t * });\n\t */\n\t this.fire('resizePanel', resizeScheduleData);\n\t};\n\t\n\t/**\n\t * 캘린더 팩토리 클래스와 주뷰, 월뷰의 이벤트 연결을 토글한다\n\t * @param {boolean} isAttach - true면 이벤트 연결함.\n\t * @param {Week|Month} view - 주뷰 또는 월뷰\n\t * @private\n\t */\n\tCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n\t var self = this,\n\t handler = view.handler,\n\t isMonthView = view.viewName === 'month',\n\t method = isAttach ? 'on' : 'off';\n\t\n\t util.forEach(handler.click, function(clickHandler) {\n\t clickHandler[method]('clickSchedule', self._onClick, self);\n\t });\n\t\n\t util.forEach(handler.dayname, function(clickHandler) {\n\t clickHandler[method]('clickDayname', self._onClickDayname, self);\n\t });\n\t\n\t util.forEach(handler.creation, function(creationHandler) {\n\t creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n\t });\n\t\n\t util.forEach(handler.move, function(moveHandler) {\n\t moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n\t });\n\t\n\t util.forEach(handler.resize, function(resizeHandler) {\n\t resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n\t });\n\t\n\t if (!isMonthView) {\n\t view.vLayout[method]('resize', self._onResizePanel, self);\n\t }\n\t};\n\t\n\t/**\n\t * Toggle current view\n\t * @param {string} newViewName - new view name to render\n\t * @param {boolean} force - force render despite of current view and new view are equal\n\t * @example\n\t * // daily view\n\t * calendar.toggleView('day', true);\n\t *\n\t * // weekly view\n\t * calendar.toggleView('week', true);\n\t *\n\t * // monthly view(default 6 weeks view)\n\t * calendar.options.month.visibleWeeksCount = 6; // or null\n\t * calendar.toggleView('month', true);\n\t *\n\t * // 2 weeks monthly view\n\t * calendar.options.month.visibleWeeksCount = 2;\n\t * calendar.toggleView('month', true);\n\t *\n\t * // 3 weeks monthly view\n\t * calendar.options.month.visibleWeeksCount = 3;\n\t * calendar.toggleView('month', true);\n\t *\n\t * // narrow weekend\n\t * calendar.options.month.narrowWeekend = true;\n\t * calendar.options.week.narrowWeekend = true;\n\t * calendar.toggleView(calendar.viewName, true);\n\t *\n\t * // change start day of week(from monday)\n\t * calendar.options.month.startDayOfWeek = 1;\n\t * calendar.options.week.startDayOfWeek = 1;\n\t * calendar.toggleView(calendar.viewName, true);\n\t */\n\tCalendar.prototype.toggleView = function(newViewName, force) {\n\t var self = this,\n\t layout = this.layout,\n\t controller = this.controller,\n\t dragHandler = this.dragHandler,\n\t options = this.options,\n\t viewName = this.viewName,\n\t created;\n\t\n\t if (!force && viewName === newViewName) {\n\t return;\n\t }\n\t\n\t this._setViewName(newViewName);\n\t\n\t // convert day to week\n\t if (viewName === 'day') {\n\t viewName = 'week';\n\t }\n\t\n\t if (newViewName === 'day') {\n\t newViewName = 'week';\n\t }\n\t layout.children.doWhenHas(viewName, function(view) {\n\t self._toggleViewSchedule(false, view);\n\t });\n\t\n\t layout.clear();\n\t\n\t if (newViewName === 'month') {\n\t created = this.createMonthView(\n\t controller,\n\t layout.container,\n\t dragHandler,\n\t options\n\t );\n\t } else if (newViewName === 'week' || newViewName === 'day') {\n\t created = this.createWeekView(\n\t controller,\n\t layout.container,\n\t dragHandler,\n\t options\n\t );\n\t }\n\t\n\t layout.addChild(created.view);\n\t\n\t layout.children.doWhenHas(newViewName, function(view) {\n\t self._toggleViewSchedule(true, view);\n\t });\n\t\n\t this.refreshMethod = created.refresh;\n\t this.scrollToNowMethod = created.scrollToNow;\n\t\n\t this.move();\n\t this.render();\n\t};\n\t\n\t/**\n\t * Toggle task view('Milestone', 'Task') panel\n\t * @param {boolean} enabled - use task view\n\t * @example\n\t * // There is no milestone, task, so hide those view panel\n\t * calendar.toggleTaskView(false);\n\t *\n\t * // There are some milestone, task, so show those view panel.\n\t * calendar.toggleTaskView(true);\n\t */\n\tCalendar.prototype.toggleTaskView = function(enabled) {\n\t var viewName = this.viewName,\n\t options = this.options;\n\t\n\t options.taskView = enabled;\n\t\n\t this.toggleView(viewName, true);\n\t};\n\t\n\t/**\n\t * Toggle schedule view('AllDay', TimeGrid') panel\n\t * @param {boolean} enabled - use task view\n\t * @example\n\t * // hide those view panel to show only 'Milestone', 'Task'\n\t * calendar.toggleScheduleView(false);\n\t *\n\t * // show those view panel.\n\t * calendar.toggleScheduleView(true);\n\t */\n\tCalendar.prototype.toggleScheduleView = function(enabled) {\n\t var viewName = this.viewName,\n\t options = this.options;\n\t\n\t options.scheduleView = enabled;\n\t\n\t this.toggleView(viewName, true);\n\t};\n\t\n\t/**\n\t * Set current view name\n\t * @param {string} viewName - new view name to render\n\t * @private\n\t */\n\tCalendar.prototype._setViewName = function(viewName) {\n\t this.prevViewName = this.viewName;\n\t this.viewName = viewName;\n\t};\n\t\n\t/**\n\t * Get schedule by schedule id and calendar id.\n\t * @param {string} scheduleId - ID of schedule\n\t * @param {string} calendarId - calendarId of schedule\n\t * @returns {HTMLElement} schedule element if found or null\n\t * @example\n\t * var element = calendar.getElement(scheduleId, calendarId);\n\t * console.log(element);\n\t */\n\tCalendar.prototype.getElement = function(scheduleId, calendarId) {\n\t var schedule = this.getSchedule(scheduleId, calendarId);\n\t if (schedule) {\n\t return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n\t }\n\t\n\t return null;\n\t};\n\t\n\t/**\n\t * Set timezone offset\n\t * @param {number} offset - offset (min)\n\t * @static\n\t * @example\n\t * var timezoneName = moment.tz.guess();\n\t * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n\t */\n\tCalendar.setTimezoneOffset = function(offset) {\n\t timezone.setOffset(offset);\n\t};\n\t\n\t/**\n\t * Set a callback function to get timezone offset by timestamp\n\t * @param {function} callback - callback function\n\t * @static\n\t * @example\n\t * var timezoneName = moment.tz.guess();\n\t * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n\t * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n\t * });\n\t */\n\tCalendar.setTimezoneOffsetCallback = function(callback) {\n\t timezone.setOffsetCallback(callback);\n\t};\n\t\n\tutil.CustomEvents.mixin(Calendar);\n\t\n\tmodule.exports = Calendar;\n\n\n/***/ },\n/* 70 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Controller factory module.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar Base = __webpack_require__(65),\n\t Core = __webpack_require__(66),\n\t Week = __webpack_require__(68),\n\t Month = __webpack_require__(67),\n\t datetime = __webpack_require__(4);\n\t\n\t/**\n\t * Mixin object. create object property to target and mix to that\n\t * @param {object} from - source object\n\t * @param {object} to - target object\n\t * @param {string} propertyName - property name\n\t */\n\tfunction mixin(from, to, propertyName) {\n\t var obj = to[propertyName] = {};\n\t\n\t util.forEach(from, function(method, methodName) {\n\t obj[methodName] = util.bind(method, to);\n\t });\n\t}\n\t\n\t/**\n\t * @param {object} options - options for base controller\n\t * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n\t * @returns {Base} The controller instance.\n\t */\n\tmodule.exports = function(options) {\n\t var controller = new Base(options),\n\t originQuery;\n\t\n\t mixin(Core, controller, 'Core');\n\t mixin(Week, controller, 'Week');\n\t mixin(Month, controller, 'Month');\n\t\n\t /**********\n\t * Override Week#findByDateRange for support schedules that category is 'miles\n\t * tone', 'task'.\n\t **********/\n\t\n\t originQuery = controller.Week.findByDateRange;\n\t\n\t /**\n\t * Find schedule and get view model for specific month\n\t * @this Base\n\t * @override\n\t * @param {Date} start - start date to find schedules\n\t * @param {Date} end - end date to find schedules\n\t * @param {function[]} [andFilters] - optional filters to applying search query\n\t * @returns {object} view model data\n\t */\n\t function findByDateRange(start, end, andFilters) {\n\t var dateRange = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t ),\n\t ymdRange = util.map(dateRange, function(d) {\n\t return datetime.format(d, 'YYYY-MM-DD');\n\t }),\n\t viewModels;\n\t\n\t andFilters = andFilters || [];\n\t viewModels = originQuery(start, end, andFilters);\n\t\n\t util.forEach(viewModels, function(coll, key, obj) {\n\t var groupedByYMD;\n\t\n\t // Change view model\n\t if (key === 'milestone') {\n\t groupedByYMD = coll.groupBy(ymdRange, function(viewModel) {\n\t return datetime.format(viewModel.model.end, 'YYYY-MM-DD');\n\t });\n\t\n\t obj[key] = groupedByYMD;\n\t }\n\t });\n\t\n\t return viewModels;\n\t }\n\t\n\t controller.Week.findByDateRange = findByDateRange;\n\t\n\t return controller;\n\t};\n\t\n\n\n/***/ },\n/* 71 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Month view factory module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t array = __webpack_require__(14),\n\t datetime = __webpack_require__(4),\n\t domutil = __webpack_require__(2),\n\t Month = __webpack_require__(96),\n\t MonthClick = __webpack_require__(80),\n\t MonthCreation = __webpack_require__(81),\n\t MonthResize = __webpack_require__(85),\n\t MonthMove = __webpack_require__(83),\n\t More = __webpack_require__(97);\n\t\n\t/**\n\t * Get the view model for more layer\n\t * @param {TZDate} date - date has more schedules\n\t * @param {HTMLElement} target - target element\n\t * @param {Collection} schedules - schedule collection\n\t * @returns {object} view model\n\t */\n\tfunction getViewModelForMoreLayer(date, target, schedules) {\n\t schedules.each(function(schedule) {\n\t var model = schedule.model;\n\t schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n\t });\n\t\n\t return {\n\t target: target,\n\t date: datetime.format(date, 'YYYY.MM.DD'),\n\t schedules: schedules.sort(array.compare.schedule.asc)\n\t };\n\t}\n\t\n\t/**\n\t * @param {Base} baseController - controller instance\n\t * @param {HTMLElement} layoutContainer - container element for month view\n\t * @param {Drag} dragHandler - drag handler instance\n\t * @param {object} options - options\n\t * @returns {object} view instance and refresh method\n\t */\n\tfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n\t var monthViewContainer, monthView, moreView;\n\t var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n\t\n\t monthViewContainer = domutil.appendHTMLElement(\n\t 'div', layoutContainer, config.classname('month'));\n\t\n\t monthView = new Month(options.month, monthViewContainer, baseController.Month);\n\t moreView = new More(options.month, layoutContainer);\n\t\n\t // handlers\n\t clickHandler = new MonthClick(dragHandler, monthView, baseController);\n\t creationHandler = new MonthCreation(dragHandler, monthView, baseController);\n\t resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n\t moveHandler = new MonthMove(dragHandler, monthView, baseController);\n\t\n\t clearSchedulesHandler = function() {\n\t if (moreView) {\n\t moreView.hide();\n\t }\n\t };\n\t\n\t onUpdateSchedule = function() {\n\t if (moreView) {\n\t moreView.refresh();\n\t }\n\t };\n\t\n\t // binding +n click schedule\n\t clickHandler.on('clickMore', function(clickMoreSchedule) {\n\t var date = clickMoreSchedule.date,\n\t target = clickMoreSchedule.target,\n\t schedules = util.pick(baseController.findByDateRange(\n\t datetime.start(date),\n\t datetime.end(date)\n\t ), clickMoreSchedule.ymd);\n\t\n\t schedules.items = util.filter(schedules.items, function(item) {\n\t return options.month.scheduleFilter(item.model);\n\t });\n\t\n\t if (schedules && schedules.length) {\n\t moreView.render(getViewModelForMoreLayer(date, target, schedules));\n\t }\n\t });\n\t\n\t // binding clear schedules\n\t baseController.on('clearSchedules', clearSchedulesHandler);\n\t\n\t // bind update schedule event\n\t baseController.on('updateSchedule', onUpdateSchedule);\n\t\n\t moveHandler.on('monthMoveStart_from_morelayer', function() {\n\t moreView.hide();\n\t });\n\t\n\t monthView.handler = {\n\t click: {\n\t 'default': clickHandler\n\t },\n\t creation: {\n\t 'default': creationHandler\n\t },\n\t resize: {\n\t 'default': resizeHandler\n\t },\n\t move: {\n\t 'default': moveHandler\n\t }\n\t };\n\t\n\t monthView._beforeDestroy = function() {\n\t moreView.destroy();\n\t baseController.off('clearSchedules', clearSchedulesHandler);\n\t baseController.off('updateSchedule', onUpdateSchedule);\n\t\n\t util.forEach(monthView.handler, function(type) {\n\t util.forEach(type, function(handler) {\n\t handler.off();\n\t handler.destroy();\n\t });\n\t });\n\t };\n\t\n\t // add controller\n\t monthView.controller = baseController.Month;\n\t\n\t return {\n\t view: monthView,\n\t refresh: function() {\n\t monthView.vLayout.refresh();\n\t }\n\t };\n\t}\n\t\n\tmodule.exports = createMonthView;\n\t\n\n\n/***/ },\n/* 72 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Factory module for WeekView\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar VLayout = __webpack_require__(24);\n\tvar reqAnimFrame = __webpack_require__(11);\n\t// Parent views\n\tvar Week = __webpack_require__(106);\n\t\n\t// Sub views\n\tvar DayName = __webpack_require__(101);\n\tvar TimeGrid = __webpack_require__(105);\n\tvar Allday = __webpack_require__(100);\n\tvar Milestone = __webpack_require__(102);\n\tvar TaskView = __webpack_require__(103);\n\t\n\t// Handlers\n\tvar AlldayClick = __webpack_require__(73);\n\tvar AlldayCreation = __webpack_require__(74);\n\tvar AlldayMove = __webpack_require__(25);\n\tvar AlldayResize = __webpack_require__(77);\n\tvar DayNameClick = __webpack_require__(88);\n\tvar TimeClick = __webpack_require__(87);\n\tvar TimeCreation = __webpack_require__(89);\n\tvar TimeMove = __webpack_require__(91);\n\tvar TimeResize = __webpack_require__(93);\n\tvar MilestoneClick = __webpack_require__(79);\n\t\n\tvar DEFAULT_VIEW_SEQUENCE = ['Milestone', 'Task', 'AllDay', 'TimeGrid'];\n\tvar DEFAULT_VIEWS = {\n\t 'Milestone': {\n\t minHeight: 20,\n\t height: 80,\n\t maxHeight: 80,\n\t show: true\n\t },\n\t 'Task': {\n\t minHeight: 40,\n\t height: 120,\n\t maxHeight: 120,\n\t show: true\n\t },\n\t 'AllDay': {\n\t minHeight: 20,\n\t height: 80,\n\t maxHeight: 80,\n\t show: true,\n\t maxExpandCount: 10\n\t },\n\t 'TimeGrid': {\n\t autoHeight: true,\n\t show: true\n\t }\n\t};\n\t\n\t/* eslint-disable complexity*/\n\tmodule.exports = function(baseController, layoutContainer, dragHandler, options) {\n\t var viewSequence = options.week.viewSequence || DEFAULT_VIEW_SEQUENCE,\n\t views = options.week.views || DEFAULT_VIEWS,\n\t panels = [],\n\t isAllDayPanelFirstRender = true;\n\t var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout,\n\t milestoneView, taskView, alldayView, timeGridView, alldayPanel;\n\t\n\t weekView = new Week(null, options.week, layoutContainer);\n\t weekView.handler = {\n\t click: {},\n\t dayname: {},\n\t creation: {},\n\t move: {},\n\t resize: {}\n\t };\n\t\n\t // Change visibilities\n\t util.forEach(views, function(value, key) {\n\t if (key === 'Milestone' || key === 'Task') {\n\t value.show = options.taskView;\n\t } else if (key === 'AllDay' || key === 'TimeGrid') {\n\t value.show = options.scheduleView;\n\t }\n\t });\n\t\n\t // Make panels by view sequence and visibilities\n\t util.forEach(viewSequence, function(name) {\n\t var view = views[name];\n\t if (view.show) {\n\t if (panels.length) {\n\t panels.push({\n\t isSplitter: true\n\t });\n\t }\n\t panels.push(util.extend({\n\t name: name\n\t }, view));\n\t }\n\t });\n\t\n\t if (panels.length) {\n\t panels[panels.length - 1].autoHeight = true;\n\t panels[panels.length - 1].maxHeight = null;\n\t }\n\t\n\t dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\t\n\t /**********\n\t * 일자표기 (상단 일월화수...)\n\t **********/\n\t dayNameView = new DayName(options.week, dayNameContainer);\n\t weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n\t weekView.addChild(dayNameView);\n\t\n\t /**********\n\t * 수직 레이아웃 모듈 초기화\n\t **********/\n\t vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n\t vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\t\n\t vLayout = new VLayout({\n\t panels: panels,\n\t panelHeights: options.week.panelHeights || []\n\t }, vLayoutContainer);\n\t\n\t weekView.vLayout = vLayout;\n\t\n\t if (util.pick(views, 'Milestone').show) {\n\t /**********\n\t * 마일스톤\n\t **********/\n\t milestoneView = new Milestone(options.week, vLayout.getPanelByName('Milestone').container);\n\t milestoneView.on('afterRender', function(viewModel) {\n\t vLayout.getPanelByName('Milestone').setHeight(null, viewModel.height);\n\t });\n\t weekView.addChild(milestoneView);\n\t weekView.handler.click.milestone = new MilestoneClick(dragHandler, milestoneView, baseController);\n\t }\n\t\n\t if (util.pick(views, 'Task').show) {\n\t /**********\n\t * 업무\n\t **********/\n\t taskView = new TaskView(options.week, vLayout.getPanelByName('Task').container);\n\t taskView.on('afterRender', function() {\n\t vLayout.getPanelByName('Task').setHeight(null, taskView.contentHeight);\n\t });\n\t weekView.addChild(taskView);\n\t weekView.handler.click.task = new AlldayClick(dragHandler, taskView, baseController);\n\t weekView.handler.move.task = new AlldayMove(dragHandler, taskView, baseController);\n\t }\n\t\n\t if (util.pick(views, 'AllDay').show) {\n\t /**********\n\t * 종일일정\n\t **********/\n\t alldayPanel = vLayout.getPanelByName('AllDay');\n\t alldayView = new Allday(options.week, alldayPanel.container, alldayPanel.options);\n\t alldayView.on('afterRender', function() {\n\t if (alldayView.viewType === 'toggle' && !alldayView.collapsed) {\n\t alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n\t }\n\t if (isAllDayPanelFirstRender) {\n\t alldayPanel.setHeight(null, alldayView.options.height);\n\t isAllDayPanelFirstRender = false;\n\t } else {\n\t alldayPanel.setHeight(null, alldayView.contentHeight);\n\t }\n\t });\n\t\n\t weekView.addChild(alldayView);\n\t weekView.handler.click.allday = new AlldayClick(dragHandler, alldayView, baseController);\n\t weekView.handler.creation.allday = new AlldayCreation(dragHandler, alldayView, baseController);\n\t weekView.handler.move.allday = new AlldayMove(dragHandler, alldayView, baseController);\n\t weekView.handler.resize.allday = new AlldayResize(dragHandler, alldayView, baseController);\n\t\n\t weekView.handler.click.allday.on('clickExpand', function(index) {\n\t alldayView.prevMaxHeight = alldayView.aboutMe.maxHeight;\n\t alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n\t alldayPanel.isHeightForcedSet = false;\n\t alldayView.collapsed = false;\n\t alldayView.aboutMe.forcedLayout = false;\n\t alldayView.aboutMe.collapseBtnIndex = index;\n\t reqAnimFrame.requestAnimFrame(function() {\n\t weekView.render();\n\t });\n\t });\n\t\n\t weekView.handler.click.allday.on('clickCollapse', function() {\n\t var newHeight = alldayView.prevMaxHeight;\n\t delete alldayView.prevMaxHeight;\n\t alldayPanel.options.maxHeight = newHeight;\n\t alldayPanel.setHeight(null, newHeight);\n\t alldayView.collapsed = true;\n\t reqAnimFrame.requestAnimFrame(function() {\n\t weekView.render();\n\t });\n\t });\n\t\n\t alldayPanel.on('resize', function() {\n\t alldayView.aboutMe.forcedLayout = true;\n\t weekView.render();\n\t });\n\t }\n\t\n\t if (util.pick(views, 'TimeGrid').show) {\n\t /**********\n\t * 시간별 일정\n\t **********/\n\t timeGridView = new TimeGrid(options.week, vLayout.getPanelByName('TimeGrid').container);\n\t weekView.addChild(timeGridView);\n\t weekView.handler.click.time = new TimeClick(dragHandler, timeGridView, baseController);\n\t weekView.handler.creation.time = new TimeCreation(dragHandler, timeGridView, baseController);\n\t weekView.handler.move.time = new TimeMove(dragHandler, timeGridView, baseController);\n\t weekView.handler.resize.time = new TimeResize(dragHandler, timeGridView, baseController);\n\t }\n\t\n\t weekView.on('afterRender', function() {\n\t vLayout.refresh();\n\t });\n\t\n\t // add controller\n\t weekView.controller = baseController.Week;\n\t\n\t // add destroy\n\t weekView._beforeDestroy = function() {\n\t util.forEach(weekView.handler, function(type) {\n\t util.forEach(type, function(handler) {\n\t handler.off();\n\t handler.destroy();\n\t });\n\t });\n\t\n\t weekView.off();\n\t };\n\t\n\t return {\n\t view: weekView,\n\t refresh: function() {\n\t var weekViewHeight = weekView.getViewBound().height,\n\t daynameViewHeight = domutil.getBCRect(\n\t dayNameView.container\n\t ).height;\n\t\n\t vLayout.container.style.height =\n\t weekViewHeight - daynameViewHeight + 'px';\n\t vLayout.refresh();\n\t },\n\t scrollToNow: function() {\n\t if (timeGridView) {\n\t timeGridView.scrollToNow();\n\t }\n\t }\n\t };\n\t};\n\n\n/***/ },\n/* 73 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Click handle module for allday schedules\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar AlldayMove = __webpack_require__(25);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Allday} [alldayView] - allday view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction AlldayClick(dragHandler, alldayView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Allday}\n\t */\n\t this.alldayView = alldayView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy handler module\n\t */\n\tAlldayClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.alldayView = this.baseController = this.dragHandler = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {string} - model id\n\t */\n\tAlldayClick.prototype.checkExpectCondition = AlldayMove.prototype.checkExpectedCondition;\n\t\n\t/**\n\t * Click event handler\n\t * @param {object} clickEvent - click event data\n\t * @emits AlldayClick#clickSchedule\n\t */\n\tAlldayClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t target = clickEvent.target,\n\t timeView = this.checkExpectCondition(target),\n\t scheduleCollection = this.baseController.schedules,\n\t collapseElement = domutil.closest(\n\t clickEvent.target,\n\t config.classname('.weekday-collapse-btn')\n\t );\n\t var blockElement, scheduleElement;\n\t\n\t if (collapseElement) {\n\t self.fire('clickCollapse');\n\t\n\t return;\n\t }\n\t\n\t if (!timeView) {\n\t return;\n\t }\n\t\n\t if (this._onClickMoreElement(clickEvent.target)) {\n\t return;\n\t }\n\t\n\t scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n\t if (scheduleElement) {\n\t blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\t scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n\t /**\n\t * @events AlldayClick#clickSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent object\n\t */\n\t self.fire('clickSchedule', {\n\t schedule: schedule,\n\t event: clickEvent.originEvent\n\t });\n\t });\n\t }\n\t};\n\t\n\tAlldayClick.prototype._onClickMoreElement = function(target) {\n\t var moreElement = domutil.closest(target, config.classname('.weekday-exceed-in-week'));\n\t var index = moreElement.dataset ? moreElement.dataset.index : moreElement.getAttribute('data-index');\n\t var parseInt = Number.parseInt || window.parseInt;\n\t\n\t if (moreElement) {\n\t this.fire('clickExpand', parseInt(index || 0, 10));\n\t\n\t return true;\n\t }\n\t\n\t return false;\n\t};\n\t\n\tutil.CustomEvents.mixin(AlldayClick);\n\t\n\tmodule.exports = AlldayClick;\n\n\n/***/ },\n/* 74 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar common = __webpack_require__(6);\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\tvar alldayCore = __webpack_require__(17);\n\tvar AlldayCreationGuide = __webpack_require__(75);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\tvar CLICK_DELAY = 300;\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes AlldayCore\n\t * @mixes CutomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Allday} [alldayView] - Allday view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction AlldayCreation(dragHandler, alldayView, baseController) {\n\t /**\n\t * Drag handler instance.\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * allday view instance.\n\t * @type {Allday}\n\t */\n\t this.alldayView = alldayView;\n\t\n\t /**\n\t * Base controller instance.\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleDataFunc = null;\n\t\n\t /**\n\t * @type {AlldayCreationGuide}\n\t */\n\t this.guide = new AlldayCreationGuide(this);\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._requestOnClick = false;\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t dragHandler.on('click', this._onClick, this);\n\t domevent.on(alldayView.container, 'dblclick', this._onDblClick, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayCreation.prototype.destroy = function() {\n\t this.guide.destroy();\n\t this.dragHandler.off(this);\n\t\n\t if (this.alldayView && this.alldayView.container) {\n\t domevent.off(this.alldayView.container, 'dblclick', this._onDblClick, this);\n\t }\n\t\n\t this.dragHandler = this.alldayView = this.baseController = this.getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Check dragstart target is expected conditions for this handler.\n\t * @param {HTMLElement} target - dragstart event handler's target element.\n\t * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n\t */\n\tAlldayCreation.prototype.checkExpectedCondition = function(target) {\n\t var cssClass = domutil.getClass(target).trim();\n\t var isAllDay = domutil.closest(target, config.classname('.allday-container'));\n\t var excludeTarget = true;\n\t var matches, schedulesElement;\n\t\n\t if (!isAllDay) {\n\t return false;\n\t }\n\t\n\t if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n\t || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n\t ) {\n\t return false;\n\t }\n\t\n\t if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n\t return false;\n\t }\n\t\n\t schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n\t if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n\t return false;\n\t }\n\t\n\t target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n\t cssClass = domutil.getClass(target);\n\t matches = cssClass.match(config.allday.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.alldayView.children.items, matches[1]);\n\t};\n\t\n\t/**\n\t * Request schedule model creation to controller by custom schedules.\n\t * @fires {AlldayCreation#beforeCreateSchedule}\n\t * @param {object} scheduleData - schedule data from AlldayCreation module.\n\t */\n\tAlldayCreation.prototype._createSchedule = function(scheduleData) {\n\t var dateRange = scheduleData.range,\n\t startXIndex = scheduleData.dragStartXIndex,\n\t xIndex = scheduleData.xIndex,\n\t start, end;\n\t\n\t // when inverse start, end then change it.\n\t if (xIndex < startXIndex) {\n\t startXIndex = xIndex + startXIndex;\n\t xIndex = startXIndex - xIndex;\n\t startXIndex = startXIndex - xIndex;\n\t }\n\t\n\t start = new TZDate(dateRange[startXIndex].getTime());\n\t end = datetime.end(dateRange[xIndex]);\n\t\n\t /**\n\t * @event {AlldayCreation#beforeCreateSchedule}\n\t * @type {object}\n\t * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n\t * @property {Date} start - select start time\n\t * @property {Date} end - select end time\n\t * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n\t * @property {string} triggerEventName - event name\n\t */\n\t this.fire('beforeCreateSchedule', {\n\t isAllDay: true,\n\t start: start,\n\t end: end,\n\t guide: this.guide,\n\t triggerEventName: scheduleData.triggerEvent\n\t });\n\t};\n\t\n\t/**\n\t * DragStart event handler method.\n\t * @emits AlldayCreation#alldayCreationDragstart\n\t * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n\t */\n\tAlldayCreation.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t result = this.checkExpectedCondition(target),\n\t getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!result) {\n\t return;\n\t }\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n\t this.getScheduleDataFunc = getScheduleDataFunc;\n\t\n\t scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\t\n\t /**\n\t * @event AlldayCreation#alldayCreationDragstart\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire('alldayCreationDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * Drag event handler method.\n\t * @emits AlldayCreation#alldayCreationDrag\n\t * @param {object} dragEventData - Drag#drag event handler scheduledata.\n\t */\n\tAlldayCreation.prototype._onDrag = function(dragEventData) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\t\n\t /**\n\t * @event AlldayCreation#alldayCreationDrag\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire('alldayCreationDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * DragEnd event hander method.\n\t * @emits AlldayCreation#alldayCreationDragend\n\t * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t */\n\tAlldayCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc;\n\t var scheduleData;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\t\n\t this._createSchedule(scheduleData);\n\t\n\t /**\n\t * @event AlldayCreation#alldayCreationDragend\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire(overrideEventName || 'alldayCreationDragend', scheduleData);\n\t\n\t this.getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Click event handler method.\n\t * @emits AlldayCreation#alldayCreationClick\n\t * @param {object} clickEventData - Drag#Click event handler data.\n\t */\n\tAlldayCreation.prototype._onClick = function(clickEventData) {\n\t var self = this;\n\t var getScheduleDataFunc, scheduleData;\n\t\n\t if (!this.checkExpectedCondition(clickEventData.target)) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData.originEvent);\n\t scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\t\n\t this._requestOnClick = true;\n\t setTimeout(function() {\n\t if (self._requestOnClick) {\n\t self.fire('alldayCreationClick', scheduleData);\n\t self._createSchedule(scheduleData);\n\t }\n\t self._requestOnClick = false;\n\t }, CLICK_DELAY);\n\t};\n\t\n\t/**\n\t * Dblclick event handler method.\n\t * @emits AlldayCreation#alldayCreationClick\n\t * @param {object} clickEventData - Drag#Click event handler data.\n\t */\n\tAlldayCreation.prototype._onDblClick = function(clickEventData) {\n\t var getScheduleDataFunc, scheduleData;\n\t\n\t if (!this.checkExpectedCondition(clickEventData.target)) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData);\n\t scheduleData = getScheduleDataFunc(clickEventData);\n\t\n\t this.fire('alldayCreationClick', scheduleData);\n\t\n\t this._createSchedule(scheduleData);\n\t\n\t this._requestOnClick = false;\n\t};\n\t\n\tcommon.mixin(alldayCore, AlldayCreation);\n\tutil.CustomEvents.mixin(AlldayCreation);\n\t\n\tmodule.exports = AlldayCreation;\n\n\n/***/ },\n/* 75 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Guide element for Allday.Creation\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\t\n\t/**\n\t * Class for Allday.Creation dragging effect.\n\t * @constructor\n\t * @param {AlldayCreation} alldayCreation - instance of AlldayCreation.\n\t */\n\tfunction AlldayCreationGuide(alldayCreation) {\n\t /**\n\t * @type {AlldayCreation}\n\t */\n\t this.alldayCreation = alldayCreation;\n\t\n\t /**\n\t * @type {HTMLDIVElement}\n\t */\n\t this.scheduleContainer = null;\n\t\n\t /**\n\t * @type {HTMLDIVElement}\n\t */\n\t this.guideElement = document.createElement('div');\n\t\n\t this.initializeGuideElement();\n\t\n\t alldayCreation.on({\n\t alldayCreationDragstart: this._createGuideElement,\n\t alldayCreationDrag: this._onDrag,\n\t alldayCreationClick: this._createGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayCreationGuide.prototype.destroy = function() {\n\t this.clearGuideElement();\n\t this.alldayCreation.off(this);\n\t this.alldayCreation = this.scheduleContainer = this.guideElement = null;\n\t};\n\t\n\t/**\n\t * initialize guide element's default style.\n\t */\n\tAlldayCreationGuide.prototype.initializeGuideElement = function() {\n\t domutil.addClass(this.guideElement, config.classname('allday-guide-creation-block'));\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @param {object} scheduleData - schedule data from Allday.Creation handler.\n\t */\n\tAlldayCreationGuide.prototype._onDrag = function(scheduleData) {\n\t this._refreshGuideElement(scheduleData, true);\n\t};\n\t\n\t/**\n\t * Get element width based on narrowWeekend\n\t * @param {number} dragStartIndex - grid start index\n\t * @param {number} dragEndIndex - grid end index\n\t * @param {Array} grids - dates information\n\t * @returns {number} element width\n\t */\n\tAlldayCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n\t var width = 0;\n\t var i = dragStartIndex;\n\t for (; i <= dragEndIndex; i += 1) {\n\t width += grids[i] ? grids[i].width : 0;\n\t }\n\t\n\t return width;\n\t};\n\t\n\t/**\n\t * Refresh guide element.\n\t * @param {object} scheduleData - schedule data from Allday.Creation handler.\n\t * @param {boolean} defer - If set to true, set style in the next frame\n\t */\n\tAlldayCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n\t var guideElement = this.guideElement,\n\t data = scheduleData,\n\t dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n\t dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n\t leftPercent,\n\t widthPercent;\n\t\n\t leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n\t widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\t\n\t /** eslint-disable require-jsdoc */\n\t function setStyle() {\n\t guideElement.style.display = 'block';\n\t guideElement.style.left = leftPercent + '%';\n\t guideElement.style.width = widthPercent + '%';\n\t }\n\t\n\t if (defer) {\n\t reqAnimFrame.requestAnimFrame(setStyle);\n\t } else {\n\t setStyle();\n\t }\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tAlldayCreationGuide.prototype.clearGuideElement = function() {\n\t var guideElement = this.guideElement;\n\t\n\t domutil.remove(guideElement);\n\t\n\t guideElement.style.display = 'none';\n\t guideElement.style.left = '';\n\t guideElement.style.width = '';\n\t};\n\t\n\t/**\n\t * Create guide element\n\t * @param {object} dragStartEventData - schedule data object of Allday.Creation.\n\t */\n\tAlldayCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n\t var alldayCreation = this.alldayCreation,\n\t alldayView = alldayCreation.alldayView,\n\t alldayContainerElement = alldayView.container,\n\t scheduleContainer = domutil.find(config.classname('.weekday-grid'), alldayContainerElement);\n\t\n\t scheduleContainer.appendChild(this.guideElement);\n\t this._refreshGuideElement(dragStartEventData);\n\t};\n\t\n\t/**\n\t * Drag event handler.\n\t * @param {object} dragEventData - event data object of Allday.Creation.\n\t */\n\tAlldayCreationGuide.prototype._onDrag = function(dragEventData) {\n\t this._refreshGuideElement(dragEventData);\n\t};\n\t\n\tmodule.exports = AlldayCreationGuide;\n\n\n/***/ },\n/* 76 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Effect module for Allday.Move\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * Class for Allday.Move dragging effect.\n\t * @constructor\n\t * @param {AlldayMove} alldayMove - instance of AlldayMove.\n\t */\n\tfunction AlldayMoveGuide(alldayMove) {\n\t /**\n\t * @type {AlldayMove}\n\t */\n\t this.alldayMove = alldayMove;\n\t\n\t /**\n\t * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n\t * @type {HTMLDIVElement}\n\t */\n\t this.scheduleContainer = null;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._dragStartXIndex = null;\n\t\n\t /**\n\t * @type {HTMLDIVElement}\n\t */\n\t this.guideElement = null;\n\t\n\t /**\n\t * @type {HTMLElement[]}\n\t */\n\t this.elements = null;\n\t\n\t alldayMove.on({\n\t 'alldayMoveDragstart': this._onDragStart,\n\t 'alldayMoveDrag': this._onDrag,\n\t 'alldayMoveDragend': this._clearGuideElement,\n\t 'alldayMoveClick': this._clearGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayMoveGuide.prototype.destroy = function() {\n\t this._clearGuideElement();\n\t this.alldayMove.off(this);\n\t this.alldayMove = this.scheduleContainer = this._dragStartXIndex =\n\t this.elements = this.guideElement = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tAlldayMoveGuide.prototype._clearGuideElement = function() {\n\t this._showOriginScheduleBlocks();\n\t\n\t domutil.remove(this.guideElement);\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('dragging'));\n\t }\n\t\n\t this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n\t};\n\t\n\t/**\n\t * Dim element blocks\n\t * @param {number} modelID - Schedule model instance ID\n\t */\n\tAlldayMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n\t var className = config.classname('weekday-schedule-block-dragging-dim');\n\t var scheduleBlocks = domutil.find(\n\t config.classname('.weekday-schedule-block'),\n\t this.alldayMove.alldayView.container,\n\t true\n\t );\n\t\n\t this.elements = util.filter(scheduleBlocks, function(schedule) {\n\t return domutil.getData(schedule, 'id') === modelID;\n\t });\n\t\n\t util.forEach(this.elements, function(el) {\n\t domutil.addClass(el, className);\n\t });\n\t};\n\t\n\t/**\n\t * Show element blocks\n\t */\n\tAlldayMoveGuide.prototype._showOriginScheduleBlocks = function() {\n\t var className = config.classname('weekday-schedule-block-dragging-dim');\n\t\n\t util.forEach(this.elements, function(el) {\n\t domutil.removeClass(el, className);\n\t });\n\t};\n\t\n\t/**\n\t * @param {Schedule} model - model\n\t * @param {HTMLElement} parent - parent element\n\t * Highlight element blocks\n\t */\n\tAlldayMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n\t var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\t\n\t util.forEach(elements, function(el) {\n\t el.style.margin = '0';\n\t\n\t if (!model.isFocused) {\n\t el.style.backgroundColor = el.style.color;\n\t el.style.borderLeftColor = el.style.color;\n\t el.style.color = '#ffffff';\n\t }\n\t });\n\t};\n\t\n\t/**\n\t * Refresh guide element.\n\t * @param {number} leftPercent - left percent of guide element.\n\t * @param {number} widthPercent - width percent of guide element.\n\t * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n\t * @param {boolean} isExceededRight - schedule end is later then render end date?\n\t */\n\tAlldayMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n\t var guideElement = this.guideElement;\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t guideElement.style.left = leftPercent + '%';\n\t guideElement.style.width = widthPercent + '%';\n\t\n\t if (isExceededLeft) {\n\t domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n\t } else {\n\t domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n\t }\n\t\n\t if (isExceededRight) {\n\t domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n\t } else {\n\t domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n\t }\n\t });\n\t};\n\t\n\t/**\n\t * Get schedule block information from schedule data.\n\t *\n\t * For example, there is single schedule has 10 length. but render range in view is 5 then\n\t * rendered block must be cut out to render properly. in this case, this method return\n\t * how many block are cut before rendering.\n\t *\n\t * 이벤트 데이터에서 이벤트 블록 엘리먼트 렌더링에 대한 필요 정보를 추출한다.\n\t *\n\t * ex) 렌더링 된 블록의 길이는 5지만 실제 이 이벤트는 10의 길이를 가지고 있을 때\n\t * 좌 우로 몇 만큼 잘려있는지에 관한 정보를 반환함.\n\t * @param {object} dragStartEventData - schedule data from Allday.Move handler.\n\t * @returns {function} function that return schedule block information.\n\t */\n\tAlldayMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n\t var model = dragStartEventData.model,\n\t datesInRange = dragStartEventData.datesInRange,\n\t range = dragStartEventData.range,\n\t baseWidthPercent = (100 / datesInRange),\n\t originScheduleStarts = datetime.start(model.start),\n\t originScheduleEnds = datetime.end(model.end),\n\t renderStartDate = datetime.start(range[0]),\n\t renderEndDate = datetime.end(range[range.length - 1]),\n\t fromLeft = (new TZDate(originScheduleStarts.getTime() -\n\t renderStartDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0,\n\t fromRight = (new TZDate(originScheduleEnds.getTime() -\n\t renderEndDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0;\n\t\n\t return function(indexOffset) {\n\t return {\n\t baseWidthPercent: baseWidthPercent,\n\t fromLeft: fromLeft + indexOffset,\n\t fromRight: fromRight + indexOffset\n\t };\n\t };\n\t};\n\t\n\t/**\n\t * DragStart event handler.\n\t * @param {object} dragStartEventData - schedule data.\n\t */\n\tAlldayMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n\t var alldayViewContainer = this.alldayMove.alldayView.container,\n\t guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n\t scheduleContainer;\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('dragging'));\n\t }\n\t\n\t this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\t\n\t scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n\t domutil.addClass(guideElement, config.classname('allday-guide-move'));\n\t scheduleContainer.appendChild(guideElement);\n\t\n\t this._dragStartXIndex = dragStartEventData.xIndex;\n\t this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\t\n\t this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n\t};\n\t\n\t/**\n\t * Drag event handler.\n\t * @param {object} dragEventData - schedule data.\n\t */\n\tAlldayMoveGuide.prototype._onDrag = function(dragEventData) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc,\n\t dragStartXIndex = this._dragStartXIndex,\n\t datesInRange = dragEventData.datesInRange,\n\t grids = dragEventData.grids,\n\t scheduleData,\n\t isExceededLeft,\n\t isExceededRight,\n\t originLength,\n\t leftIndex,\n\t size,\n\t newLeft,\n\t newWidth;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n\t isExceededLeft = scheduleData.fromLeft < 0;\n\t isExceededRight = scheduleData.fromRight > 0;\n\t\n\t leftIndex = Math.max(0, scheduleData.fromLeft);\n\t originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n\t size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n\t size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\t\n\t newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n\t newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\t\n\t this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n\t};\n\t\n\t/**\n\t * Get schedule width based on grids\n\t * @param {number} left - left index\n\t * @param {number} size - schedule width\n\t * @param {Array} grids - dates information\n\t * @returns {number} element width\n\t */\n\tfunction getScheduleBlockWidth(left, size, grids) {\n\t var width = 0;\n\t var i = 0;\n\t var length = grids.length;\n\t for (; i < size; i += 1) {\n\t left = (left + i) % length;\n\t if (left < length) {\n\t width += grids[left] ? grids[left].width : 0;\n\t }\n\t }\n\t\n\t return width;\n\t}\n\t\n\tmodule.exports = AlldayMoveGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 77 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Resize handler module for Allday view.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar common = __webpack_require__(6);\n\tvar AlldayCore = __webpack_require__(17);\n\tvar AlldayResizeGuide = __webpack_require__(78);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes AlldayCore\n\t * @mixes CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Allday} [alldayView] - Allday view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction AlldayResize(dragHandler, alldayView, baseController) {\n\t /**\n\t * Drag handler instance.\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * allday view instance.\n\t * @type {Allday}\n\t */\n\t this.alldayView = alldayView;\n\t\n\t /**\n\t * Base controller instance.\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * Temporary variable for dragStart event data.\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t dragHandler.on({\n\t dragStart: this._onDragStart\n\t }, this);\n\t\n\t /**\n\t * @type {AlldayResizeGuide}\n\t */\n\t this.guide = new AlldayResizeGuide(this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayResize.prototype.destroy = function() {\n\t this.guide.destroy();\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.alldayView = this.baseController =\n\t this.guide = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * Check dragstart target is expected conditions for this handler.\n\t * @param {HTMLElement} target - dragstart event handler's target element.\n\t * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n\t */\n\tAlldayResize.prototype.checkExpectedCondition = function(target) {\n\t var cssClass = domutil.getClass(target),\n\t matches;\n\t\n\t if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n\t return false;\n\t }\n\t\n\t target = domutil.closest(target, config.classname('.weekday'));\n\t\n\t if (!target) {\n\t return false;\n\t }\n\t\n\t cssClass = domutil.getClass(target);\n\t matches = cssClass.match(config.allday.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.alldayView.children.items, matches[1]);\n\t};\n\t\n\t/**\n\t * DragStart event handler.\n\t * @emits AlldayResize#alldayResizeDragstart\n\t * @param {object} dragStartEventData - schedule data.\n\t */\n\tAlldayResize.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t result = this.checkExpectedCondition(target),\n\t controller = this.baseController,\n\t scheduleBlockElement,\n\t modelID,\n\t targetModel,\n\t getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!result) {\n\t return;\n\t }\n\t\n\t scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\t modelID = domutil.getData(scheduleBlockElement, 'id');\n\t targetModel = controller.schedules.items[modelID];\n\t\n\t if (!targetModel) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n\t this.getScheduleDataFunc = getScheduleDataFunc;\n\t scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\t\n\t util.extend(scheduleData, {\n\t scheduleBlockElement: scheduleBlockElement,\n\t model: targetModel\n\t });\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event AlldayResize#alldayResizeDragstart\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t * @property {Schedule} model - data object of model isntance.\n\t * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n\t */\n\t this.fire('alldayResizeDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * Drag event handler method.\n\t * @emits AlldayResize#alldayResizeDrag\n\t * @param {object} dragEventData - Drag#drag event handler scheduledata.\n\t */\n\tAlldayResize.prototype._onDrag = function(dragEventData) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t /**\n\t * @event AlldayResize#alldayResizeDrag\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire('alldayResizeDrag', getScheduleDataFunc(dragEventData.originEvent));\n\t};\n\t\n\t/**\n\t * Request update schedule instance to base controller.\n\t * @fires AlldayResize#beforeUpdateSchedule\n\t * @param {object} scheduleData - schedule data from AlldayResize handler.\n\t */\n\tAlldayResize.prototype._updateSchedule = function(scheduleData) {\n\t var schedule = scheduleData.targetModel,\n\t dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n\t newEnds = new TZDate(schedule.end.getTime());\n\t\n\t newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n\t newEnds = new TZDate(Math.max(datetime.end(schedule.start).getTime(), newEnds.getTime()));\n\t\n\t /**\n\t * @event AlldayResize#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {date} start - start time to update\n\t * @property {date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: schedule.getStarts(),\n\t end: newEnds\n\t });\n\t};\n\t\n\t/**\n\t * DragEnd event hander method.\n\t * @emits AlldayResize#alldayResizeDragend\n\t * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {?boolean} skipUpdate - true then skip update schedule model.\n\t */\n\tAlldayResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n\t var getScheduleDataFunc = this.getScheduleDataFunc,\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\t util.extend(scheduleData, {\n\t targetModel: dragStart.model\n\t });\n\t\n\t if (!skipUpdate) {\n\t this._updateSchedule(scheduleData);\n\t }\n\t\n\t /**\n\t * @event AlldayResize#alldayResizeDragend\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this.fire(overrideEventName || 'alldayResizeDragend', scheduleData);\n\t\n\t this.getScheduleDataFunc = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * Click event handler method.\n\t * @emits AlldayResize#alldayResizeClick\n\t * @param {object} clickEventData - Drag#Click event handler data.\n\t */\n\tAlldayResize.prototype._onClick = function(clickEventData) {\n\t /**\n\t * @event AlldayResize#alldayResizeClick\n\t * @type {object}\n\t * @property {AlldayView} relatedView - allday view instance.\n\t * @property {number} datesInRange - date count of this view.\n\t * @property {number} dragStartXIndex - index number of dragstart grid index.\n\t * @property {number} xIndex - index number of mouse positions.\n\t */\n\t this._onDragEnd(clickEventData, 'alldayResizeClick', true);\n\t};\n\t\n\tcommon.mixin(AlldayCore, AlldayResize);\n\tutil.CustomEvents.mixin(AlldayResize);\n\t\n\tmodule.exports = AlldayResize;\n\t\n\n\n/***/ },\n/* 78 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Resize Guide module.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar datetime = __webpack_require__(4);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @param {AlldayResize} alldayResize - instance of AlldayResize\n\t */\n\tfunction AlldayResizeGuide(alldayResize) {\n\t /**\n\t * @type {AlldayResize}\n\t */\n\t this.alldayResize = alldayResize;\n\t\n\t /**\n\t * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n\t * @type {HTMLDIVElement}\n\t */\n\t this.scheduleContainer = null;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleDataFunc = null;\n\t\n\t /**\n\t * @type {HTMLDIVElement}\n\t */\n\t this.guideElement = null;\n\t\n\t alldayResize.on({\n\t 'alldayResizeDragstart': this._onDragStart,\n\t 'alldayResizeDrag': this._onDrag,\n\t 'alldayResizeDragend': this._clearGuideElement,\n\t 'alldayResizeClick': this._clearGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tAlldayResizeGuide.prototype.destroy = function() {\n\t this._clearGuideElement();\n\t this.alldayResize.off(this);\n\t this.alldayResize = this.scheduleContainer = this.getScheduleDataFunc =\n\t this.guideElement = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tAlldayResizeGuide.prototype._clearGuideElement = function() {\n\t domutil.remove(this.guideElement);\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('resizing-x'));\n\t }\n\t\n\t this.getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Refresh guide element\n\t * @param {number} newWidth - new width percentage value to resize guide element.\n\t */\n\tAlldayResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n\t var guideElement = this.guideElement;\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t guideElement.style.width = newWidth + '%';\n\t });\n\t};\n\t\n\t/**\n\t * Return function that calculate guide element's new width percentage value.\n\t * @param {object} dragStartEventData - dragstart schedule data.\n\t * @returns {function} return function that calculate guide element new width percentage.\n\t */\n\tAlldayResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n\t var model = dragStartEventData.model,\n\t viewOptions = this.alldayResize.alldayView.options,\n\t fromLeft = (new TZDate(\n\t model.start.getTime() - datetime.parse(viewOptions.renderStartDate)\n\t )) / datetime.MILLISECONDS_PER_DAY | 0,\n\t grids = dragStartEventData.grids;\n\t\n\t return function(xIndex) {\n\t var width = 0;\n\t var i = 0;\n\t var length = grids.length;\n\t width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\t\n\t for (; i < length; i += 1) {\n\t if (i > fromLeft && i <= xIndex) {\n\t width += grids[i] ? grids[i].width : 0;\n\t }\n\t }\n\t\n\t return width;\n\t };\n\t};\n\t\n\t/**\n\t * DragStart event handler.\n\t * @param {object} dragStartEventData - schedule data.\n\t */\n\tAlldayResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n\t var alldayViewContainer = this.alldayResize.alldayView.container,\n\t guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n\t scheduleContainer;\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('resizing-x'));\n\t }\n\t\n\t scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n\t domutil.addClass(guideElement, config.classname('allday-guide-move'));\n\t scheduleContainer.appendChild(guideElement);\n\t\n\t this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n\t};\n\t\n\t/**\n\t * Drag event handler.\n\t * @param {object} dragEventData - schedule data.\n\t */\n\tAlldayResizeGuide.prototype._onDrag = function(dragEventData) {\n\t var func = this.getScheduleDataFunc;\n\t\n\t if (!func) {\n\t return;\n\t }\n\t\n\t this.refreshGuideElement(func(dragEventData.xIndex));\n\t};\n\t\n\tmodule.exports = AlldayResizeGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 79 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview 마일스톤 항목 클릭 이벤트 핸들러 모듈\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\t\n\t/**\n\t * 마일스톤 클릭 이벤트 핸들러 모듈\n\t * @constructor\n\t * @implelements {Handler}\n\t * @mixes util.CustomEvents\n\t * @param {Drag} dragHandler - dragHandler instance\n\t * @param {Milestone} milestoneView - milstone view instance\n\t * @param {Base} baseController - baseController instance\n\t */\n\tfunction MilestoneClick(dragHandler, milestoneView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Milestone}\n\t */\n\t this.milestoneView = milestoneView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy\n\t */\n\tMilestoneClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.milestoneView = this.baseController = null;\n\t};\n\t\n\t/**\n\t * @param {HTMLElement} target - check reponsibility to this handler module supplied element\n\t * @returns {boolean|string} return false when handler has no responsibility for supplied element.\n\t * otherwise, return schedule model id that related with target element.\n\t */\n\tMilestoneClick.prototype.checkExpectedCondition = function(target) {\n\t target = domutil.closest(target, config.classname('.milestone-item'));\n\t\n\t if (!target) {\n\t return false;\n\t }\n\t\n\t return domutil.getData(target, 'id');\n\t};\n\t\n\t/**\n\t * @emits MilestoneClick#clickSchedule\n\t * @param {object} clickEvent - click event object\n\t */\n\tMilestoneClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t modelID = this.checkExpectedCondition(clickEvent.target);\n\t\n\t if (!modelID) {\n\t return;\n\t }\n\t\n\t this.baseController.schedules.doWhenHas(modelID, function(schedule) {\n\t /**\n\t * @events MilestoneClick#clickEvent\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent object\n\t */\n\t self.fire('clickSchedule', {\n\t schedule: schedule,\n\t event: clickEvent.originEvent\n\t });\n\t });\n\t};\n\t\n\tutil.CustomEvents.mixin(MilestoneClick);\n\t\n\tmodule.exports = MilestoneClick;\n\t\n\n\n/***/ },\n/* 80 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Click handler for month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t datetime = __webpack_require__(4),\n\t domutil = __webpack_require__(2);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {Month} [monthView] - Month view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction MonthClick(dragHandler, monthView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.monthView = monthView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.monthView = this.baseController = this.dragHandler = null;\n\t};\n\t\n\t/**\n\t * @fires MonthClick#clickMore\n\t * @param {object} clickEvent - click event object\n\t */\n\tMonthClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t moreElement,\n\t scheduleCollection = this.baseController.schedules,\n\t blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n\t || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\t\n\t moreElement = domutil.closest(\n\t clickEvent.target,\n\t config.classname('.weekday-exceed-in-month')\n\t );\n\t\n\t if (moreElement) {\n\t self.fire('clickMore', {\n\t date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n\t target: moreElement,\n\t ymd: domutil.getData(moreElement, 'ymd')\n\t });\n\t }\n\t\n\t if (blockElement) {\n\t scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n\t /**\n\t * @events AlldayClick#clickSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent object\n\t */\n\t self.fire('clickSchedule', {\n\t schedule: schedule,\n\t event: clickEvent.originEvent\n\t });\n\t });\n\t }\n\t};\n\t\n\tutil.CustomEvents.mixin(MonthClick);\n\t\n\tmodule.exports = MonthClick;\n\t\n\n\n/***/ },\n/* 81 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Creation handler for month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar array = __webpack_require__(14);\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\tvar getMousePosDate = __webpack_require__(18);\n\tvar Guide = __webpack_require__(82);\n\tvar TZDate = __webpack_require__(5).Date;\n\t\n\tvar CLICK_DELAY = 300;\n\t\n\t/**\n\t * @constructor\n\t * @param {Drag} dragHandler - Drag handler instance.\n\t * @param {Month} monthView - Month view instance.\n\t * @param {Base} baseController - Base controller instance.\n\t */\n\tfunction MonthCreation(dragHandler, monthView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.monthView = monthView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleData = null;\n\t\n\t /**\n\t * Cache for dragging session\n\t * @type {object}\n\t */\n\t this._cache = null;\n\t\n\t /**\n\t * @type {MonthCreationGuide}\n\t */\n\t this.guide = new Guide(this);\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._requestOnClick = false;\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t dragHandler.on('click', this._onClick, this);\n\t domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthCreation.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.guide.destroy();\n\t\n\t if (this.monthView && this.monthView.container) {\n\t domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n\t }\n\t\n\t this.dragHandler = this.monthView = this.baseController =\n\t this.getScheduleData = this._cache = this.guide = null;\n\t};\n\t\n\t/**\n\t * Fire before create schedule\n\t * @fires {MonthCreation#beforeCreateSchedule}\n\t * @param {object} eventData - cache data from single dragging session\n\t */\n\tMonthCreation.prototype._createSchedule = function(eventData) {\n\t /**\n\t * @event {MonthCreation#beforeCreateSchedule}\n\t * @type {object}\n\t * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n\t * @property {Date} start - select start time\n\t * @property {Date} end - select end time\n\t * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n\t * @property {string} triggerEventName - event name\n\t */\n\t this.fire('beforeCreateSchedule', {\n\t isAllDay: eventData.isAllDay,\n\t start: eventData.start,\n\t end: eventData.end,\n\t guide: this.guide.guide,\n\t triggerEventName: eventData.triggerEvent\n\t });\n\t};\n\t\n\t/**\n\t * DragStart event handler\n\t * @fires {MonthCreation#monthCreationDragstart}\n\t * @param {object} dragStartEvent - dragStart event data\n\t */\n\tMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n\t var eventData;\n\t\n\t if (!isElementWeekdayGrid(dragStartEvent.target)) {\n\t return;\n\t }\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t this.getScheduleData = getMousePosDate(this.monthView);\n\t\n\t eventData = this.getScheduleData(dragStartEvent.originEvent);\n\t\n\t this._cache = {\n\t start: new TZDate(Number(eventData.date))\n\t };\n\t\n\t /**\n\t * @event {MonthCreation#monthCreationDragstart}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthCreationDragstart', eventData);\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @fires {MonthCreation#monthCreationDrag}\n\t * @param {object} dragEvent - drag event data\n\t */\n\tMonthCreation.prototype._onDrag = function(dragEvent) {\n\t var eventData;\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t eventData = this.getScheduleData(dragEvent.originEvent);\n\t\n\t if (!eventData) {\n\t return;\n\t }\n\t\n\t /**\n\t * @event {MonthCreation#monthCreationDrag}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthCreationDrag', eventData);\n\t};\n\t\n\t/**\n\t * DragEnd event handler\n\t * @fires {MonthCreation#monthCreationDragend}\n\t * @param {object} dragEndEvent - drag end event data\n\t */\n\tMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n\t var cache = this._cache;\n\t var eventData;\n\t var times;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t eventData = this.getScheduleData(dragEndEvent.originEvent);\n\t\n\t if (eventData) {\n\t cache.end = new TZDate(Number(eventData.date));\n\t cache.isAllDay = true;\n\t\n\t times = [\n\t Number(cache.start),\n\t Number(cache.end)\n\t ].sort(array.compare.num.asc);\n\t\n\t cache.start = new TZDate(times[0]);\n\t cache.end = datetime.end(new TZDate(times[1]));\n\t\n\t this._createSchedule(cache);\n\t }\n\t\n\t /**\n\t * @event {MonthCreation#monthCreationDragend}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthCreationDragend', eventData);\n\t\n\t this.getScheduleData = this._cache = null;\n\t};\n\t\n\t/**\n\t * Dblclick event handler\n\t * @fires {MonthCreation#monthCreationDragstart}\n\t * @param {MouseEvent} e - Native MouseEvent\n\t */\n\tMonthCreation.prototype._onDblClick = function(e) {\n\t var eventData, range;\n\t\n\t if (!isElementWeekdayGrid(e.target)) {\n\t return;\n\t }\n\t\n\t eventData = getMousePosDate(this.monthView)(e);\n\t\n\t this.fire('monthCreationClick', eventData);\n\t\n\t range = this._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\t\n\t this._createSchedule({\n\t start: range.start,\n\t end: range.end,\n\t isAllDay: false,\n\t triggerEvent: eventData.triggerEvent\n\t });\n\t\n\t this._requestOnClick = false;\n\t};\n\t\n\t/**\n\t * Click event handler\n\t * @fires {MonthCreation#monthCreationDragstart}\n\t * @param {MouseEvent} e - Native MouseEvent\n\t */\n\tMonthCreation.prototype._onClick = function(e) {\n\t var self = this;\n\t var eventData, range;\n\t\n\t if (!isElementWeekdayGrid(e.target)) {\n\t return;\n\t }\n\t\n\t eventData = getMousePosDate(this.monthView)(e.originEvent);\n\t\n\t this._requestOnClick = true;\n\t setTimeout(function() {\n\t if (self._requestOnClick) {\n\t self.fire('monthCreationClick', eventData);\n\t\n\t range = self._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\t\n\t self._createSchedule({\n\t start: range.start,\n\t end: range.end,\n\t isAllDay: false,\n\t triggerEvent: eventData.triggerEvent\n\t });\n\t }\n\t self._requestOnClick = false;\n\t }, CLICK_DELAY);\n\t};\n\t\n\t/**\n\t * Adjust time to our o'clock\n\t * @param {TZDate} start - start time\n\t * @param {TZDate} end - end time\n\t * @returns {Object} start and end\n\t */\n\tMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n\t var now = new TZDate();\n\t var hours = now.getHours();\n\t var minutes = now.getMinutes();\n\t\n\t // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n\t if (minutes <= 30) {\n\t minutes = 0;\n\t } else {\n\t minutes = 30;\n\t }\n\t start.setHours(hours, minutes, 0, 0);\n\t end.setHours(hours + 1, minutes, 0, 0);\n\t\n\t return {\n\t start: start,\n\t end: end\n\t };\n\t};\n\t\n\t/**\n\t * Returns whether the given element is Weekday-Schedule.\n\t * @param {HTMLElement} el - target element\n\t * @returns {boolean}\n\t */\n\tfunction isElementWeekdayGrid(el) {\n\t return domutil.closest(el, config.classname('.weekday-grid'))\n\t && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n\t}\n\t\n\tutil.CustomEvents.mixin(MonthCreation);\n\t\n\tmodule.exports = MonthCreation;\n\n\n/***/ },\n/* 82 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Creation guide module for month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar MonthGuide = __webpack_require__(27);\n\t\n\t/**\n\t * @constructor\n\t * @param {MonthCreation} monthCreation - instance of MonthCreation\n\t */\n\tfunction MonthCreationGuide(monthCreation) {\n\t /**\n\t * @type {MonthCreation}\n\t */\n\t this.monthCreation = monthCreation;\n\t\n\t /**\n\t * @type {MonthGuide}\n\t */\n\t this.guide = null;\n\t\n\t monthCreation.on({\n\t monthCreationDragstart: this._createGuideElement,\n\t monthCreationDrag: this._onDrag,\n\t monthCreationDragend: this._onDragEnd,\n\t monthCreationClick: this._createGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthCreationGuide.prototype.destroy = function() {\n\t this.monthCreation.off(this);\n\t\n\t if (this.guide) {\n\t this.guide.destroy();\n\t }\n\t\n\t this.guide = this.monthCreation = null;\n\t};\n\t\n\t/**\n\t * Drag start event handler\n\t * @param {object} dragStartEvent - schedule data from MonthCreation\n\t */\n\tMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n\t var options = {\n\t isCreationMode: true,\n\t height: '100%',\n\t top: 0\n\t };\n\t\n\t this.guide = new MonthGuide(options, this.monthCreation.monthView);\n\t this.guide.start(dragStartEvent);\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @param {object} dragEvent - schedule data from MonthCreation\n\t */\n\tMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n\t this.guide.update(dragEvent.x, dragEvent.y);\n\t};\n\t\n\t/**\n\t * Drag end event handler\n\t */\n\tMonthCreationGuide.prototype._onDragEnd = function() {\n\t // Do nothing. 사용자가 직접 destroy 호출\n\t this.guide = null;\n\t};\n\t\n\tmodule.exports = MonthCreationGuide;\n\n\n/***/ },\n/* 83 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Move handler for month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t datetime = __webpack_require__(4),\n\t getMousePosData = __webpack_require__(18),\n\t MonthMoveGuide = __webpack_require__(84),\n\t TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @mixes CustomEvents\n\t * @param {Drag} dragHandler - Drag handler instance.\n\t * @param {Month} monthView - Month view instance.\n\t * @param {Base} baseController - Base controller instance.\n\t */\n\tfunction MonthMove(dragHandler, monthView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.monthView = monthView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleData = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._cache = null;\n\t\n\t /**\n\t * @type {MonthMoveGuide}\n\t */\n\t this.guide = new MonthMoveGuide(this);\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthMove.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t\n\t this.dragHandler = this.monthView = this.baseController = null;\n\t};\n\t\n\t/**\n\t * Update target schedule\n\t * @fires {MonthMove#beforeUpdateSchedule}\n\t * @param {object} scheduleCache - cache object that result of single dragging\n\t * session.\n\t */\n\tMonthMove.prototype.updateSchedule = function(scheduleCache) {\n\t var schedule = scheduleCache.model;\n\t var duration = schedule.duration().getTime();\n\t var startDateRaw = datetime.raw(schedule.start);\n\t var dragEndTime = Number(scheduleCache.end);\n\t var newStartDate = new TZDate(dragEndTime);\n\t\n\t newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\t\n\t /**\n\t * @event MonthMove#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: newStartDate,\n\t end: new TZDate(newStartDate.getTime() + duration)\n\t });\n\t};\n\t\n\t/**\n\t * Get schedule block to clone for month guide effect\n\t * @param {HTMLElement} target - target element that related with drag schedule\n\t * @returns {HTMLElement} element to create guide effect\n\t */\n\tMonthMove.prototype.getMonthScheduleBlock = function(target) {\n\t var blockSelector = config.classname('.weekday-schedule-block');\n\t\n\t return domutil.closest(target, blockSelector);\n\t};\n\t\n\t/**\n\t * Get schedule block from more layer\n\t * @param {HTMLElement} target - element to check\n\t * @returns {HTMLElement} schedule element\n\t */\n\tMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n\t var className = config.classname('.month-more-schedule');\n\t\n\t return domutil.closest(target, className);\n\t};\n\t\n\t/**\n\t * Check handler has permission to handle fired schedule\n\t * @fires {MonthMove#monthMoveStart_from_morelayer}\n\t * @param {HTMLElement} target - target element of fired schedule\n\t * @returns {(string|null)} model instance ID related with schedule. if handle\n\t * has not permission to handle the schedule then return null.\n\t */\n\tMonthMove.prototype.hasPermissionToHandle = function(target) {\n\t var modelID = null;\n\t var blockElement;\n\t\n\t if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n\t return null;\n\t }\n\t\n\t blockElement = this.getMonthScheduleBlock(target);\n\t\n\t if (blockElement) {\n\t modelID = domutil.getData(blockElement, 'id');\n\t } else {\n\t blockElement = this.getMoreLayerScheduleBlock(target);\n\t\n\t if (blockElement) {\n\t modelID = domutil.getData(blockElement, 'id');\n\t /**\n\t * Fire for notificate that the drag schedule start at more layer view.\n\t * @event {MonthMove#monthMoveStart_from_morelayer}\n\t */\n\t this.fire('monthMoveStart_from_morelayer');\n\t }\n\t }\n\t\n\t return modelID;\n\t};\n\t\n\t/**\n\t * Event handler for Drag#dragStart\n\t * @fires {MonthMove#monthMoveDragstart}\n\t * @param {object} dragStartEvent - drag start schedule data\n\t */\n\tMonthMove.prototype._onDragStart = function(dragStartEvent) {\n\t var target = dragStartEvent.target,\n\t modelID = this.hasPermissionToHandle(target),\n\t model,\n\t scheduleData;\n\t\n\t if (!modelID) {\n\t return;\n\t }\n\t\n\t model = this.baseController.schedules.items[modelID];\n\t\n\t if (model.isReadOnly) {\n\t return;\n\t }\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t this.getScheduleData = getMousePosData(this.monthView);\n\t\n\t scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n\t scheduleData.originEvent = dragStartEvent.originEvent;\n\t scheduleData.target = this.getMonthScheduleBlock(target);\n\t scheduleData.model = model;\n\t\n\t this._cache = {\n\t model: model,\n\t target: target,\n\t start: new TZDate(Number(scheduleData.date))\n\t };\n\t\n\t /**\n\t * @event {MonthMove#monthMoveDragstart}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t * @property {HTMLElement} target - schedule block element\n\t * @property {Schedule} model - model instance\n\t */\n\t this.fire('monthMoveDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * @fires {MonthMove#monthMoveDrag}\n\t * @param {object} dragEvent - drag event data\n\t */\n\tMonthMove.prototype._onDrag = function(dragEvent) {\n\t var scheduleData;\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = util.extend({\n\t originEvent: dragEvent.originEvent\n\t }, this.getScheduleData(dragEvent.originEvent));\n\t\n\t if (!scheduleData) {\n\t return;\n\t }\n\t\n\t /**\n\t * @event {MonthMove#monthMoveDrag}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthMoveDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * Event handler for Drag#dragEnd\n\t * @fires {MonthMove#monthMoveDragend}\n\t * @param {object} dragEndEvent - dragend event data\n\t */\n\tMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n\t var cache = this._cache;\n\t var scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\t\n\t if (scheduleData) {\n\t cache.end = new TZDate(Number(scheduleData.date));\n\t this.updateSchedule(cache);\n\t }\n\t\n\t /**\n\t * @event {MonthResize#monthMoveDragend}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthMoveDragend', scheduleData);\n\t\n\t this.getScheduleData = this._cache = null;\n\t};\n\t\n\tutil.CustomEvents.mixin(MonthMove);\n\t\n\tmodule.exports = MonthMove;\n\t\n\n\n/***/ },\n/* 84 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for modification of guide element for move in month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t domevent = __webpack_require__(9),\n\t FloatingLayer = __webpack_require__(16),\n\t tmpl = __webpack_require__(33),\n\t Schedule = __webpack_require__(20);\n\t\n\t/**\n\t * @constructor\n\t * @param {MonthMove} monthMove - month/move module instance\n\t */\n\tfunction MonthMoveGuide(monthMove) {\n\t /**\n\t * @type {MonthMove}\n\t */\n\t this.monthMove = monthMove;\n\t\n\t /**\n\t * @type {HTMLElement[]}\n\t */\n\t this.elements = null;\n\t\n\t /**\n\t * @type {FloatingLayer}\n\t */\n\t this.layer = null;\n\t\n\t monthMove.on({\n\t monthMoveDragstart: this._onDragStart,\n\t monthMoveDrag: this._onDrag,\n\t monthMoveDragend: this._onDragEnd\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthMoveGuide.prototype.destroy = function() {\n\t this.monthMove.off(this);\n\t this._clearGridBgColor();\n\t\n\t if (this.layer) {\n\t this.layer.destroy();\n\t }\n\t\n\t if (this.element) {\n\t domutil.remove(this.element);\n\t }\n\t\n\t this.monthMove = this.elements = this.layer = null;\n\t};\n\t\n\t/**\n\t * Hide element blocks for resize effect\n\t * @param {number} modelID - Schedule model instance ID\n\t */\n\tMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n\t var className = config.classname('weekday-schedule-block-dragging-dim');\n\t\n\t this.elements = domutil.find(\n\t config.classname('.weekday-schedule-block-' + modelID),\n\t this.monthMove.monthView.container,\n\t true\n\t );\n\t\n\t util.forEach(this.elements, function(el) {\n\t domutil.addClass(el, className);\n\t });\n\t};\n\t\n\t/**\n\t * Show element blocks\n\t */\n\tMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n\t var className = config.classname('weekday-schedule-block-dragging-dim');\n\t\n\t util.forEach(this.elements, function(el) {\n\t domutil.removeClass(el, className);\n\t });\n\t};\n\t\n\tMonthMoveGuide.prototype._getHighlightColorModel = function(model) {\n\t return {\n\t bgColor: model.color\n\t };\n\t};\n\t\n\t/**\n\t * Clear background color for filled grid element.\n\t */\n\tMonthMoveGuide.prototype._clearGridBgColor = function() {\n\t var selector = config.classname('.weekday-filled'),\n\t className = config.classname('weekday-filled'),\n\t beforeGridElement = domutil.find(selector,\n\t this.monthMove.monthView.container);\n\t\n\t if (beforeGridElement) {\n\t domutil.removeClass(beforeGridElement, className);\n\t }\n\t};\n\t\n\t/**\n\t * Fill background color of date grids relatied with model updates.\n\t * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n\t */\n\tMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n\t var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n\t className = config.classname('weekday-filled'),\n\t targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\t\n\t this._clearGridBgColor();\n\t\n\t if (!gridElements || !gridElements[targetIndex]) {\n\t return;\n\t }\n\t\n\t domutil.addClass(gridElements[targetIndex], className);\n\t};\n\t\n\t/**\n\t * Handler for MonthMove#dragStart\n\t * @param {object} dragStartEvent - dragStart schedule data object\n\t */\n\tMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n\t var monthView = this.monthMove.monthView,\n\t firstWeekdayView = monthView.children.single(),\n\t weekdayOptions = firstWeekdayView.options,\n\t widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n\t height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n\t container = monthView.container,\n\t mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n\t model = dragStartEvent.model,\n\t layer = new FloatingLayer(null, container);\n\t\n\t this._hideOriginScheduleBlocks(model.cid());\n\t\n\t this.layer = layer;\n\t layer.setSize(widthPercent + '%', height);\n\t layer.setPosition(mousePos[0], mousePos[1]);\n\t layer.setContent(tmpl({\n\t model: util.extend(\n\t Schedule.create(model),\n\t model,\n\t this._getHighlightColorModel(model)\n\t )\n\t }));\n\t layer.show();\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('dragging'));\n\t }\n\t};\n\t\n\t/**\n\t * Handler for MonthMove#drag\n\t * @param {object} dragEvent - drag event data object\n\t */\n\tMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n\t var container = this.monthMove.monthView.container,\n\t mousePos = domevent.getMousePosition(\n\t dragEvent.originEvent,\n\t container\n\t );\n\t\n\t this._updateGridBgColor(dragEvent);\n\t\n\t if (!this.layer) {\n\t return;\n\t }\n\t\n\t this.layer.setPosition(mousePos[0], mousePos[1]);\n\t};\n\t\n\t/**\n\t * Handler for MonthMove#dragEnd\n\t */\n\tMonthMoveGuide.prototype._onDragEnd = function() {\n\t this._showOriginScheduleBlocks();\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('dragging'));\n\t }\n\t\n\t this._clearGridBgColor();\n\t this.layer.destroy();\n\t this.layer = null;\n\t};\n\t\n\tmodule.exports = MonthMoveGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 85 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Module for resize schedule in month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3),\n\t datetime = __webpack_require__(4),\n\t domutil = __webpack_require__(2),\n\t getMousePosData = __webpack_require__(18),\n\t MonthResizeGuide = __webpack_require__(86),\n\t TZDate = __webpack_require__(5).Date;\n\t\n\t/**\n\t * @constructor\n\t * @param {Drag} dragHandler - Drag handler instance.\n\t * @param {Month} monthView - Month view instance.\n\t * @param {Base} baseController - Base controller instance.\n\t */\n\tfunction MonthResize(dragHandler, monthView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {Month}\n\t */\n\t this.monthView = monthView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this.getScheduleData = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._cache = null;\n\t\n\t /**\n\t * @type {MonthResizeGuide}\n\t */\n\t this.guide = new MonthResizeGuide(this);\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthResize.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t\n\t this.dragHandler = this.monthView = this.baseController = null;\n\t};\n\t\n\t/**\n\t * Fire event for update model\n\t * @fires {MonthResize#beforeUpdateSchedule}\n\t * @param {object} scheduleCache - cache object that result of single dragging\n\t * session.\n\t */\n\tMonthResize.prototype._updateSchedule = function(scheduleCache) {\n\t // 일정의 시작 일자를 변경할 순 없음.\n\t // 종료시간만 변경 가능.\n\t var newEnd = datetime.end(new TZDate(Number(scheduleCache.end))),\n\t schedule = scheduleCache.schedule;\n\t\n\t /**\n\t * @event MonthResize#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: new TZDate(Number(schedule.getStarts())),\n\t end: newEnd\n\t });\n\t};\n\t\n\t/**\n\t * Event handler for Drag#dragStart\n\t * @fires {MonthResize#monthResizeDragstart}\n\t * @param {object} dragStartEvent - drag start event data\n\t */\n\tMonthResize.prototype._onDragStart = function(dragStartEvent) {\n\t var target = dragStartEvent.target,\n\t modelID, schedule,\n\t scheduleData;\n\t\n\t if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n\t return;\n\t }\n\t\n\t target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\t\n\t if (!target) {\n\t return;\n\t }\n\t\n\t modelID = domutil.getData(target, 'id');\n\t schedule = this.baseController.schedules.items[modelID];\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t this.getScheduleData = getMousePosData(this.monthView);\n\t scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n\t scheduleData.target = target;\n\t scheduleData.model = schedule;\n\t\n\t this._cache = {\n\t schedule: schedule,\n\t target: target,\n\t start: new TZDate(Number(scheduleData.date))\n\t };\n\t\n\t /**\n\t * @event {MonthCreation#monthResizeDragstart}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t * @property {HTMLElement} target - schedule block element\n\t * @property {Schedule} model - model instance\n\t */\n\t this.fire('monthResizeDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * @fires {MonthResize#monthResizeDrag}\n\t * @param {object} dragEvent - drag event data\n\t */\n\tMonthResize.prototype._onDrag = function(dragEvent) {\n\t var scheduleData;\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = this.getScheduleData(dragEvent.originEvent);\n\t\n\t if (!scheduleData) {\n\t return;\n\t }\n\t\n\t /**\n\t * @event {MonthResize#monthResizeDrag}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthResizeDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * @fires {MonthResize#monthResizeDragend}\n\t * @param {object} dragEndEvent - drag end event data\n\t */\n\tMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n\t var cache = this._cache,\n\t scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t if (!this.getScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\t\n\t if (scheduleData) {\n\t cache.end = new TZDate(Number(scheduleData.date));\n\t this._updateSchedule(cache);\n\t }\n\t\n\t /**\n\t * @event {MonthResize#monthResizeDragend}\n\t * @type {object}\n\t * @property {number} x - x index\n\t * @property {number} y - y index\n\t * @property {Date} date - drag date\n\t */\n\t this.fire('monthResizeDragend', scheduleData);\n\t\n\t this.getScheduleData = this._cache = null;\n\t};\n\t\n\tutil.CustomEvents.mixin(MonthResize);\n\t\n\tmodule.exports = MonthResize;\n\t\n\n\n/***/ },\n/* 86 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for modification of guide element in schedule resize\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\t\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t MonthGuide = __webpack_require__(27);\n\t\n\t/**\n\t * @constructor\n\t * @param {MonthResize} monthResize - month/resize module instance\n\t */\n\tfunction MonthResizeGuide(monthResize) {\n\t /**\n\t * @type {MonthResize}\n\t */\n\t this.monthResize = monthResize;\n\t\n\t /**\n\t * @type {HTMLElement[]}\n\t */\n\t this.elements = null;\n\t\n\t /**\n\t * @type {MonthGuide}\n\t */\n\t this.guide = null;\n\t\n\t monthResize.on({\n\t monthResizeDragstart: this._onDragStart,\n\t monthResizeDrag: this._onDrag,\n\t monthResizeDragend: this._onDragEnd\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destructor\n\t */\n\tMonthResizeGuide.prototype.destroy = function() {\n\t this.monthResize.off(this);\n\t this.guide.destroy();\n\t\n\t this.guide = this.monthResize = null;\n\t};\n\t\n\t/**\n\t * Hide element blocks for resize effect\n\t * @param {number} modelID - Schedule model instance ID\n\t */\n\tMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n\t this.elements = domutil.find(\n\t config.classname('.weekday-schedule-block-' + modelID),\n\t this.monthResize.monthView.container,\n\t true\n\t );\n\t\n\t util.forEach(this.elements, function(el) {\n\t el.style.display = 'none';\n\t });\n\t};\n\t\n\t/**\n\t * Show element blocks\n\t */\n\tMonthResizeGuide.prototype._showScheduleBlocks = function() {\n\t util.forEach(this.elements, function(el) {\n\t el.style.display = 'block';\n\t });\n\t};\n\t\n\t/**\n\t * Drag start event handler\n\t * @param {object} dragStartEvent - schedule data from MonthResize\n\t */\n\tMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n\t this.guide = new MonthGuide({\n\t isResizeMode: true\n\t }, this.monthResize.monthView);\n\t\n\t this._hideScheduleBlocks(dragStartEvent.model.cid());\n\t\n\t this.guide.start(dragStartEvent);\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('resizing-x'));\n\t }\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @param {object} dragEvent - event data from MonthCreation\n\t */\n\tMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n\t this.guide.update(dragEvent.x, dragEvent.y);\n\t};\n\t\n\t/**\n\t * Drag end event handler\n\t */\n\tMonthResizeGuide.prototype._onDragEnd = function() {\n\t this._showScheduleBlocks();\n\t\n\t this.guide.destroy();\n\t this.elements = this.guide = null;\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('resizing-x'));\n\t }\n\t};\n\t\n\tmodule.exports = MonthResizeGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 87 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Allday event click event hander module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction TimeClick(dragHandler, timeGridView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {TimeGrid}\n\t */\n\t this.timeGridView = timeGridView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.timeGridView = this.baseController = this.dragHandler = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {string} - model id\n\t */\n\tTimeClick.prototype.checkExpectCondition = function(target) {\n\t var container,\n\t matches;\n\t\n\t container = domutil.closest(target, config.classname('.time-date'));\n\t\n\t if (!container) {\n\t return false;\n\t }\n\t\n\t matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.timeGridView.children.items, Number(matches[1]));\n\t};\n\t\n\t/**\n\t * Click event hander\n\t * @param {object} clickEvent - click event from {@link Drag}\n\t * @emits TimeClick#clickEvent\n\t */\n\tTimeClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t target = clickEvent.target,\n\t timeView = this.checkExpectCondition(target),\n\t blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n\t schedulesCollection = this.baseController.schedules;\n\t\n\t if (!timeView || !blockElement) {\n\t return;\n\t }\n\t\n\t schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n\t /**\n\t * @events TimeClick#clickSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance\n\t * @property {MouseEvent} event - MouseEvent object\n\t */\n\t self.fire('clickSchedule', {\n\t schedule: schedule,\n\t event: clickEvent.originEvent\n\t });\n\t });\n\t};\n\t\n\tutil.CustomEvents.mixin(TimeClick);\n\t\n\tmodule.exports = TimeClick;\n\t\n\n\n/***/ },\n/* 88 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Dayname click event hander module\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {DayName} [dayNameView] - DayName view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction DayNameClick(dragHandler, dayNameView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {DayName}\n\t */\n\t this.dayNameView = dayNameView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t dragHandler.on({\n\t 'click': this._onClick\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tDayNameClick.prototype.destroy = function() {\n\t this.dragHandler.off(this);\n\t this.dayNameView = this.baseController = this.dragHandler = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {string} - model id\n\t */\n\tDayNameClick.prototype.checkExpectCondition = function(target) {\n\t var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\t\n\t if (!container) {\n\t return false;\n\t }\n\t\n\t return true;\n\t};\n\t\n\t/**\n\t * Click event hander\n\t * @param {object} clickEvent - click event from {@link Drag}\n\t * @emits DayNameClick#clickDayname\n\t */\n\tDayNameClick.prototype._onClick = function(clickEvent) {\n\t var self = this,\n\t target = clickEvent.target,\n\t daynameView = this.checkExpectCondition(target),\n\t blockElement = domutil.closest(target, config.classname('.dayname'));\n\t\n\t if (!daynameView || !blockElement) {\n\t return;\n\t }\n\t\n\t /**\n\t * @events DayNameClick#clickDayname\n\t * @type {object}\n\t * @property {string} date - click date\n\t */\n\t self.fire('clickDayname', {\n\t date: domutil.getData(blockElement, 'date')\n\t });\n\t};\n\t\n\tutil.CustomEvents.mixin(DayNameClick);\n\t\n\tmodule.exports = DayNameClick;\n\t\n\n\n/***/ },\n/* 89 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Handling creation events from drag handler and time grid view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar array = __webpack_require__(14);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar domevent = __webpack_require__(9);\n\tvar TimeCreationGuide = __webpack_require__(90);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar timeCore = __webpack_require__(19);\n\t\n\tvar CLICK_DELAY = 300;\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes timeCore\n\t * @mixes CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction TimeCreation(dragHandler, timeGridView, baseController) {\n\t /**\n\t * Drag handler instance.\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * TimeGrid view instance.\n\t * @type {TimeGrid}\n\t */\n\t this.timeGridView = timeGridView;\n\t\n\t /**\n\t * Base controller instance.\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {TimeCreationGuide}\n\t */\n\t this.guide = new TimeCreationGuide(this);\n\t\n\t /**\n\t * Temporary function for single drag session's calc.\n\t * @type {function}\n\t */\n\t this._getScheduleDataFunc = null;\n\t\n\t /**\n\t * Temporary function for drag start data cache.\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._requestOnClick = false;\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t dragHandler.on('click', this._onClick, this);\n\t domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeCreation.prototype.destroy = function() {\n\t var timeGridView = this.timeGridView;\n\t\n\t this.guide.destroy();\n\t this.dragHandler.off(this);\n\t\n\t if (timeGridView && timeGridView.container) {\n\t domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n\t }\n\t\n\t this.dragHandler = this.timeGridView = this.baseController =\n\t this._getScheduleDataFunc = this._dragStart = this.guide = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n\t */\n\tTimeCreation.prototype.checkExpectedCondition = function(target) {\n\t var cssClass = domutil.getClass(target),\n\t matches;\n\t\n\t if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n\t target = target.parentNode;\n\t cssClass = domutil.getClass(target);\n\t }\n\t\n\t matches = cssClass.match(config.time.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.timeGridView.children.items, matches[1]);\n\t};\n\t\n\t/**\n\t * Drag#dragStart event handler.\n\t * @emits TimeCreation#timeCreationDragstart\n\t * @param {object} dragStartEventData - Drag#dragStart event data.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {function} [revise] - supply function for revise event data before emit.\n\t */\n\tTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n\t var target = dragStartEventData.target,\n\t result = this.checkExpectedCondition(target),\n\t getScheduleDataFunc,\n\t eventData;\n\t\n\t if (!result) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n\t eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\t\n\t if (revise) {\n\t revise(eventData);\n\t }\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t /**\n\t * @event TimeCreation#timeCreationDragstart\n\t * @type {object}\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t */\n\t this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n\t};\n\t\n\t/**\n\t * Drag#drag event handler\n\t * @emits TimeCreation#timeCreationDrag\n\t * @param {object} dragEventData - event data from Drag#drag.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {function} [revise] - supply function for revise event data before emit.\n\t */\n\tTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t eventData;\n\t\n\t if (!getScheduleDataFunc) {\n\t return;\n\t }\n\t\n\t eventData = getScheduleDataFunc(dragEventData.originEvent);\n\t\n\t if (revise) {\n\t revise(eventData);\n\t }\n\t\n\t /**\n\t * @event TimeCreation#timeCreationDrag\n\t * @type {object}\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t */\n\t this.fire(overrideEventName || 'timeCreationDrag', eventData);\n\t};\n\t\n\t/**\n\t * @fires TimeCreation#beforeCreateSchedule\n\t * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n\t * or TimeCreation#timeCreationClick\n\t */\n\tTimeCreation.prototype._createSchedule = function(eventData) {\n\t var relatedView = eventData.relatedView,\n\t createRange = eventData.createRange,\n\t nearestGridTimeY = eventData.nearestGridTimeY,\n\t baseDate,\n\t dateStart,\n\t dateEnd,\n\t start,\n\t end;\n\t\n\t if (!createRange) {\n\t createRange = [\n\t nearestGridTimeY,\n\t nearestGridTimeY + datetime.millisecondsFrom('minutes', 30)\n\t ];\n\t }\n\t\n\t baseDate = new TZDate(relatedView.getDate());\n\t dateStart = datetime.start(baseDate);\n\t dateEnd = datetime.end(baseDate);\n\t start = Math.max(dateStart.getTime(), createRange[0]);\n\t end = Math.min(dateEnd.getTime(), createRange[1]);\n\t\n\t /**\n\t * @event TimeCreation#beforeCreateSchedule\n\t * @type {object}\n\t * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n\t * @property {Date} start - select start time\n\t * @property {Date} end - select end time\n\t * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n\t * @property {string} triggerEventName - event name\n\t */\n\t this.fire('beforeCreateSchedule', {\n\t isAllDay: false,\n\t start: new TZDate(start),\n\t end: new TZDate(end),\n\t guide: this.guide,\n\t triggerEventName: eventData.triggerEvent\n\t });\n\t};\n\t\n\t/**\n\t * Drag#dragEnd event handler\n\t * @emits TimeCreation#timeCreationDragend\n\t * @param {object} dragEndEventData - event data from Drag#dragend\n\t */\n\tTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n\t var self = this,\n\t dragStart = this._dragStart;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t /**\n\t * Function for manipulate event data before firing event\n\t * @param {object} eventData - event data\n\t */\n\t function reviseFunc(eventData) {\n\t var range = [\n\t dragStart.nearestGridTimeY,\n\t eventData.nearestGridTimeY\n\t ].sort(array.compare.num.asc);\n\t range[1] += datetime.millisecondsFrom('hour', 0.5);\n\t\n\t eventData.createRange = range;\n\t\n\t self._createSchedule(eventData);\n\t }\n\t\n\t /**\n\t * @event TimeCreation#timeCreationDragend\n\t * @type {object}\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {number[]} createRange - milliseconds range between drag start and end to create.\n\t */\n\t this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\t\n\t this._dragStart = this._getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Drag#click event handler\n\t * @emits TimeCreation#timeCreationClick\n\t * @param {object} clickEventData - event data from Drag#click.\n\t */\n\tTimeCreation.prototype._onClick = function(clickEventData) {\n\t var self = this;\n\t var condResult, getScheduleDataFunc, eventData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd\n\t }, this);\n\t\n\t condResult = this.checkExpectedCondition(clickEventData.target);\n\t if (!condResult) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(condResult);\n\t eventData = getScheduleDataFunc(clickEventData.originEvent);\n\t\n\t this._requestOnClick = true;\n\t setTimeout(function() {\n\t if (self._requestOnClick) {\n\t self.fire('timeCreationClick', eventData);\n\t self._createSchedule(eventData);\n\t }\n\t self._requestOnClick = false;\n\t }, CLICK_DELAY);\n\t this._dragStart = this._getScheduleDataFunc = null;\n\t};\n\t\n\t/**\n\t * Dblclick event handler\n\t * @param {MouseEvent} e - Native MouseEvent\n\t */\n\tTimeCreation.prototype._onDblClick = function(e) {\n\t var condResult, getScheduleDataFunc, eventData;\n\t\n\t condResult = this.checkExpectedCondition(e.target);\n\t if (!condResult) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._retriveScheduleData(condResult);\n\t eventData = getScheduleDataFunc(e);\n\t\n\t this.fire('timeCreationClick', eventData);\n\t\n\t this._createSchedule(eventData);\n\t\n\t this._requestOnClick = false;\n\t};\n\t\n\ttimeCore.mixin(TimeCreation);\n\tutil.CustomEvents.mixin(TimeCreation);\n\t\n\tmodule.exports = TimeCreation;\n\n\n/***/ },\n/* 90 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for Time.Creation effect while dragging.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar common = __webpack_require__(6);\n\tvar datetime = __webpack_require__(4);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar ratio = __webpack_require__(6).ratio;\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar MIN30 = (datetime.MILLISECONDS_PER_MINUTES * 30);\n\t\n\t/**\n\t * Class for Time.Creation dragging effect.\n\t * @constructor\n\t * @param {TimeCreation} timeCreation - instance of TimeCreation.\n\t */\n\tfunction TimeCreationGuide(timeCreation) {\n\t /**\n\t * Guide element for creation effect.\n\t * @type {HTMLElement}\n\t */\n\t this.guideElement = global.document.createElement('div');\n\t\n\t /**\n\t * @type {HTMLDivElement}\n\t */\n\t this.guideTimeElement = domutil.appendHTMLElement(\n\t 'span',\n\t this.guideElement,\n\t config.classname('time-guide-creation-label')\n\t );\n\t\n\t domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\t\n\t /**\n\t * @type {TimeCreation}\n\t */\n\t this.timeCreation = timeCreation;\n\t\n\t /**\n\t * @type {array}\n\t */\n\t this._styleUnit = null;\n\t\n\t /**\n\t * @type {array}\n\t */\n\t this._styleStart = null;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._styleFunc = null;\n\t\n\t timeCreation.on({\n\t timeCreationDragstart: this._createGuideElement,\n\t timeCreationDrag: this._onDrag,\n\t timeCreationClick: this._createGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method.\n\t */\n\tTimeCreationGuide.prototype.destroy = function() {\n\t this.clearGuideElement();\n\t this.timeCreation.off(this);\n\t this.timeCreation = this._styleUnit = this._styleStart =\n\t this._styleFunc = this.guideElement = this.guideTimeElement = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tTimeCreationGuide.prototype.clearGuideElement = function() {\n\t var guideElement = this.guideElement,\n\t timeElement = this.guideTimeElement;\n\t\n\t domutil.remove(guideElement);\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t guideElement.style.display = 'none';\n\t guideElement.style.top = '';\n\t guideElement.style.height = '';\n\t timeElement.innerHTML = '';\n\t });\n\t};\n\t\n\t/**\n\t * Refresh guide element\n\t * @param {number} top - The number of guide element's style top\n\t * @param {number} height - The number of guide element's style height\n\t * @param {Date} start - start time of schedule to create\n\t * @param {Date} end - end time of schedule to create\n\t * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n\t */\n\tTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n\t var guideElement = this.guideElement;\n\t var timeElement = this.guideTimeElement;\n\t\n\t guideElement.style.top = top + 'px';\n\t guideElement.style.height = height + 'px';\n\t guideElement.style.display = 'block';\n\t\n\t timeElement.innerHTML = datetime.format(new TZDate(start), 'HH:mm') +\n\t ' - ' + datetime.format(new TZDate(end), 'HH:mm');\n\t\n\t if (bottomLabel) {\n\t domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n\t } else {\n\t domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n\t }\n\t};\n\t\n\t/**\n\t * Get unit data of calculating new style of guide element by user interaction\n\t * @param {Time} relatedView - time view instance related with schedule\n\t * @returns {array} unit data.\n\t */\n\tTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n\t var viewOpt = relatedView.options,\n\t viewHeight = relatedView.getViewBound().height,\n\t hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n\t todayStart = datetime.parse(viewOpt.ymd),\n\t todayEnd = datetime.end(todayStart);\n\t\n\t todayStart.setHours(0, 0, 0, 0);\n\t todayStart.setHours(viewOpt.hourStart);\n\t\n\t // [0] height of view\n\t // [1] hour length of view\n\t // [2] start time of view\n\t // [3] end time of view\n\t // [4] height of view for one hour\n\t return [\n\t viewHeight,\n\t hourLength,\n\t Number(todayStart),\n\t Number(todayEnd),\n\t viewHeight / hourLength\n\t ];\n\t};\n\t\n\t/**\n\t * Applying limitation to supplied data and return it.\n\t * @param {number} top - top pixel of guide element\n\t * @param {number} height - height pixel of guide element\n\t * @param {number} start - relative time value of dragstart point\n\t * @param {number} end - relative time value of dragend point\n\t * @returns {array} limited style data\n\t */\n\tTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n\t var unitData = this._styleUnit;\n\t\n\t top = common.limit(top, [0], [unitData[0]]);\n\t height = common.limit(top + height, [0], [unitData[0]]) - top;\n\t start = common.limit(start, [unitData[2]], [unitData[3]]);\n\t end = common.limit(end, [unitData[2]], [unitData[3]]);\n\t\n\t return [top, height, start, end];\n\t};\n\t\n\t/**\n\t * Get function to calculate guide element UI data from supplied units\n\t * @param {number} viewHeight - total height of view's container element\n\t * @param {number} hourLength - hour length that rendered in time view\n\t * @param {number} todayStart - time for view's start date\n\t * @returns {function} UI data calculator function\n\t */\n\tTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n\t var todayEnd = Number(datetime.end(new TZDate(Number(todayStart))));\n\t\n\t /**\n\t * Get top, time value from schedule dat\n\t * @param {object} scheduleData - schedule data object\n\t * @returns {number[]} top, time\n\t */\n\t function getStyleData(scheduleData) {\n\t var gridY = scheduleData.nearestGridY,\n\t gridTimeY = scheduleData.nearestGridTimeY,\n\t top, time;\n\t\n\t top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n\t time = common.limit(gridTimeY, [todayStart], [todayEnd]);\n\t\n\t return [top, time];\n\t }\n\t\n\t return getStyleData;\n\t};\n\t\n\t/**\n\t * DragStart event handler\n\t * @param {object} dragStartEventData - dragStart schedule data.\n\t */\n\tTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n\t var relatedView = dragStartEventData.relatedView,\n\t unitData, styleFunc, styleData, result;\n\t\n\t unitData = this._styleUnit = this._getUnitData(relatedView);\n\t styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n\t styleData = this._styleStart = styleFunc(dragStartEventData);\n\t\n\t result = this._limitStyleData(\n\t styleData[0],\n\t (unitData[4] / 2),\n\t styleData[1],\n\t (styleData[1] + MIN30)\n\t );\n\t\n\t this._refreshGuideElement.apply(this, result);\n\t\n\t relatedView.container.appendChild(this.guideElement);\n\t};\n\t\n\t/**\n\t * Drag event handler\n\t * @param {object} dragEventData - drag schedule data.\n\t */\n\tTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n\t var styleFunc = this._styleFunc,\n\t unitData = this._styleUnit,\n\t startStyle = this._styleStart,\n\t refreshGuideElement = this._refreshGuideElement.bind(this),\n\t heightOfHalfHour,\n\t endStyle,\n\t result;\n\t\n\t if (!styleFunc || !unitData || !startStyle) {\n\t return;\n\t }\n\t\n\t heightOfHalfHour = (unitData[4] / 2);\n\t endStyle = styleFunc(dragEventData);\n\t\n\t if (endStyle[0] > startStyle[0]) {\n\t result = this._limitStyleData(\n\t startStyle[0],\n\t (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n\t startStyle[1],\n\t (endStyle[1] + MIN30)\n\t );\n\t } else {\n\t result = this._limitStyleData(\n\t endStyle[0],\n\t (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n\t endStyle[1],\n\t (startStyle[1] + MIN30)\n\t );\n\t result.push(true);\n\t }\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t refreshGuideElement.apply(null, result);\n\t });\n\t};\n\t\n\tmodule.exports = TimeCreationGuide;\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 91 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Handling move schedules from drag handler and time grid view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar timeCore = __webpack_require__(19);\n\tvar TimeMoveGuide = __webpack_require__(92);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes timeCore\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction TimeMove(dragHandler, timeGridView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {TimeGrid}\n\t */\n\t this.timeGridView = timeGridView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._getScheduleDataFunc = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t /**\n\t * @type {TimeMoveGuide}\n\t */\n\t this._guide = new TimeMoveGuide(this);\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t}\n\t\n\t/**\n\t * Destroy method.\n\t */\n\tTimeMove.prototype.destroy = function() {\n\t this._guide.destroy();\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.timeGridView = this.baseController =\n\t this._getScheduleDataFunc = this._dragStart = this._guide = null;\n\t};\n\t\n\t/**\n\t * Check target element is expected condition for activate this plugins.\n\t * @param {HTMLElement} target - The element to check\n\t * @returns {boolean|object} - return object when satiate condition.\n\t */\n\tTimeMove.prototype.checkExpectCondition = function(target) {\n\t if (!domutil.closest(target, config.classname('.time-schedule'))) {\n\t return false;\n\t }\n\t\n\t return this._getTimeView(target);\n\t};\n\t\n\t/**\n\t * Get Time view container from supplied element.\n\t * @param {HTMLElement} target - element to find time view container.\n\t * @returns {object|boolean} - return time view instance when finded.\n\t */\n\tTimeMove.prototype._getTimeView = function(target) {\n\t var container = domutil.closest(target, config.classname('.time-date')),\n\t matches;\n\t\n\t if (!container) {\n\t return false;\n\t }\n\t\n\t matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.timeGridView.children.items, Number(matches[1]));\n\t};\n\t\n\t/**\n\t * @emits TimeMove#timeMoveDragstart\n\t * @param {object} dragStartEventData - Drag#dragStart schedule data.\n\t */\n\tTimeMove.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t timeView = this.checkExpectCondition(target),\n\t blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n\t getScheduleDataFunc,\n\t scheduleData,\n\t ctrl = this.baseController,\n\t targetModelID,\n\t targetModel;\n\t\n\t if (!timeView || !blockElement) {\n\t return;\n\t }\n\t\n\t targetModelID = domutil.getData(blockElement, 'id');\n\t targetModel = ctrl.schedules.items[targetModelID];\n\t\n\t if (targetModel.isReadOnly) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n\t scheduleData = this._dragStart = getScheduleDataFunc(\n\t dragStartEventData.originEvent, {\n\t targetModelID: targetModelID,\n\t model: targetModel\n\t }\n\t );\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event TimeMove#timeMoveDragstart\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t * @property {Schedule} model - model instance\n\t */\n\t this.fire('timeMoveDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * @emits TimeMove#timeMoveDrag\n\t * @param {MouseEvent} dragEventData - mousemove event object\n\t * @param {string} [overrideEventName] - name of emitting event to override.\n\t * @param {function} [revise] - supply function for revise schedule data before emit.\n\t */\n\tTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t timeView = this._getTimeView(dragEventData.target),\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t if (!timeView || !getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n\t currentView: timeView,\n\t targetModelID: dragStart.targetModelID\n\t });\n\t\n\t if (revise) {\n\t revise(scheduleData);\n\t }\n\t\n\t /**\n\t * @event TimeMove#timeMoveDrag\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {Time} currentView - time view instance related with current mouse position.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t */\n\t this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * Update model instance by dragend event results.\n\t * @fires TimeMove#beforeUpdateSchedule\n\t * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n\t */\n\tTimeMove.prototype._updateSchedule = function(scheduleData) {\n\t var ctrl = this.baseController,\n\t modelID = scheduleData.targetModelID,\n\t range = scheduleData.nearestRange,\n\t timeDiff = range[1] - range[0],\n\t dateDiff = 0,\n\t schedule = ctrl.schedules.items[modelID],\n\t relatedView = scheduleData.relatedView,\n\t currentView = scheduleData.currentView,\n\t scheduleDuration,\n\t dateStart,\n\t dateEnd,\n\t newStarts,\n\t newEnds,\n\t baseDate;\n\t\n\t if (!schedule || !currentView) {\n\t return;\n\t }\n\t\n\t timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\t baseDate = new TZDate(relatedView.getDate());\n\t dateStart = datetime.start(baseDate);\n\t dateEnd = datetime.end(baseDate);\n\t newStarts = new TZDate(schedule.getStarts().getTime() + timeDiff);\n\t newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n\t scheduleDuration = schedule.duration();\n\t\n\t if (currentView) {\n\t dateDiff = currentView.getDate() - relatedView.getDate();\n\t }\n\t\n\t if (newStarts < dateStart) {\n\t newStarts = new TZDate(dateStart.getTime());\n\t newEnds = new TZDate(newStarts.getTime() + scheduleDuration.getTime());\n\t } else if (newEnds > dateEnd) {\n\t newEnds = new TZDate(dateEnd.getTime());\n\t newStarts = new TZDate(newEnds.getTime() - scheduleDuration.getTime());\n\t }\n\t\n\t newStarts = new TZDate(newStarts.getTime() + dateDiff);\n\t newEnds = new TZDate(newEnds.getTime() + dateDiff);\n\t\n\t /**\n\t * @event TimeMove#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: newStarts,\n\t end: newEnds\n\t });\n\t};\n\t\n\t/**\n\t * @emits TimeMove#timeMoveDragend\n\t * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n\t */\n\tTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t currentView = this._getTimeView(dragEndEventData.target),\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n\t currentView: currentView,\n\t targetModelID: dragStart.targetModelID\n\t });\n\t\n\t scheduleData.range = [\n\t dragStart.timeY,\n\t scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n\t ];\n\t\n\t scheduleData.nearestRange = [\n\t dragStart.nearestGridTimeY,\n\t scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n\t ];\n\t\n\t this._updateSchedule(scheduleData);\n\t\n\t /**\n\t * @event TimeMove#timeMoveDragend\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {Time} currentView - time view instance related with current mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t * @property {number[]} range - milliseconds range between drag start and end.\n\t * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n\t */\n\t this.fire('timeMoveDragend', scheduleData);\n\t};\n\t\n\t/**\n\t * @emits TimeMove#timeMoveClick\n\t * @param {MouseEvent} clickEventData - click mouse event object.\n\t */\n\tTimeMove.prototype._onClick = function(clickEventData) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n\t targetModelID: dragStart.targetModelID\n\t });\n\t\n\t /**\n\t * @event TimeMove#timeMoveClick\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t */\n\t this.fire('timeMoveClick', scheduleData);\n\t};\n\t\n\ttimeCore.mixin(TimeMove);\n\tutil.CustomEvents.mixin(TimeMove);\n\t\n\tmodule.exports = TimeMove;\n\t\n\n\n/***/ },\n/* 92 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for Time.Move effect while dragging.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar ratio = __webpack_require__(6).ratio;\n\tvar FloatingLayer = __webpack_require__(16);\n\tvar tmpl = __webpack_require__(44);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar Schedule = __webpack_require__(20);\n\t\n\t/**\n\t * Class for Time.Move effect.\n\t * @constructor\n\t * @param {TimeMove} timeMove - The instance of TimeMove.\n\t */\n\tfunction TimeMoveGuide(timeMove) {\n\t /**\n\t * @type {FloatingLayer}\n\t */\n\t this._guideLayer = null;\n\t\n\t /**\n\t * @Type {Schedule}\n\t */\n\t this._model = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._lastDrag = null;\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.guideElement = null;\n\t\n\t /**\n\t * @type {TimeMove}\n\t */\n\t this.timeMove = timeMove;\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._container = null;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._getTopFunc = null;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startGridY = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startTopPixel = 0;\n\t\n\t timeMove.on({\n\t 'timeMoveDragstart': this._onDragStart,\n\t 'timeMoveDrag': this._onDrag,\n\t 'timeMoveDragend': this._clearGuideElement,\n\t 'timeMoveClick': this._clearGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeMoveGuide.prototype.destroy = function() {\n\t this._clearGuideElement();\n\t this.timeMove.off(this);\n\t if (this._guideLayer) {\n\t this._guideLayer.destroy();\n\t }\n\t this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n\t this._getTopFunc = this._startGridY = this._startTopPixel = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tTimeMoveGuide.prototype._clearGuideElement = function() {\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('dragging'));\n\t }\n\t if (this._guideLayer) {\n\t this._guideLayer.destroy();\n\t }\n\t\n\t this._showOriginScheduleBlocks();\n\t\n\t this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n\t this._startGridY = this._startTopPixel = null;\n\t};\n\t\n\t/**\n\t * Dim element blocks\n\t * @param {number} modelID - Schedule model instance ID\n\t */\n\tTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n\t var className = config.classname('time-date-schedule-block-dragging-dim');\n\t if (this.guideElement) {\n\t domutil.addClass(this.guideElement, className);\n\t }\n\t};\n\t\n\t/**\n\t * Show element blocks\n\t */\n\tTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n\t var className = config.classname('time-date-schedule-block-dragging-dim');\n\t if (this.guideElement) {\n\t domutil.removeClass(this.guideElement, className);\n\t }\n\t};\n\t\n\tTimeMoveGuide.prototype._getHighlightColorModel = function(model) {\n\t return {\n\t bgColor: model.color\n\t };\n\t};\n\t\n\t/**\n\t * Refresh guide element\n\t * @param {string} top - guide element's style top.\n\t * @param {Schedule} model - updated model\n\t */\n\tTimeMoveGuide.prototype._refreshGuideElement = function(top, model) {\n\t var self = this;\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t if (!self._guideLayer) {\n\t return;\n\t }\n\t self._guideLayer.setPosition(0, top);\n\t self._guideLayer.setContent(tmpl({model: model}));\n\t });\n\t};\n\t\n\t/**\n\t * TimeMove#timeMoveDragstart event handler\n\t * @param {object} dragStartEventData - dragstart event data\n\t */\n\tTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n\t var guideElement = domutil.closest(\n\t dragStartEventData.target,\n\t config.classname('.time-date-schedule-block')\n\t );\n\t\n\t if (!guideElement) {\n\t return;\n\t }\n\t\n\t this._startTopPixel = parseFloat(guideElement.style.top);\n\t this._startGridY = dragStartEventData.nearestGridY;\n\t this.guideElement = guideElement;\n\t this._container = dragStartEventData.relatedView.container;\n\t\n\t this._model = util.extend(\n\t Schedule.create(dragStartEventData.model),\n\t dragStartEventData.model,\n\t this._getHighlightColorModel(dragStartEventData.model)\n\t );\n\t this._lastDrag = dragStartEventData;\n\t\n\t this._resetGuideLayer();\n\t this._hideOriginScheduleBlocks();\n\t};\n\t\n\t/**\n\t * TimeMove#timeMoveDrag event handler\n\t * @param {object} dragEventData - drag event data\n\t */\n\tTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n\t var timeView = dragEventData.currentView,\n\t viewOptions = timeView.options,\n\t viewHeight = timeView.getViewBound().height,\n\t guideHeight = parseFloat(this.guideElement.style.height),\n\t hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n\t gridYOffset = dragEventData.nearestGridY - this._startGridY,\n\t gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n\t timeDiff = dragEventData.nearestGridTimeY - this._lastDrag.nearestGridTimeY,\n\t bottomLimit,\n\t top;\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('dragging'));\n\t }\n\t\n\t if (this._container !== timeView.container) {\n\t this._container = timeView.container;\n\t this._resetGuideLayer();\n\t }\n\t\n\t top = this._startTopPixel + gridYOffsetPixel;\n\t bottomLimit = viewHeight - guideHeight;\n\t\n\t top = Math.max(top, 0);\n\t top = Math.min(top, bottomLimit);\n\t\n\t // update time\n\t this._model.start = new TZDate(this._model.getStarts().getTime() + timeDiff);\n\t this._model.end = new TZDate(this._model.getEnds().getTime() + timeDiff);\n\t this._lastDrag = dragEventData;\n\t\n\t this._refreshGuideElement(top, this._model);\n\t};\n\t\n\tTimeMoveGuide.prototype._resetGuideLayer = function() {\n\t if (this._guideLayer) {\n\t this._guideLayer.destroy();\n\t this._guideLayer = null;\n\t }\n\t this._guideLayer = new FloatingLayer(null, this._container);\n\t this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n\t this._guideLayer.setPosition(0, this.guideElement.style.top);\n\t this._guideLayer.setContent(tmpl({model: this._model}));\n\t this._guideLayer.show();\n\t};\n\t\n\tmodule.exports = TimeMoveGuide;\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 93 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Handling resize schedules from drag handler and time grid view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar timeCore = __webpack_require__(19);\n\tvar TimeResizeGuide = __webpack_require__(94);\n\t\n\t/**\n\t * @constructor\n\t * @implements {Handler}\n\t * @mixes timeCore\n\t * @mixes util.CustomEvents\n\t * @param {Drag} [dragHandler] - Drag handler instance.\n\t * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n\t * @param {Base} [baseController] - Base controller instance.\n\t */\n\tfunction TimeResize(dragHandler, timeGridView, baseController) {\n\t /**\n\t * @type {Drag}\n\t */\n\t this.dragHandler = dragHandler;\n\t\n\t /**\n\t * @type {TimeGrid}\n\t */\n\t this.timeGridView = timeGridView;\n\t\n\t /**\n\t * @type {Base}\n\t */\n\t this.baseController = baseController;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._getScheduleDataFunc = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this._dragStart = null;\n\t\n\t /**\n\t * @type {TimeResizeGuide}\n\t */\n\t this._guide = new TimeResizeGuide(this);\n\t\n\t dragHandler.on('dragStart', this._onDragStart, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeResize.prototype.destroy = function() {\n\t this._guide.destroy();\n\t this.dragHandler.off(this);\n\t this.dragHandler = this.timeGridView = this.baseController =\n\t this._getScheduleDataFunc = this._dragStart = this._guide = null;\n\t};\n\t\n\t/**\n\t * @param {HTMLElement} target - element to check condition.\n\t * @returns {object|boolean} - return time view instance or false\n\t */\n\tTimeResize.prototype.checkExpectCondition = function(target) {\n\t var container,\n\t matches;\n\t\n\t if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n\t return false;\n\t }\n\t\n\t container = domutil.closest(target, config.classname('.time-date'));\n\t\n\t if (!container) {\n\t return false;\n\t }\n\t\n\t matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\t\n\t if (!matches || matches.length < 2) {\n\t return false;\n\t }\n\t\n\t return util.pick(this.timeGridView.children.items, Number(matches[1]));\n\t};\n\t\n\t/**\n\t * @emits TimeResize#timeResizeDragstart\n\t * @param {object} dragStartEventData - event data of Drag#dragstart\n\t */\n\tTimeResize.prototype._onDragStart = function(dragStartEventData) {\n\t var target = dragStartEventData.target,\n\t timeView = this.checkExpectCondition(target),\n\t blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n\t getScheduleDataFunc,\n\t scheduleData;\n\t\n\t if (!timeView || !blockElement) {\n\t return;\n\t }\n\t\n\t getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n\t scheduleData = this._dragStart = getScheduleDataFunc(\n\t dragStartEventData.originEvent, {\n\t targetModelID: domutil.getData(blockElement, 'id')\n\t }\n\t );\n\t\n\t this.dragHandler.on({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event TimeResize#timeResizeDragstart\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with mouse position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t */\n\t this.fire('timeResizeDragstart', scheduleData);\n\t};\n\t\n\t/**\n\t * Drag#drag event handler\n\t * @emits TimeResize#timeResizeDrag\n\t * @param {object} dragEventData - event data of Drag#drag custom event.\n\t * @param {string} [overrideEventName] - override emitted event name when supplied.\n\t * @param {function} [revise] - supply function for revise schedule data before emit.\n\t */\n\tTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t startScheduleData = this._dragStart,\n\t scheduleData;\n\t\n\t if (!getScheduleDataFunc || !startScheduleData) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n\t targetModelID: startScheduleData.targetModelID\n\t });\n\t\n\t if (revise) {\n\t revise(scheduleData);\n\t }\n\t\n\t /**\n\t * @event TimeResize#timeResizeDrag\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t */\n\t this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n\t};\n\t\n\t/**\n\t * Update model instance by dragend event results.\n\t * @fires TimeResize#beforeUpdateSchedule\n\t * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n\t */\n\tTimeResize.prototype._updateSchedule = function(scheduleData) {\n\t var ctrl = this.baseController,\n\t modelID = scheduleData.targetModelID,\n\t range = scheduleData.nearestRange,\n\t timeDiff = range[1] - range[0],\n\t schedule = ctrl.schedules.items[modelID],\n\t relatedView = scheduleData.relatedView,\n\t dateEnd,\n\t newEnds,\n\t baseDate;\n\t\n\t if (!schedule) {\n\t return;\n\t }\n\t\n\t timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\t\n\t baseDate = new TZDate(relatedView.getDate());\n\t dateEnd = datetime.end(baseDate);\n\t newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n\t\n\t if (newEnds > dateEnd) {\n\t newEnds = new TZDate(dateEnd.getTime());\n\t }\n\t\n\t if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n\t newEnds = new TZDate(schedule.getStarts().getTime() + datetime.millisecondsFrom('minutes', 30));\n\t }\n\t\n\t /**\n\t * @event TimeResize#beforeUpdateSchedule\n\t * @type {object}\n\t * @property {Schedule} schedule - schedule instance to update\n\t * @property {Date} start - start time to update\n\t * @property {Date} end - end time to update\n\t */\n\t this.fire('beforeUpdateSchedule', {\n\t schedule: schedule,\n\t start: schedule.getStarts(),\n\t end: newEnds\n\t });\n\t};\n\t\n\t/**\n\t * Drag#dragEnd event handler\n\t * @emits TimeResize#timeResizeDragend\n\t * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n\t */\n\tTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n\t var getScheduleDataFunc = this._getScheduleDataFunc,\n\t dragStart = this._dragStart,\n\t scheduleData;\n\t\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t if (!getScheduleDataFunc || !dragStart) {\n\t return;\n\t }\n\t\n\t scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n\t targetModelID: dragStart.targetModelID\n\t });\n\t\n\t scheduleData.range = [\n\t dragStart.timeY,\n\t scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n\t ];\n\t\n\t scheduleData.nearestRange = [\n\t dragStart.nearestGridTimeY,\n\t scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n\t ];\n\t\n\t this._updateSchedule(scheduleData);\n\t\n\t /**\n\t * @event TimeResize#timeResizeDragend\n\t * @type {object}\n\t * @property {HTMLElement} target - current target in mouse event object.\n\t * @property {Time} relatedView - time view instance related with drag start position.\n\t * @property {MouseEvent} originEvent - mouse event object.\n\t * @property {number} mouseY - mouse Y px mouse event.\n\t * @property {number} gridY - grid Y index value related with mouseY value.\n\t * @property {number} timeY - milliseconds value of mouseY points.\n\t * @property {number} nearestGridY - nearest grid index related with mouseY value.\n\t * @property {number} nearestGridTimeY - time value for nearestGridY.\n\t * @property {string} targetModelID - The model unique id emitted move schedule.\n\t * @property {number[]} range - milliseconds range between drag start and end.\n\t * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n\t */\n\t this.fire('timeResizeDragend', scheduleData);\n\t\n\t this._getScheduleDataFunc = this._dragStart = null;\n\t};\n\t\n\t/**\n\t * @emits TimeResize#timeResizeClick\n\t */\n\tTimeResize.prototype._onClick = function() {\n\t this.dragHandler.off({\n\t drag: this._onDrag,\n\t dragEnd: this._onDragEnd,\n\t click: this._onClick\n\t }, this);\n\t\n\t /**\n\t * @event TimeResize#timeResizeClick\n\t */\n\t this.fire('timeResizeClick');\n\t};\n\t\n\ttimeCore.mixin(TimeResize);\n\tutil.CustomEvents.mixin(TimeResize);\n\t\n\tmodule.exports = TimeResize;\n\t\n\n\n/***/ },\n/* 94 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * @fileoverview Module for Time.Resize effect while dragging.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar ratio = __webpack_require__(6).ratio;\n\t\n\t/**\n\t * Class for Time.Resize effect.\n\t * @constructor\n\t * @param {TimeResize} timeResize - the instance of TimeResize handler.\n\t */\n\tfunction TimeResizeGuide(timeResize) {\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.guideElement = null;\n\t\n\t /**\n\t * @type {TimeResize}\n\t */\n\t this.timeResize = timeResize;\n\t\n\t /**\n\t * @type {function}\n\t */\n\t this._getTopFunc = null;\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this._originScheduleElement = null;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startTopPixel = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startHeightPixel = 0;\n\t\n\t /**\n\t * @type {number}\n\t */\n\t this._startGridY = 0;\n\t\n\t timeResize.on({\n\t 'timeResizeDragstart': this._onDragStart,\n\t 'timeResizeDrag': this._onDrag,\n\t 'timeResizeDragend': this._clearGuideElement,\n\t 'timeResizeClick': this._clearGuideElement\n\t }, this);\n\t}\n\t\n\t/**\n\t * Destroy method\n\t */\n\tTimeResizeGuide.prototype.destroy = function() {\n\t this._clearGuideElement();\n\t this.timeResize.off(this);\n\t this.guideElement = this.timeResize = this._getTopFunc =\n\t this._originScheduleElement = this._startHeightPixel =\n\t this._startGridY = this._startTopPixel = null;\n\t};\n\t\n\t/**\n\t * Clear guide element.\n\t */\n\tTimeResizeGuide.prototype._clearGuideElement = function() {\n\t var guideElement = this.guideElement,\n\t originElement = this._originScheduleElement;\n\t\n\t if (!util.browser.msie) {\n\t domutil.removeClass(global.document.body, config.classname('resizing'));\n\t }\n\t\n\t if (originElement) {\n\t originElement.style.display = 'block';\n\t }\n\t\n\t domutil.remove(guideElement);\n\t\n\t this.guideElement = this._getTopFunc = this._originScheduleElement =\n\t this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n\t};\n\t\n\t/**\n\t * Refresh guide element\n\t * @param {string} height - guide element's style height.\n\t */\n\tTimeResizeGuide.prototype._refreshGuideElement = function(height) {\n\t var guideElement = this.guideElement;\n\t\n\t if (!guideElement) {\n\t return;\n\t }\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t guideElement.style.height = height + 'px';\n\t guideElement.style.display = 'block';\n\t });\n\t};\n\t\n\t/**\n\t * TimeMove#timeMoveDragstart event handler\n\t * @param {object} dragStartEventData - dragstart event data\n\t */\n\tTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n\t var originElement = domutil.closest(\n\t dragStartEventData.target,\n\t config.classname('.time-date-schedule-block')\n\t ),\n\t guideElement;\n\t\n\t if (!util.browser.msie) {\n\t domutil.addClass(global.document.body, config.classname('resizing'));\n\t }\n\t\n\t if (!originElement) {\n\t return;\n\t }\n\t\n\t this._startGridY = dragStartEventData.nearestGridY;\n\t this._startHeightPixel = parseFloat(originElement.style.height);\n\t this._startTopPixel = parseFloat(originElement.style.top);\n\t\n\t this._originScheduleElement = originElement;\n\t guideElement = this.guideElement = originElement.cloneNode(true);\n\t domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\t\n\t originElement.style.display = 'none';\n\t dragStartEventData.relatedView.container.appendChild(guideElement);\n\t};\n\t\n\t/**\n\t * @param {object} dragEventData - event data from Drag#drag.\n\t */\n\tTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n\t var timeView = dragEventData.relatedView,\n\t viewOptions = timeView.options,\n\t viewHeight = timeView.getViewBound().height,\n\t hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n\t guideElement = this.guideElement,\n\t guideTop = parseFloat(guideElement.style.top),\n\t gridYOffset = dragEventData.nearestGridY - this._startGridY,\n\t // hourLength : viewHeight = gridYOffset : X;\n\t gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n\t minHeight,\n\t maxHeight,\n\t height;\n\t\n\t height = (this._startHeightPixel + gridYOffsetPixel);\n\t // at least large than 30min from schedule start time.\n\t minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n\t minHeight -= this._startTopPixel;\n\t // smaller than 24h\n\t maxHeight = viewHeight - guideTop;\n\t\n\t height = Math.max(height, minHeight);\n\t height = Math.min(height, maxHeight);\n\t\n\t this._refreshGuideElement(height);\n\t};\n\t\n\tmodule.exports = TimeResizeGuide;\n\t\n\t\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 95 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Layout view. wrap all view containers at outside.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar Collection = __webpack_require__(12);\n\tvar View = __webpack_require__(8);\n\t\n\t/**\n\t * Layout view for toggle each child view. It will controlled via navigation UI.\n\t * @constructor\n\t * @extends {View}\n\t * @param {HTMLElement} container Container element to use layout view.\n\t */\n\tfunction Layout(container) {\n\t container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\t\n\t /**\n\t * @type {HTMLElement}\n\t */\n\t this.container = container;\n\t\n\t /*eslint-disable*/\n\t /**\n\t * @type {Collection} Child view collection.\n\t */\n\t this.children = new Collection(function(childView) {\n\t return childView.viewName;\n\t });\n\t /* eslint-enable*/\n\t}\n\t\n\tutil.inherit(Layout, View);\n\t\n\t/**\n\t * Clear child views.\n\t */\n\tLayout.prototype.clear = function() {\n\t this.children.each(function(childView) {\n\t childView.destroy();\n\t });\n\t\n\t this.children.clear();\n\t this.container.innerHTML = '';\n\t};\n\t\n\t/**\n\t * Remove child view.\n\t * @override\n\t * @param {(string|View)} viewName - name of view or instance.\n\t */\n\tLayout.prototype.removeChild = function(viewName) {\n\t this.children.remove(viewName);\n\t};\n\t\n\t/**\n\t * Toggle child views.\n\t * @param {string} viewName - Name of view.\n\t */\n\tLayout.prototype.toggleChildView = function(viewName) {\n\t var container,\n\t prefix = ['add', 'remove'],\n\t flag;\n\t\n\t this.children.each(function(childView) {\n\t container = childView.container;\n\t flag = Number(childView.viewName === viewName);\n\t domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n\t });\n\t};\n\t\n\tmodule.exports = Layout;\n\t\n\n\n/***/ },\n/* 96 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t datetime = __webpack_require__(4),\n\t domutil = __webpack_require__(2),\n\t TZDate = __webpack_require__(5).Date,\n\t tmpl = __webpack_require__(34),\n\t View = __webpack_require__(8),\n\t VLayout = __webpack_require__(24),\n\t WeekdayInMonth = __webpack_require__(98);\n\tvar mmin = Math.min;\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options\n\t * @param {function} [options.scheduleFilter] - schedule filter\n\t * @param {number} [options.startDayOfWeek=0] - start day of week\n\t * @param {string} [options.renderMonth='2015-12'] - render month\n\t * @param {string[]} [options.daynames] - daynames to use upside of month view\n\t * @param {HTMLElement} container - container element\n\t * @param {Base.Month} controller - controller instance\n\t */\n\tfunction Month(options, container, controller) {\n\t View.call(this, container);\n\t\n\t /**\n\t * @type {Base.Month}\n\t */\n\t this.controller = controller;\n\t\n\t /**\n\t * @type {VLayout}\n\t */\n\t this.vLayout = new VLayout({\n\t panels: [\n\t {height: 42},\n\t {autoHeight: true}\n\t ]\n\t }, container);\n\t\n\t /**\n\t * @type {string}\n\t */\n\t this.options = util.extend({\n\t scheduleFilter: function(schedule) {\n\t return Boolean(schedule.isVisible);\n\t },\n\t startDayOfWeek: 0,\n\t renderMonth: '2018-01',\n\t daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n\t narrowWeekend: false,\n\t visibleWeeksCount: null,\n\t grid: {\n\t header: {\n\t height: 34\n\t },\n\t footer: {\n\t height: 34\n\t }\n\t }\n\t }, options);\n\t\n\t this.options.grid.header = util.extend({\n\t height: 34\n\t }, util.pick(options, 'grid', 'header'));\n\t this.options.grid.footer = util.extend({\n\t height: 34\n\t }, util.pick(options, 'grid', 'footer'));\n\t\n\t /**\n\t * horizontal grid information\n\t * @type {Object}\n\t */\n\t this.grids = datetime.getGridLeftAndWidth(\n\t this.options.daynames.length,\n\t this.options.narrowWeekend,\n\t this.options.startDayOfWeek);\n\t}\n\t\n\tutil.inherit(Month, View);\n\t\n\t/**\n\t * Name of view. for managing subview at layout view\n\t * @type {string}\n\t */\n\tMonth.prototype.viewName = 'month';\n\t\n\t/**\n\t * Get calendar array by supplied date\n\t * @param {string} renderMonthStr - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n\t * @returns {array.} calendar array\n\t */\n\tMonth.prototype._getMonthCalendar = function(renderMonthStr) {\n\t var date = datetime.parse(renderMonthStr) || datetime.parse(renderMonthStr + '-01');\n\t var startDayOfWeek = this.options.startDayOfWeek || 0;\n\t var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n\t var workweek = this.options.workweek || false;\n\t var datetimeOptions, calendar;\n\t\n\t if (this.options.visibleWeeksCount) {\n\t datetimeOptions = {\n\t startDayOfWeek: startDayOfWeek,\n\t isAlways6Week: false,\n\t visibleWeeksCount: visibleWeeksCount,\n\t workweek: workweek\n\t };\n\t } else {\n\t datetimeOptions = {\n\t startDayOfWeek: startDayOfWeek,\n\t isAlways6Week: true,\n\t workweek: workweek\n\t };\n\t }\n\t\n\t calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\t\n\t return calendar;\n\t};\n\t\n\t/**\n\t * Create children view (week) and add children\n\t * @param {HTMLElement} container - container element to render weeks\n\t * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n\t */\n\tMonth.prototype._renderChildren = function(container, calendar) {\n\t var self = this;\n\t var weekCount = calendar.length;\n\t var heightPercent = 100 / weekCount;\n\t var opt = this.options;\n\t var renderMonth = opt.renderMonth;\n\t var narrowWeekend = opt.narrowWeekend;\n\t var startDayOfWeek = opt.startDayOfWeek;\n\t var visibleWeeksCount = opt.visibleWeeksCount;\n\t var visibleScheduleCount = opt.visibleScheduleCount;\n\t var gridOption = opt.grid;\n\t\n\t container.innerHTML = '';\n\t this.children.clear();\n\t\n\t util.forEach(calendar, function(weekArr) {\n\t var start = new TZDate(Number(weekArr[0])),\n\t end = new TZDate(Number(weekArr[weekArr.length - 1])),\n\t weekdayViewContainer,\n\t weekdayView;\n\t\n\t weekdayViewContainer = domutil.appendHTMLElement(\n\t 'div', container, config.classname('month-week-item'));\n\t\n\t weekdayView = new WeekdayInMonth({\n\t renderMonth: renderMonth,\n\t heightPercent: heightPercent,\n\t renderStartDate: datetime.format(start, 'YYYY-MM-DD'),\n\t renderEndDate: datetime.format(end, 'YYYY-MM-DD'),\n\t narrowWeekend: narrowWeekend,\n\t startDayOfWeek: startDayOfWeek,\n\t visibleWeeksCount: visibleWeeksCount,\n\t visibleScheduleCount: visibleScheduleCount,\n\t grid: gridOption\n\t }, weekdayViewContainer);\n\t\n\t self.addChild(weekdayView);\n\t });\n\t};\n\t\n\t/**\n\t * Render month view\n\t * @override\n\t */\n\tMonth.prototype.render = function() {\n\t var opt = this.options,\n\t vLayout = this.vLayout,\n\t controller = this.controller,\n\t daynames = opt.daynames,\n\t workweek = opt.workweek,\n\t calendar = this._getMonthCalendar(opt.renderMonth),\n\t scheduleFilter = opt.scheduleFilter,\n\t grids,\n\t daynameViewModel,\n\t baseViewModel;\n\t\n\t grids = this.grids = datetime.getGridLeftAndWidth(\n\t opt.daynames.length,\n\t opt.narrowWeekend,\n\t opt.startDayOfWeek\n\t );\n\t\n\t daynameViewModel = util.map(\n\t util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n\t function(day, index) {\n\t return {\n\t day: day,\n\t label: daynames[day],\n\t width: grids[index] ? grids[index].width : 0,\n\t left: grids[index] ? grids[index].left : 0\n\t };\n\t }\n\t );\n\t\n\t if (workweek) {\n\t grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\t\n\t daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n\t return !datetime.isWeekend(daynameModel.day);\n\t });\n\t\n\t util.forEach(daynameViewModel, function(daynameModel, index) {\n\t daynameModel.width = grids[index] ? grids[index].width : 0;\n\t daynameModel.left = grids[index] ? grids[index].left : 0;\n\t });\n\t }\n\t\n\t baseViewModel = {\n\t daynames: daynameViewModel\n\t };\n\t\n\t vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\t\n\t this._renderChildren(vLayout.panels[1].container, calendar);\n\t\n\t this.children.each(function(childView) {\n\t var start = datetime.parse(childView.options.renderStartDate);\n\t var end = datetime.parse(childView.options.renderEndDate);\n\t var eventsInDateRange = controller.findByDateRange(\n\t datetime.start(start),\n\t datetime.end(end),\n\t scheduleFilter\n\t );\n\t var dateRange = datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY);\n\t var viewModel = {\n\t eventsInDateRange: eventsInDateRange,\n\t range: dateRange.slice(0, grids.length),\n\t grids: grids\n\t };\n\t\n\t childView.render(viewModel);\n\t });\n\t};\n\t\n\tmodule.exports = Month;\n\t\n\n\n/***/ },\n/* 97 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Floating layer for displaying schedule in specific date\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar OUT_PADDING = 5;\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domevent = __webpack_require__(9),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8),\n\t FloatingLayer = __webpack_require__(16),\n\t common = __webpack_require__(6),\n\t tmpl = __webpack_require__(35);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options\n\t * @param {object} [options.moreLayerSize] - more layer size\n\t * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n\t * The default value 'null' is to fit a grid cell.\n\t * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n\t * The default value 'null' is to fit a grid cell.\n\t * @param {HTMLElement} container = container element\n\t */\n\tfunction More(options, container) {\n\t View.call(this, container);\n\t\n\t /**\n\t * @type {FloatingLayer}\n\t */\n\t this.layer = new FloatingLayer(null, container);\n\t\n\t /**\n\t * cached view model\n\t * @type {object}\n\t */\n\t this._viewModel = null;\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t moreLayerSize: {\n\t width: null,\n\t height: null\n\t }\n\t }, options);\n\t\n\t domevent.on(container, 'click', this._onClick, this);\n\t}\n\t\n\tutil.inherit(More, View);\n\t\n\t/**\n\t * Click event handler for close button\n\t * @param {MouseEvent} clickEvent - mouse event object\n\t */\n\tMore.prototype._onClick = function(clickEvent) {\n\t var target = (clickEvent.target || clickEvent.srcElement);\n\t var className = config.classname('month-more-close');\n\t\n\t if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n\t return;\n\t }\n\t\n\t this.hide();\n\t};\n\t\n\t/**\n\t * Mousedown event handler for hiding more layer when user mousedown outside of\n\t * layer\n\t * @param {MouseEvent} mouseDownEvent - mouse event object\n\t */\n\tMore.prototype._onMouseDown = function(mouseDownEvent) {\n\t var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n\t moreLayer = domutil.closest(target, config.classname('.month-more'));\n\t\n\t if (moreLayer) {\n\t return;\n\t }\n\t\n\t this.hide();\n\t};\n\t\n\t/**\n\t * Get new position for more layer by +n element itself\n\t * @param {HTMLElement} target - parent grid-line element of +n element\n\t * @param {HTMLElement} weekItem - weekItem container element\n\t * @returns {number[]} new position of more layer\n\t */\n\tMore.prototype._getRenderPosition = function(target, weekItem) {\n\t var pos = domevent.getMousePosition({\n\t clientX: domutil.getPosition(target)[0],\n\t clientY: domutil.getPosition(weekItem)[1]\n\t }, this.container);\n\t var containerSize = domutil.getSize(this.container);\n\t var left = pos[0] - OUT_PADDING;\n\t var top = pos[1] - OUT_PADDING;\n\t\n\t left = common.ratio(containerSize[0], 100, left) + '%';\n\t top = common.ratio(containerSize[1], 100, top) + '%';\n\t\n\t return [left, top];\n\t};\n\t\n\t/**\n\t * @override\n\t */\n\tMore.prototype.destroy = function() {\n\t this.layer.destroy();\n\t this.layer = null;\n\t domevent.off(this.container, 'click', this._onClick, this);\n\t domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n\t View.prototype.destroy.call(this);\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel - view model from factory/monthView\n\t */\n\tMore.prototype.render = function(viewModel) {\n\t var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n\t var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n\t var layer = this.layer;\n\t var self = this;\n\t var pos = this._getRenderPosition(target, weekItem);\n\t var height = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n\t var width = target.offsetWidth + (OUT_PADDING * 2);\n\t var optMoreLayerSize = this.options.moreLayerSize;\n\t this._viewModel = viewModel;\n\t\n\t if (optMoreLayerSize.width) {\n\t width = optMoreLayerSize.width;\n\t }\n\t\n\t if (optMoreLayerSize.height) {\n\t height = optMoreLayerSize.height;\n\t }\n\t\n\t layer.setContent(tmpl(viewModel));\n\t if (weekItem.parentElement.lastElementChild === weekItem) {\n\t layer.setLTRB({\n\t left: pos[0],\n\t bottom: 0\n\t });\n\t layer.setSize(width, '');\n\t } else {\n\t layer.setPosition(pos[0], pos[1]);\n\t layer.setSize(width, height);\n\t }\n\t\n\t layer.show();\n\t\n\t util.debounce(function() {\n\t domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n\t })();\n\t};\n\t\n\t/**\n\t * Hide layer\n\t */\n\tMore.prototype.hide = function() {\n\t this.layer.hide();\n\t domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n\t};\n\t\n\t/**\n\t * refresh layer\n\t */\n\tMore.prototype.refresh = function() {\n\t if (this._viewModel) {\n\t this.layer.setContent(tmpl(this._viewModel));\n\t }\n\t};\n\t\n\tmodule.exports = More;\n\n\n/***/ },\n/* 98 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Monthday in month view\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t common = __webpack_require__(6),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8),\n\t Weekday = __webpack_require__(30),\n\t baseTmpl = __webpack_require__(36),\n\t scheduleTmpl = __webpack_require__(37);\n\tvar mfloor = Math.floor,\n\t mmin = Math.min;\n\t\n\t/**\n\t * @constructor\n\t * @extends {Weekday}\n\t * @param {object} options - options for WeekdayInWeek view\n\t * @param {number} [options.heightPercent] - height percent of view\n\t * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n\t * make create easy.\n\t * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n\t * @param {HTMLDIVElement} container - DOM element to use container for this\n\t * view.\n\t */\n\tfunction WeekdayInMonth(options, container) {\n\t Weekday.call(this, options, container);\n\t container.style.height = options.heightPercent + '%';\n\t}\n\t\n\tutil.inherit(WeekdayInMonth, Weekday);\n\t\n\t/**\n\t * Get schedule container element's bound properly by override\n\t *\n\t * View#getViewBound.\n\t * @override\n\t */\n\tWeekdayInMonth.prototype.getViewBound = function() {\n\t var bound = View.prototype.getViewBound.call(this);\n\t\n\t return bound;\n\t};\n\t\n\t/**\n\t * Get limit index of schedule block in current view\n\t * @returns {number} limit index\n\t */\n\tWeekdayInMonth.prototype._getRenderLimitIndex = function() {\n\t var opt = this.options;\n\t var containerHeight = this.getViewBound().height;\n\t var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n\t var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n\t var visibleScheduleCount = opt.visibleScheduleCount || 0;\n\t var count;\n\t\n\t containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\t\n\t count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\t\n\t if (!visibleScheduleCount) {\n\t visibleScheduleCount = count;\n\t }\n\t\n\t return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel - schedules view models\n\t */\n\tWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n\t var opt = this.options,\n\t gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n\t gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n\t renderLimitIdx = this._getRenderLimitIndex(),\n\t exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range);\n\t var baseViewModel;\n\t\n\t viewModel = util.extend({\n\t exceedDate: exceedDate\n\t }, viewModel);\n\t\n\t baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\t\n\t baseViewModel = util.extend({\n\t matrices: viewModel.eventsInDateRange,\n\t gridHeaderHeight: gridHeaderHeight,\n\t gridFooterHeight: gridFooterHeight,\n\t renderLimitIdx: renderLimitIdx + 1\n\t }, baseViewModel);\n\t\n\t return baseViewModel;\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel - schedules view models\n\t */\n\tWeekdayInMonth.prototype.render = function(viewModel) {\n\t var container = this.container,\n\t baseViewModel = this.getBaseViewModel(viewModel),\n\t scheduleContainer,\n\t contentStr = '';\n\t\n\t if (!this.options.visibleWeeksCount) {\n\t setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth);\n\t }\n\t\n\t container.innerHTML = baseTmpl(baseViewModel);\n\t\n\t scheduleContainer = domutil.find(\n\t config.classname('.weekday-schedules'),\n\t container\n\t );\n\t\n\t if (!scheduleContainer) {\n\t return;\n\t }\n\t\n\t contentStr += scheduleTmpl(baseViewModel);\n\t\n\t scheduleContainer.innerHTML = contentStr;\n\t\n\t common.setAutoEllipsis(\n\t config.classname('.weekday-schedule-title'),\n\t container\n\t );\n\t};\n\t\n\tWeekdayInMonth.prototype._beforeDestroy = function() {\n\t};\n\t\n\t/**\n\t * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n\t * @param {Array} dates - 날짜정보 배열\n\t * @param {string} renderMonthStr - 현재 렌더링중인 월 (YYYYMM)\n\t */\n\tfunction setIsOtherMonthFlag(dates, renderMonthStr) {\n\t var renderMonth = Number(renderMonthStr.substring(5));\n\t\n\t util.forEach(dates, function(dateObj) {\n\t dateObj.isOtherMonth = dateObj.month !== renderMonth;\n\t });\n\t}\n\t\n\tmodule.exports = WeekdayInMonth;\n\n\n/***/ },\n/* 99 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* eslint complexity: 0 */\n\t/**\n\t * @fileoverview Helpers for handlebar templates.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar Handlebars = __webpack_require__(21);\n\tvar datetime = __webpack_require__(4);\n\tvar common = __webpack_require__(6);\n\tvar config = __webpack_require__(3);\n\t\n\t/**\n\t * Get CSS syntax for element size\n\t * @param {number} value - size value to apply element\n\t * @param {string} postfix - postfix string ex) px, em, %\n\t * @param {string} prefix - property name ex) width, height\n\t * @returns {string} CSS syntax\n\t */\n\tfunction getElSize(value, postfix, prefix) {\n\t prefix = prefix || '';\n\t if (util.isNumber(value)) {\n\t return prefix + ':' + value + postfix;\n\t }\n\t\n\t return prefix + ':auto';\n\t}\n\t\n\t/**\n\t * Get element left based on narrowWeekend\n\t * @param {object} viewModel - view model\n\t * @param {Array} grids - dates information\n\t * @returns {number} element left\n\t */\n\tfunction getElLeft(viewModel, grids) {\n\t return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n\t}\n\t\n\t/**\n\t * Get element width based on narrowWeekend\n\t * @param {object} viewModel - view model\n\t * @param {Array} grids - dates information\n\t * @returns {number} element width\n\t */\n\tfunction getElWidth(viewModel, grids) {\n\t var width = 0;\n\t var i = 0;\n\t var length = grids.length;\n\t var left;\n\t for (; i < viewModel.width; i += 1) {\n\t left = (viewModel.left + i) % length;\n\t left += parseInt((viewModel.left + i) / length, 10);\n\t if (left < length) {\n\t width += grids[left] ? grids[left].width : 0;\n\t }\n\t }\n\t\n\t return width;\n\t}\n\t\n\tHandlebars.registerHelper({\n\t /**\n\t * Stamp supplied object\n\t *\n\t * Commonly use for rendering object's unique ID to rendered view\n\t * @param {object} obj - object to stamp\n\t * @returns {number} stamp value\n\t */\n\t 'stamp': function(obj) {\n\t return util.stamp(obj);\n\t },\n\t\n\t /**\n\t * Whether supplied object are equal?\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {boolean} result of operation\n\t */\n\t 'equal': function(a, b) {\n\t return a === b;\n\t },\n\t\n\t /**\n\t * OR\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {boolean} or\n\t */\n\t 'or': function(a, b) {\n\t return a || b;\n\t },\n\t\n\t /**\n\t * Compare object or apply logical operation by customizable oper parameter\n\t * @param {*} a - a\n\t * @param {string} oper - operator ex) '==', '<'\n\t * @param {*} b - b\n\t * @param {Handlebars} options - handlebar options\n\t * @returns {boolean} result of operation\n\t */\n\t 'fi': function(a, oper, b, options) {\n\t switch (oper) {\n\t case '==':\n\t return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n\t case '===':\n\t return (a === b) ? options.fn(this) : options.inverse(this);\n\t case '!==':\n\t return (a !== b) ? options.fn(this) : options.inverse(this);\n\t case '<':\n\t return (a < b) ? options.fn(this) : options.inverse(this);\n\t case '||':\n\t return (a || b) ? options.fn(this) : options.inverse(this);\n\t default:\n\t throw new Error('Not match operation');\n\t }\n\t },\n\t\n\t /**\n\t * Get hhmm formatted time str\n\t * @param {Date} date - date object\n\t * @returns {string} formatted value\n\t */\n\t 'hhmm': function(date) {\n\t return datetime.format(date, 'HH:mm');\n\t },\n\t\n\t /**\n\t * Get `width` stylesheet string\n\t * @param {number} width - width percentage\n\t * @returns {string} css style part\n\t */\n\t 'common-width': function(width) {\n\t return getElSize(width, '%', 'width');\n\t },\n\t\n\t /**\n\t * Get element left based on narrowWeekend\n\t * @param {object} viewModel - view model\n\t * @param {Array} grids - dates information\n\t * @returns {number} element left\n\t */\n\t 'grid-left': function(viewModel, grids) {\n\t return getElLeft(viewModel, grids);\n\t },\n\t\n\t /**\n\t * Get element width based on narrowWeekend\n\t * @param {object} viewModel - view model\n\t * @param {Array} grids - dates information\n\t * @returns {number} element width\n\t */\n\t 'grid-width': function(viewModel, grids) {\n\t return getElWidth(viewModel, grids);\n\t },\n\t\n\t /**\n\t * Use in time.hbs\n\t * @param {ScheduleViewModel} viewModel viewModel\n\t * @returns {string} element size css class\n\t */\n\t 'time-scheduleBlock': function(viewModel) {\n\t var top = getElSize(viewModel.top, 'px', 'top'),\n\t left = getElSize(viewModel.left, '%', 'left'),\n\t width = getElSize(viewModel.width, '%', 'width'),\n\t height = getElSize(viewModel.height, 'px', 'height');\n\t\n\t return [top, left, width, height].join(';');\n\t },\n\t\n\t 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n\t var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n\t var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n\t var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n\t var height = getElSize(viewModel.height, 'px', 'height');\n\t\n\t return [top, left, width, height].join(';');\n\t },\n\t\n\t 'holiday': function(day) {\n\t var cssClass = '';\n\t\n\t if (day === 0) {\n\t cssClass = config.classname('holiday-sun');\n\t }\n\t\n\t if (day === 6) {\n\t cssClass = config.classname('holiday-sat');\n\t }\n\t\n\t return cssClass;\n\t },\n\t\n\t /**\n\t * Add supplied two parameter\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {number} result of operation\n\t */\n\t 'add': function(a, b) {\n\t return a + b;\n\t },\n\t\n\t /**\n\t * Multiply supplied two parameter\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {number} result of operation\n\t */\n\t 'multiply': function(a, b) {\n\t return a * b;\n\t },\n\t\n\t /**\n\t * Divide supplied two parameter\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {number} result of operation\n\t */\n\t 'divide': function(a, b) {\n\t return a / b;\n\t },\n\t\n\t /**\n\t * Subtract supplied two parameter\n\t * @param {*} a - a\n\t * @param {*} b - b\n\t * @returns {number} result of operation\n\t */\n\t 'subtract': function(a, b) {\n\t return a - b;\n\t },\n\t\n\t /**\n\t * Get css prefix in global configuration\n\t * @returns {string} css prefix\n\t */\n\t 'CSS_PREFIX': function() {\n\t return config.cssPrefix;\n\t },\n\t\n\t /**********\n\t * Default schedule template\n\t **********/\n\t\n\t 'milestone-tmpl': function(model) {\n\t return ' ' +\n\t common.stripTags(model.title);\n\t },\n\t\n\t 'milestoneTitle-tmpl': function() {\n\t return '마일스톤';\n\t },\n\t\n\t 'task-tmpl': function(model) {\n\t return ' ' +\n\t common.stripTags(model.title);\n\t },\n\t\n\t 'taskTitle-tmpl': function() {\n\t return '업무';\n\t },\n\t\n\t 'alldayTitle-tmpl': function() {\n\t return '종일';\n\t },\n\t\n\t 'alldayCollapseBtnTitle-tmpl': function() {\n\t return '∧';\n\t },\n\t\n\t 'allday-tmpl': function(model) {\n\t return common.stripTags(model.title);\n\t },\n\t\n\t 'time-tmpl': function(model) {\n\t return common.stripTags(model.title);\n\t },\n\t\n\t 'monthMoreTitleDate-tmpl': function(date) {\n\t return date;\n\t },\n\t\n\t 'monthMoreClose-tmpl': function() {\n\t return 'close';\n\t },\n\t\n\t 'monthGridHeader-tmpl': function(model) {\n\t return '' + model.date + '';\n\t },\n\t\n\t /* eslint no-unused-vars: 0 */\n\t 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n\t return '';\n\t },\n\t\n\t 'monthGridFooter-tmpl': function() {\n\t return '';\n\t },\n\t\n\t /* eslint no-unused-vars: 0 */\n\t 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n\t return '';\n\t },\n\t\n\t 'weekDayname-tmpl': function(model) {\n\t return '' + model.date + ' ' + model.dayName;\n\t },\n\t\n\t 'monthDayname-tmpl': function(model) {\n\t return model.label;\n\t },\n\t\n\t 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n\t return '+' + hiddenSchedules;\n\t }\n\t});\n\n\n/***/ },\n/* 100 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View of allday schedule container inside of Week view.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8),\n\t WeekdayInWeek = __webpack_require__(29),\n\t tmpl = __webpack_require__(38);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options The object for view customization.\n\t * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n\t * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n\t * @param {number} [options.height=60] - minimum height of schedule container element.\n\t * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n\t * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n\t * @param {HTMLElement} container Container element.\n\t * @param {object} aboutMe allday panel name and height\n\t */\n\tfunction Allday(options, container, aboutMe) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('allday-container')\n\t );\n\t\n\t /**\n\t * rendering options.\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t title: 'All-day',\n\t renderStartDate: '',\n\t renderEndDate: '',\n\t containerBottomGutter: 18,\n\t scheduleHeight: 18,\n\t scheduleGutter: 2,\n\t scheduleContainerTop: 1,\n\t getViewModelFunc: function(viewModel) {\n\t return viewModel.schedulesInDateRange.allday;\n\t }\n\t }, options);\n\t\n\t /**\n\t * height of content\n\t */\n\t this.contentHeight = 0;\n\t\n\t this.viewType = options.alldayViewType || 'scroll';\n\t this.collapsed = (this.viewType === 'toggle');\n\t this.aboutMe = util.extend(\n\t aboutMe, {\n\t name: 'allday'\n\t }\n\t );\n\t\n\t this.maxScheduleInDay = 0;\n\t\n\t View.call(this, container);\n\t}\n\t\n\tutil.inherit(Allday, View);\n\t\n\t/**\n\t * create month week view model for render allday schedules in top of week views.\n\t * @override\n\t * @param {object} viewModel - viewModel from parent views.\n\t */\n\tAllday.prototype.render = function(viewModel) {\n\t var container = this.container;\n\t var scheduleContainerTop = this.options.scheduleContainerTop;\n\t var self = this;\n\t var weekdayView;\n\t\n\t container.innerHTML = tmpl(this.options);\n\t\n\t this.children.clear();\n\t\n\t weekdayView = new WeekdayInWeek(\n\t this.options,\n\t domutil.find(config.classname('.weekday-container'), container),\n\t this.aboutMe\n\t );\n\t weekdayView.collapsed = this.collapsed;\n\t weekdayView.on('afterRender', function(weekdayViewModel) {\n\t self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n\t self.maxScheduleInDay = weekdayViewModel.maxScheduleInDay;\n\t });\n\t\n\t this.addChild(weekdayView);\n\t\n\t this.children.each(function(childView) {\n\t childView.collapsed = this.collapsed;\n\t childView.render(viewModel);\n\t }, this);\n\t\n\t this.fire('afterRender', viewModel);\n\t};\n\t\n\tAllday.prototype.getExpandMaxHeight = function() {\n\t var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n\t var maxExpandCount = this.aboutMe.maxExpandCount;\n\t\n\t if (this.maxScheduleInDay > maxExpandCount) {\n\t return scheduleHeight * (maxExpandCount + 0.5);\n\t }\n\t\n\t return scheduleHeight * maxExpandCount;\n\t};\n\t\n\tmodule.exports = Allday;\n\n\n/***/ },\n/* 101 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View for rendering daynames\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar domutil = __webpack_require__(2);\n\tvar View = __webpack_require__(8);\n\tvar daynameTmpl = __webpack_require__(39);\n\t\n\t/**\n\t * @constructor\n\t * @param {object} options - options for dayname view\n\t * @param {HTMLElement} container Container element to use.\n\t * @extends {View}\n\t */\n\tfunction DayName(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('dayname-container')\n\t );\n\t\n\t this.options = util.extend({\n\t daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n\t }, options);\n\t\n\t View.call(this, container);\n\t}\n\t\n\tutil.inherit(DayName, View);\n\t\n\t/**\n\t * Get default viewmodels.\n\t * @param {Date} start The date of start render\n\t * @param {Date} end The end of end render\n\t * @param {object} grids grid data(width, left, day)\n\t * @returns {array} viewmodel.\n\t */\n\tDayName.prototype._getBaseViewModel = function(start, end, grids) {\n\t var daynames = this.options.daynames,\n\t viewModel;\n\t\n\t viewModel = util.map(datetime.range(\n\t datetime.start(start),\n\t datetime.end(end),\n\t datetime.MILLISECONDS_PER_DAY\n\t ), function(d, i) {\n\t var day = d.getDay();\n\t\n\t return {\n\t day: day,\n\t dayName: daynames[day],\n\t isToday: datetime.isSameDate(d, new TZDate()),\n\t date: d.getDate(),\n\t left: grids[i] ? grids[i].left : 0,\n\t width: grids[i] ? grids[i].width : 0,\n\t renderDate: datetime.format(d, 'YYYY-MM-DD')\n\t };\n\t });\n\t\n\t return viewModel;\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel View model from parent (WeekView)\n\t */\n\tDayName.prototype.render = function(viewModel) {\n\t var _viewModel = this._getBaseViewModel(\n\t viewModel.renderStartDate,\n\t viewModel.renderEndDate,\n\t viewModel.grids\n\t );\n\t\n\t this.container.innerHTML = daynameTmpl(_viewModel);\n\t};\n\t\n\tmodule.exports = DayName;\n\n\n/***/ },\n/* 102 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview 마일스톤 뷰\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar View = __webpack_require__(8);\n\tvar tmpl = __webpack_require__(40);\n\t\n\t// item height + gutter (defined in css)\n\tvar ITEM_HEIGHT = 17;\n\t\n\t// list padding-top (defined in css)\n\tvar LIST_PADDING_TOP = 1;\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options\n\t * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n\t * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n\t * @param {number} [options.minHeight=52] - min-height of milestone view\n\t * @param {number} [options.lineHeight=12] - line height of milestone view\n\t * @param {HTMLElement} container - container element\n\t */\n\tfunction Milestone(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('milestone-container')\n\t );\n\t\n\t View.call(this, container);\n\t\n\t /**\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t renderStartDate: '',\n\t renderEndDate: ''\n\t }, options);\n\t}\n\t\n\tutil.inherit(Milestone, View);\n\t\n\t/**\n\t * Get base viewmodel for task view\n\t * @param {object} [viewModel] - view model from parent view\n\t * @returns {object} view model for task view\n\t */\n\tMilestone.prototype._getBaseViewModel = function(viewModel) {\n\t var schedules = {},\n\t range = viewModel.range,\n\t height,\n\t today = datetime.format(new TZDate(), 'YYYY-MM-DD'),\n\t viewModelSchedules = util.pick(viewModel.schedulesInDateRange, 'milestone'),\n\t grids = viewModel.grids,\n\t i = 0;\n\t\n\t // 일정이 없는 경우라도 빈 객체를 생성\n\t util.forEach(range, function(d) {\n\t schedules[datetime.format(d, 'YYYY-MM-DD')] = {length: 0};\n\t });\n\t\n\t util.extend(schedules, viewModelSchedules);\n\t\n\t util.forEach(schedules, function(schedule, key) {\n\t schedule.isToday = (key === today);\n\t schedule.left = grids[i] ? grids[i].left : 0;\n\t schedule.width = grids[i] ? grids[i].width : 0;\n\t i += 1;\n\t });\n\t\n\t height = LIST_PADDING_TOP;\n\t height += Math.max.apply(null, util.map(schedules, function(coll) {\n\t return coll.length;\n\t })) * ITEM_HEIGHT;\n\t\n\t return {\n\t schedules: schedules,\n\t height: height\n\t };\n\t};\n\t\n\t/**\n\t * 마일스톤 뷰 렌더링\n\t * @override\n\t */\n\tMilestone.prototype.render = function(viewModel) {\n\t var container = this.container,\n\t baseViewModel = this._getBaseViewModel(viewModel);\n\t\n\t container.style.minHeight = this.options.minHeight + 'px';\n\t container.innerHTML = tmpl(baseViewModel);\n\t\n\t util.forEach(domutil.find('li', container, true), function(el) {\n\t if (el.offsetWidth < el.scrollWidth) {\n\t el.setAttribute('title', domutil.getData(el, 'title'));\n\t }\n\t });\n\t\n\t this.fire('afterRender', baseViewModel);\n\t};\n\t\n\tmodule.exports = Milestone;\n\t\n\n\n/***/ },\n/* 103 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview Task view for upper area of Week view.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3),\n\t domutil = __webpack_require__(2),\n\t View = __webpack_require__(8),\n\t WeekdayInWeek = __webpack_require__(29),\n\t tmpl = __webpack_require__(41);\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options - options for TaskView\n\t * @param {string} options.renderStartDate - start date of this view's render date. YYYY-MM-DD\n\t * @param {string} options.renderEndDate - end date of this view's render date. YYYY-MM-DD\n\t * @param {number} [options.height=60] - minimum height of schedule container element.\n\t * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n\t * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n\t * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n\t \n\t * @param {HTMLElement} container - container element\n\t */\n\tfunction TaskView(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('task-container')\n\t );\n\t\n\t /**\n\t * rendering options.\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t title: 'task',\n\t renderStartDate: '',\n\t renderEndDate: '',\n\t containerBottomGutter: 18,\n\t scheduleHeight: 18,\n\t scheduleGutter: 2,\n\t scheduleContainerTop: 1,\n\t getViewModelFunc: function(viewModel) {\n\t return viewModel.schedulesInDateRange.task;\n\t }\n\t }, options);\n\t\n\t /**\n\t * height of content\n\t */\n\t this.contentHeight = 0;\n\t\n\t View.call(this, container);\n\t}\n\t\n\tutil.inherit(TaskView, View);\n\t\n\t/**\n\t * 업무 뷰 렌더링\n\t * @override\n\t */\n\tTaskView.prototype.render = function(viewModel) {\n\t var container = this.container;\n\t var scheduleContainerTop = this.options.scheduleContainerTop;\n\t var self = this;\n\t var weekdayView;\n\t\n\t container.innerHTML = tmpl(this.options);\n\t\n\t this.children.clear();\n\t\n\t weekdayView = new WeekdayInWeek(\n\t this.options,\n\t domutil.find(config.classname('.weekday-container'), container)\n\t );\n\t weekdayView.on('afterRender', function(weekdayViewModel) {\n\t self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n\t });\n\t\n\t this.addChild(weekdayView);\n\t\n\t this.children.each(function(childView) {\n\t childView.render(viewModel);\n\t });\n\t\n\t this.fire('afterRender', viewModel);\n\t};\n\t\n\tmodule.exports = TaskView;\n\t\n\n\n/***/ },\n/* 104 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View of time.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar datetime = __webpack_require__(4);\n\tvar domutil = __webpack_require__(2);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar View = __webpack_require__(8);\n\tvar timeTmpl = __webpack_require__(42);\n\t\n\tvar forEachArr = util.forEachArray;\n\t\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options Options\n\t * @param {number} options.index Date index in week view.\n\t * @param {number} options.width Date element width (percent)\n\t * @param {string} options.ymd YYYMMDD string for this view\n\t * @param {boolean} options.isToday when set true then assign today design class to container.\n\t * @param {number} options.hourStart Can limit of render hour start.\n\t * @param {number} options.hourEnd Can limit of render hour end.\n\t * @param {HTMLElement} container Element to use container for this view.\n\t */\n\tfunction Time(options, container) {\n\t View.call(this, container);\n\t\n\t this.options = util.extend({\n\t index: 0,\n\t width: 0,\n\t ymd: '',\n\t isToday: false,\n\t pending: false,\n\t hourStart: 0,\n\t hourEnd: 24,\n\t defaultMarginBottom: 2,\n\t minHeight: 18.5\n\t }, options);\n\t\n\t this.timeTmpl = timeTmpl;\n\t container.style.width = options.width + '%';\n\t container.style.left = options.left + '%';\n\t\n\t if (this.options.isToday) {\n\t domutil.addClass(this.container, config.classname('today'));\n\t }\n\t}\n\t\n\tutil.inherit(Time, View);\n\t\n\t/**\n\t * Convert YYYYMMDD formatted string date to Date.\n\t * @param {string} str formatted string.\n\t * @returns {Date} start of date.\n\t */\n\tTime.prototype._parseDateGroup = function(str) {\n\t var y = parseInt(str.substr(0, 4), 10),\n\t m = parseInt(str.substr(4, 2), 10),\n\t d = parseInt(str.substr(6, 2), 10);\n\t\n\t return new TZDate(y, m - 1, d);\n\t};\n\t\n\t/**\n\t * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n\t * @param {object} options - options for calculating schedule element's bound.\n\t * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n\t * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n\t * @param {number} options.baseHeight - pixel value related with baseMS options.\n\t * @param {number[]} options.baseLeft - left position percents for each columns.\n\t * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n\t * @param {number} options.columnIndex - the number index of schedule blocks.\n\t * it represent rendering index from left sides in view.\n\t * @returns {object} bound object for supplied view model.\n\t */\n\tTime.prototype.getScheduleViewBound = function(viewModel, options) {\n\t var baseMS = options.baseMS;\n\t var baseHeight = options.baseHeight;\n\t var cropped = false;\n\t var offsetStart, width, height, top;\n\t var isReadOnly = util.pick(viewModel, 'model', 'isReadOnly') || false;\n\t\n\t offsetStart = viewModel.valueOf().start - options.todayStart;\n\t\n\t // containerHeight : milliseconds in day = x : schedule's milliseconds\n\t top = (baseHeight * offsetStart) / baseMS;\n\t height = (baseHeight * viewModel.duration()) / baseMS;\n\t width = options.baseWidth * (viewModel.extraSpace + 1);\n\t\n\t // set width auto when has no collisions.\n\t if (!viewModel.hasCollide) {\n\t width = null;\n\t }\n\t\n\t if (height + top > baseHeight) {\n\t height = baseHeight - top;\n\t cropped = true;\n\t }\n\t\n\t if (isReadOnly) {\n\t cropped = true;\n\t }\n\t\n\t return {\n\t top: top,\n\t left: options.baseLeft[options.columnIndex],\n\t width: width,\n\t height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n\t cropped: cropped\n\t };\n\t};\n\t\n\t/**\n\t * Set viewmodels for rendering.\n\t * @param {string} ymd The date of schedules. YYYYMMDD format.\n\t * @param {array} matrices The matrices for schedule placing.\n\t */\n\tTime.prototype._getBaseViewModel = function(ymd, matrices) {\n\t var self = this,\n\t options = this.options,\n\t hourStart = options.hourStart,\n\t hourEnd = options.hourEnd,\n\t containerHeight,\n\t todayStart,\n\t baseMS;\n\t\n\t /**\n\t * Calculate each schedule element bounds relative with rendered hour milliseconds and\n\t * wrap each schedule model to viewmodels.\n\t */\n\t containerHeight = this.getViewBound().height;\n\t todayStart = this._parseDateGroup(ymd);\n\t todayStart.setHours(hourStart);\n\t baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\t\n\t forEachArr(matrices, function(matrix) {\n\t var maxRowLength,\n\t widthPercent,\n\t leftPercents,\n\t i;\n\t\n\t maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n\t return row.length;\n\t }));\n\t\n\t widthPercent = 100 / maxRowLength;\n\t\n\t leftPercents = [];\n\t for (i = 0; i < maxRowLength; i += 1) {\n\t leftPercents[i] = widthPercent * i;\n\t }\n\t\n\t forEachArr(matrix, function(row) {\n\t forEachArr(row, function(viewModel, col) {\n\t var viewBound;\n\t\n\t if (!viewModel) {\n\t return;\n\t }\n\t\n\t viewBound = self.getScheduleViewBound(viewModel, {\n\t todayStart: todayStart,\n\t baseMS: baseMS,\n\t baseLeft: leftPercents,\n\t baseWidth: widthPercent,\n\t baseHeight: containerHeight,\n\t columnIndex: col\n\t });\n\t\n\t util.extend(viewModel, viewBound);\n\t });\n\t });\n\t });\n\t};\n\t\n\t/**\n\t * @returns {Date} - Date of this view.\n\t */\n\tTime.prototype.getDate = function() {\n\t return this._parseDateGroup(this.options.ymd);\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {string} ymd The date of schedules. YYYYMMDD format\n\t * @param {array} matrices Matrices for placing schedules\n\t */\n\tTime.prototype.render = function(ymd, matrices) {\n\t this._getBaseViewModel(ymd, matrices);\n\t this.container.innerHTML = this.timeTmpl({\n\t matrices: matrices\n\t });\n\t};\n\t\n\tmodule.exports = Time;\n\n\n/***/ },\n/* 105 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View for rendered schedules by times.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar common = __webpack_require__(6);\n\tvar domutil = __webpack_require__(2);\n\tvar datetime = __webpack_require__(4);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar reqAnimFrame = __webpack_require__(11);\n\tvar View = __webpack_require__(8);\n\tvar Time = __webpack_require__(104);\n\tvar AutoScroll = __webpack_require__(61);\n\tvar mainTmpl = __webpack_require__(43);\n\t\n\tvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\n\tvar SIXTY_SECONDS = 60;\n\t\n\t/**\n\t * start~end 까지의 시간 레이블 목록을 반환한다.\n\t * 현재 시간과 가까운 레이블의 경우 hidden:true로 설정한다.\n\t * @param {number} start - 시작시간\n\t * @param {number} end - 끝시간\n\t * @param {boolean} hasHourMarker - 현재 시간이 표시되는지 여부\n\t * @returns {Array.}\n\t */\n\tfunction getHoursLabels(start, end, hasHourMarker) {\n\t var now = new TZDate();\n\t var nowMinutes = now.getMinutes();\n\t var nowHours = now.getHours();\n\t var hoursRange = util.range(start, end);\n\t var nowAroundHours = null;\n\t\n\t if (hasHourMarker) {\n\t if (nowMinutes < 20) {\n\t nowAroundHours = nowHours;\n\t } else if (nowMinutes > 40) {\n\t nowAroundHours = nowHours + 1;\n\t }\n\t }\n\t\n\t return hoursRange.map(function(hours) {\n\t return {\n\t hours: hours,\n\t hidden: nowAroundHours === hours\n\t };\n\t });\n\t}\n\t/**\n\t * @constructor\n\t * @extends {View}\n\t * @param {object} options The object for view customization.\n\t * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n\t * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n\t * @param {number} [options.hourStart=0] You can change view's start hours.\n\t * @param {number} [options.hourEnd=0] You can change view's end hours.\n\t * @param {HTMLElement} container Container element.\n\t */\n\tfunction TimeGrid(options, container) {\n\t container = domutil.appendHTMLElement(\n\t 'div',\n\t container,\n\t config.classname('timegrid-container')\n\t );\n\t\n\t View.call(this, container);\n\t\n\t if (!util.browser.safari) {\n\t /**\n\t * @type {AutoScroll}\n\t */\n\t this._autoScroll = new AutoScroll(container);\n\t }\n\t\n\t /**\n\t * Time view options.\n\t * @type {object}\n\t */\n\t this.options = util.extend({\n\t renderStartDate: '',\n\t renderEndDate: '',\n\t hourStart: 0,\n\t hourEnd: 24\n\t }, options);\n\t\n\t /**\n\t * Interval id for hourmarker animation.\n\t * @type {number}\n\t */\n\t this.intervalID = 0;\n\t\n\t /**\n\t * timer id for hourmarker initial state\n\t * @type {number}\n\t */\n\t this.timerID = 0;\n\t\n\t /**\n\t * @type {boolean}\n\t */\n\t this._scrolled = false;\n\t\n\t /*\n\t * cache parent's view model\n\t * @type {object}\n\t */\n\t this._cacheParentViewModel = null;\n\t\n\t this.attachEvent();\n\t}\n\t\n\tutil.inherit(TimeGrid, View);\n\t\n\t/**********\n\t * Prototype props\n\t **********/\n\t\n\t/**\n\t * @type {string}\n\t */\n\tTimeGrid.prototype.viewName = 'timegrid';\n\t\n\t/**\n\t * Destroy view.\n\t * @override\n\t */\n\tTimeGrid.prototype._beforeDestroy = function() {\n\t clearInterval(this.intervalID);\n\t clearTimeout(this.timerID);\n\t\n\t if (this._autoScroll) {\n\t this._autoScroll.destroy();\n\t }\n\t\n\t this._autoScroll = this.hourmarker = this.intervalID = this.timerID = this._cacheParentViewModel = null;\n\t};\n\t\n\t/**\n\t * @param {Date} [time] - date object to convert pixel in grids.\n\t * use **Date.now()** when not supplied.\n\t * @returns {number} The pixel value represent current time in grids.\n\t */\n\tTimeGrid.prototype._getTopPercentByTime = function(time) {\n\t var opt = this.options,\n\t raw = datetime.raw(time || new TZDate()),\n\t hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n\t maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n\t hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n\t datetime.millisecondsFrom('minutes', raw.m) +\n\t datetime.millisecondsFrom('seconds', raw.s) +\n\t raw.ms,\n\t topPercent;\n\t\n\t topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n\t topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\t\n\t return common.limit(topPercent, [0], [100]);\n\t};\n\t\n\t/**\n\t * Get Hourmarker viewmodel.\n\t * @param {Date} now - now\n\t * @param {object} grids grid information(width, left, day)\n\t * @param {Array.} range render range\n\t * @returns {object} ViewModel of hourmarker.\n\t */\n\tTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n\t var todaymarkerLeft = -1,\n\t viewModel;\n\t\n\t now = now || new TZDate();\n\t\n\t util.forEach(range, function(date, index) {\n\t if (datetime.isSameDate(now, date)) {\n\t todaymarkerLeft = grids[index] ? grids[index].left : 0;\n\t }\n\t });\n\t\n\t viewModel = {\n\t currentHours: now.getHours(),\n\t hourmarkerTop: this._getTopPercentByTime(now),\n\t hourmarkerText: datetime.format(now, 'HH:mm'),\n\t todaymarkerLeft: todaymarkerLeft\n\t };\n\t\n\t return viewModel;\n\t};\n\t\n\t/**\n\t * Get base viewModel.\n\t * @param {object} grids grid information(width, left, day)\n\t * @param {Array.} range render range\n\t * @returns {object} ViewModel\n\t */\n\tTimeGrid.prototype._getBaseViewModel = function(grids, range) {\n\t var opt = this.options;\n\t var viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range);\n\t viewModel.hoursLabels = getHoursLabels(opt.hourStart, opt.hourEnd, viewModel.todaymarkerLeft >= 0);\n\t\n\t return viewModel;\n\t};\n\t\n\t/**\n\t * Reconcilation child views and render.\n\t * @param {object} viewModels Viewmodel\n\t * @param {object} grids grid information(width, left, day)\n\t * @param {HTMLElement} container Container element for each time view.\n\t */\n\tTimeGrid.prototype._renderChildren = function(viewModels, grids, container) {\n\t var self = this,\n\t options = this.options,\n\t childOption,\n\t child,\n\t isToday,\n\t today = datetime.format(new TZDate(), 'YYYYMMDD'),\n\t i = 0;\n\t\n\t // clear contents\n\t container.innerHTML = '';\n\t this.children.clear();\n\t\n\t // reconcilation of child views\n\t util.forEach(viewModels, function(schedules, ymd) {\n\t isToday = ymd === today;\n\t\n\t childOption = {\n\t index: i,\n\t left: grids[i] ? grids[i].left : 0,\n\t width: grids[i] ? grids[i].width : 0,\n\t ymd: ymd,\n\t isToday: isToday,\n\t isPending: options.isPending,\n\t isFocused: options.isFocused,\n\t hourStart: options.hourStart,\n\t hourEnd: options.hourEnd\n\t };\n\t\n\t child = new Time(\n\t childOption,\n\t domutil.appendHTMLElement('div', container, config.classname('time-date'))\n\t );\n\t child.render(ymd, schedules);\n\t\n\t self.addChild(child);\n\t\n\t i += 1;\n\t });\n\t};\n\t\n\t/**\n\t * @override\n\t * @param {object} viewModel ViewModel list from Week view.\n\t */\n\tTimeGrid.prototype.render = function(viewModel) {\n\t var timeViewModel = viewModel.schedulesInDateRange.time,\n\t container = this.container,\n\t grids = viewModel.grids,\n\t range = viewModel.range,\n\t baseViewModel = this._getBaseViewModel(grids, range),\n\t scheduleLen = util.keys(timeViewModel).length;\n\t\n\t this._cacheParentViewModel = viewModel;\n\t\n\t if (!scheduleLen) {\n\t return;\n\t }\n\t\n\t baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\t\n\t container.innerHTML = mainTmpl(baseViewModel);\n\t\n\t /**********\n\t * Render children\n\t **********/\n\t this._renderChildren(\n\t timeViewModel,\n\t grids,\n\t domutil.find(config.classname('.timegrid-schedules-container'), container)\n\t );\n\t\n\t this._hourLabels = domutil.find('ul', container);\n\t\n\t /**********\n\t * Render hourmarker\n\t **********/\n\t this.hourmarker = domutil.find(config.classname('.timegrid-hourmarker'), container);\n\t\n\t if (!this._scrolled) {\n\t this._scrolled = true;\n\t this.scrollToNow();\n\t }\n\t};\n\t\n\t/**\n\t * Refresh hourmarker element.\n\t */\n\tTimeGrid.prototype.refreshHourmarker = function() {\n\t var hourmarker = this.hourmarker,\n\t grids = this._cacheParentViewModel ? this._cacheParentViewModel.grids : null,\n\t range = this._cacheParentViewModel ? this._cacheParentViewModel.range : null,\n\t viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range),\n\t todaymarker,\n\t hourmarkerText;\n\t\n\t if (!hourmarker || !viewModel) {\n\t return;\n\t }\n\t\n\t todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n\t hourmarkerText = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n\t\n\t reqAnimFrame.requestAnimFrame(function() {\n\t hourmarker.style.display = 'block';\n\t hourmarker.style.top = viewModel.hourmarkerTop + '%';\n\t todaymarker.style.display = (viewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n\t hourmarkerText.innerHTML = viewModel.hourmarkerText;\n\t });\n\t};\n\t\n\t/**\n\t * Attach events\n\t */\n\tTimeGrid.prototype.attachEvent = function() {\n\t clearInterval(this.intervalID);\n\t clearTimeout(this.timerID);\n\t this.intervalID = this.timerID = null;\n\t\n\t this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n\t};\n\t\n\t/**\n\t * Scroll time grid to current hourmarker.\n\t */\n\tTimeGrid.prototype.scrollToNow = function() {\n\t var self = this,\n\t container = this.container;\n\t var offsetTop,\n\t viewBound,\n\t scrollTop,\n\t scrollAmount,\n\t scrollBy,\n\t scrollFn;\n\t\n\t if (!self.hourmarker) {\n\t return;\n\t }\n\t\n\t offsetTop = this.hourmarker.offsetTop;\n\t viewBound = this.getViewBound();\n\t scrollTop = offsetTop;\n\t scrollAmount = viewBound.height / 4;\n\t scrollBy = 10;\n\t\n\t scrollFn = function() {\n\t if (scrollTop > offsetTop - scrollAmount) {\n\t scrollTop -= scrollBy;\n\t container.scrollTop = scrollTop;\n\t\n\t reqAnimFrame.requestAnimFrame(scrollFn);\n\t } else {\n\t container.scrollTop = offsetTop - scrollAmount;\n\t }\n\t };\n\t\n\t reqAnimFrame.requestAnimFrame(scrollFn);\n\t};\n\t\n\t/**********\n\t * Schedule handlers\n\t **********/\n\t\n\t/**\n\t * Interval tick handler\n\t */\n\tTimeGrid.prototype.onTick = function() {\n\t if (this.timerID) {\n\t clearTimeout(this.timerID);\n\t this.timerID = null;\n\t }\n\t\n\t if (!this.intervalID) {\n\t this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n\t }\n\t this.refreshHourmarker();\n\t};\n\t\n\tmodule.exports = TimeGrid;\n\n\n/***/ },\n/* 106 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/**\n\t * @fileoverview View of days UI.\n\t * @author NHN Ent. FE Development Team \n\t */\n\t'use strict';\n\t\n\tvar util = __webpack_require__(1);\n\tvar config = __webpack_require__(3);\n\tvar domutil = __webpack_require__(2);\n\tvar datetime = __webpack_require__(4);\n\tvar TZDate = __webpack_require__(5).Date;\n\tvar View = __webpack_require__(8);\n\t\n\t/**\n\t * FullCalendar 에서는 날짜 정보만 사용(YYYY-MM-DD) 하고,\n\t * SplitTimeCalendar 에서는 타임존 정보까지 포함된 문자열을 사용하기 때문에 분기처리함.\n\t * @param {String} dateString - date string\n\t * @returns {TZDate}\n\t */\n\tfunction parseRangeDateString(dateString) {\n\t if (dateString.length === 10) {\n\t return datetime.parse(dateString);\n\t }\n\t\n\t return new TZDate(dateString);\n\t}\n\t\n\t/**\n\t * @constructor\n\t * @param {Base.Week} controller The controller mixin part.\n\t * @param {object} options View options\n\t * @param {string} [options.renderStartDate] Start date of render.\n\t * if not supplied then use -3d from today. YYYY-MM-DD format.\n\t * @param {string} [options.renderEndDate] End date of render.\n\t * if not supplied then use +3d from today. YYYY-MM-DD format.\n\t * @param {string} [options.cssPrefix] - CSS classname prefix\n\t * @param {HTMLElement} container The element to use container for this view.\n\t * @extends {View}\n\t */\n\tfunction Week(controller, options, container) {\n\t var range;\n\t\n\t container = domutil.appendHTMLElement('div', container);\n\t\n\t View.call(this, container);\n\t\n\t domutil.addClass(container, config.classname('week-container'));\n\t\n\t range = this._getRenderDateRange(new TZDate());\n\t\n\t /**\n\t * @type {object} Options for view.\n\t */\n\t this.options = util.extend({\n\t scheduleFilter: function(schedule) {\n\t return Boolean(schedule.isVisible);\n\t },\n\t renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n\t renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n\t narrowWeekend: false,\n\t startDayOfWeek: 0,\n\t workweek: false\n\t }, options);\n\t\n\t /**\n\t * Week controller mixin.\n\t * @type {Base.Week}\n\t */\n\t this.controller = controller;\n\t}\n\t\n\tutil.inherit(Week, View);\n\t\n\t/**********\n\t * Override props\n\t **********/\n\t\n\t/**\n\t * Render each child view with schedules in ranges.\n\t * @fires Week#afterRender\n\t * @override\n\t */\n\tWeek.prototype.render = function() {\n\t var options = this.options,\n\t scheduleFilter = options.scheduleFilter,\n\t narrowWeekend = options.narrowWeekend,\n\t startDayOfWeek = options.startDayOfWeek,\n\t workweek = options.workweek;\n\t var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\t\n\t renderStartDate = parseRangeDateString(options.renderStartDate);\n\t renderEndDate = parseRangeDateString(options.renderEndDate);\n\t\n\t range = datetime.range(\n\t datetime.start(renderStartDate),\n\t datetime.end(renderEndDate),\n\t datetime.MILLISECONDS_PER_DAY\n\t );\n\t\n\t if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n\t range = util.filter(range, function(date) {\n\t return !datetime.isWeekend(date.getDay());\n\t });\n\t\n\t renderStartDate = range[0];\n\t renderEndDate = range[range.length - 1];\n\t }\n\t\n\t schedulesInDateRange = this.controller.findByDateRange(\n\t datetime.start(renderStartDate),\n\t datetime.end(renderEndDate),\n\t scheduleFilter\n\t );\n\t\n\t grids = datetime.getGridLeftAndWidth(\n\t range.length,\n\t narrowWeekend,\n\t startDayOfWeek,\n\t workweek\n\t );\n\t\n\t viewModel = {\n\t schedulesInDateRange: schedulesInDateRange,\n\t renderStartDate: renderStartDate,\n\t renderEndDate: renderEndDate,\n\t grids: grids,\n\t range: range\n\t };\n\t\n\t this.children.each(function(childView) {\n\t childView.render(viewModel);\n\t });\n\t\n\t /**\n\t * @event Week#afterRender\n\t */\n\t this.fire('afterRender');\n\t};\n\t\n\t/**********\n\t * Prototype props\n\t **********/\n\t\n\tWeek.prototype.viewName = 'week';\n\t\n\t/**\n\t * Calculate default render date range from supplied date.\n\t * @param {Date} baseDate base date.\n\t * @returns {object} date range.\n\t */\n\tWeek.prototype._getRenderDateRange = function(baseDate) {\n\t var base = datetime.start(baseDate),\n\t start = new TZDate(Number(base)),\n\t end = new TZDate(Number(base));\n\t\n\t start.setDate(start.getDate() - 3);\n\t end.setDate(end.getDate() + 3);\n\t\n\t return {\n\t start: start,\n\t end: end\n\t };\n\t};\n\t\n\tutil.CustomEvents.mixin(Week);\n\t\n\tmodule.exports = Week;\n\t\n\n\n/***/ }\n/******/ ])\n});\n;\n\n\n// WEBPACK FOOTER //\n// tui-calendar.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 739569ed3bd81592b156","/**\n * @fileoverview The entry file of fullcalendar\n * @author NHN Ent. FE Development Team\n */\n\n'use strict';\n\nrequire('./css/main.styl');\nrequire('./js/view/template/helper');\n\nmodule.exports = require('./js/factory/calendar');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/index.js\n// module id = 0\n// module chunks = 0","module.exports = __WEBPACK_EXTERNAL_MODULE_1__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}\n// module id = 1\n// module chunks = 0","/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n/**\n * @fileoverview Utility modules for manipulate DOM elements.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar domevent = require('./domevent');\nvar Collection = require('./collection');\nvar util = require('tui-code-snippet');\n\nvar posKey = '_pos',\n domutil;\n\nvar CSS_AUTO_REGEX = /^auto$|^$|%/;\n\n/**\n * Trim leading, trailing whitespace\n * @param {string} str - string to trim\n * @returns {string} trimmed string\n */\nfunction trim(str) {\n return str.replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n}\n\ndomutil = {\n /**\n * Create DOM element and return it.\n * @param {string} tagName Tag name to append.\n * @param {HTMLElement} [container] HTML element will be parent to created element.\n * if not supplied, will use **document.body**\n * @param {string} [className] Design class names to appling created element.\n * @returns {HTMLElement} HTML element created.\n */\n appendHTMLElement: function(tagName, container, className) {\n var el;\n\n className = className || '';\n\n el = document.createElement(tagName);\n el.className = className;\n\n if (container) {\n container.appendChild(el);\n } else {\n document.body.appendChild(el);\n }\n\n return el;\n },\n\n /**\n * Remove element from parent node.\n * @param {HTMLElement} el - element to remove.\n */\n remove: function(el) {\n if (el && el.parentNode) {\n el.parentNode.removeChild(el);\n }\n },\n\n /**\n * Get element by id\n * @param {string} id element id attribute\n * @returns {HTMLElement} element\n */\n get: function(id) {\n return document.getElementById(id);\n },\n\n /**\n * Check supplied element is matched selector.\n * @param {HTMLElement} el - element to check\n * @param {string} selector - selector string to check\n * @returns {boolean} match?\n */\n _matcher: function(el, selector) {\n var cssClassSelector = /^\\./,\n idSelector = /^#/;\n\n if (cssClassSelector.test(selector)) {\n return domutil.hasClass(el, selector.replace('.', ''));\n }\n if (idSelector.test(selector)) {\n return el.id === selector.replace('#', '');\n }\n\n return el.nodeName.toLowerCase() === selector.toLowerCase();\n },\n\n /**\n * Find DOM element by specific selectors.\n * below three selector only supported.\n *\n * 1. css selector\n * 2. id selector\n * 3. nodeName selector\n * @param {string} selector selector\n * @param {(HTMLElement|string)} [root] You can assign root element to find\n * if not supplied, document.body will use.\n * @param {boolean|function} [multiple=false] - set true then return all\n * elements that meet condition, if set function then use it filter function.\n * @returns {HTMLElement} HTML element finded.\n */\n find: function(selector, root, multiple) {\n var result = [],\n found = false,\n isFirst = util.isUndefined(multiple) || multiple === false,\n isFilter = util.isFunction(multiple);\n\n if (util.isString(root)) {\n root = domutil.get(root);\n }\n\n root = root || window.document.body;\n\n /**\n * Function for recursive find specific node\n * @param {HTMLElement} el - element to search\n * @param {string} selector - selector\n */\n function recurse(el, selector) {\n var childNodes = el.childNodes,\n i = 0,\n len = childNodes.length,\n cursor;\n\n for (; i < len; i += 1) {\n cursor = childNodes[i];\n\n if (cursor.nodeName === '#text') {\n continue;\n }\n\n if (domutil._matcher(cursor, selector)) {\n if ((isFilter && multiple(cursor)) || !isFilter) {\n result.push(cursor);\n }\n\n if (isFirst) {\n found = true;\n break;\n }\n } else if (cursor.childNodes.length > 0) {\n recurse(cursor, selector);\n if (found) {\n break;\n }\n }\n }\n }\n\n recurse(root, selector);\n\n return isFirst ? (result[0] || null) : result;\n },\n\n /**\n * Find parent element recursively.\n * @param {HTMLElement} el - base element to start find.\n * @param {string} selector - selector string for find\n * @param {boolean} excludeEl - exclude the base element to find\n * @returns {HTMLElement} - element finded or null.\n */\n closest: function(el, selector, excludeEl) {\n var parent = el.parentNode;\n\n if (!excludeEl && domutil._matcher(el, selector)) {\n return el;\n }\n\n while (parent && parent !== window.document.body) {\n if (domutil._matcher(parent, selector)) {\n return parent;\n }\n\n parent = parent.parentNode;\n }\n\n return null;\n },\n\n /**\n * Return texts inside element.\n * @param {HTMLElement} el target element\n * @returns {string} text inside node\n */\n text: function(el) {\n var ret = '',\n i = 0,\n nodeType = el.nodeType;\n\n if (nodeType) {\n if (nodeType === 1 || nodeType === 9 || nodeType === 11) {\n // nodes that available contain other nodes\n if (typeof el.textContent === 'string') {\n return el.textContent;\n }\n\n for (el = el.firstChild; el; el = el.nextSibling) {\n ret += domutil.text(el);\n }\n } else if (nodeType === 3 || nodeType === 4) {\n // TEXT, CDATA SECTION\n return el.nodeValue;\n }\n } else {\n for (; el[i]; i += 1) {\n ret += domutil.text(el[i]);\n }\n }\n\n return ret;\n },\n\n /**\n * Set data attribute to target element\n * @param {HTMLElement} el - element to set data attribute\n * @param {string} key - key\n * @param {string|number} data - data value\n */\n setData: function(el, key, data) {\n if ('dataset' in el) {\n el.dataset[key] = data;\n\n return;\n }\n\n el.setAttribute('data-' + key, data);\n },\n\n /**\n * Get data value from data-attribute\n * @param {HTMLElement} el - target element\n * @param {string} key - key\n * @returns {string} value\n */\n getData: function(el, key) {\n if ('dataset' in el) {\n return el.dataset[key];\n }\n\n return el.getAttribute('data-' + key);\n },\n\n /**\n * Check element has specific design class name.\n * @param {HTMLElement} el target element\n * @param {string} name css class\n * @returns {boolean} return true when element has that css class name\n */\n hasClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n return el.classList.contains(name);\n }\n\n className = domutil.getClass(el);\n\n return className.length > 0 && new RegExp('(^|\\\\s)' + name + '(\\\\s|$)').test(className);\n },\n\n /**\n * Add design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n addClass: function(el, name) {\n var className;\n\n if (!util.isUndefined(el.classList)) {\n util.forEachArray(name.split(' '), function(value) {\n el.classList.add(value);\n });\n } else if (!domutil.hasClass(el, name)) {\n className = domutil.getClass(el);\n domutil.setClass(el, (className ? className + ' ' : '') + name);\n }\n },\n\n /**\n *\n * Overwrite design class to HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name css class name\n */\n setClass: function(el, name) {\n if (util.isUndefined(el.className.baseVal)) {\n el.className = name;\n } else {\n el.className.baseVal = name;\n }\n },\n\n /**\n * Element에 cssClass속성을 제거하는 메서드\n * Remove specific design class from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} name class name to remove\n */\n removeClass: function(el, name) {\n var removed = '';\n\n if (!util.isUndefined(el.classList)) {\n el.classList.remove(name);\n } else {\n removed = (' ' + domutil.getClass(el) + ' ').replace(' ' + name + ' ', ' ');\n domutil.setClass(el, trim(removed));\n }\n },\n\n /**\n * Get HTML element's design classes.\n * @param {HTMLElement} el target element\n * @returns {string} element css class name\n */\n getClass: function(el) {\n if (!el || !el.className) {\n return '';\n }\n\n return util.isUndefined(el.className.baseVal) ? el.className : el.className.baseVal;\n },\n\n /**\n * Get specific CSS style value from HTML element.\n * @param {HTMLElement} el target element\n * @param {string} style css attribute name\n * @returns {(string|null)} css style value\n */\n getStyle: function(el, style) {\n var value = el.style[style] || (el.currentStyle && el.currentStyle[style]),\n css;\n\n if ((!value || value === 'auto') && document.defaultView) {\n css = document.defaultView.getComputedStyle(el, null);\n value = css ? css[style] : null;\n }\n\n return value === 'auto' ? null : value;\n },\n\n /**\n * get element's computed style values.\n *\n * in lower IE8. use polyfill function that return object. it has only one function 'getPropertyValue'\n * @param {HTMLElement} el - element want to get style.\n * @returns {object} virtual CSSStyleDeclaration object.\n */\n getComputedStyle: function(el) {\n var defaultView = document.defaultView;\n\n if (!defaultView || !defaultView.getComputedStyle) {\n return {\n getPropertyValue: function(prop) {\n /* eslint-disable no-useless-escape */\n var re = /(\\-([a-z]){1})/g;\n if (prop === 'float') {\n prop = 'styleFloat';\n }\n\n if (re.test(prop)) {\n prop = prop.replace(re, function() {\n return arguments[2].toUpperCase();\n });\n }\n\n return el.currentStyle[prop] ? el.currentStyle[prop] : null;\n }\n };\n }\n\n return document.defaultView.getComputedStyle(el);\n },\n\n /**\n * Set position CSS style.\n * @param {HTMLElement} el target element\n * @param {number} [x=0] left pixel value.\n * @param {number} [y=0] top pixel value.\n */\n setPosition: function(el, x, y) {\n x = util.isUndefined(x) ? 0 : x;\n y = util.isUndefined(y) ? 0 : y;\n\n el[posKey] = [x, y];\n\n el.style.left = util.isNumber(x) ? (x + 'px') : x;\n el.style.top = util.isNumber(y) ? (y + 'px') : y;\n },\n\n /**\n * Set position CSS style with left, top, right, bottom\n * @param {HTMLElement} el target element\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\n setLTRB: function(el, ltrb) {\n var props = ['left', 'top', 'right', 'bottom'];\n var value;\n props.forEach(function(prop) {\n value = util.isUndefined(ltrb[prop]) ? '' : ltrb[prop];\n el.style[prop] = util.isNumber(value) ? (value + 'px') : value;\n });\n },\n\n /**\n * Get position from HTML element.\n * @param {HTMLElement} el target element\n * @param {boolean} [clear=false] clear cache before calculating position.\n * @returns {number[]} point\n */\n getPosition: function(el, clear) {\n var left,\n top,\n bound;\n\n if (clear) {\n el[posKey] = null;\n }\n\n if (el[posKey]) {\n return el[posKey];\n }\n\n left = 0;\n top = 0;\n\n if ((CSS_AUTO_REGEX.test(el.style.left) || CSS_AUTO_REGEX.test(el.style.top)) &&\n 'getBoundingClientRect' in el) {\n // 엘리먼트의 left또는 top이 'auto'일 때 수단\n bound = el.getBoundingClientRect();\n\n left = bound.left;\n top = bound.top;\n } else {\n left = parseFloat(el.style.left || 0);\n top = parseFloat(el.style.top || 0);\n }\n\n return [left, top];\n },\n\n /**\n * Return element's size\n * @param {HTMLElement} el target element\n * @returns {number[]} width, height\n */\n getSize: function(el) {\n var bound,\n width = domutil.getStyle(el, 'width'),\n height = domutil.getStyle(el, 'height');\n\n if ((CSS_AUTO_REGEX.test(width) || CSS_AUTO_REGEX.test(height) ||\n util.isNull(width) || util.isNull(height)) &&\n 'getBoundingClientRect' in el) {\n bound = el.getBoundingClientRect();\n width = bound.width || el.offsetWidth;\n height = bound.height || el.offsetHeight;\n } else {\n width = parseFloat(width || 0);\n height = parseFloat(height || 0);\n }\n\n return [width, height];\n },\n\n /**\n * Fallback of getBoundingClientRect\n * @param {HTMLElement} el - element\n * @returns {object} rect\n */\n getBCRect: function(el) {\n var rect = el.getBoundingClientRect();\n\n rect = util.extend({\n width: el.offsetWidth,\n height: el.offsetHeight\n }, rect);\n\n return rect;\n },\n\n /**\n * Check specific CSS style is available.\n * @param {array} props property name to testing\n * @returns {(string|boolean)} return true when property is available\n * @example\n * var props = ['transform', '-webkit-transform'];\n * domutil.testProp(props); // 'transform'\n */\n testProp: function(props) {\n var style = document.documentElement.style,\n i = 0,\n len = props.length;\n\n for (; i < len; i += 1) {\n if (props[i] in style) {\n return props[i];\n }\n }\n\n return false;\n },\n\n /**\n * Get form data\n * @param {HTMLFormElement} formElement - form element to extract data\n * @returns {object} form data\n */\n getFormData: function(formElement) {\n var groupedByName = new Collection(function() {\n return this.length;\n }),\n noDisabledFilter = function(el) {\n return !el.disabled;\n },\n output = {};\n\n groupedByName.add.apply(\n groupedByName,\n domutil.find('input', formElement, noDisabledFilter)\n .concat(domutil.find('select', formElement, noDisabledFilter))\n .concat(domutil.find('textarea', formElement, noDisabledFilter))\n );\n\n groupedByName = groupedByName.groupBy(function(el) {\n return (el && el.getAttribute('name')) || '_other';\n });\n\n util.forEach(groupedByName, function(elements, name) {\n if (name === '_other') {\n return;\n }\n\n elements.each(function(el) {\n var nodeName = el.nodeName.toLowerCase(),\n type = el.type,\n result = [];\n\n if (type === 'radio') {\n result = [elements.find(function(el) {\n return el.checked;\n }).toArray().pop()];\n } else if (type === 'checkbox') {\n result = elements.find(function(el) {\n return el.checked;\n }).toArray();\n } else if (nodeName === 'select') {\n elements.find(function(el) {\n return !!el.childNodes.length;\n }).each(function(el) {\n result = result.concat(\n domutil.find('option', el, function(opt) {\n return opt.selected;\n })\n );\n });\n } else {\n result = elements.find(function(el) {\n return el.value !== '';\n }).toArray();\n }\n\n result = util.map(result, function(el) {\n return el.value;\n });\n\n if (!result.length) {\n result = '';\n } else if (result.length === 1) {\n result = result[0];\n }\n\n output[name] = result;\n });\n });\n\n return output;\n }\n};\n\n/*eslint-disable*/\nvar userSelectProperty = domutil.testProp([\n 'userSelect',\n 'WebkitUserSelect',\n 'OUserSelect',\n 'MozUserSelect',\n 'msUserSelect'\n]);\nvar supportSelectStart = 'onselectstart' in document;\nvar prevSelectStyle = '';\n/* eslint-enable*/\n\n/**\n * Disable browser's text selection behaviors.\n * @method\n */\ndomutil.disableTextSelection = (function() {\n if (supportSelectStart) {\n return function(dom) {\n domevent.on(dom, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function(dom) {\n var style = dom.style;\n prevSelectStyle = style[userSelectProperty];\n style[userSelectProperty] = 'none';\n };\n})();\n\n/**\n * Enable browser's text selection behaviors.\n * @method\n */\ndomutil.enableTextSelection = (function() {\n if (supportSelectStart) {\n return function() {\n domevent.off(window, 'selectstart', domevent.preventDefault);\n };\n }\n\n return function() {\n document.documentElement.style[userSelectProperty] = prevSelectStyle;\n };\n})();\n\n/**\n * Disable browser's image drag behaviors.\n */\ndomutil.disableImageDrag = function() {\n domevent.on(window, 'dragstart', domevent.preventDefault);\n};\n\n/**\n * Enable browser's image drag behaviors.\n */\ndomutil.enableImageDrag = function() {\n domevent.off(window, 'dragstart', domevent.preventDefault);\n};\n\nmodule.exports = domutil;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/domutil.js\n// module id = 2\n// module chunks = 0","/**\n * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar cssPrefix = 'tui-full-calendar-',\n alldayGetViewID = new RegExp('^' + cssPrefix + 'weekday[\\\\s]tui-view-(\\\\d+)'),\n alldayCheckPermission = new RegExp('^' + cssPrefix + 'schedule(-title)?$'),\n timeGetViewID = new RegExp('^' + cssPrefix + 'time-date[\\\\s]tui-view-(\\\\d+)');\n\nvar config = {\n throwError: function(msg) {\n alert(msg);\n },\n\n cssPrefix: cssPrefix,\n\n classname: function(str) {\n str = str || '';\n\n if (str.charAt(0) === '.') {\n return '.' + config.cssPrefix + str.slice(1);\n }\n\n return config.cssPrefix + str;\n },\n\n allday: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n time: {\n getViewIDRegExp: timeGetViewID\n }\n};\n\nmodule.exports = config;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/config.js\n// module id = 3\n// module chunks = 0","/**\n * @fileoverview datetime utility module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('./timezone').Date,\n dw = require('../common/dw');\nvar util = require('tui-code-snippet');\n/* eslint-disable no-useless-escape */\nvar dateFormatRx = /^(\\d{4}[-|\\/]*\\d{2}[-|\\/]*\\d{2})\\s?(\\d{2}:\\d{2}:\\d{2})?$/;\nvar datetime, tokenFunc;\n\nvar memo = {\n millisecondsTo: {},\n millisecondsFrom: {}\n};\n\ntokenFunc = {\n /**\n * @param {TZDate} date date object.\n * @returns {string} YYYYMMDD\n */\n 'YYYYMMDD': function(date) {\n return [\n date.getFullYear(),\n datetime.leadingZero(date.getMonth() + 1, 2),\n datetime.leadingZero(date.getDate(), 2)\n ].join('');\n },\n /**\n * @param {TZDate} date date object\n * @returns {string} four digit year number\n */\n 'YYYY': function(date) {\n return String(date.getFullYear());\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit month number\n */\n 'MM': function(date) {\n return datetime.leadingZero(date.getMonth() + 1, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} two digit date number\n */\n 'DD': function(date) {\n return datetime.leadingZero(date.getDate(), 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} HH:mm\n */\n 'HH:mm': function(date) {\n var hour = date.getHours(),\n minutes = date.getMinutes();\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n }\n};\n\ndatetime = {\n /**\n * The number of milliseconds one day.\n * @type {number}\n */\n MILLISECONDS_PER_DAY: 86400000,\n\n /**\n * The number of milliseconds one hour.\n * @type {number}\n */\n MILLISECONDS_PER_HOUR: 3600000,\n\n /**\n * The number of milliseconds one minutes.\n * @type {number}\n */\n MILLISECONDS_PER_MINUTES: 60000,\n\n /**\n * convert milliseconds\n * @param {string} type - type of value.\n * @param {number} value - value to convert.\n * @param {function} iteratee - iteratee function to use reduce.\n * @returns {number} converted value.\n */\n _convMilliseconds: function(type, value, iteratee) {\n var conv = [24, 60, 60, 1000],\n index = {\n day: 0,\n hour: 1,\n minutes: 2,\n seconds: 3\n };\n\n if (!(type in index) || global.isNaN(value)) {\n return false;\n }\n\n return util.reduce([value].concat(conv.slice(index[type])), iteratee);\n },\n\n /**\n * Convert milliseconds value to other type\n * @param {type} type convert to type want to. support \"day\", \"hour\",\n * \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsTo: function(type, value) {\n var cache = memo.millisecondsTo,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m / v;\n });\n\n return cache[key];\n },\n\n /**\n * Convert value to milliseconds\n * @param {type} type - type of supplied value. support \"hour\", \"minutes\", \"seconds\" only.\n * @param {value} value - value to convert.\n * @returns {number} converted value.\n */\n millisecondsFrom: function(type, value) {\n var cache = memo.millisecondsFrom,\n key = type + value;\n\n if (cache[key]) {\n return cache[key];\n }\n\n cache[key] = datetime._convMilliseconds(type, value, function(m, v) {\n return m * v;\n });\n\n return cache[key];\n },\n\n /**\n * Make date array from supplied paramters.\n * @param {TZDate} start Start date.\n * @param {TZDate} end End date.\n * @param {number} step The number of milliseconds to use increment.\n * @returns {array} Date array.\n */\n range: function(start, end, step) {\n var startTime = start.getTime();\n var endTime = end.getTime();\n var cursor = startTime;\n var date = dw(startTime);\n var result = [];\n\n while (cursor <= endTime && endTime > date.d.getTime()) {\n result.push(new TZDate(date.d));\n cursor = cursor + step;\n date.addDate(1);\n }\n\n return result;\n },\n\n /**\n * Clone supplied date.\n * @param {TZDate} date date object to clone.\n * @returns {TZDate} Cloned date object\n */\n clone: function(date) {\n return new TZDate(date.getTime());\n },\n\n /**\n * Compare two dates.\n *\n * when first date is latest then seconds then return -1.\n *\n * return +1 reverse, and return 0 is same.\n * @param {TZDate} d1 Date object to compare.\n * @param {TZDate} d2 Date object to compare.\n * @returns {number} result of compare\n */\n compare: function(d1, d2) {\n var _d1 = d1.getTime(),\n _d2 = d2.getTime();\n\n if (_d1 < _d2) {\n return -1;\n }\n if (_d1 > _d2) {\n return 1;\n }\n\n return 0;\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month?\n */\n isSameMonth: function(d1, d2) {\n return (d1.getFullYear() === d2.getFullYear() &&\n d1.getMonth() === d2.getMonth());\n },\n\n /**\n * @param {TZDate} d1 - date one\n * @param {TZDate} d2 - date two\n * @returns {boolean} is two date are same year, month, date?\n */\n isSameDate: function(d1, d2) {\n var sameMonth = datetime.isSameMonth(d1, d2);\n\n return sameMonth && (d1.getDate() === d2.getDate());\n },\n\n /**\n * Check supplied parameter is valid date object.\n * @param {*} d Object to validate.\n * @returns {boolean} return true when parameter is valid date object.\n */\n isValid: function(d) {\n if (d instanceof TZDate) {\n return !window.isNaN(d.getTime());\n }\n\n return false;\n },\n\n /**\n * convert non local date to UTC date.\n * @param {TZDate} d Date to convert UTC.\n * @returns {TZDate} The UTC Date.\n */\n toUTC: function(d) {\n var l = d.getTime(),\n offset = datetime.millisecondsFrom('minutes', new Date().getTimezoneOffset());\n\n return new TZDate(l + offset);\n },\n\n /**\n * pad left zero characters.\n * @param {number} number number value to pad zero.\n * @param {number} length pad length to want.\n * @returns {string} padded string.\n */\n leadingZero: function(number, length) {\n var zero = '',\n i = 0;\n\n if (String(number).length > length) {\n return String(number);\n }\n\n for (; i < (length - 1); i += 1) {\n zero += '0';\n }\n\n return (zero + number).slice(length * -1);\n },\n\n /**\n * Convert date string to date object.\n *\n * Only listed below formats avaliable.\n *\n * - YYYYMMDD\n * - YYYY/MM/DD\n * - YYYY-MM-DD\n * - YYYY/MM/DD HH:mm:SS\n * - YYYY-MM-DD HH:mm:SS\n *\n * @param {string} str Formatted string.\n * @param {number} [fixMonth=-1] - number for fix month calculating.\n * @returns {(Date|boolean)} Converted Date object. when supplied str is not available then return false.\n */\n parse: function(str, fixMonth) {\n var separator,\n matches = str.match(dateFormatRx),\n ymd,\n hms;\n\n if (util.isUndefined(fixMonth)) {\n fixMonth = -1;\n }\n\n if (!matches) {\n return false;\n }\n\n if (str.length > 8) {\n // YYYY/MM/DD\n // YYYY-MM-DD\n // YYYY/MM/DD HH:mm:SS\n // YYYY-MM-DD HH:mm:SS\n separator = ~str.indexOf('/') ? '/' : '-';\n matches = matches.splice(1);\n\n ymd = matches[0].split(separator);\n hms = matches[1] ? matches[1].split(':') : [0, 0, 0];\n } else {\n // YYYYMMDD\n matches = matches[0];\n ymd = [matches.substr(0, 4), matches.substr(4, 2), matches.substr(6, 2)];\n hms = [0, 0, 0];\n }\n\n return new TZDate(\n Number(ymd[0]),\n Number(ymd[1]) + fixMonth,\n Number(ymd[2]),\n Number(hms[0]),\n Number(hms[1]),\n Number(hms[2])\n );\n },\n\n /**\n * Return date object from Date.\n * @param {TZDate} date date\n * @returns {object} Date object.\n */\n raw: function(date) {\n return {\n y: date.getFullYear(),\n M: date.getMonth(),\n d: date.getDate(),\n h: date.getHours(),\n m: date.getMinutes(),\n s: date.getSeconds(),\n ms: date.getMilliseconds()\n };\n },\n\n /**\n * Return 00:00:00 supplied date.\n * @param {TZDate} date date.\n * @returns {TZDate} start date.\n */\n start: function(date) {\n var d = new TZDate(date.getTime());\n d.setHours(0, 0, 0, 0);\n\n return d;\n },\n\n /**\n * Return 23:59:59 supplied date.\n * @param {TZDate} date date.\n * @returns {TZDate} end date.\n */\n end: function(date) {\n var d = new TZDate(date.getTime());\n d.setHours(23, 59, 59, 0);\n\n return d;\n },\n\n /**\n * Return formatted string as basis of supplied string.\n *\n * Supported Token Lists.\n *\n * - YYYY => 1988\n * - MM => 01 ~ 12\n * - DD => 01 ~ 31\n * - YYYYMMDD => 19880925\n * @param {TZDate} date String want to formatted.\n * @param {string} format format str.\n * @returns {string} Formatted date string.\n */\n format: function(date, format) {\n var result = format;\n util.forEachOwnProperties(tokenFunc, function(converter, token) {\n result = result.replace(token, converter(date));\n });\n\n return result;\n },\n\n /**\n * Get start date of specific month\n * @param {TZDate} date - date to get start date\n * @returns {TZDate} start date of supplied month\n */\n startDateOfMonth: function(date) {\n var startDate = new TZDate(Number(date));\n\n startDate.setDate(1);\n startDate.setHours(0, 0, 0, 0);\n\n return startDate;\n },\n\n /**\n * Get end date of specific month\n * @param {TZDate} date - date to get end date\n * @returns {TZDate} end date of supplied month\n */\n endDateOfMonth: function(date) {\n var endDate = datetime.startDateOfMonth(date);\n\n endDate.setMonth(endDate.getMonth() + 1);\n endDate.setDate(endDate.getDate() - 1);\n endDate.setHours(23, 59, 59);\n\n return endDate;\n },\n\n /**\n * Return 2-dimensional array month calendar\n *\n * dates that different month with given date are negative values\n * @param {TZDate} month - date want to calculate month calendar\n * @param {object} options - options\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {boolean} options.isAlways6Week - whether the number of weeks are always 6\n * @param {number} options.visibleWeeksCount visible weeks count\n * @param {boolean} options.workweek - only show work week\n * @param {function} [iteratee] - iteratee for customizing calendar object\n * @returns {Array.} calendar 2d array\n */\n arr2dCalendar: function(month, options, iteratee) {\n var weekArr,\n start, end,\n startIndex, endIndex,\n totalDate, afterDates,\n cursor, week,\n calendar = [],\n startDayOfWeek = options.startDayOfWeek,\n isAlways6Week = options.isAlways6Week,\n visibleWeeksCount = options.visibleWeeksCount,\n workweek = options.workweek;\n\n if (visibleWeeksCount) {\n start = new TZDate(month);\n end = dw(new TZDate(month));\n end.addDate(7 * (visibleWeeksCount - 1));\n end = end.d;\n } else {\n start = datetime.startDateOfMonth(month);\n end = datetime.endDateOfMonth(month);\n }\n\n // create day number array by startDayOfWeek number\n // 4 -> [4, 5, 6, 0, 1, 2, 3]\n // 2 -> [2, 3, 4, 5, 6, 0, 1]\n weekArr = util.range(startDayOfWeek, 7).concat(util.range(7)).slice(0, 7);\n startIndex = util.inArray(start.getDay(), weekArr);\n endIndex = util.inArray(end.getDay(), weekArr);\n // free dates after last date of this month\n afterDates = 7 - (endIndex + 1);\n\n if (visibleWeeksCount) {\n totalDate = 7 * visibleWeeksCount;\n } else {\n totalDate = isAlways6Week ? (7 * 6) : (startIndex + end.getDate() + afterDates);\n }\n cursor = new TZDate(new TZDate(start).setDate(start.getDate() - startIndex));\n // iteratee all dates to render\n util.forEachArray(util.range(totalDate), function(i) {\n var date;\n\n if (!(i % 7)) {\n // group each date by week\n week = calendar[i / 7] = [];\n }\n\n date = new TZDate(cursor);\n date = iteratee ? iteratee(date) : date;\n if (!workweek || !datetime.isWeekend(date.getDay())) {\n week.push(date);\n }\n\n // add date\n cursor.setDate(cursor.getDate() + 1);\n });\n\n return calendar;\n },\n\n /**\n * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek\n *\n * @param {number} days - day length of week\n * @param {boolean} narrowWeekend - narrow weekend\n * @param {number} startDayOfWeek - start day of week\n * @param {boolean} workweek - only show work week\n * @returns {Array} day, left, width\n */\n getGridLeftAndWidth: function(days, narrowWeekend, startDayOfWeek, workweek) {\n var limitDaysToApplyNarrowWeekend = 5;\n var uniformWidth = 100 / days;\n var wideWidth = days > limitDaysToApplyNarrowWeekend ? 100 / (days - 1) : uniformWidth;\n var accumulatedWidth = 0;\n var dates = util.range(startDayOfWeek, 7).concat(util.range(days)).slice(0, 7);\n\n if (workweek) {\n dates = util.filter(dates, function(day) {\n return !datetime.isWeekend(day);\n });\n }\n\n narrowWeekend = workweek ? false : narrowWeekend;\n\n return util.map(dates, function(day) {\n var model;\n var width = narrowWeekend ? wideWidth : uniformWidth;\n if (days > limitDaysToApplyNarrowWeekend && narrowWeekend && datetime.isWeekend(day)) {\n width = wideWidth / 2;\n }\n\n model = {\n day: day,\n width: width,\n left: accumulatedWidth\n };\n\n accumulatedWidth += width;\n\n return model;\n });\n },\n\n /**\n * Get that day is weekend\n * @param {number} day number\n * @returns {boolean} true if weekend or false\n */\n isWeekend: function(day) {\n return day === 0 || day === 6;\n }\n};\n\nmodule.exports = datetime;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/datetime.js\n// module id = 4\n// module chunks = 0","/**\n * @fileoverview timezone\n * @author NHN Ent. FE Development Lab \n */\n'use strict';\n\nvar MIN_TO_MS = 60 * 1000;\nvar customOffsetMs = getTimezoneOffset();\nvar timezoneOffsetCallback = null;\n\nvar getterMethods = [\n 'getDate',\n 'getDay',\n 'getFullYear',\n 'getHours',\n 'getMilliseconds',\n 'getMinutes',\n 'getMonth',\n 'getSeconds'\n];\n\nvar setterMethods = [\n 'setDate',\n 'setFullYear',\n 'setHours',\n 'setMilliseconds',\n 'setMinutes',\n 'setMonth',\n 'setSeconds'\n];\n\n/**\n * Get the timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n */\nfunction getTimezoneOffset(timestamp) {\n timestamp = timestamp || Date.now();\n\n return new Date(timestamp).getTimezoneOffset() * MIN_TO_MS;\n}\n\n/**\n * Get the custome timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n */\nfunction getCustomTimezoneOffset(timestamp) {\n if (timezoneOffsetCallback) {\n return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n }\n\n return customOffsetMs;\n}\n\n/**\n * Create a Date instance with multiple arguments\n * @param {Array} args - arguments\n * @returns {Date}\n */\nfunction createDateWithMultipleArgs(args) {\n var utc = Date.UTC.apply(null, args);\n\n return new Date(utc + getTimezoneOffset(utc));\n}\n\n/**\n * Create a Date instance with argument\n * @param {Date|TZDate|string|number} arg - arguments\n * @returns {Date}\n */\nfunction createDateWithSingleArg(arg) {\n var time;\n\n if (arg instanceof Date || arg instanceof TZDate) {\n time = arg.getTime();\n } else if ((typeof arg) === 'string') {\n time = Date.parse(arg);\n } else if ((typeof arg) === 'number') {\n time = arg;\n } else if (arg === null) {\n time = 0;\n } else {\n throw new Error('Invalid Type');\n }\n\n return new Date(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n}\n\n/**\n * Date Class\n */\nfunction TZDate() {\n var date;\n\n switch (arguments.length) {\n case 0:\n date = createDateWithSingleArg(Date.now());\n break;\n case 1:\n date = createDateWithSingleArg(arguments[0]);\n break;\n default:\n date = createDateWithMultipleArgs(arguments);\n }\n\n this._date = date;\n}\n\nTZDate.prototype.setTime = function(time) {\n return this._date.setTime(time - getCustomTimezoneOffset(time) + getTimezoneOffset(time));\n};\n\nTZDate.prototype.getTime = function() {\n var time = this._date.getTime();\n\n return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n};\n\nTZDate.prototype.valueOf = function() {\n return this.getTime();\n};\n\ngetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n return this._date[methodName].apply(this._date, arguments);\n };\n});\n\nsetterMethods.forEach(function(methodName) {\n TZDate.prototype[methodName] = function() {\n this._date[methodName].apply(this._date, arguments);\n\n return this.getTime();\n };\n});\n\nmodule.exports = {\n Date: TZDate,\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffset: function(offset) {\n customOffsetMs = offset * MIN_TO_MS;\n },\n\n /**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n */\n setOffsetCallback: function(callback) {\n timezoneOffsetCallback = callback;\n },\n\n /**\n * (Use this method only for testing)\n * Reset system timezone and custom timezone\n */\n restoreOffset: function() {\n customOffsetMs = getTimezoneOffset();\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/timezone.js\n// module id = 5\n// module chunks = 0","/**\n * @fileoverview common/general utilities.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar aps = Array.prototype.slice;\n\nvar domutil = require('../common/domutil'),\n Collection = require('../common/collection');\n\n/**\n * Default schedule id getter for collection\n * @param {Schedule} schedule - schedule instance\n * @returns {string} schedule id\n */\nfunction scheduleIDGetter(schedule) {\n return schedule.cid();\n}\n\nmodule.exports = {\n /**\n * @param {...*} initItems - items to add newly created collection.\n * @returns {Collection} new collection for schedule models.\n */\n createScheduleCollection: function(initItems) { // eslint-disable-line\n var collection = new Collection(scheduleIDGetter);\n\n if (arguments.length) {\n collection.add.apply(collection, arguments);\n }\n\n return collection;\n },\n\n /**\n * Get ratio value.\n *\n * a : b = y : X;\n *\n * =\n *\n * X = (b * y) / a;\n * @param {number} a - a\n * @param {number} b - b\n * @param {number} y - y\n * @returns {number} ratio value\n */\n ratio: function(a, b, y) {\n // a : b = y : x;\n return (b * y) / a;\n },\n\n /**\n * Find nearest value from supplied params.\n * @param {number} value - value to find.\n * @param {array} nearest - nearest array.\n * @returns {number} nearest value\n */\n nearest: function(value, nearest) {\n var diff = util.map(nearest, function(v) {\n return Math.abs(value - v);\n }),\n nearestIndex = util.inArray(Math.min.apply(null, diff), diff);\n\n return nearest[nearestIndex];\n },\n\n /**\n * pick value from object then return utility object to treat it.\n * @param {object} obj - object to search supplied path property.\n * @param {...string} paths - rest parameter that string value to search property in object.\n * @returns {object} pick object.\n */\n pick2: function(obj, paths) { // eslint-disable-line\n var result = util.pick.apply(null, arguments),\n pick;\n\n pick = {\n /**\n * @returns {*} picked value.\n */\n val: function() {\n return result;\n },\n\n /**\n * invoke supplied function in picked object.\n *\n * the callback context is set picked object.\n * @param {string|function} fn - function to invoke in picked object.\n * @returns {*} result of invoke.\n */\n then: function(fn) {\n var args;\n\n if (!result) {\n return undefined; //eslint-disable-line\n }\n\n args = aps.call(arguments, 1);\n\n if (util.isString(fn)) {\n return (util.pick(result, fn) || function() {}).apply(result, args);\n }\n\n return fn.call(result, result);\n }\n };\n\n return pick;\n },\n\n /**\n * Mixin method.\n *\n * (extend methods except property name 'mixin')\n * @param {object} from - mixin object.\n * @param {object} to - object to mixin.\n */\n mixin: function(from, to) {\n util.extend(to.prototype, from);\n },\n\n /**\n * Limit supplied value base on `minArr`, `maxArr`\n * @param {number} value - value\n * @param {array} minArr - min\n * @param {array} maxArr - max\n * @returns {number} limited value\n */\n limit: function(value, minArr, maxArr) {\n var v = Math.max.apply(null, [value].concat(minArr));\n v = Math.min.apply(null, [v].concat(maxArr));\n\n return v;\n },\n\n stripTags: function(str) {\n return str.replace(/<([^>]+)>/ig, '');\n },\n\n /**\n * Get first value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} first value in 2d array\n */\n firstIn2dArray: function(arr2d) {\n return util.pick(arr2d, '0', '0');\n },\n\n /**\n * Get last value in 2-dimentional array.\n * @param {Array.} arr2d - 2-dimentional array\n * @returns {*} last value in 2d array\n */\n lastIn2dArray: function(arr2d) {\n var lastRow = arr2d.length - 1,\n lastCol = arr2d[lastRow].length - 1;\n\n return util.pick(arr2d, lastRow, lastCol);\n },\n\n /**\n * Set 'title' attribute for all element that has exceeded content in\n * container\n * @param {string} selector - CSS selector {@see domutil#find}\n * @param {HTMLElement} container - container element\n */\n setAutoEllipsis: function(selector, container) {\n util.forEach(domutil.find(selector, container, true), function(el) {\n if (el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/common.js\n// module id = 6\n// module chunks = 0","// Create a simple path alias to allow browserify to resolve\n// the runtime on a supported path.\nmodule.exports = require('./dist/cjs/handlebars.runtime')['default'];\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/runtime.js\n// module id = 7\n// module chunks = 0","/**\n * @fileoverview The base class of views.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\n\n/**\n * Base class of views.\n *\n * All views create own container element inside supplied container element.\n * @constructor\n * @param {HTMLElement} container Default container element for view.\n * you can use this element for this.container syntax.\n */\nfunction View(container) {\n var id = util.stamp(this);\n\n if (util.isUndefined(container)) {\n container = domutil.appendHTMLElement('div');\n }\n\n domutil.addClass(container, this.cssprefix(id));\n\n /**\n * unique id\n * @type {number}\n */\n this.id = id;\n\n /**\n * base element of view.\n * @type {HTMLDIVElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * child views.\n * @type {Collection}\n */\n this.children = new Collection(function(view) {\n return util.stamp(view);\n });\n /* eslint-enable*/\n\n /**\n * parent view instance.\n * @type {View}\n */\n this.parent = null;\n}\n\n/**\n * CSS classname prefix\n * @type {string}\n */\nView.prototype.cssPrefix = 'tui-view-';\n\n/**\n * Add child views.\n * @param {View} view The view instance to add.\n * @param {function} [fn] Function for invoke before add. parent view class is supplied first arguments.\n */\nView.prototype.addChild = function(view, fn) {\n if (fn) {\n fn.call(view, this);\n }\n // add parent view\n view.parent = this;\n\n this.children.add(view);\n};\n\n/**\n * Remove added child view.\n * @param {(number|View)} id View id or instance itself to remove.\n * @param {function} [fn] Function for invoke before remove. parent view class is supplied first arguments.\n */\nView.prototype.removeChild = function(id, fn) {\n var view = util.isNumber(id) ? this.children.items[id] : id;\n\n id = util.stamp(view);\n\n if (fn) {\n fn.call(view, this);\n }\n\n this.children.remove(id);\n};\n\n/**\n * Render view recursively.\n */\nView.prototype.render = function() {\n this.children.each(function(childView) {\n childView.render();\n });\n};\n\n/**\n * Invoke function recursively.\n * @param {function} fn - function to invoke child view recursively\n * @param {boolean} [skipThis=false] - set true then skip invoke with this(root) view.\n */\nView.prototype.recursive = function(fn, skipThis) {\n if (!util.isFunction(fn)) {\n return;\n }\n\n if (!skipThis) {\n fn(this);\n }\n\n this.children.each(function(childView) {\n childView.recursive(fn);\n });\n};\n\n/**\n * Resize view recursively to parent.\n */\nView.prototype.resize = function() {\n var args = Array.prototype.slice.call(arguments),\n parent = this.parent;\n\n while (parent) {\n if (util.isFunction(parent._onResize)) {\n parent._onResize.apply(parent, args);\n }\n\n parent = parent.parent;\n }\n};\n\n/**\n * Invoking method before destroying.\n */\nView.prototype._beforeDestroy = function() {};\n\n/**\n * Clear properties\n */\nView.prototype._destroy = function() {\n this._beforeDestroy();\n this.children.clear();\n this.container.innerHTML = '';\n\n this.id = this.parent = this.children = this.container = null;\n};\n\n/*eslint-disable*/\n/**\n * Destroy child view recursively.\n */\nView.prototype.destroy = function(isChildView) {\n this.children.each(function(childView) {\n childView.destroy(true);\n childView._destroy();\n });\n\n if (isChildView) {\n return;\n }\n\n this._destroy();\n};\n/* eslint-enable*/\n\n/**\n * Calculate view's container element bound.\n * @returns {object} The bound of container element.\n */\nView.prototype.getViewBound = function() {\n var container = this.container,\n position = domutil.getPosition(container),\n size = domutil.getSize(container);\n\n return {\n x: position[0],\n y: position[1],\n width: size[0],\n height: size[1]\n };\n};\n\n/**\n * Return view default CSS prefix\n * @param {string} [className] - if supplied then return prefix added class name\n * @returns {string} CSS prefix value\n */\nView.prototype.cssprefix = function(className) {\n return this.cssPrefix + (className || '');\n};\n\nutil.CustomEvents.mixin(View);\n\nmodule.exports = View;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/view.js\n// module id = 8\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Utility module for handling DOM events.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar browser = util.browser,\n eventKey = '_evt',\n DRAG = {\n START: ['touchstart', 'mousedown'],\n END: {\n mousedown: 'mouseup',\n touchstart: 'touchend',\n pointerdown: 'touchend',\n MSPointerDown: 'touchend'\n },\n MOVE: {\n mousedown: 'mousemove',\n touchstart: 'touchmove',\n pointerdown: 'touchmove',\n MSPointerDown: 'touchmove'\n }\n };\n\nvar domevent = {\n /**\n * Bind dom events.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n on: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._on(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._on(obj, type, handler, fn);\n });\n },\n\n /**\n * DOM event binding.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {String} type The name of events.\n * @param {*} fn handler function\n * @param {*} [context] context object for handler method.\n * @private\n */\n _on: function(obj, type, fn, context) {\n var id,\n handler,\n originHandler;\n\n id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : '');\n\n if (obj[eventKey] && obj[eventKey][id]) {\n return;\n }\n\n handler = function(e) {\n fn.call(context || obj, e || window.event);\n };\n\n originHandler = handler;\n\n if ('addEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n handler = function(e) {\n e = e || window.event;\n if (!domevent._checkMouse(obj, e)) {\n return;\n }\n originHandler(e);\n };\n obj.addEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.addEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.addEventListener(type, handler, false);\n }\n } else if ('attachEvent' in obj) {\n obj.attachEvent('on' + type, handler);\n }\n\n obj[eventKey] = obj[eventKey] || {};\n obj[eventKey][id] = handler;\n },\n\n /**\n * Unbind DOM Event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n off: function(obj, types, fn, context) {\n if (util.isString(types)) {\n util.forEach(types.split(' '), function(type) {\n domevent._off(obj, type, fn, context);\n });\n\n return;\n }\n\n util.forEachOwnProperties(types, function(handler, type) {\n domevent._off(obj, type, handler, fn);\n });\n },\n\n /**\n * Unbind DOM event handler.\n * @param {HTMLElement} obj HTMLElement to unbind.\n * @param {String} type The name of event to unbind.\n * @param {function()} fn Event handler that supplied when binding.\n * @param {*} context context object that supplied when binding.\n * @private\n */\n _off: function(obj, type, fn, context) {\n var id = type + util.stamp(fn) + (context ? '_' + util.stamp(context) : ''),\n handler = obj[eventKey] && obj[eventKey][id];\n\n if (!handler) {\n return;\n }\n\n if ('removeEventListener' in obj) {\n if (type === 'mouseenter' || type === 'mouseleave') {\n obj.removeEventListener((type === 'mouseenter') ?\n 'mouseover' : 'mouseout', handler, false);\n } else {\n if (type === 'mousewheel') {\n obj.removeEventListener('DOMMouseScroll', handler, false);\n }\n\n obj.removeEventListener(type, handler, false);\n }\n } else if ('detachEvent' in obj) {\n try {\n obj.detachEvent('on' + type, handler);\n } catch (e) {} //eslint-disable-line\n }\n\n delete obj[eventKey][id];\n\n if (util.keys(obj[eventKey]).length) {\n return;\n }\n\n // throw exception when deleting host object's property in below IE8\n if (util.browser.msie && util.browser.version < 9) {\n obj[eventKey] = null;\n\n return;\n }\n\n delete obj[eventKey];\n },\n\n /**\n * Bind DOM event. this event will unbind after invokes.\n * @param {HTMLElement} obj HTMLElement to bind events.\n * @param {(string|object)} types Space splitted events names or eventName:handler object.\n * @param {*} fn handler function or context for handler method.\n * @param {*} [context] context object for handler method.\n */\n once: function(obj, types, fn, context) {\n var self = this;\n\n if (util.isObject(types)) {\n util.forEachOwnProperties(types, function(handler, type) {\n domevent.once(obj, type, handler, fn);\n });\n\n return;\n }\n\n /**\n * Handler for temporary usage for once implementation\n */\n function onceHandler() {\n fn.apply(context || obj, arguments);\n self._off(obj, types, onceHandler, context);\n }\n\n domevent.on(obj, types, onceHandler, context);\n },\n\n /**\n * Cancel event bubbling.\n * @param {Event} e Event object.\n */\n stopPropagation: function(e) {\n if (e.stopPropagation) {\n e.stopPropagation();\n } else {\n e.cancelBubble = true;\n }\n },\n\n /**\n * Cancel browser default actions.\n * @param {Event} e Event object.\n */\n preventDefault: function(e) {\n if (e.preventDefault) {\n e.preventDefault();\n } else {\n e.returnValue = false;\n }\n },\n\n /**\n * Syntatic sugar of stopPropagation and preventDefault\n * @param {Event} e Event object.\n */\n stop: function(e) {\n domevent.preventDefault(e);\n domevent.stopPropagation(e);\n },\n\n /**\n * Stop scroll events.\n * @param {HTMLElement} el HTML element to prevent scroll.\n */\n disableScrollPropagation: function(el) {\n domevent.on(el, 'mousewheel MozMousePixelScroll', domevent.stopPropagation);\n },\n\n /**\n * Stop all events related with click.\n * @param {HTMLElement} el HTML element to prevent all event related with click.\n */\n disableClickPropagation: function(el) {\n domevent.on(el, DRAG.START.join(' ') + ' click dblclick', domevent.stopPropagation);\n },\n\n /**\n * Get mouse position from mouse event.\n *\n * If supplied relatveElement parameter then return relative position based on element.\n * @param {Event} mouseEvent Mouse event object\n * @param {HTMLElement} relativeElement HTML element that calculate relative position.\n * @returns {number[]} mouse position.\n */\n getMousePosition: function(mouseEvent, relativeElement) {\n var rect;\n\n if (!relativeElement) {\n return [mouseEvent.clientX, mouseEvent.clientY];\n }\n\n rect = relativeElement.getBoundingClientRect();\n\n return [\n mouseEvent.clientX - rect.left - relativeElement.clientLeft,\n mouseEvent.clientY - rect.top - relativeElement.clientTop\n ];\n },\n\n /**\n * Normalize mouse wheel event that different each browsers.\n * @param {MouseEvent} e Mouse wheel event.\n * @returns {Number} delta\n */\n getWheelDelta: function(e) {\n var delta = 0;\n\n if (e.wheelDelta) {\n delta = e.wheelDelta / 120;\n }\n\n if (e.detail) {\n delta = -e.detail / 3;\n }\n\n return delta;\n },\n\n /**\n * prevent firing mouseleave event when mouse entered child elements.\n * @param {HTMLElement} el HTML element\n * @param {MouseEvent} e Mouse event\n * @returns {Boolean} leave?\n * @private\n */\n _checkMouse: function(el, e) {\n var related = e.relatedTarget;\n\n if (!related) {\n return true;\n }\n\n try {\n while (related && (related !== el)) {\n related = related.parentNode;\n }\n } catch (err) {\n return false;\n }\n\n return (related !== el);\n },\n\n /**\n * Trigger specific events to html element.\n * @param {HTMLElement} obj HTMLElement\n * @param {string} type Event type name\n * @param {object} [eventData] Event data\n */\n trigger: function(obj, type, eventData) {\n var rMouseEvent = /(mouse|click)/;\n if (util.isUndefined(eventData) && rMouseEvent.exec(type)) {\n eventData = domevent.mouseEvent(type);\n }\n\n if (obj.dispatchEvent) {\n obj.dispatchEvent(eventData);\n } else if (obj.fireEvent) {\n obj.fireEvent('on' + type, eventData);\n }\n },\n\n /**\n * Create virtual mouse event.\n *\n * Tested at\n *\n * - IE7 ~ IE11\n * - Chrome\n * - Firefox\n * - Safari\n * @param {string} type Event type\n * @param {object} [eventObj] Event data\n * @returns {MouseEvent} Virtual mouse event.\n */\n mouseEvent: function(type, eventObj) {\n var evt,\n e;\n\n e = util.extend({\n bubbles: true,\n cancelable: (type !== 'mousemove'),\n view: window,\n wheelDelta: 0,\n detail: 0,\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false,\n button: 0,\n relatedTarget: undefined // eslint-disable-line\n }, eventObj);\n\n // prevent throw error when inserting wheelDelta property to mouse event on below IE8\n if (browser.msie && browser.version < 9) {\n delete e.wheelDelta;\n }\n\n if (typeof document.createEvent === 'function') {\n evt = document.createEvent('MouseEvents');\n evt.initMouseEvent(type,\n e.bubbles, e.cancelable, e.view, e.detail,\n e.screenX, e.screenY, e.clientX, e.clientY,\n e.ctrlKey, e.altKey, e.shiftKey, e.metaKey,\n e.button, document.body.parentNode\n );\n } else if (document.createEventObject) {\n evt = document.createEventObject();\n\n util.forEach(e, function(value, propName) {\n evt[propName] = value;\n }, this);\n evt.button = {0: 1,\n 1: 4,\n 2: 2}[evt.button] || evt.button;\n }\n\n return evt;\n },\n\n /**\n * Normalize mouse event's button attributes.\n *\n * Can detect which button is clicked by this method.\n *\n * Meaning of return numbers\n *\n * - 0: primary mouse button\n * - 1: wheel button or center button\n * - 2: secondary mouse button\n * @param {MouseEvent} mouseEvent - The mouse event object want to know.\n * @returns {number} - The value of meaning which button is clicked?\n */\n getMouseButton: function(mouseEvent) {\n var button,\n primary = '0,1,3,5,7',\n secondary = '2,6',\n wheel = '4';\n\n /* istanbul ignore else */\n if (document.implementation.hasFeature('MouseEvents', '2.0')) {\n return mouseEvent.button;\n }\n\n button = String(mouseEvent.button);\n if (primary.indexOf(button) > -1) {\n return 0;\n }\n if (secondary.indexOf(button) > -1) {\n return 2;\n }\n if (~wheel.indexOf(button)) {\n return 1;\n }\n\n return -1;\n }\n};\n\nmodule.exports = domevent;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/domevent.js\n// module id = 9\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.extend = extend;\nexports.indexOf = indexOf;\nexports.escapeExpression = escapeExpression;\nexports.isEmpty = isEmpty;\nexports.createFrame = createFrame;\nexports.blockParams = blockParams;\nexports.appendContextPath = appendContextPath;\nvar escape = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '`': '`',\n '=': '='\n};\n\nvar badChars = /[&<>\"'`=]/g,\n possible = /[&<>\"'`=]/;\n\nfunction escapeChar(chr) {\n return escape[chr];\n}\n\nfunction extend(obj /* , ...source */) {\n for (var i = 1; i < arguments.length; i++) {\n for (var key in arguments[i]) {\n if (Object.prototype.hasOwnProperty.call(arguments[i], key)) {\n obj[key] = arguments[i][key];\n }\n }\n }\n\n return obj;\n}\n\nvar toString = Object.prototype.toString;\n\nexports.toString = toString;\n// Sourced from lodash\n// https://github.com/bestiejs/lodash/blob/master/LICENSE.txt\n/* eslint-disable func-style */\nvar isFunction = function isFunction(value) {\n return typeof value === 'function';\n};\n// fallback for older versions of Chrome and Safari\n/* istanbul ignore next */\nif (isFunction(/x/)) {\n exports.isFunction = isFunction = function (value) {\n return typeof value === 'function' && toString.call(value) === '[object Function]';\n };\n}\nexports.isFunction = isFunction;\n\n/* eslint-enable func-style */\n\n/* istanbul ignore next */\nvar isArray = Array.isArray || function (value) {\n return value && typeof value === 'object' ? toString.call(value) === '[object Array]' : false;\n};\n\nexports.isArray = isArray;\n// Older IE versions do not directly support indexOf so we must implement our own, sadly.\n\nfunction indexOf(array, value) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (array[i] === value) {\n return i;\n }\n }\n return -1;\n}\n\nfunction escapeExpression(string) {\n if (typeof string !== 'string') {\n // don't escape SafeStrings, since they're already safe\n if (string && string.toHTML) {\n return string.toHTML();\n } else if (string == null) {\n return '';\n } else if (!string) {\n return string + '';\n }\n\n // Force a string conversion as this will be done by the append regardless and\n // the regex test will do this transparently behind the scenes, causing issues if\n // an object's to string has escaped characters in it.\n string = '' + string;\n }\n\n if (!possible.test(string)) {\n return string;\n }\n return string.replace(badChars, escapeChar);\n}\n\nfunction isEmpty(value) {\n if (!value && value !== 0) {\n return true;\n } else if (isArray(value) && value.length === 0) {\n return true;\n } else {\n return false;\n }\n}\n\nfunction createFrame(object) {\n var frame = extend({}, object);\n frame._parent = object;\n return frame;\n}\n\nfunction blockParams(params, ids) {\n params.path = ids;\n return params;\n}\n\nfunction appendContextPath(contextPath, id) {\n return (contextPath ? contextPath + '.' : '') + id;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUF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HZhbHVlKSB7XG4gIGlmICghdmFsdWUgJiYgdmFsdWUgIT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIGlmIChpc0FycmF5KHZhbHVlKSAmJiB2YWx1ZS5sZW5ndGggPT09IDApIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNyZWF0ZUZyYW1lKG9iamVjdCkge1xuICBsZXQgZnJhbWUgPSBleHRlbmQoe30sIG9iamVjdCk7XG4gIGZyYW1lLl9wYXJlbnQgPSBvYmplY3Q7XG4gIHJldHVybiBmcmFtZTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGJsb2NrUGFyYW1zKHBhcmFtcywgaWRzKSB7XG4gIHBhcmFtcy5wYXRoID0gaWRzO1xuICByZXR1cm4gcGFyYW1zO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXBwZW5kQ29udGV4dFBhdGgoY29udGV4dFBhdGgsIGlkKSB7XG4gIHJldHVybiAoY29udGV4dFBhdGggPyBjb250ZXh0UGF0aCArICcuJyA6ICcnKSArIGlkO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/utils.js\n// module id = 10\n// module chunks = 0","/**\n * @fileoverview RequestAnimFrame\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar requestFn,\n cancelFn;\n\n/**\n * Get name with vendor prefix\n * @param {string} name - name to prepend prefix\n * @returns {string} vendor prefixed name\n */\nfunction getPrefixed(name) {\n return global['webkit' + name] || global['moz' + name] || global['ms' + name];\n}\n\nrequestFn = global.requestAnimationFrame ||\n getPrefixed('RequestAnimationFrame') ||\n function(fn, context) {\n fn.call(context);\n };\n\ncancelFn = global.cancelAnimationFrame ||\n getPrefixed('CancelAnimationFrame') ||\n getPrefixed('CancelRequestAnimationFrame') ||\n function() {};\n\n/**\n * @module module:reqAnimFrame\n */\n\nmodule.exports = {\n /**\n * Shim of requestAnimationFrame\n * @param {function} fn callback function\n * @param {*} context context for callback\n * @returns {number} Unique id\n */\n requestAnimFrame: function(fn, context) {\n return requestFn.call(global, util.bind(fn, context));\n },\n\n /**\n * Shim of cancelAnimationFrame\n * @param {number} id requestAnimationFrame id\n */\n cancelAnimFrame: function(id) {\n if (!id) {\n return;\n }\n\n cancelFn.call(global, id);\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/reqAnimFrame.js\n// module id = 11\n// module chunks = 0","/**\n * @fileoverview Common collections.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachProp = util.forEachOwnProperties,\n forEachArr = util.forEachArray,\n isFunc = util.isFunction,\n isObj = util.isObject;\n\nvar aps = Array.prototype.slice;\n\n/**\n * Common collection.\n *\n * It need function for get model's unique id.\n *\n * if the function is not supplied then it use default function {@link Collection#getItemID}\n * @constructor\n * @param {function} [getItemIDFn] function for get model's id.\n */\nfunction Collection(getItemIDFn) {\n /**\n * @type {object.}\n */\n this.items = {};\n\n /**\n * @type {number}\n */\n this.length = 0;\n\n if (isFunc(getItemIDFn)) {\n /**\n * @type {function}\n */\n this.getItemID = getItemIDFn;\n }\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Combind supplied function filters and condition.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.and = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 0;\n\n for (; i < cnt; i += 1) {\n if (!filters[i].call(null, item)) {\n return false;\n }\n }\n\n return true;\n };\n};\n\n/**\n * Combine multiple function filters with OR clause.\n * @param {...function} filters - function filters\n * @returns {function} combined filter\n */\nCollection.or = function(filters) {\n var cnt;\n\n filters = aps.call(arguments);\n cnt = filters.length;\n\n return function(item) {\n var i = 1,\n result = filters[0].call(null, item);\n\n for (; i < cnt; i += 1) {\n result = (result || filters[i].call(null, item));\n }\n\n return result;\n };\n};\n\n/**\n * Merge several collections.\n *\n * You can\\'t merge collections different _getScheduleID functions. Take case of use.\n * @param {...Collection} collections collection arguments to merge\n * @returns {Collection} merged collection.\n */\nCollection.merge = function(collections) { // eslint-disable-line\n var cols = aps.call(arguments),\n newItems = {},\n merged = new Collection(cols[0].getItemID),\n extend = util.extend;\n\n forEachArr(cols, function(col) {\n extend(newItems, col.items);\n });\n\n merged.items = newItems;\n merged.length = util.keys(merged.items).length;\n\n return merged;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * get model's unique id.\n * @param {object} item model instance.\n * @returns {number} model unique id.\n */\nCollection.prototype.getItemID = function(item) {\n return String(item._id);\n};\n\n/**\n * add models.\n * @param {...*} item models to add this collection.\n */\nCollection.prototype.add = function(item) {\n var self = this,\n id,\n ownItems;\n\n if (arguments.length > 1) {\n forEachArr(aps.call(arguments), function(o) {\n self.add(o);\n });\n\n return;\n }\n\n id = this.getItemID(item);\n ownItems = this.items;\n\n if (!ownItems[id]) {\n this.length += 1;\n }\n ownItems[id] = item;\n};\n\n/**\n * remove models.\n * @param {...(object|string|number)} id model instance or unique id to delete.\n * @returns {array} deleted model list.\n */\nCollection.prototype.remove = function(id) {\n var self = this,\n removed = [],\n ownItems,\n itemToRemove;\n\n if (!this.length) {\n return removed;\n }\n\n if (arguments.length > 1) {\n removed = util.map(aps.call(arguments), function(_id) {\n return self.remove(_id);\n });\n\n return removed;\n }\n\n ownItems = this.items;\n\n if (isObj(id)) {\n id = this.getItemID(id);\n }\n\n if (!ownItems[id]) {\n return removed;\n }\n\n this.length -= 1;\n itemToRemove = ownItems[id];\n delete ownItems[id];\n\n return itemToRemove;\n};\n\n/**\n * remove all models in collection.\n */\nCollection.prototype.clear = function() {\n this.items = {};\n this.length = 0;\n};\n\n/**\n * check collection has specific model.\n * @param {(object|string|number|function)} id model instance or id or filter function to check\n * @returns {boolean} is has model?\n */\nCollection.prototype.has = function(id) {\n var isFilter,\n has;\n\n if (!this.length) {\n return false;\n }\n\n isFilter = isFunc(id);\n has = false;\n\n if (isFilter) {\n this.each(function(item) {\n if (id(item) === true) {\n has = true;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n } else {\n id = isObj(id) ? this.getItemID(id) : id;\n has = util.isExisty(this.items[id]);\n }\n\n return has;\n};\n\n/**\n * invoke callback when model exist in collection.\n * @param {(string|number)} id model unique id.\n * @param {function} fn the callback.\n * @param {*} [context] callback context.\n */\nCollection.prototype.doWhenHas = function(id, fn, context) {\n var item = this.items[id];\n\n if (!util.isExisty(item)) {\n return;\n }\n\n fn.call(context || this, item);\n};\n\n/**\n * Search model. and return new collection.\n * @param {function} filter filter function.\n * @returns {Collection} new collection with filtered models.\n * @example\n * collection.find(function(item) {\n * return item.edited === true;\n * });\n *\n * function filter1(item) {\n * return item.edited === false;\n * }\n *\n * function filter2(item) {\n * return item.disabled === false;\n * }\n *\n * collection.find(Collection.and(filter1, filter2));\n *\n * collection.find(Collection.or(filter1, filter2));\n */\nCollection.prototype.find = function(filter) {\n var result = new Collection();\n\n if (this.hasOwnProperty('getItemID')) {\n result.getItemID = this.getItemID;\n }\n\n this.each(function(item) {\n if (filter(item) === true) {\n result.add(item);\n }\n });\n\n return result;\n};\n\n/**\n * Group element by specific key values.\n *\n * if key parameter is function then invoke it and use returned value.\n * @param {(string|number|function|array)} key key property or getter function.\n * if string[] supplied, create each collection before grouping.\n * @param {function} [groupFunc] - function that return each group's key\n * @returns {object.} grouped object\n * @example\n *\n * // pass `string`, `number`, `boolean` type value then group by property value.\n * collection.groupBy('gender'); // group by 'gender' property value.\n * collection.groupBy(50); // group by '50' property value.\n *\n * // pass `function` then group by return value. each invocation `function` is called with `(item)`.\n * collection.groupBy(function(item) {\n * if (item.score > 60) {\n * return 'pass';\n * }\n * return 'fail';\n * });\n *\n * // pass `array` with first arguments then create each collection before grouping.\n * collection.groupBy(['go', 'ruby', 'javascript']);\n * // result: { 'go': empty Collection, 'ruby': empty Collection, 'javascript': empty Collection }\n *\n * // can pass `function` with `array` then group each elements.\n * collection.groupBy(['go', 'ruby', 'javascript'], function(item) {\n * if (item.isFast) {\n * return 'go';\n * }\n *\n * return item.name;\n * });\n */\nCollection.prototype.groupBy = function(key, groupFunc) {\n var result = {},\n collection,\n baseValue,\n keyIsFunc = isFunc(key),\n getItemIDFn = this.getItemID;\n\n if (util.isArray(key)) {\n util.forEachArray(key, function(k) {\n result[String(k)] = new Collection(getItemIDFn);\n });\n\n if (!groupFunc) {\n return result;\n }\n\n key = groupFunc;\n keyIsFunc = true;\n }\n\n this.each(function(item) {\n if (keyIsFunc) {\n baseValue = key(item);\n } else {\n baseValue = item[key];\n\n if (isFunc(baseValue)) {\n baseValue = baseValue.apply(item);\n }\n }\n\n collection = result[baseValue];\n\n if (!collection) {\n collection = result[baseValue] = new Collection(getItemIDFn);\n }\n\n collection.add(item);\n });\n\n return result;\n};\n\n/**\n * Return single item in collection.\n *\n * Returned item is inserted in this collection firstly.\n * @param {function} [filter] - function filter\n * @returns {object} item.\n */\nCollection.prototype.single = function(filter) {\n var result,\n useFilter = util.isFunction(filter);\n\n this.each(function(item) {\n if (!useFilter) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n if (filter(item)) {\n result = item;\n\n return false; // returning false can stop this loop\n }\n\n return true;\n }, this);\n\n return result;\n};\n\n/**\n * sort a basis of supplied compare function.\n * @param {function} compareFunction compareFunction\n * @returns {array} sorted array.\n */\nCollection.prototype.sort = function(compareFunction) {\n var arr = [];\n\n this.each(function(item) {\n arr.push(item);\n });\n\n if (isFunc(compareFunction)) {\n arr = arr.sort(compareFunction);\n }\n\n return arr;\n};\n\n/**\n * iterate each model element.\n *\n * when iteratee return false then break the loop.\n * @param {function} iteratee iteratee(item, index, items)\n * @param {*} [context] context\n */\nCollection.prototype.each = function(iteratee, context) {\n forEachProp(this.items, iteratee, context || this);\n};\n\n/**\n * return new array with collection items.\n * @returns {array} new array.\n */\nCollection.prototype.toArray = function() {\n if (!this.length) {\n return [];\n }\n\n return util.map(this.items, function(item) {\n return item;\n });\n};\n\nmodule.exports = Collection;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/collection.js\n// module id = 12\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar errorProps = ['description', 'fileName', 'lineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var loc = node && node.loc,\n line = undefined,\n column = undefined;\n if (loc) {\n line = loc.start.line;\n column = loc.start.column;\n\n message += ' - ' + line + ':' + column;\n }\n\n var tmp = Error.prototype.constructor.call(this, message);\n\n // Unfortunately errors are not enumerable in Chrome (at least), so `for prop in tmp` doesn't work.\n for (var idx = 0; idx < errorProps.length; idx++) {\n this[errorProps[idx]] = tmp[errorProps[idx]];\n }\n\n /* istanbul ignore else */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, Exception);\n }\n\n try {\n if (loc) {\n this.lineNumber = line;\n\n // Work around issue under safari where we can't directly set the column value\n /* istanbul ignore next */\n if (Object.defineProperty) {\n Object.defineProperty(this, 'column', {\n value: column,\n enumerable: true\n });\n } else {\n this.column = column;\n }\n }\n } catch (nop) {\n /* Ignore if the browser is very particular */\n }\n}\n\nException.prototype = new Error();\n\nexports['default'] = Exception;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQ0EsSUFBTSxVQUFVLEdBQUcsQ0FBQyxhQUFhLEVBQUUsVUFBVSxFQUFFLFlBQVksRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxPQUFPLENBQUMsQ0FBQzs7QUFFbkcsU0FBUyxTQUFTLENBQUMsT0FBTyxFQUFFLElBQU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FtlcnJvclByb3BzW2lkeF1dO1xuICB9XG5cbiAgLyogaXN0YW5idWwgaWdub3JlIGVsc2UgKi9cbiAgaWYgKEVycm9yLmNhcHR1cmVTdGFja1RyYWNlKSB7XG4gICAgRXJyb3IuY2FwdHVyZVN0YWNrVHJhY2UodGhpcywgRXhjZXB0aW9uKTtcbiAgfVxuXG4gIHRyeSB7XG4gICAgaWYgKGxvYykge1xuICAgICAgdGhpcy5saW5lTnVtYmVyID0gbGluZTtcblxuICAgICAgLy8gV29yayBhcm91bmQgaXNzdWUgdW5kZXIgc2FmYXJpIHdoZXJlIHdlIGNhbid0IGRpcmVjdGx5IHNldCB0aGUgY29sdW1uIHZhbHVlXG4gICAgICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICAgICAgaWYgKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkge1xuICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgJ2NvbHVtbicsIHtcbiAgICAgICAgICB2YWx1ZTogY29sdW1uLFxuICAgICAgICAgIGVudW1lcmFibGU6IHRydWVcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLmNvbHVtbiA9IGNvbHVtbjtcbiAgICAgIH1cbiAgICB9XG4gIH0gY2F0Y2ggKG5vcCkge1xuICAgIC8qIElnbm9yZSBpZiB0aGUgYnJvd3NlciBpcyB2ZXJ5IHBhcnRpY3VsYXIgKi9cbiAgfVxufVxuXG5FeGNlcHRpb24ucHJvdG90eXBlID0gbmV3IEVycm9yKCk7XG5cbmV4cG9ydCBkZWZhdWx0IEV4Y2VwdGlvbjtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/exception.js\n// module id = 13\n// module chunks = 0","/**\n * @fileoverview Utility module for array sort, binary search.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../common/datetime');\n\n/**\n * A module for sorting array.\n * @module array\n */\n\n/**********\n * Search\n **********/\n\n/**\n * search item index using binary search algorithm.\n *\n * the array must be sorted.\n * @param {array} arr array to search.\n * @param {(string|number|boolean)} search value to search.\n * @param {function} [fn] iteratee for retrieve each element's value to search.\n * @param {function} [compare] compare function for specific sort status. default is string ascending.\n * @returns {number} The number of item index searched. return negative number when no exist that item.\n * It can use insert index after Math.abs()\n * @example\n *\n * var arr = [1, 3, 7, 11, 15, 23];\n *\n * function sortNumber(a, b) {\n * return a - b;\n * }\n *\n * bsearch(arr, 15, null, sortNumber); // 4\n * bsearch(arr, 21, null, sortNumber); // -5\n *\n * arr.splice(Math.abs(bsearch(arr, 21, null, sortNumber)), 0, 21);\n * // [1, 2, 7, 11, 15, 21, 23]\n */\nfunction bsearch(arr, search, fn, compare) {\n var minIndex = 0,\n maxIndex = arr.length - 1,\n currentIndex,\n value,\n comp;\n\n compare = compare || stringASC;\n\n while (minIndex <= maxIndex) {\n currentIndex = (minIndex + maxIndex) / 2 | 0; // Math.floor\n value = fn ? fn(arr[currentIndex]) : arr[currentIndex];\n comp = compare(value, search);\n\n if (comp < 0) {\n minIndex = currentIndex + 1;\n } else if (comp > 0) {\n maxIndex = currentIndex - 1;\n } else {\n return currentIndex;\n }\n }\n\n return ~maxIndex;\n}\n\n/**********\n * Compare Functions\n **********/\n\n/**\n * compare function for array sort.\n *\n * sort array by ascending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanASC(a, b) {\n if (a !== b) {\n return a ? -1 : 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by descending.\n * @param {boolean} a The boolean to compare\n * @param {boolean} b The boolean to compare.\n * @returns {number} Result of comparison.\n */\nfunction booleanDESC(a, b) {\n if (a !== b) {\n return a ? 1 : -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number ascending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberASC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return a - b;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by number descending.\n * @param {number} _a The number to compare.\n * @param {number} _b The number to compare.\n * @returns {number} Result of comparison.\n */\nfunction numberDESC(_a, _b) {\n var a = Number(_a),\n b = Number(_b);\n\n return b - a;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESC(_a, _b) {\n var a = String(_a),\n b = String(_b);\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string ascending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringASCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n\n return 0;\n}\n\n/**\n * compare function for array sort.\n *\n * sort array by string descending with ignore case.\n * @param {string} _a The string to compare.\n * @param {string} _b The string to compare.\n * @returns {number} Result of comparison.\n */\nfunction stringDESCIgnoreCase(_a, _b) {\n var a = String(_a).toLowerCase(),\n b = String(_b).toLowerCase();\n\n if (a > b) {\n return -1;\n }\n if (a < b) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * Compare schedule models for sort.\n *\n * 1. all day schedule first.\n * 2. early start.\n * 3. longest duration.\n * 4. early created.\n * @param {Schedule|ScheduleViewModel} a The object schedule instance.\n * @param {Schedule|ScheduleViewModel} b The object schedule instance.\n * @returns {number} Result of comparison.\n */\nfunction scheduleASC(a, b) {\n var durationA, durationB;\n var allDayCompare, startsCompare;\n var modelA = a.valueOf();\n var modelB = b.valueOf();\n\n allDayCompare = booleanASC(modelA.isAllDay || a.hasMultiDates, modelB.isAllDay || b.hasMultiDates);\n\n if (allDayCompare) {\n return allDayCompare;\n }\n\n startsCompare = datetime.compare(a.getStarts(), b.getStarts());\n\n if (startsCompare) {\n return startsCompare;\n }\n\n durationA = a.duration().getTime();\n durationB = b.duration().getTime();\n\n if (durationA < durationB) {\n return 1;\n }\n if (durationA > durationB) {\n return -1;\n }\n\n return util.stamp(modelA) - util.stamp(modelB);\n}\n\nmodule.exports = {\n bsearch: bsearch,\n compare: {\n schedule: {\n asc: scheduleASC\n },\n bool: {\n asc: booleanASC,\n desc: booleanDESC\n },\n num: {\n asc: numberASC,\n desc: numberDESC\n },\n str: {\n asc: stringASC,\n desc: stringDESC,\n ascIgnoreCase: stringASCIgnoreCase,\n descIgnoreCase: stringDESCIgnoreCase\n }\n }\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/array.js\n// module id = 14\n// module chunks = 0","/**\n * @fileoverview Wrapper module for easy calc date object\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\n\n/**\n * @constructor\n * @param {Date} date to wrapping DW class\n */\nfunction DW(date) {\n if (!(this instanceof DW)) {\n return new DW(date);\n }\n\n if (!(date instanceof TZDate)) {\n date = new TZDate(date);\n }\n\n /**\n * @type {Date}\n */\n this.d = date;\n}\n\n/**\n * Return d property when supplied object is DW. else return itself\n * @param {*} obj - object\n * @returns {Date} date\n */\nDW.prototype.safe = function(obj) {\n if (obj.constructor === DW) {\n return obj.d;\n }\n\n return obj;\n};\n\n/**\n * Clone DW object\n * @returns {DW} cloned dwrap object\n */\nDW.prototype.clone = function() {\n return new DW(new TZDate(Number(this.d)));\n};\n\n/**\n * Add days\n * @param {number} day - day to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addDate = function(day) {\n this.d.setDate(this.d.getDate() + day);\n\n return this;\n};\n\n/**\n * Add month. If month value is changed, date set to 1.\n * @param {number} m - month to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addMonth = function(m) {\n var prevMonth = this.d.getMonth();\n var prevYear = this.d.getFullYear();\n this.d.setMonth(prevMonth + m);\n\n // move to first day on the month because plus 1 month on '2017-01-31' means '2017-03-01'\n // Don't do it on different year(Because december + 1month is ok)\n if (this.d.getFullYear() === prevYear && this.d.getMonth() !== prevMonth) {\n this.d.setMonth(prevMonth + m, 1);\n }\n\n return this;\n};\n\n/**\n * Set hour, minutes, seconds, milliseconds\n * @param {number} h - hours\n * @param {number} m - minutes\n * @param {number} s - seconds\n * @param {number} ms - milliseconds\n * @returns {DW} wrapper object\n */\nDW.prototype.setHours = function(h, m, s, ms) {\n this.d.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * Whether date is between supplied dates?\n * @param {Date|DW} d1 - from date\n * @param {Date|DW} d2 - to date\n * @returns {boolean} is between?\n */\nDW.prototype.isBetween = function(d1, d2) {\n var safe = this.safe;\n\n return safe(d1) <= this.d && this.d <= safe(d2);\n};\n\nmodule.exports = DW;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/dw.js\n// module id = 15\n// module chunks = 0","/**\n * @fileoverview Floating layer module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for floating layer module\n * @param {HTMLElement} container - parent continer for floating layer\n */\nfunction FloatingLayer(options, container) {\n var sibling = container[FloatingLayer.PROP_KEY],\n layerContainer;\n\n if (!sibling) {\n sibling = container[FloatingLayer.PROP_KEY] = [];\n }\n\n sibling.push(this);\n\n /**\n * @type {Collection}\n */\n this.sibling = sibling;\n\n /**\n * @type {number}\n */\n this.zIndex = this.getLargestZIndex() || FloatingLayer.INIT_ZINDEX;\n\n layerContainer = document.createElement('div');\n layerContainer.style.display = 'none';\n layerContainer.style.position = 'absolute';\n domutil.addClass(layerContainer, config.classname('floating-layer'));\n container.appendChild(layerContainer);\n\n View.call(this, layerContainer);\n\n /**\n * @type {HTMLElement}\n */\n this.parent = container;\n}\n\nutil.inherit(FloatingLayer, View);\n\n/**\n * @const\n */\nFloatingLayer.PROP_KEY = '__fe_floating_layer';\n\n/**\n * @const\n */\nFloatingLayer.INIT_ZINDEX = 999;\n\n/**\n * Destroy floating layer instance. if there no instnace in parent container\n *\n * remove instance cache property in container element\n */\nFloatingLayer.prototype.destroy = function() {\n var parent = this.parent,\n sibling = this.sibling,\n i = 0, cnt = sibling.length;\n\n for (; i < cnt; i += 1) {\n if (sibling[i] === this) {\n sibling.splice(i, 1);\n break;\n }\n }\n\n if (!sibling.length) {\n try {\n delete parent[FloatingLayer.PROP_KEY];\n } catch (e) {\n parent[FloatingLayer.PROP_KEY] = null;\n }\n\n parent.style.position = '';\n }\n\n domutil.remove(this.container);\n\n this.sibling = null;\n\n View.prototype.destroy.call(this);\n};\n\n/**\n * @returns {boolean} whether layer is visible?\n */\nFloatingLayer.prototype.isVisible = function() {\n return this.container.style.display !== 'none';\n};\n\n/**\n * Set layer position\n * @param {number} x - x coordinate of layer\n * @param {number} y - y coordinate of layer\n */\nFloatingLayer.prototype.setPosition = function(x, y) {\n domutil.setPosition(this.container, x, y);\n};\n\n/**\n * Set layer left, top, right, bottom position\n * @param {object} ltrb object of left, top, right, bottom\n * @param {number} [ltrb.left] left pixel value.\n * @param {number} [ltrb.top] top pixel value.\n * @param {number} [ltrb.right] right pixel value.\n * @param {number} [ltrb.bottom] bottom pixel value.\n */\nFloatingLayer.prototype.setLTRB = function(ltrb) {\n domutil.setLTRB(this.container, ltrb);\n};\n\n/**\n * Set layer size\n * @param {number|string} w - layer width\n * @param {number|string} h - layer height\n */\nFloatingLayer.prototype.setSize = function(w, h) {\n var container = this.container;\n\n w = util.isNumber(w) ? w + 'px' : w;\n h = util.isNumber(h) ? h + 'px' : h;\n\n container.style.width = w;\n container.style.height = h;\n};\n\n/**\n * Set layer content\n * @param {string} html - html string\n */\nFloatingLayer.prototype.setContent = function(html) {\n this.container.innerHTML = html;\n};\n\n/**\n * Get largest z-index from sibling layers\n * @returns {number} largest z-index value\n */\nFloatingLayer.prototype.getLargestZIndex = function() {\n var zIndexes = util.map(this.sibling, function(layer) {\n return layer.zIndex;\n });\n\n return Math.max.apply(null, zIndexes);\n};\n\n/**\n * Set focus to layer\n */\nFloatingLayer.prototype.focus = function() {\n var zIndexForShow = this.getLargestZIndex() + 1;\n this.container.style.zIndex = this.zIndex = zIndexForShow;\n};\n\n/**\n * Show layer\n */\nFloatingLayer.prototype.show = function() {\n this.focus();\n this.container.style.display = 'block';\n};\n\n/**\n * Hide layer\n */\nFloatingLayer.prototype.hide = function() {\n this.container.style.display = 'none';\n};\n\nmodule.exports = FloatingLayer;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/floatingLayer.js\n// module id = 16\n// module chunks = 0","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Base mixin object for handler/allday\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\n\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @mixin Allday.Core\n */\nvar alldayCore = {\n /**\n * @param {Allday} alldayView - view instance of allday.\n * @param {MouseEvent} mouseEvent - mouse schedule object.\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleData: function(alldayView, mouseEvent) {\n var weekdayView = alldayView.children.single(),\n container,\n datesInRange,\n containerWidth,\n mousePos,\n dragStartXIndex,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n container = weekdayView.container;\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n containerWidth = domutil.getSize(container)[0];\n mousePos = domevent.getMousePosition(mouseEvent, container);\n dragStartXIndex = getX(grids, common.ratio(containerWidth, 100, mousePos[0]));\n\n /**\n * @param {MouseEvent} mouseEvent - mouse schedule in drag actions.\n * @returns {object} schedule data.\n */\n return function(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, container),\n mouseX = pos[0],\n xIndex = getX(grids, common.ratio(containerWidth, 100, mouseX));\n\n // apply limitation of creation schedule X index.\n xIndex = mmax(xIndex, 0);\n xIndex = mmin(xIndex, datesInRange - 1);\n\n return {\n relatedView: alldayView,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: mouseEvent.type,\n grids: grids,\n range: range\n };\n };\n }\n};\n\n/**\n * Get the left index\n * @param {Array} grids - grid size information\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\nfunction getX(grids, left) {\n var i = 0;\n var length = grids.length;\n var grid;\n if (left < 0) {\n left = 0;\n }\n\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n}\n\nmodule.exports = alldayCore;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/core.js\n// module id = 17\n// module chunks = 0","/**\n * @fileoverview Module for calculate date by month view and mouse event object\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent');\nvar mfloor = Math.floor;\n\n/**\n * Get high order function that can calc date in mouse point\n * @param {Month} monthView - month view\n * @returns {function} function return event data by mouse event object\n */\nfunction getMousePosDate(monthView) {\n var weekColl = monthView.children,\n weeks = weekColl.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n }),\n weekCount = weekColl.length,\n days = weekColl.single().getRenderDateRange(),\n dayCount = days.length,\n relativeContainer = util.pick(monthView.vLayout.panels[1], 'container'),\n size = domutil.getSize(relativeContainer),\n grids = monthView.grids;\n\n /**\n * Get the left index\n * @param {number} left - left position(percent)\n * @returns {number} grid left index\n */\n function getX(left) {\n var i = 0;\n var length = grids.length;\n var grid;\n for (; i < length; i += 1) {\n grid = grids[i];\n if (grid.left <= left && left <= (grid.left + grid.width)) {\n return i;\n }\n }\n\n return i;\n }\n\n /**\n * Get date related with mouse event object\n * @param {object} mouseEvent - click event data\n * @returns {object} data related with mouse event\n */\n function getDate(mouseEvent) {\n var pos = domevent.getMousePosition(mouseEvent, relativeContainer),\n x = getX(common.ratio(size[0], 100, pos[0])),\n y = mfloor(common.ratio(size[1], weekCount, pos[1])),\n weekdayView, date;\n\n weekdayView = util.pick(weeks, y);\n\n if (!weekdayView) {\n return null;\n }\n\n date = util.pick(weekdayView.getRenderDateRange(), x);\n\n if (!date) {\n return null;\n }\n\n return {\n x: x,\n y: y,\n sizeX: dayCount,\n sizeY: weekCount,\n date: date,\n weekdayView: weekdayView,\n triggerEvent: mouseEvent.type\n };\n }\n\n return getDate;\n}\n\nmodule.exports = getMousePosDate;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/core.js\n// module id = 18\n// module chunks = 0","/**\n * @fileoverview Core methods for dragging actions\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar domevent = require('../../common/domevent');\nvar Point = require('../../common/point');\n\n/**\n * @mixin Time.Core\n */\nvar timeCore = {\n /**\n * Get Y index ratio(hour) in time grids by supplied parameters.\n * @param {number} baseMil - base milliseconds number for supplied height.\n * @param {number} height - container element height.\n * @param {number} y - Y coordinate to calculate hour ratio.\n * @returns {number} hour index ratio value.\n */\n _calcGridYIndex: function(baseMil, height, y) {\n // get ratio from right expression > point.y : x = session.height : baseMil\n // and convert milliseconds value to hours.\n var result = datetime.millisecondsTo('hour', (y * baseMil) / height),\n floored = result | 0,\n nearest = common.nearest(result - floored, [0, 1]);\n\n return floored + (nearest ? 0.5 : 0);\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @returns {function} - Function that return event data from mouse event.\n */\n _retriveScheduleData: function(timeView) {\n var self = this,\n container = timeView.container,\n options = timeView.options,\n viewHeight = timeView.getViewBound().height,\n viewTime = Number(timeView.getDate()),\n hourLength = options.hourEnd - options.hourStart,\n baseMil = datetime.millisecondsFrom('hour', hourLength);\n\n /**\n * @param {MouseEvent} mouseEvent - mouse event object to get common event data.\n * @param {object} [extend] - object to extend event data before return.\n * @returns {object} - common event data for time.*\n */\n return util.bind(function(mouseEvent, extend) {\n var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n gridY = common.ratio(viewHeight, hourLength, mouseY),\n timeY = viewTime + datetime.millisecondsFrom('hour', gridY),\n nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n nearestGridTimeY = viewTime + datetime.millisecondsFrom('hour', nearestGridY + options.hourStart);\n\n return util.extend({\n target: mouseEvent.target || mouseEvent.srcElement,\n relatedView: timeView,\n originEvent: mouseEvent,\n mouseY: mouseY,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n triggerEvent: mouseEvent.type\n }, extend);\n }, this);\n },\n\n /**\n * Mixin method.\n * @param {(TimeCreation|TimeMove)} obj - Constructor functions\n */\n mixin: function(obj) {\n var proto = obj.prototype;\n util.forEach(timeCore, function(method, methodName) {\n if (methodName === 'mixin') {\n return;\n }\n\n proto[methodName] = method;\n });\n }\n};\n\nmodule.exports = timeCore;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/core.js\n// module id = 19\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Model of schedule.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar TZDate = require('../common/timezone').Date;\nvar datetime = require('../common/datetime');\nvar dirty = require('../common/dirty');\nvar model = require('../common/model');\n\n/**\n * 일정 카테고리\n * @readonly\n * @enum {string}\n */\nvar SCHEDULE_CATEGORY = {\n /** 마일스톤 */\n MILESTONE: 'milestone',\n\n /** 업무 */\n TASK: 'task',\n\n /** 종일일정 */\n ALLDAY: 'allday',\n\n /** 시간별 일정 */\n TIME: 'time'\n};\n\n/**\n * The model of calendar schedules.\n * @constructor\n * @mixes dirty\n * @mixes model\n */\nfunction Schedule() {\n /**\n * `Optional` unique id for various use.\n * @type {string}\n */\n this.id = '';\n\n /**\n * title for schedule.\n * @type {string}\n */\n this.title = '';\n\n /**\n * is schedule is all day schedule?\n * @type {boolean}\n */\n this.isAllDay = false;\n\n /**\n * schedule start\n * @type {TZDate}\n */\n this.start = null;\n\n /**\n * schedule end\n * @type {TZDate}\n */\n this.end = null;\n\n /**\n * schedule text color\n * @type {string}\n */\n this.color = '#000';\n\n /**\n * schedule block visibility\n * @type {boolean}\n */\n this.isVisible = true;\n\n /**\n * schedule background color\n * @type {string}\n */\n this.bgColor = '#a1b56c';\n\n /**\n * schedule left border color\n * @type {string}\n */\n this.borderColor = '#000';\n\n /**\n * 캘린더 ID\n * @type {string}\n */\n this.calendarId = '';\n\n /**\n * 일정 카테고리 (마일스톤, 업무, 종일일정, 시간별일정)\n * @type {string}\n */\n this.category = '';\n\n /**\n * 업무 일정의 경우 구분 (출근전, 점심전, 퇴근전)\n * @type {string}\n */\n this.dueDateClass = '';\n\n /**\n * 커스텀 스타일\n * @type {string}\n */\n this.customStyle = '';\n\n /**\n * in progress flag to do something\n * @type {boolean}\n */\n this.isPending = false;\n\n /**\n * focused schedule flag\n * @type {boolean}\n */\n this.isFocused = false;\n\n /**\n * read-only schedule flag\n * @type {boolean}\n */\n this.isReadOnly = false;\n\n /**\n * 렌더링과 관계 없는 별도 데이터 저장 공간.\n * @type {object}\n */\n this.raw = null;\n\n // initialize model id\n util.stamp(this);\n}\n\n/**********\n * static props\n **********/\n\nSchedule.schema = {\n required: ['title'],\n dateRange: ['start', 'end']\n};\n\n/**\n * create schedule model from json(object) data.\n * @param {object} data object for model.\n * @returns {Schedule} Schedule model instance.\n */\nSchedule.create = function(data) {\n var inst = new Schedule();\n inst.init(data);\n\n return inst;\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Initialize schedule instance.\n * @param {object} options options.\n */\nSchedule.prototype.init = function(options) {\n options = util.extend({}, options);\n if (options.category === SCHEDULE_CATEGORY.ALLDAY) {\n options.isAllDay = true;\n }\n\n this.id = options.id || '';\n this.title = options.title || '';\n this.isAllDay = util.isExisty(options.isAllDay) ? options.isAllDay : false;\n this.isVisible = util.isExisty(options.isVisible) ? options.isVisible : true;\n\n this.color = options.color || this.color;\n this.bgColor = options.bgColor || this.bgColor;\n this.borderColor = options.borderColor || this.borderColor;\n this.calendarId = options.calendarId || '';\n this.category = options.category || '';\n this.dueDateClass = options.dueDateClass || '';\n this.customStyle = options.customStyle || '';\n this.isPending = options.isPending || false;\n this.isFocused = options.isFocused || false;\n this.isReadOnly = options.isReadOnly || false;\n\n if (this.isAllDay) {\n this.setAllDayPeriod(options.start, options.end);\n } else {\n this.setTimePeriod(options.start, options.end);\n }\n\n if (options.category === SCHEDULE_CATEGORY.MILESTONE ||\n options.category === SCHEDULE_CATEGORY.TASK) {\n this.start = new TZDate(this.end);\n }\n\n this.raw = options.raw || null;\n};\n\nSchedule.prototype.setAllDayPeriod = function(start, end) {\n // 종일일정인 경우 문자열의 날짜정보만 사용한다.\n if (util.isString(start)) {\n start = datetime.parse(start.substring(0, 10));\n }\n if (util.isString(end)) {\n end = datetime.parse(end.substring(0, 10));\n }\n\n this.start = start;\n this.start.setHours(0, 0, 0);\n this.end = end || new TZDate(this.start);\n this.end.setHours(23, 59, 59);\n};\n\nSchedule.prototype.setTimePeriod = function(start, end) {\n this.start = new TZDate(start || Date.now());\n this.end = new TZDate(end || this.start);\n\n if (!end) {\n this.end.setMinutes(this.end.getMinutes() + 30);\n }\n};\n\n/**\n * @returns {Date} render start date.\n */\nSchedule.prototype.getStarts = function() {\n return this.start;\n};\n\n/**\n * @returns {Date} render end date.\n */\nSchedule.prototype.getEnds = function() {\n return this.end;\n};\n\n/**\n * @returns {number} instance unique id.\n */\nSchedule.prototype.cid = function() {\n return util.stamp(this);\n};\n\n/**\n * Check two schedule are equals (means title, isAllDay, start, end are same)\n * @param {Schedule} schedule Schedule model instance to compare.\n * @returns {boolean} Return false when not same.\n */\nSchedule.prototype.equals = function(schedule) {\n if (this.id !== schedule.id) {\n return false;\n }\n\n if (this.title !== schedule.title) {\n return false;\n }\n\n if (this.isAllDay !== schedule.isAllDay) {\n return false;\n }\n\n if (datetime.compare(this.getStarts(), schedule.getStarts()) !== 0) {\n return false;\n }\n\n if (datetime.compare(this.getEnds(), schedule.getEnds()) !== 0) {\n return false;\n }\n\n if (this.color !== schedule.color) {\n return false;\n }\n\n if (this.bgColor !== schedule.bgColor) {\n return false;\n }\n\n if (this.borderColor !== schedule.borderColor) {\n return false;\n }\n\n return true;\n};\n\n/**\n * return duration between start and end.\n * @returns {Date} duration (UTC)\n */\nSchedule.prototype.duration = function() {\n var start = this.getStarts(),\n end = this.getEnds(),\n duration;\n\n if (this.isAllDay) {\n duration = new TZDate(datetime.end(end) - datetime.start(start));\n } else {\n duration = new TZDate(end - start);\n }\n\n return duration;\n};\n\n/**\n * Returns true if the given Schedule coincides with the same time as the\n * calling Schedule.\n * @param {Schedule} schedule The other schedule to compare with this Schedule.\n * @returns {boolean} If the other schedule occurs within the same time as the first object.\n */\nSchedule.prototype.collidesWith = function(schedule) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = schedule.getStarts(),\n end = schedule.getEnds();\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodel.mixin(Schedule.prototype);\ndirty.mixin(Schedule.prototype);\n\nmodule.exports = Schedule;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/model/schedule.js\n// module id = 20\n// module chunks = 0","module.exports = require('handlebars/runtime');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars-template-loader/runtime/index.js\n// module id = 21\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.HandlebarsEnvironment = HandlebarsEnvironment;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('./utils');\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _helpers = require('./helpers');\n\nvar _decorators = require('./decorators');\n\nvar _logger = require('./logger');\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar VERSION = '4.0.11';\nexports.VERSION = VERSION;\nvar COMPILER_REVISION = 7;\n\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar REVISION_CHANGES = {\n 1: '<= 1.0.rc.2', // 1.0.rc.2 is actually rev2 but doesn't report it\n 2: '== 1.0.0-rc.3',\n 3: '== 1.0.0-rc.4',\n 4: '== 1.x.x',\n 5: '== 2.0.0-alpha.x',\n 6: '>= 2.0.0-beta.1',\n 7: '>= 4.0.0'\n};\n\nexports.REVISION_CHANGES = REVISION_CHANGES;\nvar objectType = '[object Object]';\n\nfunction HandlebarsEnvironment(helpers, partials, decorators) {\n this.helpers = helpers || {};\n this.partials = partials || {};\n this.decorators = decorators || {};\n\n _helpers.registerDefaultHelpers(this);\n _decorators.registerDefaultDecorators(this);\n}\n\nHandlebarsEnvironment.prototype = {\n constructor: HandlebarsEnvironment,\n\n logger: _logger2['default'],\n log: _logger2['default'].log,\n\n registerHelper: function registerHelper(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple helpers');\n }\n _utils.extend(this.helpers, name);\n } else {\n this.helpers[name] = fn;\n }\n },\n unregisterHelper: function unregisterHelper(name) {\n delete this.helpers[name];\n },\n\n registerPartial: function registerPartial(name, partial) {\n if (_utils.toString.call(name) === objectType) {\n _utils.extend(this.partials, name);\n } else {\n if (typeof partial === 'undefined') {\n throw new _exception2['default']('Attempting to register a partial called \"' + name + '\" as undefined');\n }\n this.partials[name] = partial;\n }\n },\n unregisterPartial: function unregisterPartial(name) {\n delete this.partials[name];\n },\n\n registerDecorator: function registerDecorator(name, fn) {\n if (_utils.toString.call(name) === objectType) {\n if (fn) {\n throw new _exception2['default']('Arg not supported with multiple decorators');\n }\n _utils.extend(this.decorators, name);\n } else {\n this.decorators[name] = fn;\n }\n },\n unregisterDecorator: function unregisterDecorator(name) {\n delete this.decorators[name];\n }\n};\n\nvar log = _logger2['default'].log;\n\nexports.log = log;\nexports.createFrame = _utils.createFrame;\nexports.logger = _logger2['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQTRDLFNBQVM7O3lCQUMvQixhQUFhOzs7O3VCQUNFLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNuQyxVQUFVOzs7O0FBRXRCLElBQU0sT0FBTyxHQUFHLFFBQVEsQ0FBQzs7QUFDekIsSUFBTSxpQkFBaUIsR0FBRyxDQUFDLENBQUM7OztBQUU1QixJQUFNLGdCQUFnQixHQUFHO0FBQzlCLEdBQUMsRUFBRSxhQUFhO0FBQ2hCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxVQUFVO0FBQ2IsR0FBQyxFQUFFLGtCQUFrQjtBQUNyQixHQUFDLEVBQUUsaUJBQWlCO0FBQ3BCLEdBQUMsRUFBRSxVQUFVO0NBQ2QsQ0FBQzs7O0FBRUYsSUFBTSxVQUFVL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pYWxzW25hbWVdID0gcGFydGlhbDtcbiAgICB9XG4gIH0sXG4gIHVucmVnaXN0ZXJQYXJ0aWFsOiBmdW5jdGlvbihuYW1lKSB7XG4gICAgZGVsZXRlIHRoaXMucGFydGlhbHNbbmFtZV07XG4gIH0sXG5cbiAgcmVnaXN0ZXJEZWNvcmF0b3I6IGZ1bmN0aW9uKG5hbWUsIGZuKSB7XG4gICAgaWYgKHRvU3RyaW5nLmNhbGwobmFtZSkgPT09IG9iamVjdFR5cGUpIHtcbiAgICAgIGlmIChmbikgeyB0aHJvdyBuZXcgRXhjZXB0aW9uKCdBcmcgbm90IHN1cHBvcnRlZCB3aXRoIG11bHRpcGxlIGRlY29yYXRvcnMnKTsgfVxuICAgICAgZXh0ZW5kKHRoaXMuZGVjb3JhdG9ycywgbmFtZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuZGVjb3JhdG9yc1tuYW1lXSA9IGZuO1xuICAgIH1cbiAgfSxcbiAgdW5yZWdpc3RlckRlY29yYXRvcjogZnVuY3Rpb24obmFtZSkge1xuICAgIGRlbGV0ZSB0aGlzLmRlY29yYXRvcnNbbmFtZV07XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHtjcmVhdGVGcmFtZSwgbG9nZ2VyfTtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/base.js\n// module id = 22\n// module chunks = 0","/**\n * @fileoverview\n * Class for represent two dimensional x, y coordinates.\n *\n * It suppliy a group of functions for manipulate coordinates.\n * @author NHN Ent. FE Development Team \n * @example\n * var p = point(10, 10);\n * var r1 = p.add(Point(5, 5));\n * console.log(p.toString()) // \"Point(10, 10)\"\n * console.log(r1.toString()) // \"Point(15, 15)\"\n *\n * var p2 = new Point(10, 10);\n * p2._add(point(5, 5));\n * console.log(p2.toString()) // \"Point(15, 15)\"\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Class for represent two dimentional x, y coordinates.\n * @constructor\n * @param {number} x The number of X coordinates.\n * @param {number} y The number of Y coordinates.\n * @param {boolean} [useRound=false] set true when each coordinates are rounded before initialize.\n * @example\n * var t = new Point(13, 5);\n */\nfunction Point(x, y, useRound) {\n /**\n * @type {number}\n */\n this.x = (useRound ? Math.round(x) : x);\n\n /**\n * @type {number}\n */\n this.y = (useRound ? Math.round(y) : y);\n}\n\n/**********\n * static props\n **********/\n\n/**\n * Calculate point ratio.\n * @param {Point} point The instance of point.\n * @param {number} factor From factor\n * @param {number} toFactor To factor\n * @returns {Point} Point instance calculated.\n */\nPoint.getRatio = function(point, factor, toFactor) {\n if (factor === toFactor) {\n return point.clone();\n }\n\n return point.multiplyBy(toFactor)._divideBy(factor);\n};\n\n/**\n * Syntatic sugar of new Point()\n * @param {(Point|number|number[])} x X coordinate value.\n * @param {(number|boolean)} [y] Y coordinate value or boolean value for coordinates round.\n * @param {boolean} [useRound] Set true then round initial coordinate values.\n * @returns {Point} The instance of point.\n * @example\n * var p1 = point(10, 15);\n * var p2 = point([10, 15]);\n */\nPoint.n = function(x, y, useRound) {\n if (x instanceof Point) {\n return x;\n }\n\n if (util.isArray(x)) {\n return new Point(x[0], x[1], y);\n }\n\n return new Point(x, y, useRound);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * Clone points\n * @returns {Point} The point instance cloned.\n */\nPoint.prototype.clone = function() {\n return new Point(this.x, this.y);\n};\n\n/**\n * Add points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.add = function(point) {\n return this.clone()._add(Point.n(point));\n};\n\n/**\n * Add self points.\n * @param {Point} point The point instance to add.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._add = function(point) {\n this.x += point.x;\n this.y += point.y;\n\n return this;\n};\n\n/**\n * Subtract points.\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.subtract = function(point) {\n return this.clone()._subtract(Point.n(point));\n};\n\n/**\n * Subtract points. (manipulate self)\n * @param {Point} point The point instance to subtract.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._subtract = function(point) {\n this.x -= point.x;\n this.y -= point.y;\n\n return this;\n};\n\n/**\n * Divide points.\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.divideBy = function(num) {\n return this.clone()._divideBy(num);\n};\n\n/**\n * Divide points. (manipulate self)\n * @param {number} num The number to divide.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._divideBy = function(num) {\n this.x /= num;\n this.y /= num;\n\n return this;\n};\n\n/**\n * Multiply coordinates.\n * @param {number} num Thyen number to multiply\n * @returns {Point} Point calculated.\n */\nPoint.prototype.multiplyBy = function(num) {\n return this.clone()._multiplyBy(num);\n};\n\n/**\n * Multiply self coordinates.\n * @param {number} num The number to multiply.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._multiplyBy = function(num) {\n this.x *= num;\n this.y *= num;\n\n return this;\n};\n\n/**\n * Round coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.round = function() {\n return this.clone()._round();\n};\n\n/**\n * Round self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._round = function() {\n this.x = Math.round(this.x);\n this.y = Math.round(this.y);\n\n return this;\n};\n\n/**\n * Reverse values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.reverse = function() {\n return this.clone()._reverse();\n};\n\n/**\n * Reverse self values between positive and negative.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._reverse = function() {\n this.x *= -1;\n this.y *= -1;\n\n return this;\n};\n\n/**\n * Floor coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.floor = function() {\n return this.clone()._floor();\n};\n\n/**\n * Floor self coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._floor = function() {\n this.x = Math.floor(this.x);\n this.y = Math.floor(this.y);\n\n return this;\n};\n\n/**\n * Ceil coordinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype.ceil = function() {\n return this.clone()._ceil();\n};\n\n/**\n * Ceil self coodinates.\n * @returns {Point} Point calculated.\n */\nPoint.prototype._ceil = function() {\n this.x = Math.ceil(this.x);\n this.y = Math.ceil(this.y);\n\n return this;\n};\n\n/**\n * Rotate point.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype.rotate = function(deg, center, cos, sin) {\n return this.clone()._rotate(deg, center, cos, sin);\n};\n\n/**\n * Rotate self.\n * @param {number} deg The number of rotate degree.\n * @param {Point} [center=this] Center point instance to use rotate center. use own when not supplied.\n * @param {number} [cos] Cosine values for rotate. it useful when multi point rotate.\n * @param {number} [sin] Sine values for rotate. it useful when multi point rotate.\n * @returns {Point} The point instance rotated.\n */\nPoint.prototype._rotate = function(deg, center, cos, sin) {\n var rad = deg * (Math.PI / 180),\n x,\n y;\n\n cos = cos || parseFloat(Math.cos(rad).toFixed(8));\n sin = sin || parseFloat(Math.sin(rad).toFixed(8));\n\n this._subtract(center);\n\n x = this.x;\n y = this.y;\n\n this.x = (x * cos) - (y * sin);\n this.y = (x * sin) + (y * cos);\n\n this._add(center);\n\n return this;\n};\n\n/**\n * Calculate distance between two points.\n * @param {Point} point Point instance.\n * @returns {number} The number of distance between two points.\n */\nPoint.prototype.distanceTo = function(point) {\n var x,\n y;\n\n point = Point.n(point);\n\n x = point.x - this.x;\n y = point.y - this.y;\n\n return Math.sqrt((x * x) + (y * y));\n};\n\n/**\n * Check point equals.\n * @param {Point} point Point instance to compare\n * @returns {boolean} equality\n */\nPoint.prototype.equals = function(point) {\n point = Point.n(point);\n\n return point.x === this.x && point.y === this.y;\n};\n\n/**\n * Return formatted string. 'Point(x, y)'\n * @returns {string} string\n */\nPoint.prototype.toString = function() {\n return 'Point(' + this.x + ', ' + this.y + ')';\n};\n\n/**\n * Return coodinates to array. [x, y]\n * @returns {number[]} coordinate array.\n */\nPoint.prototype.toArray = function() {\n return [this.x, this.y];\n};\n\nmodule.exports = Point;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/point.js\n// module id = 23\n// module chunks = 0","/**\n * @fileoverview Layout module that supplied split height, resize height features.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n domevent = require('./domevent'),\n View = require('../view/view'),\n VPanel = require('./vpanel'),\n Drag = require('../handler/drag');\n\nvar mAbs = Math.abs;\n\n/**\n * @typedef PanelOptions\n * @type {object}\n * @property {number} [minHeight=0] - minimum height of panel\n * @property {number} [height=0] - current panel height\n * @property {boolean} [splitter=false] - is this panel uses splitter?\n * @property {boolean} [autoHeight=false] - is this panel uses remain height of container?\n * @property {string} [className=''] - className string for add created element\n */\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VLayout module\n * @param {PanelOptions[]} [options.panels] - panels to add layout when initialize\n * @param {number[]} [options.panelHeights] - panel height list\n * @param {HTMLElement} container - container element\n */\nfunction VLayout(options, container) {\n var opt, tempHeights;\n\n if (!(this instanceof VLayout)) {\n return new VLayout(options, container);\n }\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('vlayout-container'));\n\n /**\n * @type {object}\n */\n opt = this.options = util.extend({\n panels: [],\n panelHeights: []\n }, options);\n\n /**\n * @type {VPanel[]}\n */\n this.panels = [];\n\n /**\n * @type {Drag}\n */\n this._drag = new Drag({\n distance: 10,\n exclude: function(target) {\n return !domutil.hasClass(target, config.classname('splitter'));\n }\n }, container);\n\n this._drag.on({\n dragStart: this._onDragStart,\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @type {object}\n */\n this._dragData = null;\n\n if (opt.panels.length) {\n if (opt.panelHeights.length) {\n tempHeights = opt.panelHeights.slice();\n util.forEach(opt.panels, function(panelOpt) {\n if (!panelOpt.isSplitter && !panelOpt.autoHeight) {\n panelOpt.height = tempHeights.shift();\n }\n });\n }\n\n this.addPanels(opt.panels, this.container);\n }\n\n this.refresh();\n}\n\nutil.inherit(VLayout, View);\n\n/**\n * Get current panels height in layout\n * @returns {number[]} height of panels with `autoHeight` false\n */\nVLayout.prototype.getLayoutData = function() {\n var heightList = [];\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n heightList.push(panel.getHeight());\n });\n\n return heightList;\n};\n\n/**\n * Set panels height in layout\n * @param {number[]} heightList of panels with `autoHeight` false\n */\nVLayout.prototype.setLayoutData = function(heightList) {\n if (!heightList.length) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.isSplitter() || panel.options.autoHeight) {\n return;\n }\n\n panel.setHeight(null, heightList.shift());\n });\n\n this.refresh();\n};\n\n/**\n * Get next panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} next panel\n */\nVLayout.prototype.nextPanel = function(panel) {\n return this.panels[panel.index + 1];\n};\n\n/**\n * Get previous panel instance by specific panel\n * @param {VPanel} panel - panel instance\n * @returns {VPanel} previous panel\n */\nVLayout.prototype.prevPanel = function(panel) {\n return this.panels[panel.index - 1];\n};\n\n/**\n * Initialize resizing guide element\n * @param {HTMLElement} element - element to use guide element after cloned\n * @param {number} top - top pixel value for guide element\n * @returns {HTMLElement} cloned element == guide element\n */\nVLayout.prototype._initializeGuideElement = function(element, top) {\n var cloned = element.cloneNode(true);\n\n domutil.addClass(cloned, config.classname('splitter-guide'));\n this._refreshGuideElement(cloned, top);\n this.container.appendChild(cloned);\n\n return cloned;\n};\n\n/**\n * Refresh guide element position\n * @param {HTMLElement} element - guide element\n * @param {number} top - top pixel value for guide element\n */\nVLayout.prototype._refreshGuideElement = function(element, top) {\n element.style.top = top + 'px';\n};\n\n/**\n * Clear guide element position\n * @param {HTMLElement} element - guide element\n */\nVLayout.prototype._clearGuideElement = function(element) {\n domutil.remove(element);\n};\n\n/**\n * Resize overall panels size\n * @param {VPanel} splPanel - splitter panel instance\n * @param {number} startY - dragstart Y position\n * @param {number} mouseY - dragend Y position\n */\nVLayout.prototype._resize = function(splPanel, startY, mouseY) {\n var diffY = startY - mouseY,\n resizedHeight = mAbs(diffY),\n resizeMap = [],\n toDown = mouseY > startY,\n backwardMethod = toDown ? 'prevPanel' : 'nextPanel',\n forwardMethod = toDown ? 'nextPanel' : 'prevPanel',\n cursor, resizeInfo;\n\n cursor = this[backwardMethod](splPanel);\n resizeInfo = cursor.getResizeInfoByGrowth(resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n\n for (cursor = this[forwardMethod](cursor);\n util.isExisty(cursor);\n cursor = this[forwardMethod](cursor)) {\n if (cursor.isSplitter()) {\n continue;\n }\n\n resizeInfo = cursor.getResizeInfoByGrowth(-resizedHeight);\n resizeMap.push([cursor, resizeInfo[0]]);\n resizedHeight -= resizeInfo[1];\n }\n\n util.forEach(resizeMap, function(pair) {\n pair[0].setHeight(null, pair[1], true);\n pair[0].fire('resize');\n });\n};\n\n/**\n * Get summation of splitter and panel's minimum height upper and below of supplied splitter\n * @param {VPanel} splPanel - splitter panel instance\n * @returns {number[]} upper and below splitter's height and panel minimum height summation.\n */\nVLayout.prototype._getMouseYAdditionalLimit = function(splPanel) {\n var upper = 0,\n below = 0,\n cursor,\n func = function(panel) {\n if (panel.isSplitter()) {\n return panel.getHeight();\n }\n\n return panel.options.minHeight;\n };\n\n for (cursor = this.prevPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.prevPanel(cursor)) {\n upper += func(cursor);\n }\n\n for (cursor = this.nextPanel(splPanel);\n util.isExisty(cursor);\n cursor = this.nextPanel(cursor)) {\n below += func(cursor);\n }\n\n return [upper, below];\n};\n\n/**********\n * Drag Handlers\n **********/\n\n/**\n * Drag start schedule handler\n * @param {object} e - drag start schedule data\n */\nVLayout.prototype._onDragStart = function(e) {\n var oEvent = e.originEvent,\n target = e.target,\n splIndex = domutil.getData(target, 'panelIndex'),\n splPanel = this.panels[splIndex],\n splHeight = splPanel.getHeight(),\n splOffsetY = domevent.getMousePosition(oEvent, target)[1],\n mouseY = domevent.getMousePosition(oEvent, this.container)[1],\n guideElement = this._initializeGuideElement(target, mouseY);\n\n splPanel.addClass(config.classname('splitter-focused'));\n\n this._dragData = {\n splPanel: splPanel,\n splOffsetY: splOffsetY,\n guideElement: guideElement,\n startY: mouseY - splOffsetY,\n minY: 0,\n maxY: this.getViewBound().height - splHeight\n };\n\n if (!util.browser.msie) {\n domutil.addClass(document.body, config.classname('resizing'));\n }\n};\n\n/**\n * Drag schedule handler\n * @param {object} e - drag schedule data\n */\nVLayout.prototype._onDrag = function(e) {\n var dragData = this._dragData,\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n mouseY = common.limit(mouseY - dragData.splOffsetY, [dragData.minY], [dragData.maxY]);\n\n this._refreshGuideElement(dragData.guideElement, mouseY);\n};\n\n/**\n * Drag end schedule handler\n * @fires VLayout#resize\n * @param {object} e - dragend schedule data\n */\nVLayout.prototype._onDragEnd = function(e) {\n var dragData = this._dragData,\n asideMinMax = this._getMouseYAdditionalLimit(dragData.splPanel),\n mouseY = domevent.getMousePosition(e.originEvent, this.container)[1];\n\n // mouseY value can't exceed summation of splitter height and panel's minimum height based on target splitter.\n mouseY = common.limit(\n mouseY - dragData.splOffsetY,\n [dragData.minY + asideMinMax[0]],\n [dragData.maxY - asideMinMax[1]]\n );\n\n this._resize(dragData.splPanel, dragData.startY, mouseY);\n\n /**\n * @event VLayout#resize\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n */\n this.fire('resize', {\n layoutData: this.getLayoutData()\n });\n\n this._dragData = null;\n this._clearGuideElement(dragData.guideElement);\n dragData.splPanel.removeClass(config.classname('splitter-focused'));\n domutil.removeClass(document.body, config.classname('resizing'));\n};\n\n/**********\n * Methods\n **********/\n\n/**\n * refresh each panels\n */\nVLayout.prototype.refresh = function() {\n var panelToFillHeight = [];\n var layoutHeight = this.getViewBound().height;\n var usedHeight = 0;\n var remainHeight;\n\n if (!layoutHeight) {\n return;\n }\n\n util.forEach(this.panels, function(panel) {\n if (panel.options.autoHeight) {\n panelToFillHeight.push(panel);\n } else {\n usedHeight += panel.getHeight();\n }\n });\n\n remainHeight = (layoutHeight - usedHeight) / panelToFillHeight.length;\n\n util.forEach(panelToFillHeight, function(panel) {\n panel.setHeight(null, remainHeight);\n });\n};\n\n/**\n * add panel\n * @param {PanelOptions} options - options for panel\n * @param {container} [container] - container element\n */\nVLayout.prototype.addPanel = function(options, container) {\n var element = document.createElement('div'),\n panels = this.panels,\n index = panels.length;\n\n options = util.extend({\n index: index\n }, options);\n\n panels.push(new VPanel(options, element));\n\n container.appendChild(element);\n};\n\n/**\n * Add multiple panel\n * @param {PanelOptions[]} options - panel options list\n * @param {HTMLElement} container - container element\n */\nVLayout.prototype.addPanels = function(options, container) {\n var self = this,\n frag = document.createDocumentFragment();\n\n util.forEach(options, function(option) {\n self.addPanel(option, frag);\n });\n\n container.appendChild(frag);\n};\n\n/**\n * Get a panel by name\n * @param {string} name - panel's name\n * @returns {VPanel}\n */\nVLayout.prototype.getPanelByName = function(name) {\n var found;\n util.forEach(this.panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n};\n\nmodule.exports = VLayout;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/vlayout.js\n// module id = 24\n// module chunks = 0","/**\n * @fileoverview Move handler for Allday view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar AlldayCore = require('./core');\nvar AlldayMoveGuide = require('./moveGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayMove(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * Temporary variable for dragstart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {AlldayMoveGuide}\n */\n this.guide = new AlldayMoveGuide(this);\n}\n\nAlldayMove.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.alldayView = this.baseController =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayMove.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n parentView,\n matches;\n\n if (~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n parentView = domutil.closest(target, config.classname('.weekday'));\n\n if (!parentView) {\n return false;\n }\n\n cssClass = domutil.getClass(parentView);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler method.\n * @emits AlldayMove#alldayMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n */\nAlldayMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.baseController,\n excludeTarget = true,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget);\n if (!scheduleBlockElement) {\n return;\n }\n\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event AlldayMove#alldayMoveDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('alldayMoveDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayMove#alldayMoveDrag\n * @param {object} dragEventData - Drag#drag event handler eventdata.\n */\nAlldayMove.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @schedule AlldayMove#alldayMoveDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayMoveDrag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule model to base controller.\n * @fires AlldayMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from AlldayMove handler module.\n */\nAlldayMove.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newStarts = new TZDate(schedule.start.getTime()),\n newEnds = new TZDate(schedule.end.getTime());\n\n newStarts = new TZDate(newStarts.setDate(newStarts.getDate() + dateOffset));\n newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n\n /**\n * @event AlldayMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayMove#alldayMoveDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nAlldayMove.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event AlldayMove#alldayMoveDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayMoveDragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayMove#alldayMoveClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayMove.prototype._onClick = function(clickEventData) {\n /**\n * @event AlldayMove#alldayMoveClick\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'alldayMoveClick', true);\n};\n\ncommon.mixin(AlldayCore, AlldayMove);\nutil.CustomEvents.mixin(AlldayMove);\n\nmodule.exports = AlldayMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/move.js\n// module id = 25\n// module chunks = 0","/**\n * @fileoverview Drag handler for calendar.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar domevent = require('../common/domevent');\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {object} options - options for drag handler\n * @param {number} [options.distance=10] - distance in pixels after mouse must move before dragging should start\n * @param {function} [options.exclude] - filter function for don't fire drag events that specific conditions.\n * @param {HTMLElement} container element to watching drag interaction.\n */\nfunction Drag(options, container) {\n domevent.on(container, 'mousedown', this._onMouseDown, this);\n\n this.options = util.extend({\n distance: 10,\n exclude: null\n }, options);\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * Flag for represent current dragging session has been cancelled for exclude option.\n * @type {boolean}\n */\n this._cancelled = false;\n\n /**\n * @type {boolean}\n */\n this._isMoved = false;\n\n /**\n * dragging distance in pixel between mousedown and firing dragStart events\n * @type {number}\n */\n this._distance = 0;\n\n /**\n * @type {boolean}\n */\n this._dragStartFired = false;\n\n /**\n * @type {object}\n */\n this._dragStartEventData = null;\n}\n\n/**\n * Destroy method.\n */\nDrag.prototype.destroy = function() {\n domevent.off(this.container, 'mousedown', this._onMouseDown, this);\n this._isMoved = null;\n this.container = null;\n};\n\n/**\n * Clear cache data for single dragging session.\n */\nDrag.prototype._clearData = function() {\n this._cancelled = false;\n this._distance = 0;\n this._isMoved = false;\n this._dragStartFired = false;\n this._dragStartEventData = null;\n};\n\n/**\n * Toggle events for mouse dragging.\n * @param {boolean} toBind - bind events related with dragging when supplied \"true\"\n */\nDrag.prototype._toggleDragEvent = function(toBind) {\n var container = this.container,\n domMethod,\n method;\n\n if (toBind) {\n domMethod = 'on';\n method = 'disable';\n } else {\n domMethod = 'off';\n method = 'enable';\n }\n\n domutil[method + 'TextSelection'](container);\n domutil[method + 'ImageDrag'](container);\n domevent[domMethod](global.document, {\n mousemove: this._onMouseMove,\n mouseup: this._onMouseUp\n }, this);\n};\n\n/**\n * Normalize mouse event object.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {object} normalized mouse event data.\n */\nDrag.prototype._getEventData = function(mouseEvent) {\n return {\n target: mouseEvent.target || mouseEvent.srcElement,\n originEvent: mouseEvent\n };\n};\n\n/**\n * MouseDown DOM event handler.\n * @param {MouseEvent} mouseDownEvent MouseDown event object.\n */\nDrag.prototype._onMouseDown = function(mouseDownEvent) {\n var opt = this.options,\n target = (mouseDownEvent.srcElement || mouseDownEvent.target);\n\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n if (opt.exclude && opt.exclude(target)) {\n this._cancelled = true;\n\n return;\n }\n\n this._clearData();\n this._dragStartEventData = this._getEventData(mouseDownEvent);\n\n this._toggleDragEvent(true);\n};\n\n/**\n * MouseMove DOM event handler.\n * @emits Drag#drag\n * @emits Drag#dragStart\n * @param {MouseEvent} mouseMoveEvent MouseMove event object.\n */\nDrag.prototype._onMouseMove = function(mouseMoveEvent) {\n var distance;\n\n if (this._cancelled) {\n this._clearData();\n\n return;\n }\n\n distance = this.options.distance;\n // prevent automatic scrolling.\n domevent.preventDefault(mouseMoveEvent);\n\n if (this._distance < distance) {\n this._distance += 1;\n\n return;\n }\n this._isMoved = true;\n\n if (!this._dragStartFired) {\n this._dragStartFired = true;\n\n /**\n * Drag start events. cancelable.\n * @event Drag#dragStart\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n if (!this.invoke('dragStart', this._dragStartEventData)) {\n this._toggleDragEvent(false);\n this._clearData();\n\n return;\n }\n }\n\n /**\n * CalEvents while dragging.\n * @event Drag#drag\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('drag', this._getEventData(mouseMoveEvent));\n};\n\n/**\n * MouseUp DOM event handler.\n * @param {MouseEvent} mouseUpEvent MouseUp event object.\n * @emits Drag#dragEnd\n * @emits Drag#click\n */\nDrag.prototype._onMouseUp = function(mouseUpEvent) {\n if (this._cancelled) {\n return;\n }\n\n this._toggleDragEvent(false);\n\n // emit \"click\" event when not emitted drag event between mousedown and mouseup.\n if (this._isMoved) {\n this._isMoved = false;\n /**\n * Drag end events.\n * @event Drag#dragEnd\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('dragEnd', this._getEventData(mouseUpEvent));\n } else {\n /**\n * Click events.\n * @event Drag#click\n * @type {MouseEvent}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('click', this._getEventData(mouseUpEvent));\n }\n\n this._clearData();\n};\n\nutil.CustomEvents.mixin(Drag);\n\nmodule.exports = Drag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/drag.js\n// module id = 26\n// module chunks = 0","/**\n * @fileoverview Guide element controller for creation, resize in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n dw = require('../../common/dw'),\n tmpl = require('./guide.hbs');\nvar mmax = Math.max,\n mmin = Math.min,\n mabs = Math.abs,\n mfloor = Math.floor;\n\n/**\n * @constructor\n * @param {object} [options] - options\n * @param {boolean} [options.useHandle=false] - whether displaying resize handle on\n * guide element?\n * @param {boolean} [options.isResizeMode=false] - whether resize mode?\n * @param {Month} monthView - Month view instance\n */\nfunction MonthGuide(options, monthView) {\n var self = this;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n top: 0,\n height: '20px',\n bgColor: '#f7ca88',\n label: '새 일정',\n isResizeMode: false,\n isCreationMode: false\n }, options);\n\n /**\n * @type {Month}\n */\n this.view = monthView;\n\n /**\n * @type {WeekdayInMonth[]}\n */\n this.weeks = monthView.children.sort(function(a, b) {\n return util.stamp(a) - util.stamp(b);\n });\n\n /**\n * @type {number}\n */\n this.days = monthView.children.single().getRenderDateRange().length;\n\n /**\n * @type {function}\n */\n this.ratio = util.bind(function(value) {\n return common.ratio(self.days, 100, value);\n });\n\n /**\n * start coordinate of guide effect. (x, y) (days, weeks) effect can't\n * start lower than this coordinate.\n * @type {number[]}\n */\n this.startCoord = [0, 0];\n\n /**\n * @type {Object.}\n */\n this.guideElements = {};\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = monthView.grids;\n}\n\n/**\n * Destructor\n */\nMonthGuide.prototype.destroy = function() {\n this.clear();\n\n this.options = this.view = this.weeks = this.days =\n this.ratio = this.startCoord = this.guideElements = null;\n};\n\nMonthGuide.prototype.clearGuideElement = function() {\n this.destroy();\n};\n\n/**\n * Get ratio value in week.\n * @param {number} value - value for calc ratio in week\n * @returns {number} percent value\n */\nMonthGuide.prototype._getRatioValueInWeek = function(value) {\n var grid = this.grids[value] || {left: 100};\n\n return grid.left;\n};\n\n/**\n * Create guide element\n * @returns {HTMLElement} guide element\n */\nMonthGuide.prototype._createGuideElement = function() {\n var guide = document.createElement('div');\n\n guide.innerHTML = tmpl(this.options);\n\n return guide.firstChild;\n};\n\n/**\n * Get guide element. if not exist then create one\n * @param {number} y - y coordinate\n * @returns {?HTMLElement} guide element\n */\nMonthGuide.prototype._getGuideElement = function(y) {\n var guideElements = this.guideElements,\n guide = guideElements[y],\n weekdayView = this.weeks[y],\n container;\n\n if (!weekdayView) {\n return null;\n }\n\n if (!guide) {\n guide = this._createGuideElement();\n container = weekdayView.container;\n container.appendChild(guide);\n guideElements[y] = guide;\n }\n\n return guide;\n};\n\n/**\n * Get coordinate by supplied date in month\n * @param {Date} date - date to find coordinate\n * @returns {number[]} coordinate (x, y)\n */\nMonthGuide.prototype._getCoordByDate = function(date) {\n var weeks = this.weeks,\n days = this.days,\n getIdxFromDiff = function(d1, d2) {\n return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n },\n monthStart = datetime.parse(weeks[0].options.renderStartDate),\n isBefore = date < monthStart,\n dateDW = dw(date),\n startDW = dw(monthStart),\n endDW = startDW.clone().addDate(isBefore ? -days : days),\n x = getIdxFromDiff(dateDW.d, startDW.d),\n y = 0;\n\n while (!dateDW.isBetween(startDW, endDW)) {\n startDW.addDate(isBefore ? -days : days);\n endDW = startDW.clone().addDate(days);\n x = getIdxFromDiff(dateDW.d, startDW.d);\n y += (isBefore ? -1 : 1);\n }\n\n return [x, y];\n};\n\n/**\n * Get limited coordinate by supplied coodinates\n * @param {number[]} coord - coordinate need to limit\n * @param {number[]} [min] - minimum limitaion of coordinate\n * @param {number[]} [max] - maximum limitation of coordinate\n * @returns {number[]} limited coordiate\n */\nMonthGuide.prototype._getLimitedCoord = function(coord, min, max) {\n var toIndex = 1,\n x = coord[0],\n y = coord[1],\n result;\n\n min = min || [0, 0];\n max = max || [this.days - toIndex, this.weeks.length - toIndex];\n\n if (y < min[1]) {\n result = min.slice(0);\n } else if (y > max[1]) {\n result = max.slice(0);\n } else {\n x = mmax(min[0], x);\n x = mmin(max[0], x);\n result = [x, y];\n }\n\n return result;\n};\n\n/**\n * Prepare guide element modification\n * @param {object} dragStartEvent - dragStart schedule data from *guide\n */\nMonthGuide.prototype.start = function(dragStartEvent) {\n var opt = this.options,\n target = dragStartEvent.target,\n model = dragStartEvent.model,\n x = dragStartEvent.x,\n y = dragStartEvent.y,\n temp;\n\n if (opt.isResizeMode) {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\n\n util.extend(this.options, {\n top: parseInt(target.style.top, 10) + 'px',\n height: parseInt(target.style.height, 10) + 'px',\n bgColor: model.bgColor,\n borderColor: model.borderColor,\n label: model.title\n });\n }\n\n this.startCoord = [x, y];\n this.update(x, y);\n};\n\n/**\n * Data for update several guide elements\n * @typedef UpdateIndication\n * @type {object}\n * @property {HTMLElement} guide - guide element\n * @property {number} left - left style value\n * @property {number} width - width style value\n * @property {boolean} [exceedL=false] - whether schedule is exceeded past weeks?\n * @property {boolean} [exceedR=false] - whether schedule is exceeded future weeks?\n */\n\n/**\n * Modify HTML element that uses for guide element\n * @param {UpdateIndication[]} inds - indication of update severel guide element\n */\nMonthGuide.prototype._updateGuides = function(inds) {\n util.forEach(inds, function(ind) {\n var guide = ind.guide,\n exceedLClass = config.classname('month-exceed-left'),\n exceedRClass = config.classname('month-exceed-right');\n\n guide.style.display = 'block';\n guide.style.left = ind.left + '%';\n guide.style.width = ind.width + '%';\n\n if (ind.exceedL) {\n domutil.addClass(guide, exceedLClass);\n } else {\n domutil.removeClass(guide, exceedLClass);\n }\n\n if (ind.exceedR) {\n domutil.addClass(guide, exceedRClass);\n } else {\n domutil.removeClass(guide, exceedRClass);\n }\n });\n};\n\n/**\n * Get guide element indicate for origin week\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getOriginIndicate = function(startCoord, mouseCoord) {\n var left = mmin(startCoord[0], mouseCoord[0]),\n right = mmax(startCoord[0], mouseCoord[0]) + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = startCoord[0];\n right = this.days;\n exceedR = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n left = 0;\n right = startCoord[0] + 1;\n exceedL = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for week related with mouse position\n * @param {number[]} startCoord - drag start coordinate\n * @param {number[]} mouseCoord - mouse coordinate\n * @returns {object} indicate\n */\nMonthGuide.prototype._getMouseIndicate = function(startCoord, mouseCoord) {\n var left = mouseCoord[0],\n right = mouseCoord[0] + 1,\n exceedL, exceedR;\n\n if (mouseCoord[1] > startCoord[1]) {\n left = 0;\n exceedL = true;\n } else if (mouseCoord[1] < startCoord[1]) {\n right = this.days;\n exceedR = true;\n }\n\n return {\n left: this._getRatioValueInWeek(left),\n width: this._getRatioValueInWeek(right) -\n this._getRatioValueInWeek(left),\n exceedL: exceedL,\n exceedR: exceedR\n };\n};\n\n/**\n * Get guide element indicate for contained weeks\n * @returns {object} indicate\n */\nMonthGuide.prototype._getContainIndicate = function() {\n return {\n left: 0,\n width: 100,\n exceedL: true,\n exceedR: true\n };\n};\n\n/**\n * Remove several guide element that supplied by parameter\n * @param {number[]} yCoords - array of y coordinate to remove guide element\n */\nMonthGuide.prototype._removeGuideElements = function(yCoords) {\n var guides = this.guideElements;\n\n util.forEach(yCoords, function(y) {\n domutil.remove(guides[y]);\n delete guides[y];\n });\n};\n\n/**\n * Get excluded numbers in range\n * @param {number[]} range - the range. value must be sequencial.\n * @param {number[]} numbers - numbers to check\n * @returns {number[]} excluded numbers\n */\nMonthGuide.prototype._getExcludesInRange = function(range, numbers) {\n var min = mmin.apply(null, range),\n max = mmax.apply(null, range),\n excludes = [];\n\n util.forEach(numbers, function(num) {\n num = parseInt(num, 10);\n if (num < min || num > max) {\n excludes.push(num);\n }\n });\n\n return excludes;\n};\n\n/**\n * Update guide elements by coordinate in month grid from mousemove event\n * @param {number} x - x coordinate\n * @param {number} y - y coordinate\n */\nMonthGuide.prototype.update = function(x, y) {\n var self = this,\n startCoord = this.startCoord,\n mouseCoord = [x, y],\n limitedCoord = this.options.isResizeMode ?\n this._getLimitedCoord(mouseCoord, startCoord) : mouseCoord,\n renderedYIndex = util.keys(this.guideElements),\n yCoordsToUpdate = util.range(\n mmin(startCoord[1], limitedCoord[1]),\n mmax(startCoord[1], limitedCoord[1]) + 1\n ),\n yCoordsToRemove = this._getExcludesInRange(\n yCoordsToUpdate,\n renderedYIndex\n ),\n renderIndication = {};\n\n this._removeGuideElements(yCoordsToRemove);\n\n util.forEach(yCoordsToUpdate, function(guideYCoord) {\n var guide = self._getGuideElement(guideYCoord),\n indicate;\n\n if (!guide) {\n return;\n }\n\n if (guideYCoord === startCoord[1]) {\n indicate = self._getOriginIndicate(startCoord, limitedCoord);\n } else if (guideYCoord === mouseCoord[1]) {\n indicate = self._getMouseIndicate(startCoord, mouseCoord);\n } else {\n indicate = self._getContainIndicate();\n }\n\n renderIndication[guideYCoord] = util.extend({\n guide: guide\n }, indicate);\n });\n\n this._updateGuides(renderIndication);\n};\n\n/**\n * Clear all guide elements\n */\nMonthGuide.prototype.clear = function() {\n util.forEach(this.guideElements, function(element) {\n domutil.remove(element);\n });\n\n this.guideElements = {};\n};\n\nmodule.exports = MonthGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/guide.js\n// module id = 27\n// module chunks = 0","/**\n * @fileoverview Model for views\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\n/**\n * Schedule ViewModel\n * @constructor\n * @param {Schedule} schedule Schedule instance.\n */\nfunction ScheduleViewModel(schedule) {\n /**\n * The model of schedule.\n * @type {Schedule}\n */\n this.model = schedule;\n\n /**\n * @type {number}\n */\n this.top = 0;\n\n /**\n * @type {number}\n */\n this.left = 0;\n\n /**\n * @type {number}\n */\n this.width = 0;\n\n /**\n * @type {number}\n */\n this.height = 0;\n\n /**\n * Represent schedule has collide with other schedules when rendering.\n * @type {boolean}\n */\n this.hasCollide = false;\n\n /**\n * Extra space at rigth side of this schedule.\n * @type {number}\n */\n this.extraSpace = 0;\n\n /**\n * represent this schedule block is not visible after rendered.\n *\n * in month view, some viewmodel in date need to hide when already rendered before dates.\n *\n * set true then it just shows empty space.\n * @type {boolean}\n */\n this.hidden = false;\n\n /**\n * whether the schedule includes multiple dates\n */\n this.hasMultiDates = false;\n\n /**\n * represent render start date used at rendering.\n *\n * if set null then use model's 'start' property.\n * @type {TZDate}\n */\n this.renderStarts = null;\n\n /**\n * whether the actual start-date is before the render-start-date\n * @type {boolean}\n */\n this.exceedLeft = false;\n\n /**\n * represent render end date used at rendering.\n *\n * if set null then use model's 'end' property.\n * @type {TZDate}\n */\n this.renderEnds = null;\n\n /**\n * whether the actual end-date is after the render-end-date\n * @type {boolean}\n */\n this.exceedRight = false;\n}\n\n/**********\n * static props\n **********/\n\n/**\n * ScheduleViewModel factory method.\n * @param {Schedule} schedule Schedule instance.\n * @returns {ScheduleViewModel} ScheduleViewModel instance.\n */\nScheduleViewModel.create = function(schedule) {\n return new ScheduleViewModel(schedule);\n};\n\n/**********\n * prototype props\n **********/\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderStarts is not set. return model's start property.\n * @override\n * @returns {Date} render start date.\n */\nScheduleViewModel.prototype.getStarts = function() {\n if (this.renderStarts) {\n return this.renderStarts;\n }\n\n return this.model.start;\n};\n\n/**\n * return renderStarts property to render properly when specific schedule that exceed rendering date range.\n *\n * if renderEnds is not set. return model's end property.\n * @override\n * @returns {Date} render end date.\n */\nScheduleViewModel.prototype.getEnds = function() {\n if (this.renderEnds) {\n return this.renderEnds;\n }\n\n return this.model.end;\n};\n\n/**\n * @returns {number} unique number for model.\n */\nScheduleViewModel.prototype.cid = function() {\n return util.stamp(this.model);\n};\n\n/**\n * Shadowing valueOf method for schedule sorting.\n * @returns {Schedule} The model of schedule.\n */\nScheduleViewModel.prototype.valueOf = function() {\n return this.model;\n};\n\n/**\n * Link duration method\n * @returns {number} Schedule#duration result.\n */\nScheduleViewModel.prototype.duration = function() {\n return this.model.duration();\n};\n\n/**\n * Link collidesWith method\n * @param {Schedule|ScheduleViewModel} viewModel - Model or viewmodel instance of Schedule.\n * @returns {boolean} Schedule#collidesWith result.\n */\nScheduleViewModel.prototype.collidesWith = function(viewModel) {\n var ownStarts = this.getStarts(),\n ownEnds = this.getEnds(),\n start = viewModel.getStarts(),\n end = viewModel.getEnds();\n\n if ((start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)) {\n return true;\n }\n\n return false;\n};\n\nmodule.exports = ScheduleViewModel;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/model/viewModel/scheduleViewModel.js\n// module id = 28\n// module chunks = 0","/**\n * @fileoverview Weekday view for week\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Weekday = require('../weekday'),\n tmpl = require('./weekdayInWeek.hbs'),\n datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar config = require('../../config');\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.containerHeight=40] - minimum height of schedule\n * container element.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n * @param {object} [aboutMe] - parent container info\n * @param {string} [aboutMe.name] - panel name ['Milestone'|'Task'|'AllDay'|'TimeGrid']\n * @param {boolean} [aboutMe.forcedLayout] - force layout height by dragging\n */\nfunction WeekdayInWeek(options, container, aboutMe) {\n Weekday.call(this, options, container);\n this.aboutMe = aboutMe || {};\n}\n\nutil.inherit(WeekdayInWeek, Weekday);\n\n/**\n * Render Weekday view\n * @override\n */\nWeekdayInWeek.prototype.render = function(viewModel) {\n var opt = this.options,\n container = this.container,\n aboutMe = this.aboutMe,\n name = aboutMe.name;\n var baseViewModel;\n\n this.viewType = opt[name + 'ViewType'] || '';\n\n baseViewModel = this.getBaseViewModel(viewModel);\n\n if (this.viewType === 'toggle') {\n baseViewModel.viewType = this.viewType;\n baseViewModel.collapsed = this.collapsed ? 'collapsed' : '';\n baseViewModel.collapseBtnIndex = aboutMe.collapseBtnIndex;\n }\n\n container.innerHTML = tmpl(baseViewModel);\n\n util.forEach(domutil.find(config.classname('.weekday-exceed-in-week'), container, true), function(el) {\n el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n });\n\n util.forEach(domutil.find(config.classname('.weekday-collapse-btn'), container, true), function(el) {\n el.style.marginLeft = -(el.offsetWidth + 6) + 'px';\n });\n\n this.fire('afterRender', baseViewModel);\n};\n\n/**\n * returns maximum schedule count in day\n * @param {array} matrices - The matrices for schedule placing.\n * @returns {number} maximum schedule count in day\n */\nWeekdayInWeek.prototype._getMaxScheduleInDay = function(matrices) {\n return mmax.apply(\n null,\n util.map(matrices, function(matrix) {\n return Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n })\n );\n};\n\n/**\n * returns minimum height for container.\n * @param {number} maxScheduleInDay - max schedule blocks in one day\n * @returns {number}\n */\nWeekdayInWeek.prototype._getMinHeight = function(maxScheduleInDay) {\n var opt = this.options;\n var contentHeight = (maxScheduleInDay * opt.scheduleHeight)\n + ((maxScheduleInDay - 1) * opt.scheduleGutter);\n\n if (this.collapsed && this.aboutMe.maxHeight >= contentHeight + opt.containerBottomGutter) {\n contentHeight += opt.containerBottomGutter;\n }\n\n return contentHeight;\n};\n\n/**\n * make and update data of exceed date\n * @param {object} exceedDate - data to have exceed date in a week\n * @param {TZDate} renderStarts - start date of a week\n * @param {TZDate} renderEnds - end date of a week\n */\nWeekdayInWeek.prototype._updateExceedDate = function(exceedDate, renderStarts, renderEnds) {\n var date = datetime.clone(renderStarts);\n var day;\n\n for (; date <= renderEnds; date.setDate(date.getDate() + 1)) {\n day = datetime.format(date, 'YYYYMMDD');\n if (!exceedDate[day]) {\n exceedDate[day] = 1;\n } else {\n exceedDate[day] += 1;\n }\n }\n};\n\n/**\n * Exclude overflow schedules from matrices\n * @param {array} matrices - The matrices for schedule placing.\n * @param {number} visibleScheduleCount - maximum visible count on panel\n * @param {number} maxScheduleInDay - maximum number of schedules in day\n * @returns {array} - The matrices for schedule placing except overflowed schedules.\n */\nWeekdayInWeek.prototype._excludeExceedSchedules = function(matrices, visibleScheduleCount, maxScheduleInDay) {\n if (visibleScheduleCount >= maxScheduleInDay) {\n return matrices;\n }\n\n return matrices.map(function(matrix) {\n return matrix.map(function(row) {\n if (row.length > visibleScheduleCount) {\n return row.filter(function(item) {\n return item.top < visibleScheduleCount;\n }, this);\n }\n\n return row;\n }, this);\n }, this);\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInWeek.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var matrices = opt.getViewModelFunc(viewModel);\n var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n var visibleScheduleCount = this.aboutMe.visibleScheduleCount;\n var aboutMe = this.aboutMe;\n var exceedDate = {};\n var baseViewModel, panelHeight;\n\n if (this.viewType === 'toggle') {\n panelHeight = aboutMe.forcedLayout ? this.getViewBound().height : mmin(aboutMe.height, aboutMe.maxHeight);\n visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n if (this.collapsed) {\n visibleScheduleCount = mmin(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n exceedDate =\n this.getExceedDate(visibleScheduleCount,\n viewModel.schedulesInDateRange[aboutMe.name],\n viewModel.range,\n maxScheduleInDay\n );\n matrices = this._excludeExceedSchedules(matrices, visibleScheduleCount, maxScheduleInDay);\n aboutMe.visibleScheduleCount = visibleScheduleCount;\n } else {\n visibleScheduleCount = mmax(visibleScheduleCount, mmin(maxScheduleInDay, aboutMe.maxExpandCount));\n }\n }\n\n viewModel = util.extend({\n exceedDate: exceedDate || {}\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n minHeight: this._getMinHeight(maxScheduleInDay),\n matrices: matrices,\n scheduleContainerTop: this.options.scheduleContainerTop,\n maxScheduleInDay: maxScheduleInDay,\n floatingButtonTop: this._calculateFloatingBtnTop(visibleScheduleCount, maxScheduleInDay),\n panelName: aboutMe.name\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * Calculate absolute top position of floating button layer\n * @param {number} visibleScheduleCount - maximum (row) number of schedules that panel can show\n * @param {number} maxScheduleInDay - maximum number of schedules in day\n * @returns {number} absolute top position of floating buttons in weekday panel\n */\nWeekdayInWeek.prototype._calculateFloatingBtnTop = function(visibleScheduleCount, maxScheduleInDay) {\n var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n\n if (!this.collapsed && maxScheduleInDay > this.aboutMe.maxExpandCount) {\n return (visibleScheduleCount - 0.5) * scheduleHeight;\n }\n\n return (visibleScheduleCount - 1) * scheduleHeight;\n};\n\nmodule.exports = WeekdayInWeek;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/weekdayInWeek.js\n// module id = 29\n// module chunks = 0","/**\n * @fileoverview Weekday view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n domutil = require('../common/domutil'),\n datetime = require('../common/datetime'),\n TZDate = require('../common/timezone').Date,\n View = require('./view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - view options.\n * @param {number} [options.containerHeight=40] - minimum height of schedule\n * container element.\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction Weekday(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('weekday')\n );\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n containerHeight: 40,\n containerBottomGutter: 8,\n scheduleHeight: 18,\n scheduleGutter: 2,\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n View.call(this, container);\n}\n\nutil.inherit(Weekday, View);\n\n/**\n * Get render date range\n * @returns {Date[]} rendered date range\n */\nWeekday.prototype.getRenderDateRange = function() {\n return this._cacheParentViewModel.range;\n};\n\n/**\n * Get render date grids information\n * @returns {Date[]} rendered date grids information\n */\nWeekday.prototype.getRenderDateGrids = function() {\n return this._cacheParentViewModel.grids;\n};\n\n/**\n * Get default view model.\n * @param {object} viewModel parent's view model\n * @returns {object} viewModel to rendering.\n */\nWeekday.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var range = viewModel.range;\n var today = datetime.format(new TZDate(), 'YYYYMMDD');\n var gridWidth = (100 / range.length);\n var grids = viewModel.grids;\n var exceedDate = viewModel.exceedDate || {};\n\n this._cacheParentViewModel = viewModel;\n\n return {\n width: gridWidth,\n scheduleHeight: opt.scheduleHeight,\n scheduleBlockHeight: (opt.scheduleHeight + opt.scheduleGutter),\n scheduleBlockGutter: opt.scheduleGutter,\n dates: util.map(range, function(date, index) {\n var day = date.getDay();\n var ymd = datetime.format(date, 'YYYYMMDD');\n\n return {\n date: datetime.format(date, 'YYYY-MM-DD'),\n month: date.getMonth() + 1,\n day: day,\n isToday: ymd === today,\n ymd: ymd,\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0\n };\n })\n };\n};\n\n/* eslint max-nested-callbacks: 0 */\n/**\n * Make exceed date information\n * @param {number} maxCount - exceed schedule count\n * @param {Array} eventsInDateRange - matrix of ScheduleViewModel\n * @param {Array.} range - date range of one week\n * @returns {object} exceedDate\n */\nWeekday.prototype.getExceedDate = function(maxCount, eventsInDateRange, range) {\n var exceedDate = this._initExceedDate(range);\n\n util.forEach(eventsInDateRange, function(matrix) {\n util.forEach(matrix, function(column) {\n util.forEach(column, function(viewModel) {\n var period;\n if (!viewModel || viewModel.top < maxCount) {\n return;\n }\n\n period = datetime.range(\n viewModel.getStarts(),\n viewModel.getEnds(),\n datetime.MILLISECONDS_PER_DAY\n );\n\n util.forEach(period, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] += 1;\n });\n });\n });\n });\n\n return exceedDate;\n};\n\n/**\n * Initiate exceed date information\n * @param {Array.} range - date range of one week\n * @returns {Object} - initiated exceed date\n */\nWeekday.prototype._initExceedDate = function(range) {\n var exceedDate = {};\n\n util.forEach(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD');\n exceedDate[ymd] = 0;\n });\n\n return exceedDate;\n};\n\nmodule.exports = Weekday;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/weekday.js\n// module id = 30\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \"\n + alias4(((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"label\",\"hash\":{},\"data\":data}) : helper)))\n + \"
    \\n
     
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.isCreationMode : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/guide.hbs\n// module id = 32\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" border-left:3px solid \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/moveGuide.hbs\n// module id = 33\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"monthDayname-tmpl\"] || (depth0 && depth0[\"monthDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.daynames : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/month.hbs\n// module id = 34\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \"\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n return \"\\n background: #ffffff\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n \";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"14\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthMoreTitleDate-tmpl\"] || (depth0 && depth0[\"monthMoreTitleDate-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.date : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/more.hbs\n// module id = 35\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridHeader-tmpl\"] || (depth0 && depth0[\"monthGridHeader-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n \"\n + ((stack1 = (helpers[\"monthGridFooter-tmpl\"] || (depth0 && depth0[\"monthGridFooter-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"near-month-day\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"extra-date\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridHeaderExceed-tmpl\"] || (depth0 && depth0[\"monthGridHeaderExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + ((stack1 = (helpers[\"monthGridFooterExceed-tmpl\"] || (depth0 && depth0[\"monthGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonth.hbs\n// module id = 36\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.top : depth0),\"<\",((stack1 = (data && data.root)) && stack1.renderLimitIdx),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\";\n\n return \"
    \\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isAllDay : stack1),\"||\",(depth0 != null ? depth0.hasMultiDates : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(19, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-left\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-right\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\n return \"
    \\n \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = helpers.unless.call(alias3,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-schedule-focused \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing, alias5=\"function\";\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \" color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"\\n\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonthSchedule.hbs\n// module id = 37\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"alldayTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/allday.hbs\n// module id = 38\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \\n \"\n + ((stack1 = (helpers[\"weekDayname-tmpl\"] || (depth0 && depth0[\"weekDayname-tmpl\"]) || alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n \\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/daynames.hbs\n// module id = 39\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
      \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.items : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=helpers.helperMissing;\n\n return \"
  • \\n \"\n + ((stack1 = (helpers[\"milestone-tmpl\"] || (depth0 && depth0[\"milestone-tmpl\"]) || alias4).call(alias3,(depth0 != null ? depth0.model : depth0),{\"name\":\"milestone-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
  • \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"milestoneTitle-tmpl\"] || (depth0 != null ? depth0[\"milestoneTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"milestoneTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.schedules : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/milestone.hbs\n// module id = 40\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + ((stack1 = ((helper = (helper = helpers[\"taskTitle-tmpl\"] || (depth0 != null ? depth0[\"taskTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"taskTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n
    \\n
    \";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/taskview.hbs\n// module id = 41\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"time-date-schedule-block-pending\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"time-schedule-focused \";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
     
    \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/time.hbs\n// module id = 42\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n \"\n + alias4(((helper = (helper = helpers.hours || (depth0 != null ? depth0.hours : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hours\",\"hash\":{},\"data\":data}) : helper)))\n + \"\\n
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
    \\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n
    \\n
    \"\n + alias4(((helper = (helper = helpers.hourmarkerText || (depth0 != null ? depth0.hourmarkerText : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hourmarkerText\",\"hash\":{},\"data\":data}) : helper)))\n + \"
    \\n
    \\n
    today
    \\n
    \\n
    \\n
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.hoursLabels : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n
    \\n\\n\"\n + ((stack1 = helpers[\"if\"].call(alias1,(depth0 != null ? depth0.showHourMarker : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/timeGrid.hbs\n// module id = 43\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \"
     
    \";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda;\n\n return \"
    \\n
    \"\n + ((stack1 = (helpers[\"time-tmpl\"] || (depth0 && depth0[\"time-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n \"\n + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.cropped : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/week/timeMoveGuide.hbs\n// module id = 44\n// module chunks = 0","var Handlebars = require('/Users/nhnent/Documents/works/tui.calendar/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"today\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return \"\\n \"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda;\n\n return \"\\n
    \\n
    \\n\"\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.category : stack1),\"===\",\"task\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.program(20, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = helpers.unless.call(alias1,((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.isReadOnly : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(22, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\n
    \\n
    \\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-left\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \"\n + container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-exceed-right\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return container.escapeExpression(((helper = (helper = helpers.CSS_PREFIX || (depth0 != null ? depth0.CSS_PREFIX : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data}) : helper)))\n + \"weekday-schedule-focused \";\n},\"14\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \";\\n\";\n},\"16\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression;\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.color : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.bgColor : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? depth0.model : depth0)) != null ? stack1.borderColor : stack1), depth0))\n + \";\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\n return \" \"\n + ((stack1 = (helpers[\"task-tmpl\"] || (depth0 && depth0[\"task-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"task-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing;\n\n return \" \"\n + ((stack1 = (helpers[\"allday-tmpl\"] || (depth0 && depth0[\"allday-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.model : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var helper;\n\n return \" \";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.viewType : depth0),\"===\",\"toggle\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(25, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"25\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && data.root)) && stack1.collapsed),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(27, data, 0),\"inverse\":container.program(30, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"28\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \" \"\n + alias4((helpers[\"weekGridFooterExceed-tmpl\"] || (depth0 && depth0[\"weekGridFooterExceed-tmpl\"]) || alias2).call(alias1,(depth0 != null ? depth0.hiddenSchedules : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data}))\n + \"\\n\";\n},\"30\":function(container,depth0,helpers,partials,data) {\n var stack1;\n\n return ((stack1 = (helpers.fi || (depth0 && depth0.fi) || helpers.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && data.key),\"===\",((stack1 = (data && data.root)) && stack1.collapseBtnIndex),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(31, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"31\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \"\n + ((stack1 = ((helper = (helper = helpers[\"alldayCollapseBtnTitle-tmpl\"] || (depth0 != null ? depth0[\"alldayCollapseBtnTitle-tmpl\"] : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"alldayCollapseBtnTitle-tmpl\",\"hash\":{},\"data\":data}) : helper))) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"compiler\":[7,\">= 4.0.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3=\"function\", alias4=container.escapeExpression;\n\n return \"
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.dates : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n
    \\n
    \\n \\n
    \\n\"\n + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.matrices : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + ((stack1 = (helpers.fi || (depth0 && depth0.fi) || alias2).call(alias1,(depth0 != null ? depth0.panelName : depth0),\"===\",\"allday\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"
    \\n\";\n},\"useData\":true});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/weekdayInWeek.hbs\n// module id = 45\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _handlebarsBase = require('./handlebars/base');\n\nvar base = _interopRequireWildcard(_handlebarsBase);\n\n// Each of these augment the Handlebars object. No need to setup here.\n// (This is done to easily share code between commonjs and browse envs)\n\nvar _handlebarsSafeString = require('./handlebars/safe-string');\n\nvar _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString);\n\nvar _handlebarsException = require('./handlebars/exception');\n\nvar _handlebarsException2 = _interopRequireDefault(_handlebarsException);\n\nvar _handlebarsUtils = require('./handlebars/utils');\n\nvar Utils = _interopRequireWildcard(_handlebarsUtils);\n\nvar _handlebarsRuntime = require('./handlebars/runtime');\n\nvar runtime = _interopRequireWildcard(_handlebarsRuntime);\n\nvar _handlebarsNoConflict = require('./handlebars/no-conflict');\n\nvar _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict);\n\n// For compatibility and usage outside of module systems, make the Handlebars object a namespace\nfunction create() {\n var hb = new base.HandlebarsEnvironment();\n\n Utils.extend(hb, base);\n hb.SafeString = _handlebarsSafeString2['default'];\n hb.Exception = _handlebarsException2['default'];\n hb.Utils = Utils;\n hb.escapeExpression = Utils.escapeExpression;\n\n hb.VM = runtime;\n hb.template = function (spec) {\n return runtime.template(spec, hb);\n };\n\n return hb;\n}\n\nvar inst = create();\ninst.create = create;\n\n_handlebarsNoConflict2['default'](inst);\n\ninst['default'] = inst;\n\nexports['default'] = inst;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs7SUFBL0IsS0FBSzs7aUNBQ1Esc0JBQXNCOztJQUFuQyxPQUFPOztvQ0FFSSwwQkFBMEI7Ozs7O0FBR2pELFNBQVMsTUFBTSxHQUFHO0FBQ2hCLE1BQUksRUFBRSxHQUFHLElBQUksSUFBSSxDQUFDLHFCQUFxQixFQUFFLENBQUM7O0FBRTFDLE9BQUssQ0FBQyxNQUFNLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxDQUFDO0FBQ3ZCL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module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultDecorators = registerDefaultDecorators;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _decoratorsInline = require('./decorators/inline');\n\nvar _decoratorsInline2 = _interopRequireDefault(_decoratorsInline);\n\nfunction registerDefaultDecorators(instance) {\n _decoratorsInline2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG5cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/decorators.js\n// module id = 47\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerDecorator('inline', function (fn, props, container, options) {\n var ret = fn;\n if (!props.partials) {\n props.partials = {};\n ret = function (context, options) {\n // Create a new partials stack frame prior to exec.\n var original = container.partials;\n container.partials = _utils.extend({}, original, props.partials);\n var ret = fn(context, options);\n container.partials = original;\n return ret;\n };\n }\n\n props.partials[options.args[0]] = options.fn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QztDQUNKIiwiZmlsZSI6ImlubGluZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7ZXh0ZW5kfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVyRGVjb3JhdG9yKCdpbmxpbmUnLCBmdW5jdGlvbihmbiwgcHJvcHMsIGNvbnRhaW5lciwgb3B0aW9ucykge1xuICAgIGxldCByZXQgPSBmbjtcbiAgICBpZiAoIXByb3BzLnBhcnRpYWxzKSB7XG4gICAgICBwcm9wcy5wYXJ0aWFscyA9IHt9O1xuICAgICAgcmV0ID0gZnVuY3Rpb24oY29udGV4dCwgb3B0aW9ucykge1xuICAgICAgICAvLyBDcmVhdGUgYSBuZXcgcGFydGlhbHMgc3RhY2sgZnJhbWUgcHJpb3IgdG8gZXhlYy5cbiAgICAgICAgbGV0IG9yaWdpbmFsID0gY29udGFpbmVyLnBhcnRpYWxzO1xuICAgICAgICBjb250YWluZXIucGFydGlhbHMgPSBleHRlbmQoe30sIG9yaWdpbmFsLCBwcm9wcy5wYXJ0aWFscyk7XG4gICAgICAgIGxldCByZXQgPSBmbihjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgICAgY29udGFpbmVyLnBhcnRpYWxzID0gb3JpZ2luYWw7XG4gICAgICAgIHJldHVybiByZXQ7XG4gICAgICB9O1xuICAgIH1cblxuICAgIHByb3BzLnBhcnRpYWxzW29wdGlvbnMuYXJnc1swXV0gPSBvcHRpb25zLmZuO1xuXG4gICAgcmV0dXJuIHJldDtcbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/decorators/inline.js\n// module id = 48\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultHelpers = registerDefaultHelpers;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _helpersBlockHelperMissing = require('./helpers/block-helper-missing');\n\nvar _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing);\n\nvar _helpersEach = require('./helpers/each');\n\nvar _helpersEach2 = _interopRequireDefault(_helpersEach);\n\nvar _helpersHelperMissing = require('./helpers/helper-missing');\n\nvar _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing);\n\nvar _helpersIf = require('./helpers/if');\n\nvar _helpersIf2 = _interopRequireDefault(_helpersIf);\n\nvar _helpersLog = require('./helpers/log');\n\nvar _helpersLog2 = _interopRequireDefault(_helpersLog);\n\nvar _helpersLookup = require('./helpers/lookup');\n\nvar _helpersLookup2 = _interopRequireDefault(_helpersLookup);\n\nvar _helpersWith = require('./helpers/with');\n\nvar _helpersWith2 = _interopRequireDefault(_helpersWith);\n\nfunction registerDefaultHelpers(instance) {\n _helpersBlockHelperMissing2['default'](instance);\n _helpersEach2['default'](instance);\n _helpersHelperMissing2['default'](instance);\n _helpersIf2['default'](instance);\n _helpersLog2['default'](instance);\n _helpersLookup2['default'](instance);\n _helpersWith2['default'](instance);\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7eUNBQXVDLGdDQUFnQzs7OzsyQkFDOUMsZ0JBQWdCOzs7O29DQUNQLDBCQUEwQjs7Ozt5QkFDckMsY0FBYzs7OzswQkFDYixlQUFlOzs7OzZCQUNaLGtCQUFrQjs7OzsyQkFDcEIsZ0JBQWdCOzs7O0FBRWxDLFNBQVMsc0JBQXNCLENBQUMsUUFBUSxFQUFFO0FBQy9DLHlDQUEyQixRQUFRLENBQUMsQ0FBQztBQUNyQywyQkFBYSxRQUFRLENBQUMsQ0FBQztBQUN2QixvQ0FBc0IsUUFB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////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers.js\n// module id = 49\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('blockHelperMissing', function (context, options) {\n var inverse = options.inverse,\n fn = options.fn;\n\n if (context === true) {\n return fn(this);\n } else if (context === false || context == null) {\n return inverse(this);\n } else if (_utils.isArray(context)) {\n if (context.length > 0) {\n if (options.ids) {\n options.ids = [options.name];\n }\n\n return instance.helpers.each(context, options);\n } else {\n return inverse(this);\n }\n } else {\n if (options.data && options.ids) {\n var data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name);\n options = { data: data };\n }\n\n return fn(context, options);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBc0QsVUFBVTs7cUJBRWpELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQ3pCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ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VscGVyKCdibG9ja0hlbHBlck1pc3NpbmcnLCBmdW5jdGlvbihjb250ZXh0LCBvcHRpb25zKSB7XG4gICAgbGV0IGludmVyc2UgPSBvcHRpb25zLmludmVyc2UsXG4gICAgICAgIGZuID0gb3B0aW9ucy5mbjtcblxuICAgIGlmIChjb250ZXh0ID09PSB0cnVlKSB7XG4gICAgICByZXR1cm4gZm4odGhpcyk7XG4gICAgfSBlbHNlIGlmIChjb250ZXh0ID09PSBmYWxzZSB8fCBjb250ZXh0ID09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgaWYgKGNvbnRleHQubGVuZ3RoID4gMCkge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCwgb3B0aW9ucy5uYW1lKTtcbiAgICAgICAgb3B0aW9ucyA9IHtkYXRhOiBkYXRhfTtcbiAgICAgIH1cblxuICAgICAgcmV0dXJuIGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js\n// module id = 50\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _utils = require('../utils');\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('each', function (context, options) {\n if (!options) {\n throw new _exception2['default']('Must pass iterator to #each');\n }\n\n var fn = options.fn,\n inverse = options.inverse,\n i = 0,\n ret = '',\n data = undefined,\n contextPath = undefined;\n\n if (options.data && options.ids) {\n contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + '.';\n }\n\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n if (options.data) {\n data = _utils.createFrame(options.data);\n }\n\n function execIteration(field, index, last) {\n if (data) {\n data.key = field;\n data.index = index;\n data.first = index === 0;\n data.last = !!last;\n\n if (contextPath) {\n data.contextPath = contextPath + field;\n }\n }\n\n ret = ret + fn(context[field], {\n data: data,\n blockParams: _utils.blockParams([context[field], field], [contextPath + field, null])\n });\n }\n\n if (context && typeof context === 'object') {\n if (_utils.isArray(context)) {\n for (var j = context.length; i < j; i++) {\n if (i in context) {\n execIteration(i, i, i === context.length - 1);\n }\n }\n } else {\n var priorKey = undefined;\n\n for (var key in context) {\n if (context.hasOwnProperty(key)) {\n // We're running the iterations one step out of sync so we can detect\n // the last iteration without have to scan the object twice and create\n // an itermediate keys array.\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1);\n }\n priorKey = key;\n i++;\n }\n }\n if (priorKey !== undefined) {\n execIteration(priorKey, i - 1, true);\n }\n }\n }\n\n if (i === 0) {\n ret = inverse(this);\n }\n\n return ret;\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9o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wgW2NvbnRleHRQYXRoICsgZmllbGQsIG51bGxdKVxuICAgICAgfSk7XG4gICAgfVxuXG4gICAgaWYgKGNvbnRleHQgJiYgdHlwZW9mIGNvbnRleHQgPT09ICdvYmplY3QnKSB7XG4gICAgICBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgICBmb3IgKGxldCBqID0gY29udGV4dC5sZW5ndGg7IGkgPCBqOyBpKyspIHtcbiAgICAgICAgICBpZiAoaSBpbiBjb250ZXh0KSB7XG4gICAgICAgICAgICBleGVjSXRlcmF0aW9uKGksIGksIGkgPT09IGNvbnRleHQubGVuZ3RoIC0gMSk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBsZXQgcHJpb3JLZXk7XG5cbiAgICAgICAgZm9yIChsZXQga2V5IGluIGNvbnRleHQpIHtcbiAgICAgICAgICBpZiAoY29udGV4dC5oYXNPd25Qcm9wZXJ0eShrZXkpKSB7XG4gICAgICAgICAgICAvLyBXZSdyZSBydW5uaW5nIHRoZSBpdGVyYXRpb25zIG9uZSBzdGVwIG91dCBvZiBzeW5jIHNvIHdlIGNhbiBkZXRlY3RcbiAgICAgICAgICAgIC8vIHRoZSBsYXN0IGl0ZXJhdGlvbiB3aXRob3V0IGhhdmUgdG8gc2NhbiB0aGUgb2JqZWN0IHR3aWNlIGFuZCBjcmVhdGVcbiAgICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgICBpZiAocHJpb3JLZXkgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBwcmlvcktleSA9IGtleTtcbiAgICAgICAgICAgIGkrKztcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/each.js\n// module id = 51\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nvar _exception = require('../exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nexports['default'] = function (instance) {\n instance.registerHelper('helperMissing', function () /* [args, ]options */{\n if (arguments.length === 1) {\n // A missing field in a {{foo}} construct.\n return undefined;\n } else {\n // Someone is actually trying to call something, blow up.\n throw new _exception2['default']('Missing helper: \"' + arguments[arguments.length - 1].name + '\"');\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozt5QkFBc0IsY0FBYzs7OztxQkFFckIsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxlQUFlLEVBQUUsaUNBQWdDO0FBQ3ZFLFFBQUksU0FBUyxDQUFDLE1BQU0sS0FBSyxDQUFDLEVBQUU7O0FBRTFCLGFBQU8sU0FBUyxDQUFDO0tBQ2xCLE1BQU07O0FBRUwsWUFBTSwyQkFBYyxtQkFBbUIsR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsR0FBRyxDQUFDLENBQUM7S0FDdkY7R0FDRixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJoZWxwZXItbWlzc2luZy5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBFeGNlcHRpb24gZnJvbSAnLi4vZXhjZXB0aW9uJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ2hlbHBlck1pc3NpbmcnLCBmdW5jdGlvbigvKiBbYXJncywgXW9wdGlvbnMgKi8pIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCA9PT0gMSkge1xuICAgICAgLy8gQSBtaXNzaW5nIGZpZWxkIGluIGEge3tmb299fSBjb25zdHJ1Y3QuXG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH0gZWxzZSB7XG4gICAgICAvLyBTb21lb25lIGlzIGFjdHVhbGx5IHRyeWluZyB0byBjYWxsIHNvbWV0aGluZywgYmxvdyB1cC5cbiAgICAgIHRocm93IG5ldyBFeGNlcHRpb24oJ01pc3NpbmcgaGVscGVyOiBcIicgKyBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdLm5hbWUgKyAnXCInKTtcbiAgICB9XG4gIH0pO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/helper-missing.js\n// module id = 52\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('if', function (conditional, options) {\n if (_utils.isFunction(conditional)) {\n conditional = conditional.call(this);\n }\n\n // Default behavior is to render the positive path if the value is truthy and not empty.\n // The `includeZero` option may be set to treat the condtional as purely not empty based on the\n // behavior of isEmpty. Effectively this determines if 0 is handled by the positive path or negative.\n if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) {\n return options.inverse(this);\n } else {\n return options.fn(this);\n }\n });\n\n instance.registerHelper('unless', function (conditional, options) {\n return instance.helpers['if'].call(this, conditional, { fn: options.inverse, inverse: options.fn, hash: options.hash });\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBa0MsVUFBVTs7cUJBRTdCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLGtCQUFXLFdBQVcsQ0FBQyxFQUFFO0FBQUUsaUJBQVcsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQUU7Ozs7O0FBS3RFLFFBQUksQUFBQyxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsV0FBVyxJQUFJLENBQUMsV0FBVyxJQUFLLGVBQVEsV0FBVyxDQUFDLEVBQUU7QUFDdkUsYUFBTyxPQUFPLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0tBQzlCLE1BQU07QUFDTCxhQUFPLE9BQU8sQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDekI7R0FDRixDQUFDLENBQUM7O0FBRUgsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxXQUFXLEVBQUUsT0FBTyxFQUFFO0FBQy9ELFdBQU8sUUFBUSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLFdBQVcsRUFBRSxFQUFDLEVBQU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lbHNlIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmZuKHRoaXMpO1xuICAgIH1cbiAgfSk7XG5cbiAgaW5zdGFuY2UucmVnaXN0ZXJIZWxwZXIoJ3VubGVzcycsIGZ1bmN0aW9uKGNvbmRpdGlvbmFsLCBvcHRpb25zKSB7XG4gICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnNbJ2lmJ10uY2FsbCh0aGlzLCBjb25kaXRpb25hbCwge2ZuOiBvcHRpb25zLmludmVyc2UsIGludmVyc2U6IG9wdGlvbnMuZm4sIGhhc2g6IG9wdGlvbnMuaGFzaH0pO1xuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/if.js\n// module id = 53\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('log', function () /* message, options */{\n var args = [undefined],\n options = arguments[arguments.length - 1];\n for (var i = 0; i < arguments.length - 1; i++) {\n args.push(arguments[i]);\n }\n\n var level = 1;\n if (options.hash.level != null) {\n level = options.hash.level;\n } else if (options.data && options.data.level != null) {\n level = options.data.level;\n }\n args[0] = level;\n\n instance.log.apply(instance, args);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ2xCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0F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SAxOyBpKyspIHtcbiAgICAgIGFyZ3MucHVzaChhcmd1bWVudHNbaV0pO1xuICAgIH1cblxuICAgIGxldCBsZXZlbCA9IDE7XG4gICAgaWYgKG9wdGlvbnMuaGFzaC5sZXZlbCAhPSBudWxsKSB7XG4gICAgICBsZXZlbCA9IG9wdGlvbnMuaGFzaC5sZXZlbDtcbiAgICB9IGVsc2UgaWYgKG9wdGlvbnMuZGF0YSAmJiBvcHRpb25zLmRhdGEubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmRhdGEubGV2ZWw7XG4gICAgfVxuICAgIGFyZ3NbMF0gPSBsZXZlbDtcblxuICAgIGluc3RhbmNlLmxvZyguLi4gYXJncyk7XG4gIH0pO1xufVxuIl19\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/log.js\n// module id = 54\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('lookup', function (obj, field) {\n return obj && obj[field];\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFO0FBQ3JELFdBQU8sR0FBRyxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQztHQUMxQixDQUFDLENBQUM7Q0FDSiIsImZpbGUiOiJsb29rdXAuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihpbnN0YW5jZSkge1xuICBpbnN0YW5jZS5yZWdpc3RlckhlbHBlcignbG9va3VwJywgZnVuY3Rpb24ob2JqLCBmaWVsZCkge1xuICAgIHJldHVybiBvYmogJiYgb2JqW2ZpZWxkXTtcbiAgfSk7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/lookup.js\n// module id = 55\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('../utils');\n\nexports['default'] = function (instance) {\n instance.registerHelper('with', function (context, options) {\n if (_utils.isFunction(context)) {\n context = context.call(this);\n }\n\n var fn = options.fn;\n\n if (!_utils.isEmpty(context)) {\n var data = options.data;\n if (options.data && options.ids) {\n data = _utils.createFrame(options.data);\n data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]);\n }\n\n return fn(context, {\n data: data,\n blockParams: _utils.blockParams([context], [data && data.contextPath])\n });\n } else {\n return options.inverse(this);\n }\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUErRSxVQUFVOztxQkFFMUUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxNQUFNLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3pELFFBQUksa0JBQVcsT0FBTyxDQUFDLEVBQUU7QUFBRSxhQUFPLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUFFOztBQUUxRCxRQUFJLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVwQixRQUFJLENBQUMsZUFBUSxPQUFPLENBQUMsRUFBRTtBQUNyQixVQUFJLElB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NFbXB0eShjb250ZXh0KSkge1xuICAgICAgbGV0IGRhdGEgPSBvcHRpb25zLmRhdGE7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGRhdGEgPSBjcmVhdGVGcmFtZShvcHRpb25zLmRhdGEpO1xuICAgICAgICBkYXRhLmNvbnRleHRQYXRoID0gYXBwZW5kQ29udGV4dFBhdGgob3B0aW9ucy5kYXRhLmNvbnRleHRQYXRoLCBvcHRpb25zLmlkc1swXSk7XG4gICAgICB9XG5cbiAgICAgIHJldHVybiBmbihjb250ZXh0LCB7XG4gICAgICAgIGRhdGE6IGRhdGEsXG4gICAgICAgIGJsb2NrUGFyYW1zOiBibG9ja1BhcmFtcyhbY29udGV4dF0sIFtkYXRhICYmIGRhdGEuY29udGV4dFBhdGhdKVxuICAgICAgfSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiBvcHRpb25zLmludmVyc2UodGhpcyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/helpers/with.js\n// module id = 56\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\n\nvar _utils = require('./utils');\n\nvar logger = {\n methodMap: ['debug', 'info', 'warn', 'error'],\n level: 'info',\n\n // Maps a given level value to the `methodMap` indexes above.\n lookupLevel: function lookupLevel(level) {\n if (typeof level === 'string') {\n var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase());\n if (levelMap >= 0) {\n level = levelMap;\n } else {\n level = parseInt(level, 10);\n }\n }\n\n return level;\n },\n\n // Can be overridden in the host environment\n log: function log(level) {\n level = logger.lookupLevel(level);\n\n if (typeof console !== 'undefined' && logger.lookupLevel(logger.level) <= level) {\n var method = logger.methodMap[level];\n if (!console[method]) {\n // eslint-disable-line no-console\n method = 'log';\n }\n\n for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n message[_key - 1] = arguments[_key];\n }\n\n console[method].apply(console, message); // eslint-disable-line no-console\n }\n }\n};\n\nexports['default'] = logger;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUFzQixTQUFTOztBQUUvQixJQUFJLE1BQU0sR0FBRztBQUNYLFdBQVMsRUFBRSxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQztBQUM3QyxPQUFLLEVBQUUsTUFBTTs7O0FBR2IsYUFBVyxFQUFFLHFCQUFTLEtBQUssRUFBRTtBQUMzQixRQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRTtBQUM3QixVQUFJLFFBQVEsR0FBRyxlQUFRLE1BQU0sQ0FBQyxTQUFTLEVBQUUsS0FBSyxDQUFDLFdBQVcsRUFBRSxDQUFDLENBQUM7QUFDOUQsVUFBSSxRQUFRLElBQUksQ0FBQyxFQUFFO0FBQ2pCLGFBQUssR0FBRyxRQUFRLENBQUM7T0FDbEIsTUFBTTtBQUNMLGFBQUssR0FBRyxRQUFRLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO09BQzdCO0tBQ0Y7O0FBRUQsV0FBTyxLQUFLLENBQUM7R0FDZDs7O0FBR0QsS0FBRyxFQUFFLGFBQVMsS0FBSyxFQUFjO0FBQy9CLFNBQUssR0FBRyxNQUFNLENBQUMsV0FBVyxDQUFDLEtBQUssQ0FBQyxDQUFDOztBQUVsQyxRQUFJLE9BQU8sT0FBTyxLQUFLLFdBQVcsSUFBSSxNQUFNLENBQUMsV0FBVyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsSUFBSSxLQUFLLEVBQUU7QUFDL0UsVUF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vbm1lbnRcbiAgbG9nOiBmdW5jdGlvbihsZXZlbCwgLi4ubWVzc2FnZSkge1xuICAgIGxldmVsID0gbG9nZ2VyLmxvb2t1cExldmVsKGxldmVsKTtcblxuICAgIGlmICh0eXBlb2YgY29uc29sZSAhPT0gJ3VuZGVmaW5lZCcgJiYgbG9nZ2VyLmxvb2t1cExldmVsKGxvZ2dlci5sZXZlbCkgPD0gbGV2ZWwpIHtcbiAgICAgIGxldCBtZXRob2QgPSBsb2dnZXIubWV0aG9kTWFwW2xldmVsXTtcbiAgICAgIGlmICghY29uc29sZVttZXRob2RdKSB7ICAgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1jb25zb2xlXG4gICAgICAgIG1ldGhvZCA9ICdsb2cnO1xuICAgICAgfVxuICAgICAgY29uc29sZVttZXRob2RdKC4uLm1lc3NhZ2UpOyAgICAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLWNvbnNvbGVcbiAgICB9XG4gIH1cbn07XG5cbmV4cG9ydCBkZWZhdWx0IGxvZ2dlcjtcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/logger.js\n// module id = 57\n// module chunks = 0","/* global window */\n'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (Handlebars) {\n /* istanbul ignore next */\n var root = typeof global !== 'undefined' ? global : window,\n $Handlebars = root.Handlebars;\n /* istanbul ignore next */\n Handlebars.noConflict = function () {\n if (root.Handlebars === Handlebars) {\n root.Handlebars = $Handlebars;\n }\n return Handlebars;\n };\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O3FCQUNlLFVBQVMsVUFBVSxFQUFFOztBQUVsQyxNQUFJLElBQUksR0FBRyxPQUFPLE1BQU0sS0FBSyxXQUFXLEdBQUcsTUFBTSxHQUFHLE1BQU07TUFDdEQsV0FBVyxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUM7O0FBRWxDLFlBQVUsQ0FBQyxVQUFVLEdBQUcsWUFBVztBQUNqQyxRQUFJLElBQUksQ0FBQyxVQUFVLEtBQUssVUFBVSxFQUFFO0FBQ2xDLFVBQUksQ0FBQyxVQUFVLEdBQUcsV0FBVyxDQUFDO0tBQy9CO0FBQ0QsV0FBTyxVQUFVLENBQUM7R0FDbkIsQ0FBQztDQUNIIiwiZmlsZSI6Im5vLWNvbmZsaWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiLyogZ2xvYmFsIHdpbmRvdyAqL1xuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oSGFuZGxlYmFycykge1xuICAvKiBpc3RhbmJ1bCBpZ25vcmUgbmV4dCAqL1xuICBsZXQgcm9vdCA9IHR5cGVvZiBnbG9iYWwgIT09ICd1bmRlZmluZWQnID8gZ2xvYmFsIDogd2luZG93LFxuICAgICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/no-conflict.js\n// module id = 58\n// module chunks = 0","'use strict';\n\nexports.__esModule = true;\nexports.checkRevision = checkRevision;\nexports.template = template;\nexports.wrapProgram = wrapProgram;\nexports.resolvePartial = resolvePartial;\nexports.invokePartial = invokePartial;\nexports.noop = noop;\n// istanbul ignore next\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\n// istanbul ignore next\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }\n\nvar _utils = require('./utils');\n\nvar Utils = _interopRequireWildcard(_utils);\n\nvar _exception = require('./exception');\n\nvar _exception2 = _interopRequireDefault(_exception);\n\nvar _base = require('./base');\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = _base.COMPILER_REVISION;\n\n if (compilerRevision !== currentRevision) {\n if (compilerRevision < currentRevision) {\n var runtimeVersions = _base.REVISION_CHANGES[currentRevision],\n compilerVersions = _base.REVISION_CHANGES[compilerRevision];\n throw new _exception2['default']('Template was precompiled with an older version of Handlebars than the current runtime. ' + 'Please update your precompiler to a newer version (' + runtimeVersions + ') or downgrade your runtime to an older version (' + compilerVersions + ').');\n } else {\n // Use the embedded version info since the runtime doesn't know about this revision yet\n throw new _exception2['default']('Template was precompiled with a newer version of Handlebars than the current runtime. ' + 'Please update your runtime to a newer version (' + compilerInfo[1] + ').');\n }\n }\n}\n\nfunction template(templateSpec, env) {\n /* istanbul ignore next */\n if (!env) {\n throw new _exception2['default']('No environment passed to template');\n }\n if (!templateSpec || !templateSpec.main) {\n throw new _exception2['default']('Unknown template object: ' + typeof templateSpec);\n }\n\n templateSpec.main.decorator = templateSpec.main_d;\n\n // Note: Using env.VM references rather than local var references throughout this section to allow\n // for external users to override these as psuedo-supported APIs.\n env.VM.checkRevision(templateSpec.compiler);\n\n function invokePartialWrapper(partial, context, options) {\n if (options.hash) {\n context = Utils.extend({}, context, options.hash);\n if (options.ids) {\n options.ids[0] = true;\n }\n }\n\n partial = env.VM.resolvePartial.call(this, partial, context, options);\n var result = env.VM.invokePartial.call(this, partial, context, options);\n\n if (result == null && env.compile) {\n options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env);\n result = options.partials[options.name](context, options);\n }\n if (result != null) {\n if (options.indent) {\n var lines = result.split('\\n');\n for (var i = 0, l = lines.length; i < l; i++) {\n if (!lines[i] && i + 1 === l) {\n break;\n }\n\n lines[i] = options.indent + lines[i];\n }\n result = lines.join('\\n');\n }\n return result;\n } else {\n throw new _exception2['default']('The partial ' + options.name + ' could not be compiled when running in runtime-only mode');\n }\n }\n\n // Just add water\n var container = {\n strict: function strict(obj, name) {\n if (!(name in obj)) {\n throw new _exception2['default']('\"' + name + '\" not defined in ' + obj);\n }\n return obj[name];\n },\n lookup: function lookup(depths, name) {\n var len = depths.length;\n for (var i = 0; i < len; i++) {\n if (depths[i] && depths[i][name] != null) {\n return depths[i][name];\n }\n }\n },\n lambda: function lambda(current, context) {\n return typeof current === 'function' ? current.call(context) : current;\n },\n\n escapeExpression: Utils.escapeExpression,\n invokePartial: invokePartialWrapper,\n\n fn: function fn(i) {\n var ret = templateSpec[i];\n ret.decorator = templateSpec[i + '_d'];\n return ret;\n },\n\n programs: [],\n program: function program(i, data, declaredBlockParams, blockParams, depths) {\n var programWrapper = this.programs[i],\n fn = this.fn(i);\n if (data || depths || blockParams || declaredBlockParams) {\n programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths);\n } else if (!programWrapper) {\n programWrapper = this.programs[i] = wrapProgram(this, i, fn);\n }\n return programWrapper;\n },\n\n data: function data(value, depth) {\n while (value && depth--) {\n value = value._parent;\n }\n return value;\n },\n merge: function merge(param, common) {\n var obj = param || common;\n\n if (param && common && param !== common) {\n obj = Utils.extend({}, common, param);\n }\n\n return obj;\n },\n // An empty object to use as replacement for null-contexts\n nullContext: Object.seal({}),\n\n noop: env.VM.noop,\n compilerInfo: templateSpec.compiler\n };\n\n function ret(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var data = options.data;\n\n ret._setup(options);\n if (!options.partial && templateSpec.useData) {\n data = initData(context, data);\n }\n var depths = undefined,\n blockParams = templateSpec.useBlockParams ? [] : undefined;\n if (templateSpec.useDepths) {\n if (options.depths) {\n depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths;\n } else {\n depths = [context];\n }\n }\n\n function main(context /*, options*/) {\n return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);\n }\n main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n return main(context, options);\n }\n ret.isTop = true;\n\n ret._setup = function (options) {\n if (!options.partial) {\n container.helpers = container.merge(options.helpers, env.helpers);\n\n if (templateSpec.usePartial) {\n container.partials = container.merge(options.partials, env.partials);\n }\n if (templateSpec.usePartial || templateSpec.useDecorators) {\n container.decorators = container.merge(options.decorators, env.decorators);\n }\n } else {\n container.helpers = options.helpers;\n container.partials = options.partials;\n container.decorators = options.decorators;\n }\n };\n\n ret._child = function (i, data, blockParams, depths) {\n if (templateSpec.useBlockParams && !blockParams) {\n throw new _exception2['default']('must pass block params');\n }\n if (templateSpec.useDepths && !depths) {\n throw new _exception2['default']('must pass parent depths');\n }\n\n return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths);\n };\n return ret;\n}\n\nfunction wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) {\n function prog(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n var currentDepths = depths;\n if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) {\n currentDepths = [context].concat(depths);\n }\n\n return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths);\n }\n\n prog = executeDecorators(fn, prog, container, depths, data, blockParams);\n\n prog.program = i;\n prog.depth = depths ? depths.length : 0;\n prog.blockParams = declaredBlockParams || 0;\n return prog;\n}\n\nfunction resolvePartial(partial, context, options) {\n if (!partial) {\n if (options.name === '@partial-block') {\n partial = options.data['partial-block'];\n } else {\n partial = options.partials[options.name];\n }\n } else if (!partial.call && !options.name) {\n // This is a dynamic partial that returned a string\n options.name = partial;\n partial = options.partials[partial];\n }\n return partial;\n}\n\nfunction invokePartial(partial, context, options) {\n // Use the current closure context to save the partial-block if this partial\n var currentPartialBlock = options.data && options.data['partial-block'];\n options.partial = true;\n if (options.ids) {\n options.data.contextPath = options.ids[0] || options.data.contextPath;\n }\n\n var partialBlock = undefined;\n if (options.fn && options.fn !== noop) {\n (function () {\n options.data = _base.createFrame(options.data);\n // Wrapper function to get access to currentPartialBlock from the closure\n var fn = options.fn;\n partialBlock = options.data['partial-block'] = function partialBlockWrapper(context) {\n var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];\n\n // Restore the partial-block from the closure for the execution of the block\n // i.e. the part inside the block of the partial call.\n options.data = _base.createFrame(options.data);\n options.data['partial-block'] = currentPartialBlock;\n return fn(context, options);\n };\n if (fn.partials) {\n options.partials = Utils.extend({}, options.partials, fn.partials);\n }\n })();\n }\n\n if (partial === undefined && partialBlock) {\n partial = partialBlock;\n }\n\n if (partial === undefined) {\n throw new _exception2['default']('The partial ' + options.name + ' could not be found');\n } else if (partial instanceof Function) {\n return partial(context, options);\n }\n}\n\nfunction noop() {\n return '';\n}\n\nfunction initData(context, data) {\n if (!data || !('root' in data)) {\n data = data ? _base.createFrame(data) : {};\n data.root = context;\n }\n return data;\n}\n\nfunction executeDecorators(fn, prog, container, depths, data, blockParams) {\n if (fn.decorator) {\n var props = {};\n prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths);\n Utils.extend(prog, props);\n }\n return prog;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3l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Vjb3JhdG9ycyhmbiwgcHJvZywgY29udGFpbmVyLCBkZXB0aHMsIGRhdGEsIGJsb2NrUGFyYW1zKSB7XG4gIGlmIChmbi5kZWNvcmF0b3IpIHtcbiAgICBsZXQgcHJvcHMgPSB7fTtcbiAgICBwcm9nID0gZm4uZGVjb3JhdG9yKHByb2csIHByb3BzLCBjb250YWluZXIsIGRlcHRocyAmJiBkZXB0aHNbMF0sIGRhdGEsIGJsb2NrUGFyYW1zLCBkZXB0aHMpO1xuICAgIFV0aWxzLmV4dGVuZChwcm9nLCBwcm9wcyk7XG4gIH1cbiAgcmV0dXJuIHByb2c7XG59XG4iXX0=\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/runtime.js\n// module id = 59\n// module chunks = 0","// Build out our basic SafeString type\n'use strict';\n\nexports.__esModule = true;\nfunction SafeString(string) {\n this.string = string;\n}\n\nSafeString.prototype.toString = SafeString.prototype.toHTML = function () {\n return '' + this.string;\n};\n\nexports['default'] = SafeString;\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3NhZmUtc3RyaW5nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFDQSxTQUFTLFVBQVUsQ0FBQyxNQUFNLEVBQUU7QUFDMUIsTUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7Q0FDdEI7O0FBRUQsVUFBVSxDQUFDLFNBQVMsQ0FBQyxRQUFRLEdBQUcsVUFBVSxDQUFDLFNBQVMsQ0FBQyxNQUFNLEdBQUcsWUFBVztBQUN2RSxTQUFPLEVBQUUsR0FBRyxJQUFJLENBQUMsTUFBTSxDQUFDO0NBQ3pCLENBQUM7O3FCQUVhLFVBQVUiLCJmaWxlIjoic2FmZS1zdHJpbmcuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBCdWlsZCBvdXQgb3VyIGJhc2ljIFNhZmVTdHJpbmcgdHlwZVxuZnVuY3Rpb24gU2FmZVN0cmluZyhzdHJpbmcpIHtcbiAgdGhpcy5zdHJpbmcgPSBzdHJpbmc7XG59XG5cblNhZmVTdHJpbmcucHJvdG90eXBlLnRvU3RyaW5nID0gU2FmZVN0cmluZy5wcm90b3R5cGUudG9IVE1MID0gZnVuY3Rpb24oKSB7XG4gIHJldHVybiAnJyArIHRoaXMuc3RyaW5nO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgU2FmZVN0cmluZztcbiJdfQ==\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/handlebars/dist/cjs/handlebars/safe-string.js\n// module id = 60\n// module chunks = 0","/**\n * @fileoverview Add autoscroll feature to elements that prevented text selection.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domevent = require('../common/domevent');\nvar domutil = require('../common/domutil');\nvar Point = require('../common/point');\n\nvar SCROLL_INTERVAL = 30;\nvar SCROLL_MAX = 15;\nvar SCROLL_CLICK_INCREASED = 2; // IE에서 스크롤 바 클릭 시 실제 UI pixel 보다 넓게 잡히는 현상 offset.\n\n/**\n * Add autoscroll feature to elements that prevented text selection.\n * @constructor\n * @param {HTMLElement} container - HTMLElement to add autoscroll features.\n */\nfunction AutoScroll(container) {\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /**\n * @type {AutoScroll.DIRECTION}\n */\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n /**\n * @type {number}\n */\n this._offset = 0;\n\n /**\n * interval to scrolling\n * @type {number}\n */\n this._intervalID = 0;\n\n domevent.on(container, {\n 'mousedown': this._onMouseDown\n }, this);\n}\n\n/**\n * @enum\n */\nAutoScroll.DIRECTION = {\n INSIDE: 0,\n TOP: 1,\n RIGHT: 2,\n BOTTOM: 3,\n LEFT: 4\n};\n\n/**\n * Instance destroy method.\n */\nAutoScroll.prototype.destroy = function() {\n domevent.off(this.container, {\n 'mousedown': this._onMouseDown,\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n\n window.clearInterval(this._intervalID);\n this._intervalID = this._direction = this.container = null;\n};\n\n/**\n * Normalize ClientRect and calculate each position of edges.\n * @param {ClientRect} clientRect - ClientRect object of element.\n * @returns {object} edges.\n */\nAutoScroll.prototype._getEdgePositions = function(clientRect) {\n return {\n top: clientRect.top,\n right: clientRect.left + clientRect.width,\n bottom: clientRect.bottom,\n left: clientRect.left\n };\n};\n\n/**\n * Get element real size (\"real size\" -> size without scrollbar)\n * @param {HTMLElement} el - element want to know real size (\"real size\" -> size without scrollbar)\n * @returns {number[]} real size [width, height]\n */\nAutoScroll.prototype.getRealSize = function(el) {\n var computed = domutil.getComputedStyle(el),\n border,\n padding;\n\n border = parseFloat(computed.getPropertyValue('border-top-width')) +\n parseFloat(computed.getPropertyValue('border-bottom-width'));\n padding = parseFloat(computed.getPropertyValue('padding-top')) +\n parseFloat(computed.getPropertyValue('padding-bottom'));\n\n return [el.clientWidth + border + padding, el.clientHeight + border + padding];\n};\n\n/**\n * Check supplied element has scrollbar.\n * @param {HTMLElement} el - element want to know has scrollbar.\n * @returns {boolean[]} has scrollbar? [horizontal, vertical]\n */\nAutoScroll.prototype.hasScrollbar = function(el) {\n var realSize = this.getRealSize(el);\n\n return [\n el.offsetWidth > Math.ceil(realSize[0]),\n el.offsetHeight > Math.ceil(realSize[1])\n ];\n};\n\n/**\n * @param {HTMLElement} el - element want to know.\n * @param {MouseEvent} mouseEvent - mouse event object.\n * @returns {boolean} mouse pointer is on the scrollbar?\n */\nAutoScroll.prototype.isOnScrollbar = function(el, mouseEvent) {\n var realSize = this.getRealSize(el),\n pos = domevent.getMousePosition(mouseEvent, el),\n mouseInScrollbar = false;\n\n mouseInScrollbar = (realSize[0] - SCROLL_CLICK_INCREASED < pos[0] ||\n realSize[1] - SCROLL_CLICK_INCREASED < pos[1]);\n\n return mouseInScrollbar;\n};\n\n/**\n * MouseDown event handler\n * @param {MouseEvent} mouseDownEvent - mouse down event\n */\nAutoScroll.prototype._onMouseDown = function(mouseDownEvent) {\n // only primary button can start drag.\n if (domevent.getMouseButton(mouseDownEvent) !== 0) {\n return;\n }\n\n // deactivate autoscroll feature when mouse is on the scrollbar. (IE)\n if (util.browser.msie && this.isOnScrollbar(this.container, mouseDownEvent)) {\n return;\n }\n\n window.clearInterval(this._intervalID);\n this._intervalID = window.setInterval(util.bind(this._onTick, this), SCROLL_INTERVAL);\n\n domevent.on(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * MouseMove event handler\n * @param {MouseEvent} mouseEvent - mouse move event object.\n */\nAutoScroll.prototype._onMouseMove = function(mouseEvent) {\n var edge = this._getEdgePositions(this.container.getBoundingClientRect()),\n pos = Point.n(domevent.getMousePosition(mouseEvent));\n\n if (pos.y >= edge.top && pos.y <= edge.bottom &&\n pos.x >= edge.left && pos.x <= edge.right) {\n this._direction = AutoScroll.DIRECTION.INSIDE;\n\n return;\n }\n\n if (pos.y < edge.top) {\n this._direction = AutoScroll.DIRECTION.TOP;\n this._offset = edge.top - pos.y;\n\n return;\n }\n\n if (pos.y > edge.bottom) {\n this._direction = AutoScroll.DIRECTION.BOTTOM;\n this._offset = pos.y - edge.bottom;\n\n return;\n }\n\n if (pos.x < edge.left) {\n this._direction = AutoScroll.DIRECTION.LEFT;\n this._offset = edge.left - pos.x;\n\n return;\n }\n\n this._direction = AutoScroll.DIRECTION.RIGHT;\n this._offset = pos.x - edge.right;\n};\n\n/**\n * MouseUp event handler.\n */\nAutoScroll.prototype._onMouseUp = function() {\n window.clearInterval(this._intervalID);\n this._intervalID = 0;\n this._direction = AutoScroll.DIRECTION.INSIDE;\n this._offset = 0;\n\n domevent.off(global, {\n 'mousemove': this._onMouseMove,\n 'mouseup': this._onMouseUp\n }, this);\n};\n\n/**\n * Interval tick event handler\n */\nAutoScroll.prototype._onTick = function() {\n var direction = this._direction,\n container,\n factor;\n\n if (!direction) {\n return;\n }\n\n container = this.container;\n factor = Math.min(this._offset, SCROLL_MAX);\n\n switch (direction) {\n case AutoScroll.DIRECTION.TOP:\n container.scrollTop -= factor;\n break;\n case AutoScroll.DIRECTION.RIGHT:\n container.scrollLeft += factor;\n break;\n case AutoScroll.DIRECTION.BOTTOM:\n container.scrollTop += factor;\n break;\n default:\n container.scrollLeft -= factor;\n break;\n }\n};\n\nmodule.exports = AutoScroll;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/autoScroll.js\n// module id = 61\n// module chunks = 0","/**\n * @fileoverview Dirty flagging module for objects.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar common = require('tui-code-snippet');\nvar existy = common.isExisty,\n pick = common.pick,\n isFunc = common.isFunction;\n\n/**\n * Mixin module for dirty flagging on specific objects.\n * @mixin\n * @example\n * var obj = { hello: 'good', test: '123' };\n * dirty.mixin(obj);\n *\n * obj.set('hello', 'world');\n * obj.isDirty(); // true\n * obj.isPropChanged('hello'); // true\n * obj.isPropChanged('test'); // false\n * obj.dirty(false);\n *\n * obj.isDirty(); // false\n * obj.isPropChanged('hello'); // false\n */\nvar dirty = {\n /**\n * Set property value with dirty flagging.\n * @param {string} propName Property name.\n * @param {*} value Proprty value.\n */\n set: function(propName, value) {\n var originValue = this[propName];\n\n if (originValue === value) {\n return;\n }\n\n this[propName] = value;\n\n if (!this._changed) {\n /**\n * Save changed properties.\n * @memberof dirty\n * @name _changed\n * @type {Object}\n */\n this._changed = {};\n }\n\n this._changed[propName] = true;\n\n /**\n * Dirty flag\n * @type {Boolean}\n * @name _dirty\n * @memberof dirty\n */\n this._dirty = true;\n },\n\n /**\n * Check dirty flag.\n * @returns {boolean} Property is changed.\n */\n isDirty: function() {\n return !!this._dirty;\n },\n\n /**\n * Set dirty flag manually.\n * @param {Boolean} [toDirty=true] This will set dirty flag directly.\n */\n dirty: function(toDirty) {\n toDirty = existy(toDirty) ? toDirty : true;\n\n /* istanbul ignore else */\n if (!toDirty) {\n this._changed = {};\n }\n\n this._dirty = toDirty;\n },\n\n /**\n * Delete property safety.\n * @param {String} propName The name of property.\n */\n deleteProp: function(propName) {\n delete this[propName];\n\n if (this._changed) {\n delete this._changed[propName];\n }\n },\n\n /**\n * Check the changes with specific property.\n * @param {String} propName The name of property you want.\n * @returns {boolean} Is property changed?\n */\n isPropChanged: function(propName) {\n if (!this._changed) {\n return false;\n }\n\n return this._changed[propName] === true;\n },\n\n /**\n * Mixin to specific objects.\n * @param {Object} target The object to mix this module.\n * @memberof module:util/dirty\n * @example\n * function Animal() {}\n * dirty.mixin(Animal.prototype);\n */\n mixin: function(target) {\n var methodFilterR = /(^_|mixin|wrap)/;\n\n common.forEachOwnProperties(dirty, function(o, k) {\n if (!methodFilterR.test(k)) {\n target[k] = dirty[k];\n }\n });\n },\n\n /**\n * Wrapper method for dirty flagging.\n *\n * This method invoke after invoked specific method that added by you.\n *\n * The method want to add are must exist before add.\n * @param {object} target Target object to method wrap.\n * @param {(string|object)} methodName\n * Method name to wrap or methodName: flag objects.\n * @param {boolean} [flag=true]\n * this will used to flagging by dirty flagger after invoke the methods added by you.\n * @memberof module:util/dirty\n * @example\n * function Animal(name) {\n * this.name = name;\n * }\n * Animal.prototype.growl = jasmine.createSpy('growl');\n * Animal.prototype.test = function() {\n * return this.name;\n * };\n *\n * dirty.mixin(Animal.prototype);\n * // single\n * dirty.wrap(Animal.prototype, 'growl', true);\n * // multiple\n * dirty.wrap(Animap.prototype, {\n * growl: true,\n * test: false\n * });\n *\n */\n wrap: function(target, methodName, flag) {\n var wrap = dirty.wrap,\n fn;\n\n if (common.isObject(methodName)) {\n common.forEachOwnProperties(methodName, function(_flag, _name) {\n wrap(target, _name, _flag);\n });\n\n return;\n }\n\n flag = existy(flag) ? flag : true;\n\n if (!target._wrapper) {\n /**\n * @param {function} _fn Original method to wrap.\n * @param {boolean} flagToSet The boolean value to using dirty flagging.\n * @returns {*} The result value of original method.\n * @name _wrapper\n * @memberof dirty\n */\n target._wrapper = function(_fn, flagToSet) {\n return function() {\n var args = Array.prototype.slice.call(arguments);\n var result = _fn.apply(this, args); // eslint-disable-line\n this._dirty = flagToSet; // eslint-disable-line\n\n return result;\n };\n };\n }\n\n if (existy(pick(target, methodName)) &&\n isFunc(target[methodName]) &&\n !existy(pick(target, methodName, '_wrapped'))) {\n fn = target[methodName];\n target[methodName] = target._wrapper(fn, flag);\n target[methodName]._wrapped = true;\n }\n }\n};\n\nmodule.exports = dirty;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/dirty.js\n// module id = 62\n// module chunks = 0","/**\n * @fileoverview Mixin module for models.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar TZDate = require('../common/timezone').Date;\nvar util = require('tui-code-snippet');\nvar spaceRx = /^\\s*|\\s*$/g,\n model;\n\nvar datetime = require('../common/datetime');\n\n/**\n * Mixin module for models.\n * @mixin\n */\nmodel = {\n /**\n * string trim\n * @param {string} str string to trim\n * @returns {string} trimed string\n */\n trim: function(str) {\n return str.replace(spaceRx, '');\n },\n /**\n * The collections of validator functions.\n */\n validators: {\n /**\n * check all of supplied fields(property) is not undefined or empty string.\n * @param {object} instance model instance.\n * @param {string[]} fields property names to check.\n * @returns {boolean} return true when supplied fields are not undefined or empty string.\n */\n required: function(instance, fields) {\n var valid = true,\n isValid = function(obj) {\n return !util.isUndefined(obj) && model.trim(obj) !== '';\n };\n\n util.forEach(fields, function(fieldName) {\n valid = isValid(instance[fieldName]);\n\n return valid;\n });\n\n return valid;\n },\n\n /**\n * check supplied fields are valid dates and valid date ranges.\n * @param {object} instance model instance.\n * @param {Date[]} fields array of date range (start, end)\n * @returns {boolean} is valid date range?\n */\n dateRange: function(instance, fields) {\n var start, end;\n\n if (!util.isExisty(instance) || fields.length !== 2) {\n return true;\n }\n\n start = new TZDate(instance[fields[0]]);\n end = new TZDate(instance[fields[1]]);\n\n if (!datetime.isValid(start) || !datetime.isValid(end)) {\n return false;\n }\n\n if (datetime.compare(start, end) === 1) {\n return false;\n }\n\n return true;\n }\n },\n\n /**\n * Check validate for model instance.\n *\n * The validate are works on a basis of constructor's \"schema\" property.\n *\n * You can customize validators add some method to model#validators.\n * @returns {Boolean} model is valid?\n */\n isValid: function() {\n var self = this,\n schema = this.constructor.schema,\n validators = model.validators,\n validator,\n valid = true;\n\n if (!schema) {\n return true;\n }\n\n util.forEach(schema, function(values, validatorName) {\n validator = validators[validatorName];\n\n if (validator) {\n valid = validator(self, values);\n\n return valid; // returning false can stop this loop\n }\n\n return true;\n });\n\n return valid;\n },\n\n /**\n * Make data object form instance.\n *\n * It return object fill with all owned properties but exclude functions.\n * @returns {object} Data object\n */\n parameterize: function() {\n var param = {},\n isFunc = util.isFunction;\n\n util.forEach(this, function(value, propName) {\n if (!isFunc(value)) {\n param[propName] = value;\n }\n });\n\n return param;\n },\n\n /**\n * Mixin model module to supplied target.\n * @param {Object} target The object of want to mixed.\n * @example\n * function Man() {\n * this.name = 'john';\n * }\n * model.mixin(Man.prototype);\n */\n mixin: function(target) {\n util.forEach(model, function(method, name) {\n if (name !== 'mixin') {\n target[name] = method;\n }\n });\n }\n};\n\nmodule.exports = model;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/model.js\n// module id = 63\n// module chunks = 0","/**\n * @fileoverview Panel class for VLayout module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n common = require('./common'),\n domutil = require('./domutil'),\n View = require('../view/view');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for VPanel\n * @param {number} options.index - index of panel in vlayout\n * @param {number} [options.minHeight=0] - minimum height of panel\n * @param {number} [options.height] - initial height of panel\n * @param {boolean} [options.isSplitter=false] - set true then this panel works splitter\n * @param {boolean} [options.autoHeight=false] - set true then this panel use remain height after other panel resized.\n * @param {string} [options.className] - additional class name to add element\n * @param {HTMLElement} container - container element\n */\nfunction VPanel(options, container) {\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n index: 0,\n name: '0',\n minHeight: 0,\n maxHeight: null,\n height: null,\n isSplitter: false,\n autoHeight: false,\n className: ''\n }, options);\n\n /**\n * @type {number}\n */\n this.index = this.options.index;\n\n /**\n * @type {string}\n */\n this.name = this.options.name || String(this.index);\n\n this.isHeightForcedSet = false;\n\n this._initPanel(this.options, container);\n}\n\nutil.inherit(VPanel, View);\n\n/**\n * whether this panel is splitter?\n * @returns {boolean} panel is splitter?\n */\nVPanel.prototype.isSplitter = function() {\n return this.options.isSplitter;\n};\n\n/**\n * set height of html element\n * @param {HTMLElement} [container] - container element\n * @param {number} newHeight - height\n * @param {boolean} force - whether ignore max-length\n */\nVPanel.prototype.setHeight = function(container, newHeight, force) {\n var maxHeight = this.options.maxHeight;\n var minHeight = this.options.minHeight;\n var autoHeight = this.options.autoHeight;\n container = container || this.container;\n\n // 한번 force 호출이 일어난 이후에는 force 호출만 허용한다\n if (!force && this.isHeightForcedSet && !autoHeight) {\n return;\n }\n\n if (force) {\n this.isHeightForcedSet = true;\n } else if (maxHeight) {\n newHeight = Math.min(newHeight, maxHeight);\n }\n newHeight = Math.max(minHeight, newHeight);\n\n container.style.height = newHeight + 'px';\n};\n\n/**\n * Calculate new height of panel and remains by supplied height growth\n * @param {number} growth - growth value\n * @returns {number[]} newHeight, remainHeight\n */\nVPanel.prototype.getResizeInfoByGrowth = function(growth) {\n var height = this.getHeight(),\n newHeight = height + growth,\n resizeTo = Math.max(0, newHeight, this.options.minHeight);\n\n return [resizeTo, height - resizeTo];\n};\n\n/**\n * get outer height of panel element\n * @returns {number} outer height of panel element\n */\nVPanel.prototype.getHeight = function() {\n return domutil.getSize(this.container)[1];\n};\n\n/**\n * add design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.addClass = function(className) {\n domutil.addClass(this.container, className);\n};\n\n/**\n * remove design class to panel element\n * @param {string} className - classname string\n */\nVPanel.prototype.removeClass = function(className) {\n domutil.removeClass(this.container, className);\n};\n\n/**\n * initialize panel element\n * @param {PanelOptions} options - options for panel\n * @param {HTMLDivElement} container - panel element\n */\nVPanel.prototype._initPanel = function(options, container) {\n var height;\n\n domutil.setData(container, 'panelIndex', options.index);\n\n if (options.isSplitter) {\n domutil.addClass(container, config.classname('splitter'));\n\n return;\n }\n\n if (options.className) {\n domutil.addClass(container, options.className);\n }\n\n if (options.autoHeight) {\n domutil.setData(container, 'autoHeight', true);\n } else {\n height = common.limit(options.height || 0,\n [options.minHeight],\n [options.maxHeight || options.height]\n );\n\n options.height = height;\n this.setHeight(container, height);\n }\n};\n\nmodule.exports = VPanel;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/common/vpanel.js\n// module id = 64\n// module chunks = 0","/**\n * @fileoverview Base calendar controller\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Schedule = require('../model/schedule');\nvar ScheduleViewModel = require('../model/viewModel/scheduleViewModel');\nvar datetime = require('../common/datetime');\nvar common = require('../common/common');\n\n/**\n * @constructor\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @mixes util.CustomEvents\n */\nfunction Base(options) {\n options = options || {};\n\n /**\n * function for group each schedule models.\n * @type {function}\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {string} group key\n */\n this.groupFunc = options.groupFunc || function(viewModel) {\n if (viewModel.model.isAllDay) {\n return 'allday';\n }\n\n return 'time';\n };\n\n /**\n * schedules collection.\n * @type {Collection}\n */\n this.schedules = common.createScheduleCollection();\n\n /**\n * Matrix for multidate schedules.\n * @type {object.}\n */\n this.dateMatrix = {};\n}\n\n/**\n * Calculate contain dates in schedule.\n * @private\n * @param {Schedule} schedule The instance of schedule.\n * @returns {array} contain dates.\n */\nBase.prototype._getContainDatesInSchedule = function(schedule) {\n var range = datetime.range(\n datetime.start(schedule.getStarts()),\n datetime.end(schedule.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n );\n\n return range;\n};\n\n/**********\n * CRUD\n **********/\n\n/**\n * Create an schedule instance from raw data.\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {object} options Data object to create schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that created.\n */\nBase.prototype.createSchedule = function(options, silent) {\n var schedule,\n scheduleData = {\n data: options\n };\n\n /**\n * @event Base#beforeCreateSchedule\n * @type {Calendar~Schedule[]}\n */\n if (!this.invoke('beforeCreateSchedule', scheduleData)) {\n return null;\n }\n\n schedule = this.addSchedule(Schedule.create(options));\n\n if (!silent) {\n /**\n * @event Base#createdSchedule\n * @type {Schedule}\n */\n this.fire('createdSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * @emits Base#beforeCreateSchedule\n * @emits Base#createdSchedule\n * @param {Calendar~Schedule[]} dataList - dataObject list to create schedule.\n * @param {boolean} [silent=false] - set true then don't fire events.\n * @returns {Schedule[]} The instance list of Schedule that created.\n */\nBase.prototype.createSchedules = function(dataList, silent) {\n var self = this;\n\n return util.map(dataList, function(data) {\n return self.createSchedule(data, silent);\n });\n};\n\n/**\n * Update an schedule.\n * @emits Base#updateSchedule\n * @param {Schedule} schedule - schedule instance to update\n * @param {object} options updated object data.\n * @returns {Schedule} updated schedule instance\n */\nBase.prototype.updateSchedule = function(schedule, options) {\n var start = options.start || schedule.start;\n var end = options.end || schedule.end;\n\n options = options || {};\n\n if (options.title) {\n schedule.set('title', options.title);\n }\n\n if (options.isAllDay) {\n schedule.set('isAllDay', options.isAllDay);\n }\n\n if (options.start || options.end) {\n if (schedule.isAllDay) {\n schedule.setAllDayPeriod(start, end);\n } else {\n schedule.setTimePeriod(start, end);\n }\n }\n\n if (options.color) {\n schedule.set('color', options.color);\n }\n\n if (options.bgColor) {\n schedule.set('bgColor', options.bgColor);\n }\n\n if (options.borderColor) {\n schedule.set('borderColor', options.borderColor);\n }\n\n if (options.origin) {\n schedule.set('origin', options.origin);\n }\n\n if (!util.isUndefined(options.isPending)) {\n schedule.set('isPending', options.isPending);\n }\n\n if (!util.isUndefined(options.isFocused)) {\n schedule.set('isFocused', options.isFocused);\n }\n\n this._removeFromMatrix(schedule);\n this._addToMatrix(schedule);\n\n /**\n * @event Base#updateSchedule\n */\n this.fire('updateSchedule');\n\n return schedule;\n};\n\n/**\n * Delete schedule instance from controller.\n * @param {Schedule} schedule - schedule instance to delete\n * @returns {Schedule} deleted model instance.\n */\nBase.prototype.deleteSchedule = function(schedule) {\n this._removeFromMatrix(schedule);\n this.schedules.remove(schedule);\n\n return schedule;\n};\n\n/**\n * Set date matrix to supplied schedule instance.\n * @param {Schedule} schedule - instance of schedule.\n */\nBase.prototype._addToMatrix = function(schedule) {\n var ownMatrix = this.dateMatrix;\n var containDates = this._getContainDatesInSchedule(schedule);\n\n util.forEach(containDates, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd] = ownMatrix[ymd] || [];\n\n matrix.push(util.stamp(schedule));\n });\n};\n\n/**\n * Remove schedule's id from matrix.\n * @param {Schedule} schedule - instance of schedule\n */\nBase.prototype._removeFromMatrix = function(schedule) {\n var modelID = util.stamp(schedule);\n\n util.forEach(this.dateMatrix, function(matrix) {\n var index = util.inArray(modelID, matrix);\n\n if (~index) {\n matrix.splice(index, 1);\n }\n }, this);\n};\n\n/**\n * Add an schedule instance.\n * @emits Base#addedSchedule\n * @param {Schedule} schedule The instance of Schedule.\n * @param {boolean} silent - set true then don't fire events.\n * @returns {Schedule} The instance of Schedule that added.\n */\nBase.prototype.addSchedule = function(schedule, silent) {\n this.schedules.add(schedule);\n this._addToMatrix(schedule);\n\n if (!silent) {\n /**\n * @event Base#addedSchedule\n * @type {object}\n */\n this.fire('addedSchedule', schedule);\n }\n\n return schedule;\n};\n\n/**\n * split schedule model by ymd.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @param {Collection} scheduleCollection - collection of schedule model.\n * @returns {object.} splitted schedule model collections.\n */\nBase.prototype.splitScheduleByDateRange = function(start, end, scheduleCollection) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownMatrix = this.dateMatrix,\n result = {};\n\n util.forEachArray(range, function(date) {\n var ymd = datetime.format(date, 'YYYYMMDD'),\n matrix = ownMatrix[ymd],\n collection;\n\n collection = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n util.forEachArray(matrix, function(id) {\n scheduleCollection.doWhenHas(id, function(schedule) {\n collection.add(schedule);\n });\n });\n }\n });\n\n return result;\n};\n\n/**\n * Return schedules in supplied date range.\n *\n * available only YMD.\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @returns {object.} schedule collection grouped by dates.\n */\nBase.prototype.findByDateRange = function(start, end) {\n var range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ownSchedules = this.schedules.items,\n ownMatrix = this.dateMatrix,\n dformat = datetime.format,\n result = {},\n matrix,\n ymd,\n viewModels;\n\n util.forEachArray(range, function(date) {\n ymd = dformat(date, 'YYYYMMDD');\n matrix = ownMatrix[ymd];\n viewModels = result[ymd] = common.createScheduleCollection();\n\n if (matrix && matrix.length) {\n viewModels.add.apply(viewModels, util.map(matrix, function(id) {\n return ScheduleViewModel.create(ownSchedules[id]);\n }));\n }\n });\n\n return result;\n};\n\nBase.prototype.clearSchedules = function() {\n this.dateMatrix = {};\n this.schedules.clear();\n /**\n * for inner view when clear schedules\n * @event Base#clearSchedules\n * @type {Schedule}\n */\n this.fire('clearSchedules');\n};\n\n// mixin\nutil.CustomEvents.mixin(Base);\n\nmodule.exports = Base;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/base.js\n// module id = 65\n// module chunks = 0","/**\n * @fileoverview Core methods for schedule block placing\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar forEachArr = util.forEachArray,\n aps = Array.prototype.slice;\n\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar Collection = require('../../common/collection');\nvar ScheduleViewModel = require('../../model/viewModel/scheduleViewModel');\n\nvar Core = {\n /**\n * Calculate collision group.\n * @param {array} viewModels List of viewmodels.\n * @returns {array} Collision Group.\n */\n getCollisionGroup: function(viewModels) {\n var collisionGroups = [],\n foundPrevCollisionSchedule = false,\n previousScheduleList;\n\n if (!viewModels.length) {\n return collisionGroups;\n }\n\n collisionGroups[0] = [util.stamp(viewModels[0].valueOf())];\n forEachArr(viewModels.slice(1), function(schedule, index) {\n foundPrevCollisionSchedule = false;\n previousScheduleList = aps.apply(viewModels, [0, index + 1]).reverse();\n\n forEachArr(previousScheduleList, function(previous) {\n if (schedule.collidesWith(previous)) {\n // 이전 일정들과 겹치는 경우 겹치는 일정의 Collision Group을\n // 찾아 이 일정을 추가한다\n foundPrevCollisionSchedule = true;\n\n forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n // 겹치는 이전 일정을 찾은 경우 그 일정이 속한\n // Collision Group에 이 일정을 포함시킨다.\n group.push(util.stamp(schedule.valueOf()));\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n return false; // returning false can stop this loop\n }\n\n return true;\n });\n\n if (!foundPrevCollisionSchedule) {\n // 이 일정은 이전일정과 겹치지 않는 일정이므로\n // 새 Collision Group을 구성한다.\n collisionGroups.push([util.stamp(schedule.valueOf())]);\n }\n });\n\n return collisionGroups;\n },\n\n /**\n * Get row length by column index in 2d matrix.\n * @param {array[]} arr2d Matrix\n * @param {number} col Column index.\n * @returns {number} Last row number in column.\n */\n getLastRowInColumn: function(arr2d, col) {\n var row = arr2d.length;\n\n while (row > 0) {\n row -= 1;\n if (!util.isUndefined(arr2d[row][col])) {\n return row;\n }\n }\n\n return false;\n },\n\n /**\n * Calculate matrix for appointment block element placing.\n * @param {Collection} collection model collection.\n * @param {array[]} collisionGroups Collision groups for schedule set.\n * @returns {array} matrices\n */\n getMatrices: function(collection, collisionGroups) {\n var result = [],\n getLastRowInColumn = Core.getLastRowInColumn;\n\n forEachArr(collisionGroups, function(group) {\n var matrix = [[]];\n\n forEachArr(group, function(scheduleID) {\n var schedule = collection.items[scheduleID],\n col = 0,\n found = false,\n nextRow,\n lastRowInColumn;\n\n while (!found) {\n lastRowInColumn = getLastRowInColumn(matrix, col);\n\n if (lastRowInColumn === false) {\n matrix[0].push(schedule);\n found = true;\n } else if (!schedule.collidesWith(matrix[lastRowInColumn][col])) {\n nextRow = lastRowInColumn + 1;\n if (util.isUndefined(matrix[nextRow])) {\n matrix[nextRow] = [];\n }\n matrix[nextRow][col] = schedule;\n found = true;\n }\n\n col += 1;\n }\n });\n\n result.push(matrix);\n });\n\n return result;\n },\n\n /**\n * Filter that get schedule model in supplied date ranges.\n * @param {Date} start - start date\n * @param {Date} end - end date\n * @returns {function} schedule filter function\n */\n getScheduleInDateRangeFilter: function(start, end) {\n return function(model) {\n var ownStarts = model.getStarts(),\n ownEnds = model.getEnds();\n\n // shorthand condition of\n //\n // (ownStarts >= start && ownEnds <= end) ||\n // (ownStarts < start && ownEnds >= start) ||\n // (ownEnds > end && ownStarts <= end)\n return !(ownEnds < start || ownStarts > end);\n };\n },\n\n /**\n * Position each view model for placing into container\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {array} matrices - matrices from controller\n * @param {function} [iteratee] - iteratee function invoke each view models\n */\n positionViewModels: function(start, end, matrices, iteratee) {\n var ymdListToRender;\n\n ymdListToRender = util.map(\n datetime.range(start, end, datetime.MILLISECONDS_PER_DAY),\n function(date) {\n return datetime.format(date, 'YYYYMMDD');\n }\n );\n\n forEachArr(matrices, function(matrix) {\n forEachArr(matrix, function(column) {\n forEachArr(column, function(viewModel, index) {\n var ymd, dateLength;\n\n if (!viewModel) {\n return;\n }\n\n ymd = datetime.format(viewModel.getStarts(), 'YYYYMMDD');\n dateLength = datetime.range(\n datetime.start(viewModel.getStarts()),\n datetime.end(viewModel.getEnds()),\n datetime.MILLISECONDS_PER_DAY\n ).length;\n\n viewModel.top = index;\n viewModel.left = util.inArray(ymd, ymdListToRender);\n viewModel.width = dateLength;\n\n if (iteratee) {\n iteratee(viewModel);\n }\n });\n });\n });\n },\n\n /**\n * Limit start, end date each view model for render properly\n * @param {Date} start - start date to render\n * @param {Date} end - end date to render\n * @param {Collection|ScheduleViewModel} viewModelColl - schedule view\n * model collection or ScheduleViewModel\n * @returns {ScheduleViewModel} return view model when third parameter is\n * view model\n */\n limitRenderRange: function(start, end, viewModelColl) {\n /**\n * Limit render range for view models\n * @param {ScheduleViewModel} viewModel - view model instance\n * @returns {ScheduleViewModel} view model that limited render range\n */\n function limit(viewModel) {\n if (viewModel.getStarts() < start) {\n viewModel.exceedLeft = true;\n viewModel.renderStarts = new TZDate(start.getTime());\n }\n\n if (viewModel.getEnds() > end) {\n viewModel.exceedRight = true;\n viewModel.renderEnds = new TZDate(end.getTime());\n }\n\n return viewModel;\n }\n\n if (viewModelColl.constructor === Collection) {\n viewModelColl.each(limit);\n\n return null;\n }\n\n return limit(viewModelColl);\n },\n\n /**\n * Convert schedule model collection to view model collection.\n * @param {Collection} modelColl - collection of schedule model\n * @returns {Collection} collection of schedule view model\n */\n convertToViewModel: function(modelColl) {\n var viewModelColl;\n\n viewModelColl = new Collection(function(viewModel) {\n return viewModel.cid();\n });\n\n modelColl.each(function(model) {\n viewModelColl.add(ScheduleViewModel.create(model));\n });\n\n return viewModelColl;\n }\n};\n\nmodule.exports = Core;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/core.js\n// module id = 66\n// module chunks = 0","/**\n * @fileoverview Controller mixin for Month View\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar array = require('../../common/array'),\n datetime = require('../../common/datetime'),\n Collection = require('../../common/collection');\nvar mmax = Math.max;\n\nvar Month = {\n /**\n * Filter function for find time schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is time schedule?\n */\n _onlyTimeFilter: function(viewModel) {\n return !viewModel.model.isAllDay && !viewModel.hasMultiDates;\n },\n\n /**\n * Filter function for find allday schedule\n * @param {ScheduleViewModel} viewModel - schedule view model\n * @returns {boolean} whether model is allday schedule?\n */\n _onlyAlldayFilter: function(viewModel) {\n return viewModel.model.isAllDay || viewModel.hasMultiDates;\n },\n\n /**\n * Weight top value +1 for month view render\n * @param {ScheduleViewModel} viewModel - schedule view model\n */\n _weightTopValue: function(viewModel) {\n viewModel.top = viewModel.top || 0;\n viewModel.top += 1;\n },\n\n /**\n * Adjust render range to render properly.\n *\n * Limit start, end for each allday schedules and expand start, end for\n * each time schedules\n * @this Base\n * @param {Date} start - render start date\n * @param {Date} end - render end date\n * @param {Collection} vColl - view model collection\n * property.\n */\n _adjustRenderRange: function(start, end, vColl) {\n var ctrlCore = this.Core;\n\n vColl.each(function(viewModel) {\n if (viewModel.model.isAllDay || viewModel.hasMultiDates) {\n ctrlCore.limitRenderRange(start, end, viewModel);\n }\n });\n },\n\n /**\n * Get max top index value for allday schedules in specific date (YMD)\n * @this Base\n * @param {string} ymd - yyyymmdd formatted value\n * @param {Collection} vAlldayColl - collection of allday schedules\n * @returns {number} max top index value in date\n */\n _getAlldayMaxTopIndexAtYMD: function(ymd, vAlldayColl) {\n var dateMatrix = this.dateMatrix,\n topIndexesInDate = [];\n util.forEach(dateMatrix[ymd], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topIndexesInDate.push(viewModel.top);\n });\n });\n\n if (topIndexesInDate.length > 0) {\n return mmax.apply(null, topIndexesInDate);\n }\n\n return 0;\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _adjustTimeTopIndex: function(vColl) {\n var ctrlMonth = this.Month;\n var getAlldayMaxTopIndexAtYMD = ctrlMonth._getAlldayMaxTopIndexAtYMD;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var maxIndexInYMD = {};\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD];\n\n if (util.isUndefined(alldayMaxTopInYMD)) {\n alldayMaxTopInYMD = maxIndexInYMD[scheduleYMD] =\n getAlldayMaxTopIndexAtYMD(scheduleYMD, vAlldayColl);\n }\n maxIndexInYMD[scheduleYMD] = timeViewModel.top =\n (alldayMaxTopInYMD + 1);\n });\n },\n\n /**\n * Adjust time view model's top index value\n * @this Base\n * @param {Collection} vColl - collection of schedules\n */\n _stackTimeFromTop: function(vColl) {\n var ctrlMonth = this.Month;\n var vAlldayColl = vColl.find(ctrlMonth._onlyAlldayFilter);\n var sortedTimeSchedules = vColl.find(ctrlMonth._onlyTimeFilter).sort(array.compare.schedule.asc);\n var indiceInYMD = {};\n var dateMatrix = this.dateMatrix;\n\n sortedTimeSchedules.forEach(function(timeViewModel) {\n var scheduleYMD = datetime.format(timeViewModel.getStarts(), 'YYYYMMDD');\n var topArrayInYMD = indiceInYMD[scheduleYMD];\n var maxTopInYMD;\n var i;\n\n if (util.isUndefined(topArrayInYMD)) {\n topArrayInYMD = indiceInYMD[scheduleYMD] = [];\n util.forEach(dateMatrix[scheduleYMD], function(cid) {\n vAlldayColl.doWhenHas(cid, function(viewModel) {\n topArrayInYMD.push(viewModel.top);\n });\n });\n }\n\n if (util.inArray(timeViewModel.top, topArrayInYMD) >= 0) {\n maxTopInYMD = mmax.apply(null, topArrayInYMD) + 1;\n for (i = 1; i <= maxTopInYMD; i += 1) {\n timeViewModel.top = i;\n if (util.inArray(timeViewModel.top, topArrayInYMD) < 0) {\n break;\n }\n }\n }\n topArrayInYMD.push(timeViewModel.top);\n });\n },\n\n /**\n * Convert multi-date time schedule to all-day schedule\n * @this Base\n * @param {Collection} vColl - view model collection\n * property.\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n var start = model.getStarts();\n var end = model.getEnds();\n\n viewModel.hasMultiDates = !datetime.isSameDate(start, end);\n\n if (!model.isAllDay && viewModel.hasMultiDates) {\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.end(end);\n }\n });\n },\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @param {Date} start - start date to find schedules\n * @param {Date} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {boolean} [alldayFirstMode=false] if true, time schedule is lower than all-day schedule. Or stack schedules from the top.\n * @returns {object} view model data\n */\n findByDateRange: function(start, end, andFilters, alldayFirstMode) {\n var ctrlCore = this.Core,\n ctrlMonth = this.Month,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n coll, vColl, vList,\n collisionGroup,\n matrices;\n\n alldayFirstMode = alldayFirstMode || false;\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n coll = this.schedules.find(filter);\n vColl = ctrlCore.convertToViewModel(coll);\n ctrlMonth._addMultiDatesInfo(vColl);\n ctrlMonth._adjustRenderRange(start, end, vColl);\n vList = vColl.sort(array.compare.schedule.asc);\n\n collisionGroup = ctrlCore.getCollisionGroup(vList);\n matrices = ctrlCore.getMatrices(vColl, collisionGroup);\n ctrlCore.positionViewModels(start, end, matrices, ctrlMonth._weightTopValue);\n if (alldayFirstMode) {\n ctrlMonth._adjustTimeTopIndex(vColl);\n } else {\n ctrlMonth._stackTimeFromTop(vColl);\n }\n\n return matrices;\n }\n};\n\nmodule.exports = Month;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/month.js\n// module id = 67\n// module chunks = 0","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Controller mixin modules for day views.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar Collection = require('../../common/collection');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\n\n/**\n * @mixin Base.Week\n */\nvar Week = {\n /**********\n * TIME GRID VIEW\n **********/\n\n /**\n * Make array with start and end times on schedules.\n * @this Base.Week\n * @param {array[]} matrix - matrix from controller.\n * @returns {array[]} starttime, endtime array (exclude first row's schedules)\n */\n generateTimeArrayInRow: function(matrix) {\n var row,\n col,\n schedule,\n map = [],\n cursor = [],\n maxColLen = Math.max.apply(null, util.map(matrix, function(col) {\n return col.length;\n }));\n\n for (col = 1; col < maxColLen; col += 1) {\n row = 0;\n schedule = util.pick(matrix, row, col);\n\n while (schedule) {\n cursor.push([schedule.getStarts().getTime(), schedule.getEnds().getTime()]);\n\n row += 1;\n schedule = util.pick(matrix, row, col);\n }\n\n map.push(cursor);\n cursor = [];\n }\n\n return map;\n },\n\n /**\n * Get collision information from list\n * @this Base\n * @param {array.} arr - list to detecting collision. [[start, end], [start, end]]\n * @param {number} start - schedule start time that want to detect collisions.\n * @param {number} end - schedule end time that want to detect collisions.\n * @returns {boolean} target has collide in supplied array?\n */\n hasCollide: function(arr, start, end) {\n var startStart,\n startEnd,\n endStart,\n endEnd,\n getFunc = function(index) {\n return function(block) {\n return block[index];\n };\n },\n abs = Math.abs,\n compare = array.compare.num.asc,\n hasCollide;\n\n if (!arr.length) {\n return false;\n }\n\n startStart = abs(array.bsearch(arr, start, getFunc(0), compare));\n startEnd = abs(array.bsearch(arr, start, getFunc(1), compare));\n endStart = abs(array.bsearch(arr, end, getFunc(0), compare));\n endEnd = abs(array.bsearch(arr, end, getFunc(1), compare));\n hasCollide = !(startStart === startEnd && startEnd === endStart && endStart === endEnd);\n\n return hasCollide;\n },\n\n /**\n * Initialize values to viewmodels for detect real collision at rendering phase.\n * @this Base\n * @param {array[]} matrices - Matrix data.\n */\n getCollides: function(matrices) {\n util.forEachArray(matrices, function(matrix) {\n var binaryMap,\n maxRowLength;\n\n binaryMap = Week.generateTimeArrayInRow(matrix);\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n util.forEachArray(matrix, function(row) {\n util.forEachArray(row, function(viewModel, col) {\n var startTime,\n endTime,\n hasCollide,\n i;\n\n if (!viewModel) {\n return;\n }\n\n startTime = viewModel.getStarts().getTime() + 1;\n endTime = viewModel.getEnds().getTime() - 1;\n\n for (i = (col + 1); i < maxRowLength; i += 1) {\n hasCollide = Week.hasCollide(binaryMap[i - 1], startTime, endTime);\n\n if (hasCollide) {\n viewModel.hasCollide = true;\n break;\n }\n\n viewModel.extraSpace += 1;\n }\n });\n });\n });\n },\n\n /**\n * create view model for time view part\n * @this Base\n * @param {Date} start - start date.\n * @param {Date} end - end date.\n * @param {Collection} time - view model collection.\n * @returns {object} view model for time part.\n */\n getViewModelForTimeView: function(start, end, time) {\n var self = this,\n ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n result = {};\n\n util.forEach(ymdSplitted, function(collection, ymd) {\n var viewModels = collection.sort(array.compare.schedule.asc),\n collisionGroups,\n matrices;\n\n collisionGroups = self.Core.getCollisionGroup(viewModels);\n matrices = self.Core.getMatrices(collection, collisionGroups);\n self.Week.getCollides(matrices);\n\n result[ymd] = matrices;\n });\n\n return result;\n },\n\n /**********\n * ALLDAY VIEW\n **********/\n\n /**\n * Set hasMultiDates flag to true and set date ranges for rendering\n * @this Base\n * @param {Collection} vColl - view model collection\n */\n _addMultiDatesInfo: function(vColl) {\n vColl.each(function(viewModel) {\n var model = viewModel.model;\n viewModel.hasMultiDates = true;\n viewModel.renderStarts = datetime.start(model.getStarts());\n viewModel.renderEnds = datetime.end(model.getEnds());\n });\n },\n\n /**\n * create view model for allday view part\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {Collection} viewModelColl - allday schedule viewModel viewModels.\n * @returns {object} allday viewModel.\n */\n getViewModelForAlldayView: function(start, end, viewModelColl) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n viewModels,\n collisionGroups,\n matrices;\n\n if (!viewModelColl || !viewModelColl.length) {\n return [];\n }\n\n ctrlWeek._addMultiDatesInfo(viewModelColl);\n ctrlCore.limitRenderRange(start, end, viewModelColl);\n\n viewModels = viewModelColl.sort(array.compare.schedule.asc);\n collisionGroups = ctrlCore.getCollisionGroup(viewModels);\n\n matrices = ctrlCore.getMatrices(viewModelColl, collisionGroups);\n ctrlCore.positionViewModels(start, end, matrices);\n\n return matrices;\n },\n\n /**********\n * READ\n **********/\n\n /**\n * Populate schedules in date range.\n * @this Base\n * @param {Date} start start date.\n * @param {Date} end end date.\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @returns {object} schedules grouped by dates.\n */\n findByDateRange: function(start, end, andFilters) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n modelColl,\n group;\n\n andFilters = andFilters || [];\n filter = Collection.and.apply(null, [filter].concat(andFilters));\n\n modelColl = this.schedules.find(filter);\n modelColl = ctrlCore.convertToViewModel(modelColl);\n\n group = modelColl.groupBy(['task', 'allday', 'time'], this.groupFunc);\n group.task = ctrlWeek.getViewModelForAlldayView(start, end, group.task);\n group.allday = ctrlWeek.getViewModelForAlldayView(start, end, group.allday);\n group.time = ctrlWeek.getViewModelForTimeView(start, end, group.time);\n\n return group;\n }\n};\n\nmodule.exports = Week;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/controller/viewMixin/week.js\n// module id = 68\n// module chunks = 0","/**\n * @fileoverview Factory module for control all other factory.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet'),\n Handlebars = require('handlebars-template-loader/runtime');\nvar dw = require('../common/dw'),\n datetime = require('../common/datetime'),\n Layout = require('../view/layout'),\n Drag = require('../handler/drag'),\n controllerFactory = require('./controller'),\n weekViewFactory = require('./weekView'),\n monthViewFactory = require('./monthView'),\n TZDate = require('../common/timezone').Date,\n config = require('../config'),\n timezone = require('../common/timezone');\n\nvar mmin = Math.min;\n\n/**\n * @typedef {object} Schedule\n * @property {string} id - unique schedule id depends on calendar id\n * @property {string} calendarId - unique calendar id\n * @property {string} title - schedule title\n * @property {string} start - start time\n * @property {string} end - end time\n * @property {boolean} isAllDay - all day schedule\n * @property {string} category - schedule type('milestone', 'task', allday', 'time')\n * @property {string} dueDateClass - task schedule type string\n * (any string value is ok and mandatory if category is 'task')\n * @property {boolean} isPending - in progress flag to do something like network job(The schedule will be transparent.)\n * @property {boolean} isFocused - focused schedule flag\n * @property {boolean} isVisible - schedule visibility flag\n * @property {boolean} isReadOnly - schedule read-only flag\n * @property {string} [color] - schedule text color\n * @property {string} [bgColor] - schedule background color\n * @property {string} [borderColor] - schedule left border color\n * @property {string} customStyle - schedule's custom css class\n * @property {any} raw - user data\n */\n\n/**\n * @typedef {object} RenderRange - rendered range\n * @property {Date} start - start date\n * @property {Date} end - end date\n */\n\n/**\n * @typedef {object} Options - calendar option object\n * @property {string} [cssPrefix] - CSS classname prefix\n * @property {string} [defaultView='week'] - default view of calendar\n * @property {string} [defaultDate=null] - default date to render calendar. if not supplied, use today.\n * @property {object} [calendarColor] - preset calendar colors\n * @property {string} [calendarColor.color] - calendar color\n * @property {string} [calendarColor.bgColor] - calendar background color\n * @property {string} [calendarColor.borderColor] - calendar left border color\n * @property {boolean} [calendarColor.render] - immediately apply colors when setCalendarColor called.\n * @property {boolean} [taskView=true] - show the milestone and task in weekly, daily view\n * @property {boolean} [scheduleView=true] - show the all day and time grid in weekly, daily view\n * @property {object} [template] - template option\n * @property {function} [template.milestoneTitle] - milestone title(at left column) template function\n * @property {function} [template.milestone] - milestone template function\n * @property {function} [template.taskTitle] - task title(at left column) template function\n * @property {function} [template.task] - task template function\n * @property {function} [template.alldayTitle] - allday title(at left column) template function\n * @property {function} [template.allday] - allday template function\n * @property {function} [template.time] - time template function\n * @property {function} [template.monthMoreTitleDate] - month more layer title template function\n * @property {function} [template.monthMoreClose] - month more layer close button template function\n * @property {function} [template.monthGridHeader] - month grid header(date, decorator, title) template function\n * @property {function} [template.monthGridFooter] - month grid footer(date, decorator, title) template function\n * @property {function} [template.monthGridHeaderExceed] - month grid header(exceed schedule count) template function\n * @property {function} [template.monthGridFooterExceed] - month grid footer(exceed schedule count) template function\n * @property {function} [template.weekDayname] - weekly dayname template function\n * @property {function} [template.monthDayname] - monthly dayname template function\n * @property {object} [week] - options for week view\n * @property {number} [week.startDayOfWeek=0] - start day of week\n * @property {Array.} [week.panelHeights] - each panel height px(Milestone, Task, Allday View Panel)\n * @property {Array.} [week.daynames] - day names in weekly and daily.\n * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {boolean} [week.narrowWeekend=false] - make weekend column narrow(1/2 width)\n * @property {boolean} [week.workweek=false] - show only 5 days except for weekend\n * @property {string} [week.alldayViewType='scroll'] - set view type of allday panel. ('scroll'|'toggle')\n * @property {object} [month] - options for month view\n * @property {Array.} [month.daynames] - day names in monthly.\n * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {number} [month.startDayOfWeek=0] - start day of week\n * @property {boolean} [month.narrowWeekend=false] - make weekend column narrow(1/2 width)\n * @property {boolean} [month.visibleWeeksCount=6] - visible week count in monthly(0 or null are same with 6)\n * @property {number} [month.visibleScheduleCount] - visible schedule count in monthly grid\n * @property {object} [month.moreLayerSize] - more layer size\n * @property {object} [month.moreLayerSize.width=null] - css width value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [month.moreLayerSize.height=null] - css height value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [month.grid] - grid's header and footer information\n * @property {object} [month.grid.header] - grid's header informatioin\n * @property {number} [month.grid.header.height=34] - grid's header height\n * @property {object} [month.grid.footer] - grid's footer informatioin\n * @property {number} [month.grid.footer.height=34] - grid's footer height\n * @property {Array.} [schedules] - array of Schedule data for add calendar after initialize.\n */\n\n/**\n * @typedef {class} CustomEvents\n * https://nhnent.github.io/tui.code-snippet/latest/tui.util.CustomEvents.html\n */\n\n/**\n * @typedef {object} TimeCreationGuide - time creation guide instance to present selected time period\n * @property {HTMLElement} guideElement - guide element\n * @property {Object.} guideElements - map by key. It can be used in monthly view\n * @property {function} clearGuideElement - hide the creation guide\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var guide = event.guide;\n * // use guideEl$'s left, top to locate your schedule creation popup\n * var guideEl$ = guide.guideElement ?\n * guide.guideElement : guide.guideElements[Object.keys(guide.guideElements)[0]];\n *\n * // after that call this to hide the creation guide\n * guide.clearGuideElement();\n * });\n */\n\n/**\n * Calendar class\n * @constructor\n * @mixes CustomEvents\n * @param {HTMLElement|string} container - container element or selector id\n * @param {Options} options - calendar options\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * defaultView: 'week',\n * taskView: true,\n * scheduleView: true,\n * template: {\n * milestone: function(schedule) {\n * return ' ' + schedule.title + '';\n * },\n * milestoneTitle: function() {\n * return 'Milestone';\n * },\n * task: function(schedule) {\n * return '  #' + schedule.title;\n * },\n * taskTitle: function() {\n * return '';\n * },\n * allday: function(schedule) {\n * return schedule.title + ' ';\n * },\n * alldayTitle: function() {\n * return 'All Day';\n * },\n * time: function(schedule) {\n * return schedule.title + ' ' + schedule.start;\n * }\n * },\n * month: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * },\n * week: {\n * daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * panelHeights: [80, 80, 120],\n * startDayOfWeek: 0,\n * narrowWeekend: true\n * }\n * });\n */\nfunction Calendar(container, options) {\n var opt;\n\n if (util.isString(container)) {\n container = document.querySelector(container);\n }\n\n /**\n * calendar options\n * @type {Options}\n */\n this.options = opt = util.extend({\n calendarColor: {},\n groupFunc: function(viewModel) {\n var model = viewModel.model;\n\n if (model.category === 'time' && (model.end - model.start > datetime.MILLISECONDS_PER_DAY)) {\n return 'allday';\n }\n\n return model.category;\n },\n controller: null,\n defaultView: 'week',\n taskView: true,\n scheduleView: true,\n defaultDate: new TZDate(),\n template: util.extend({\n allday: null,\n time: null\n }, util.pick(options, 'template') || {}),\n week: util.extend({}, util.pick(options, 'week') || {}),\n month: util.extend({}, util.pick(options, 'month') || {}),\n schedules: []\n }, options);\n\n this.options.week = util.extend({\n startDayOfWeek: 0,\n workweek: false\n }, util.pick(this.options, 'week') || {});\n\n this.options.month = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible) &&\n (schedule.category === 'allday' || schedule.category === 'time');\n }\n }, util.pick(options, 'month') || {});\n\n /**\n * Calendar color map\n * @type {object}\n * @private\n */\n this.calendarColor = opt.calendarColor;\n\n /**\n * @type {HTMLElement}\n * @private\n */\n this.container = container;\n\n /**\n * Current rendered date\n * @type {Date}\n * @readonly\n */\n this.renderDate = opt.defaultDate;\n\n /**\n * start and end date of weekly, monthly\n * @type {RenderRange}\n * @readonly\n */\n this.renderRange = {\n start: null,\n end: null\n };\n\n /**\n * base controller\n * @type {Base}\n * @private\n */\n this.controller = opt.controller || this.createController();\n\n /**\n * layout view (layout manager)\n * @type {Layout}\n * @private\n */\n this.layout = new Layout(container);\n\n /**\n * global drag handler\n * @type {Drag}\n * @private\n */\n this.dragHandler = new Drag({distance: 10}, this.layout.container);\n\n /**\n * current rendered view name. ('day', 'week', 'month')\n * @type {string}\n * @default 'week'\n * @readonly\n */\n this.viewName = opt.defaultView;\n\n /**\n * previous rendered view name\n * @type {string}\n * @private\n */\n this.prevViewName = this.viewName;\n\n /**\n * Refresh method. it can be ref different functions for each view modes.\n * @type {function}\n * @private\n */\n this.refreshMethod = null;\n\n /**\n * Scroll to now. It can be called for 'week', 'day' view modes.\n * @type {function}\n * @private\n */\n this.scrollToNowMethod = null;\n\n this.initialize();\n}\n\n/**\n * Create controller instance\n * @returns {Base} controller instance\n * @private\n */\nCalendar.prototype.createController = function() {\n return controllerFactory(this.options);\n};\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Week} week view instance\n * @private\n */\nCalendar.prototype.createWeekView = function(controller, container, dragHandler, options) {\n return weekViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n};\n\n/**\n * Create week view instance by dependent module instances\n * @param {Base} controller - controller\n * @param {HTMLElement} container - container element\n * @param {Drag} dragHandler - global drag handler\n * @param {object} options - options for week view\n * @returns {Month} month view instance\n * @private\n */\nCalendar.prototype.createMonthView = function(controller, container, dragHandler, options) {\n return monthViewFactory(\n controller,\n container,\n dragHandler,\n options\n );\n};\n\n/**\n * destroy calendar instance.\n */\nCalendar.prototype.destroy = function() {\n this.dragHandler.destroy();\n this.controller.off();\n this.layout.clear();\n this.layout.destroy();\n\n util.forEach(this.options.template, function(func, name) {\n if (func) {\n Handlebars.unregisterHelper(name + '-tmpl');\n }\n });\n\n this.options = this.renderDate = this.controller =\n this.layout = this.dragHandler = this.viewName = this.prevViewName =\n this.refreshMethod = this.scrollToNowMethod = null;\n};\n\n/**\n * Initialize calendar\n * @private\n */\nCalendar.prototype.initialize = function() {\n var controller = this.controller,\n viewName = this.viewName,\n opt = this.options;\n\n this.layout.controller = controller;\n\n if (opt.schedules && opt.schedules.length) {\n this.createSchedules(opt.schedules, true);\n }\n\n util.forEach(opt.template, function(func, name) {\n if (func) {\n Handlebars.registerHelper(name + '-tmpl', func);\n }\n });\n\n this.toggleView(viewName, true);\n};\n\n/**********\n * CRUD Methods\n **********/\n\n/**\n * Create schedules and render calendar.\n * @param {Array.} schedules - schedule data list\n * @param {boolean} [silent=false] - no auto render after creation when set true\n * @example\n * calendar.createSchedules([\n * {\n * id: '1',\n * calendarId: '1',\n * title: 'my schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T22:30:00+09:00',\n * end: '2018-01-19T02:30:00+09:00'\n * },\n * {\n * id: '2',\n * calendarId: '1',\n * title: 'second schedule',\n * category: 'time',\n * dueDateClass: '',\n * start: '2018-01-18T17:30:00+09:00',\n * end: '2018-01-19T17:31:00+09:00'\n * }\n * ]);\n */\nCalendar.prototype.createSchedules = function(schedules, silent) {\n var calColor = this.calendarColor;\n\n util.forEach(schedules, function(obj) {\n var color = calColor[obj.calendarId];\n\n if (color) {\n obj.color = color.color;\n obj.bgColor = color.bgColor;\n obj.borderColor = color.borderColor;\n }\n });\n\n this.controller.createSchedules(schedules, silent);\n\n if (!silent) {\n this.render();\n }\n};\n\n/**\n * Get schedule by schedule id and calendar id.\n * @param {string} id - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {Schedule} schedule object\n * @example\n * var schedule = calendar.getSchedule(scheduleId, calendarId);\n * console.log(schedule.title);\n */\nCalendar.prototype.getSchedule = function(id, calendarId) {\n return this.controller.schedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n};\n\n/**\n * Update the schedule\n * @param {string} id - ID of schedule to update\n * @param {string} calendarId - calendarId of schedule to update\n * @param {Schedule} scheduleData - schedule data to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var startTime = event.start;\n * var endTime = event.end;\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * start: startTime,\n * end: endTime\n * });\n * });\n */\nCalendar.prototype.updateSchedule = function(id, calendarId, scheduleData) {\n var ctrl = this.controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n\n if (schedule) {\n ctrl.updateSchedule(schedule, scheduleData);\n this.render();\n }\n};\n\n/**\n * Delete schedule.\n * @fires Calendar#beforeDeleteSchedule\n * @param {string} id - ID of schedule to delete\n * @param {string} calendarId - calendarId of schedule to delete\n */\nCalendar.prototype.deleteSchedule = function(id, calendarId) {\n var ctrl = this.controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === id && model.calendarId === calendarId;\n });\n\n if (!schedule) {\n return;\n }\n\n /**\n * Fire this event when delete a schedule.\n * @event Calendar#beforeDeleteSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to delete\n * @example\n * calendar.on('beforeDeleteSchedule', function() {\n * alert('The schedule is removed.');\n * });\n */\n this.fire('beforeDeleteSchedule', {\n schedule: schedule\n });\n\n ctrl.deleteSchedule(schedule);\n this.render();\n};\n\n/**********\n * Private Methods\n **********/\n\n/**\n * Set child view's options recursively\n * @param {View} view - parent view\n * @param {function} func - option manipulate function\n * @private\n */\nCalendar.prototype.setOptionRecurseively = function(view, func) {\n view.recursive(function(childView) {\n var opt = childView.options;\n\n if (!opt) {\n return;\n }\n\n func(opt);\n });\n};\n\n/**\n * @param {string|Date} date - date to show in calendar\n * @param {number} [startDayOfWeek=0] - start day of week\n * @param {boolean} [workweek=false] - only show work week\n * @returns {array} render range\n * @private\n */\nCalendar.prototype.getWeekDayRange = function(date, startDayOfWeek, workweek) {\n var day, start, end, range,\n msFrom = datetime.millisecondsFrom;\n\n startDayOfWeek = (startDayOfWeek || 0); // eslint-disable-line\n date = util.isDate(date) ? date : new TZDate(date);\n day = date.getDay();\n\n // calculate default render range first.\n start = new TZDate(\n Number(date) -\n msFrom('day', day) +\n msFrom('day', startDayOfWeek)\n );\n\n end = new TZDate(Number(start) + msFrom('day', 6));\n\n if (day < startDayOfWeek) {\n start = new TZDate(Number(start) - msFrom('day', 7));\n end = new TZDate(Number(end) - msFrom('day', 7));\n }\n\n if (workweek) {\n range = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n );\n\n range = util.filter(range, function(weekday) {\n return !datetime.isWeekend(weekday.getDay());\n });\n\n start = range[0];\n end = range[range.length - 1];\n }\n\n return [start, end];\n};\n\n/**\n * Toggle schedules visibility by calendar ID\n * @param {string} calendarId - calendar id value\n * @param {boolean} toHide - set true to hide schedules\n * @param {boolean} render - set true then render after change visible property each models\n * @private\n */\nCalendar.prototype._toggleSchedulesByCalendarID = function(calendarId, toHide, render) {\n var ownSchedules = this.controller.schedules;\n\n calendarId = util.isArray(calendarId) ? calendarId : [calendarId];\n\n ownSchedules.each(function(schedule) {\n if (~util.inArray(schedule.calendarId, calendarId)) {\n schedule.set('isVisible', !toHide);\n }\n });\n\n if (render) {\n this.render();\n }\n};\n\n/**********\n * General Methods\n **********/\n\n/**\n * Render the calendar.\n * @example\n * var silent = true;\n * calendar.clear();\n * calendar.createSchedules(schedules, silent);\n * calendar.render();\n */\nCalendar.prototype.render = function() {\n this.layout.render();\n};\n\n/**\n * Delete all schedules and clear view.\n * @example\n * calendar.clear();\n * calendar.createSchedules(schedules, true);\n * calendar.render();\n */\nCalendar.prototype.clear = function() {\n this.controller.clearSchedules();\n this.render();\n};\n\n/**\n * Scroll to now in daily, weekly view\n * @example\n * function onNewSchedules(schedules) {\n * calendar.createSchedules(schedules);\n * if (calendar.viewName !== 'month') {\n * calendar.scrollToNow();\n * }\n * }\n */\nCalendar.prototype.scrollToNow = function() {\n if (this.scrollToNowMethod) {\n this.scrollToNowMethod();\n }\n};\n\n/**\n * Refresh the calendar layout.\n * @example\n * window.addEventListener('resize', function() {\n * calendar.refresh();\n * });\n */\nCalendar.prototype.refresh = function() {\n if (this.refreshMethod) {\n this.refreshMethod();\n }\n\n this.render();\n};\n\n/**\n * Refresh child views\n * @param {string} [viewName] - the name of view to render. if not supplied then refresh all.\n * @private\n */\nCalendar.prototype.refreshChildView = function(viewName) {\n if (!viewName) {\n this.render();\n\n return;\n }\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n this.layout.children.items[viewName].render();\n};\n\n/**\n * Move to today.\n * @example\n * function onClickTodayBtn() {\n * calendar.today();\n * }\n */\nCalendar.prototype.today = function() {\n this.renderDate = new TZDate();\n\n this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n this.move();\n this.render();\n};\n\n/**\n * Move the calendar amount of offset value\n * @param {number} offset - offset value.\n * @private\n * @example\n * // move previous week when \"week\" view.\n * // move previous month when \"month\" view.\n * calendar.move(-1);\n */\nCalendar.prototype.move = function(offset) {\n var renderDate = dw(this.renderDate),\n viewName = this.viewName,\n view = this.getCurrentView(),\n recursiveSet = this.setOptionRecurseively,\n startDate, endDate, tempDate,\n startDayOfWeek, visibleWeeksCount, workweek, datetimeOptions;\n\n offset = util.isExisty(offset) ? offset : 0;\n\n if (viewName === 'month') {\n startDayOfWeek = util.pick(this.options, 'month', 'startDayOfWeek') || 0;\n visibleWeeksCount = mmin(util.pick(this.options, 'month', 'visibleWeeksCount') || 0, 6);\n workweek = util.pick(this.options, 'month', 'workweek') || false;\n\n if (visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n\n renderDate.addDate(offset * 7 * datetimeOptions.visibleWeeksCount);\n tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\n recursiveSet(view, function(opt) {\n opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM-DD');\n });\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: true,\n workweek: workweek\n };\n\n renderDate.addMonth(offset);\n tempDate = datetime.arr2dCalendar(this.renderDate, datetimeOptions);\n\n recursiveSet(view, function(opt) {\n opt.renderMonth = datetime.format(renderDate.d, 'YYYY-MM');\n });\n }\n\n startDate = tempDate[0][0];\n endDate = tempDate[tempDate.length - 1][tempDate[tempDate.length - 1].length - 1];\n } else if (viewName === 'week') {\n renderDate.addDate(offset * 7);\n startDayOfWeek = util.pick(this.options, 'week', 'startDayOfWeek') || 0;\n workweek = util.pick(this.options, 'week', 'workweek') || false;\n tempDate = this.getWeekDayRange(renderDate.d, startDayOfWeek, workweek);\n\n startDate = tempDate[0];\n endDate = tempDate[1];\n\n recursiveSet(view, function(opt) {\n opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n });\n } else if (viewName === 'day') {\n renderDate.addDate(offset);\n startDate = endDate = renderDate.d;\n\n recursiveSet(view, function(opt) {\n opt.renderStartDate = datetime.format(startDate, 'YYYY-MM-DD');\n opt.renderEndDate = datetime.format(endDate, 'YYYY-MM-DD');\n });\n }\n\n this.renderDate = renderDate.d;\n this.renderRange = {\n start: startDate,\n end: endDate\n };\n};\n\n/**\n * Move to specific date\n * @param {(Date|string)} date - date to move\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.viewName === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.toggleView('day', true);\n * }\n * });\n */\nCalendar.prototype.setDate = function(date) {\n if (util.isString(date)) {\n date = datetime.parse(date);\n }\n\n this.renderDate = new TZDate(Number(date));\n this._setViewName(this.viewName); // see Calendar.move if (viewName === 'day') case using prevViewName 'week'se\n this.move(0);\n this.render();\n};\n\n/**\n * Move the calendar forward a day, a week, a month\n * @example\n * function moveToNextOrPrevRange(val) {\n calendar.clear();\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.next = function() {\n this.move(1);\n this.render();\n};\n\n/**\n * Move the calendar backward a day, a week, a month\n * @example\n * function moveToNextOrPrevRange(val) {\n calendar.clear();\n if (val === -1) {\n calendar.prev();\n } else if (val === 1) {\n calendar.next();\n }\n}\n */\nCalendar.prototype.prev = function() {\n this.move(-1);\n this.render();\n};\n\n/**\n * Return current rendered view.\n * @returns {View} current view instance\n * @private\n */\nCalendar.prototype.getCurrentView = function() {\n var viewName = this.viewName;\n\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n return util.pick(this.layout.children.items, viewName);\n};\n\n/**\n * Change calendar's schedule color with option\n * @param {string} calendarId - calendar ID\n * @param {object} option - color data object\n * @param {string} option.color - text color of schedule element\n * @param {string} option.bgColor - bg color of schedule element\n * @param {string} option.borderColor - border color of schedule element\n * @param {boolean} [option.render=true] - set false then does not auto render.\n * @example\n * calendar.setCalendarColor('1', {\n * color: '#e8e8e8',\n * bgColor: '#585858',\n * render: false\n * });\n * calendar.setCalendarColor('2', {\n * color: '#282828',\n * bgColor: '#dc9656',\n * render: false\n * });\n * calendar.setCalendarColor('3', {\n * color: '#a16946',\n * bgColor: '#ab4642',\n * render: true\n * });\n */\nCalendar.prototype.setCalendarColor = function(calendarId, option) {\n var calColor = this.calendarColor,\n ownSchedules = this.controller.schedules,\n ownColor = calColor[calendarId];\n\n if (!util.isObject(option)) {\n config.throwError('Calendar#changeCalendarColor(): color 는 {color: \\'\\', bgColor: \\'\\'} 형태여야 합니다.');\n }\n\n ownColor = calColor[calendarId] = util.extend({\n color: '#000',\n bgColor: '#a1b56c',\n borderColor: '#a1b56c',\n render: true\n }, option);\n\n ownSchedules.each(function(model) {\n if (model.calendarId !== calendarId) {\n return;\n }\n\n model.color = ownColor.color;\n model.bgColor = ownColor.bgColor;\n model.borderColor = ownColor.borderColor;\n });\n\n if (ownColor.render) {\n this.render();\n }\n};\n\n/**\n * Show schedules visibility by calendar ID\n * @param {string|string[]} calendarId - calendar id value\n * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n * @private\n */\nCalendar.prototype.showSchedulesByCalendarID = function(calendarId, render) {\n render = util.isExisty(render) ? render : true;\n this._toggleSchedulesByCalendarID(calendarId, false, render);\n};\n\n/**\n * Hide schedules visibility by calendar ID\n * @param {string|string[]} calendarId - calendar id value\n * @param {boolean} [render=true] - set false then doesn't render after change model's property.\n * @private\n */\nCalendar.prototype.hideSchedulesByCalendarID = function(calendarId, render) {\n render = util.isExisty(render) ? render : true;\n this._toggleSchedulesByCalendarID(calendarId, true, render);\n};\n\n/**********\n * Custom Events\n **********/\n\n/**\n * 각 뷰의 클릭 핸들러와 사용자 클릭 이벤트 핸들러를 잇기 위한 브릿지 개념의 이벤트 핸들러\n * @fires Calendar#clickSchedule\n * @param {object} clickScheduleData - 'clickSchedule' 핸들러의 이벤트 데이터\n * @private\n */\nCalendar.prototype._onClick = function(clickScheduleData) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent\n * @example\n * calendar.on('clickSchedule', function(event) {\n * var schedule = event.schedule;\n *\n * if (lastClickSchedule) {\n * calendar.updateSchedule(lastClickSchedule.id, lastClickSchedule.calendarId, {\n * isFocused: false\n * });\n * }\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * isFocused: true\n * });\n *\n * lastClickSchedule = schedule;\n * // open detail view\n * });\n */\n this.fire('clickSchedule', clickScheduleData);\n};\n\n/**\n * dayname 클릭 이벤트 핸들러\n * @fires Calendar#clickDayname\n * @param {object} clickScheduleData - 'clickDayname' 핸들러의 이벤트 데이터\n * @private\n */\nCalendar.prototype._onClickDayname = function(clickScheduleData) {\n /**\n * Fire this event when click a day name in weekly.\n * @event Calendar#clickDayname\n * @type {object}\n * @property {string} date - date string by format 'YYYY-MM-DD'\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.viewName === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.toggleView('day', true);\n * }\n * });\n */\n this.fire('clickDayname', clickScheduleData);\n};\n\n/**\n * @fires {Calendar#beforeCreateSchedule}\n * @param {object} createScheduleData - select schedule data from allday, time\n * @private\n */\nCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n /**\n * Fire this event when select time period in daily, weekly, monthly.\n * @event Calendar#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - allday schedule\n * @property {Date} start - selected start time\n * @property {Date} end - selected end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name like 'click', 'dblclick'\n * @example\n * calendar.on('beforeCreateSchedule', function(event) {\n * var startTime = event.start;\n * var endTime = event.end;\n * var isAllDay = event.isAllDay;\n * var guide = event.guide;\n * var triggerEventName = event.triggerEventName;\n * var schedule;\n *\n * if (triggerEventName === 'click') {\n * // open writing simple schedule popup\n * schedule = {...};\n * } else if (triggerEventName === 'dblclick') {\n * // open writing detail schedule popup\n * schedule = {...};\n * }\n *\n * calendar.createSchedules([schedule]);\n * });\n */\n this.fire('beforeCreateSchedule', createScheduleData);\n};\n\n/**\n * @fires Calendar#beforeUpdateSchedule\n * @param {object} updateScheduleData - update schedule data\n * @private\n */\nCalendar.prototype._onBeforeUpdate = function(updateScheduleData) {\n /**\n * Fire this event when drag a schedule to change time in daily, weekly, monthly.\n * @event Calendar#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var startTime = event.start;\n * var endTime = event.end;\n *\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * start: startTime,\n * end: endTime\n * });\n * });\n */\n this.fire('beforeUpdateSchedule', updateScheduleData);\n};\n\n/**\n * @fires Calendar#resizePanel\n * @param {object} resizeScheduleData - resize schedule data object\n * @private\n */\nCalendar.prototype._onResizePanel = function(resizeScheduleData) {\n /**\n * Fire this event when resize view panels(milestone, task, allday).\n * @event Calendar#resizePanel\n * @type {object}\n * @property {number[]} layoutData - layout data after resized\n * @example\n * calendar.on('resizePanel', function(layoutData) {\n * console.log(layoutData);\n * // do something to resize your UI if necessary.\n * });\n */\n this.fire('resizePanel', resizeScheduleData);\n};\n\n/**\n * 캘린더 팩토리 클래스와 주뷰, 월뷰의 이벤트 연결을 토글한다\n * @param {boolean} isAttach - true면 이벤트 연결함.\n * @param {Week|Month} view - 주뷰 또는 월뷰\n * @private\n */\nCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n var self = this,\n handler = view.handler,\n isMonthView = view.viewName === 'month',\n method = isAttach ? 'on' : 'off';\n\n util.forEach(handler.click, function(clickHandler) {\n clickHandler[method]('clickSchedule', self._onClick, self);\n });\n\n util.forEach(handler.dayname, function(clickHandler) {\n clickHandler[method]('clickDayname', self._onClickDayname, self);\n });\n\n util.forEach(handler.creation, function(creationHandler) {\n creationHandler[method]('beforeCreateSchedule', self._onBeforeCreate, self);\n });\n\n util.forEach(handler.move, function(moveHandler) {\n moveHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n util.forEach(handler.resize, function(resizeHandler) {\n resizeHandler[method]('beforeUpdateSchedule', self._onBeforeUpdate, self);\n });\n\n if (!isMonthView) {\n view.vLayout[method]('resize', self._onResizePanel, self);\n }\n};\n\n/**\n * Toggle current view\n * @param {string} newViewName - new view name to render\n * @param {boolean} force - force render despite of current view and new view are equal\n * @example\n * // daily view\n * calendar.toggleView('day', true);\n *\n * // weekly view\n * calendar.toggleView('week', true);\n *\n * // monthly view(default 6 weeks view)\n * calendar.options.month.visibleWeeksCount = 6; // or null\n * calendar.toggleView('month', true);\n *\n * // 2 weeks monthly view\n * calendar.options.month.visibleWeeksCount = 2;\n * calendar.toggleView('month', true);\n *\n * // 3 weeks monthly view\n * calendar.options.month.visibleWeeksCount = 3;\n * calendar.toggleView('month', true);\n *\n * // narrow weekend\n * calendar.options.month.narrowWeekend = true;\n * calendar.options.week.narrowWeekend = true;\n * calendar.toggleView(calendar.viewName, true);\n *\n * // change start day of week(from monday)\n * calendar.options.month.startDayOfWeek = 1;\n * calendar.options.week.startDayOfWeek = 1;\n * calendar.toggleView(calendar.viewName, true);\n */\nCalendar.prototype.toggleView = function(newViewName, force) {\n var self = this,\n layout = this.layout,\n controller = this.controller,\n dragHandler = this.dragHandler,\n options = this.options,\n viewName = this.viewName,\n created;\n\n if (!force && viewName === newViewName) {\n return;\n }\n\n this._setViewName(newViewName);\n\n // convert day to week\n if (viewName === 'day') {\n viewName = 'week';\n }\n\n if (newViewName === 'day') {\n newViewName = 'week';\n }\n layout.children.doWhenHas(viewName, function(view) {\n self._toggleViewSchedule(false, view);\n });\n\n layout.clear();\n\n if (newViewName === 'month') {\n created = this.createMonthView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n } else if (newViewName === 'week' || newViewName === 'day') {\n created = this.createWeekView(\n controller,\n layout.container,\n dragHandler,\n options\n );\n }\n\n layout.addChild(created.view);\n\n layout.children.doWhenHas(newViewName, function(view) {\n self._toggleViewSchedule(true, view);\n });\n\n this.refreshMethod = created.refresh;\n this.scrollToNowMethod = created.scrollToNow;\n\n this.move();\n this.render();\n};\n\n/**\n * Toggle task view('Milestone', 'Task') panel\n * @param {boolean} enabled - use task view\n * @example\n * // There is no milestone, task, so hide those view panel\n * calendar.toggleTaskView(false);\n *\n * // There are some milestone, task, so show those view panel.\n * calendar.toggleTaskView(true);\n */\nCalendar.prototype.toggleTaskView = function(enabled) {\n var viewName = this.viewName,\n options = this.options;\n\n options.taskView = enabled;\n\n this.toggleView(viewName, true);\n};\n\n/**\n * Toggle schedule view('AllDay', TimeGrid') panel\n * @param {boolean} enabled - use task view\n * @example\n * // hide those view panel to show only 'Milestone', 'Task'\n * calendar.toggleScheduleView(false);\n *\n * // show those view panel.\n * calendar.toggleScheduleView(true);\n */\nCalendar.prototype.toggleScheduleView = function(enabled) {\n var viewName = this.viewName,\n options = this.options;\n\n options.scheduleView = enabled;\n\n this.toggleView(viewName, true);\n};\n\n/**\n * Set current view name\n * @param {string} viewName - new view name to render\n * @private\n */\nCalendar.prototype._setViewName = function(viewName) {\n this.prevViewName = this.viewName;\n this.viewName = viewName;\n};\n\n/**\n * Get schedule by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of schedule\n * @returns {HTMLElement} schedule element if found or null\n * @example\n * var element = calendar.getElement(scheduleId, calendarId);\n * console.log(element);\n */\nCalendar.prototype.getElement = function(scheduleId, calendarId) {\n var schedule = this.getSchedule(scheduleId, calendarId);\n if (schedule) {\n return document.querySelector('[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]');\n }\n\n return null;\n};\n\n/**\n * Set timezone offset\n * @param {number} offset - offset (min)\n * @static\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n */\nCalendar.setTimezoneOffset = function(offset) {\n timezone.setOffset(offset);\n};\n\n/**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - callback function\n * @static\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffsetCallback(function(timestamp) {\n * return moment.tz.zone(timezoneName).utcOffset(timestamp));\n * });\n */\nCalendar.setTimezoneOffsetCallback = function(callback) {\n timezone.setOffsetCallback(callback);\n};\n\nutil.CustomEvents.mixin(Calendar);\n\nmodule.exports = Calendar;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/calendar.js\n// module id = 69\n// module chunks = 0","/**\n * @fileoverview Controller factory module.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Base = require('../controller/base'),\n Core = require('../controller/viewMixin/core'),\n Week = require('../controller/viewMixin/week'),\n Month = require('../controller/viewMixin/month'),\n datetime = require('../common/datetime');\n\n/**\n * Mixin object. create object property to target and mix to that\n * @param {object} from - source object\n * @param {object} to - target object\n * @param {string} propertyName - property name\n */\nfunction mixin(from, to, propertyName) {\n var obj = to[propertyName] = {};\n\n util.forEach(from, function(method, methodName) {\n obj[methodName] = util.bind(method, to);\n });\n}\n\n/**\n * @param {object} options - options for base controller\n * @param {function} [options.groupFunc] - function for group each models {@see Collection#groupBy}\n * @returns {Base} The controller instance.\n */\nmodule.exports = function(options) {\n var controller = new Base(options),\n originQuery;\n\n mixin(Core, controller, 'Core');\n mixin(Week, controller, 'Week');\n mixin(Month, controller, 'Month');\n\n /**********\n * Override Week#findByDateRange for support schedules that category is 'miles\n * tone', 'task'.\n **********/\n\n originQuery = controller.Week.findByDateRange;\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @override\n * @param {Date} start - start date to find schedules\n * @param {Date} end - end date to find schedules\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @returns {object} view model data\n */\n function findByDateRange(start, end, andFilters) {\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ),\n ymdRange = util.map(dateRange, function(d) {\n return datetime.format(d, 'YYYY-MM-DD');\n }),\n viewModels;\n\n andFilters = andFilters || [];\n viewModels = originQuery(start, end, andFilters);\n\n util.forEach(viewModels, function(coll, key, obj) {\n var groupedByYMD;\n\n // Change view model\n if (key === 'milestone') {\n groupedByYMD = coll.groupBy(ymdRange, function(viewModel) {\n return datetime.format(viewModel.model.end, 'YYYY-MM-DD');\n });\n\n obj[key] = groupedByYMD;\n }\n });\n\n return viewModels;\n }\n\n controller.Week.findByDateRange = findByDateRange;\n\n return controller;\n};\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/controller.js\n// module id = 70\n// module chunks = 0","/**\n * @fileoverview Month view factory module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config'),\n array = require('../common/array'),\n datetime = require('../common/datetime'),\n domutil = require('../common/domutil'),\n Month = require('../view/month/month'),\n MonthClick = require('../handler/month/click'),\n MonthCreation = require('../handler/month/creation'),\n MonthResize = require('../handler/month/resize'),\n MonthMove = require('../handler/month/move'),\n More = require('../view/month/more');\n\n/**\n * Get the view model for more layer\n * @param {TZDate} date - date has more schedules\n * @param {HTMLElement} target - target element\n * @param {Collection} schedules - schedule collection\n * @returns {object} view model\n */\nfunction getViewModelForMoreLayer(date, target, schedules) {\n schedules.each(function(schedule) {\n var model = schedule.model;\n schedule.hasMultiDates = !datetime.isSameDate(model.start, model.end);\n });\n\n return {\n target: target,\n date: datetime.format(date, 'YYYY.MM.DD'),\n schedules: schedules.sort(array.compare.schedule.asc)\n };\n}\n\n/**\n * @param {Base} baseController - controller instance\n * @param {HTMLElement} layoutContainer - container element for month view\n * @param {Drag} dragHandler - drag handler instance\n * @param {object} options - options\n * @returns {object} view instance and refresh method\n */\nfunction createMonthView(baseController, layoutContainer, dragHandler, options) {\n var monthViewContainer, monthView, moreView;\n var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n\n monthViewContainer = domutil.appendHTMLElement(\n 'div', layoutContainer, config.classname('month'));\n\n monthView = new Month(options.month, monthViewContainer, baseController.Month);\n moreView = new More(options.month, layoutContainer);\n\n // handlers\n clickHandler = new MonthClick(dragHandler, monthView, baseController);\n creationHandler = new MonthCreation(dragHandler, monthView, baseController);\n resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n moveHandler = new MonthMove(dragHandler, monthView, baseController);\n\n clearSchedulesHandler = function() {\n if (moreView) {\n moreView.hide();\n }\n };\n\n onUpdateSchedule = function() {\n if (moreView) {\n moreView.refresh();\n }\n };\n\n // binding +n click schedule\n clickHandler.on('clickMore', function(clickMoreSchedule) {\n var date = clickMoreSchedule.date,\n target = clickMoreSchedule.target,\n schedules = util.pick(baseController.findByDateRange(\n datetime.start(date),\n datetime.end(date)\n ), clickMoreSchedule.ymd);\n\n schedules.items = util.filter(schedules.items, function(item) {\n return options.month.scheduleFilter(item.model);\n });\n\n if (schedules && schedules.length) {\n moreView.render(getViewModelForMoreLayer(date, target, schedules));\n }\n });\n\n // binding clear schedules\n baseController.on('clearSchedules', clearSchedulesHandler);\n\n // bind update schedule event\n baseController.on('updateSchedule', onUpdateSchedule);\n\n moveHandler.on('monthMoveStart_from_morelayer', function() {\n moreView.hide();\n });\n\n monthView.handler = {\n click: {\n 'default': clickHandler\n },\n creation: {\n 'default': creationHandler\n },\n resize: {\n 'default': resizeHandler\n },\n move: {\n 'default': moveHandler\n }\n };\n\n monthView._beforeDestroy = function() {\n moreView.destroy();\n baseController.off('clearSchedules', clearSchedulesHandler);\n baseController.off('updateSchedule', onUpdateSchedule);\n\n util.forEach(monthView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n };\n\n // add controller\n monthView.controller = baseController.Month;\n\n return {\n view: monthView,\n refresh: function() {\n monthView.vLayout.refresh();\n }\n };\n}\n\nmodule.exports = createMonthView;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/monthView.js\n// module id = 71\n// module chunks = 0","/**\n * @fileoverview Factory module for WeekView\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar VLayout = require('../common/vlayout');\nvar reqAnimFrame = require('../common/reqAnimFrame');\n// Parent views\nvar Week = require('../view/week/week');\n\n// Sub views\nvar DayName = require('../view/week/dayname');\nvar TimeGrid = require('../view/week/timeGrid');\nvar Allday = require('../view/week/allday');\nvar Milestone = require('../view/week/milestone');\nvar TaskView = require('../view/week/taskview');\n\n// Handlers\nvar AlldayClick = require('../handler/allday/click');\nvar AlldayCreation = require('../handler/allday/creation');\nvar AlldayMove = require('../handler/allday/move');\nvar AlldayResize = require('../handler/allday/resize');\nvar DayNameClick = require('../handler/time/clickDayname');\nvar TimeClick = require('../handler/time/click');\nvar TimeCreation = require('../handler/time/creation');\nvar TimeMove = require('../handler/time/move');\nvar TimeResize = require('../handler/time/resize');\nvar MilestoneClick = require('../handler/milestone/click');\n\nvar DEFAULT_VIEW_SEQUENCE = ['Milestone', 'Task', 'AllDay', 'TimeGrid'];\nvar DEFAULT_VIEWS = {\n 'Milestone': {\n minHeight: 20,\n height: 80,\n maxHeight: 80,\n show: true\n },\n 'Task': {\n minHeight: 40,\n height: 120,\n maxHeight: 120,\n show: true\n },\n 'AllDay': {\n minHeight: 20,\n height: 80,\n maxHeight: 80,\n show: true,\n maxExpandCount: 10\n },\n 'TimeGrid': {\n autoHeight: true,\n show: true\n }\n};\n\n/* eslint-disable complexity*/\nmodule.exports = function(baseController, layoutContainer, dragHandler, options) {\n var viewSequence = options.week.viewSequence || DEFAULT_VIEW_SEQUENCE,\n views = options.week.views || DEFAULT_VIEWS,\n panels = [],\n isAllDayPanelFirstRender = true;\n var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout,\n milestoneView, taskView, alldayView, timeGridView, alldayPanel;\n\n weekView = new Week(null, options.week, layoutContainer);\n weekView.handler = {\n click: {},\n dayname: {},\n creation: {},\n move: {},\n resize: {}\n };\n\n // Change visibilities\n util.forEach(views, function(value, key) {\n if (key === 'Milestone' || key === 'Task') {\n value.show = options.taskView;\n } else if (key === 'AllDay' || key === 'TimeGrid') {\n value.show = options.scheduleView;\n }\n });\n\n // Make panels by view sequence and visibilities\n util.forEach(viewSequence, function(name) {\n var view = views[name];\n if (view.show) {\n if (panels.length) {\n panels.push({\n isSplitter: true\n });\n }\n panels.push(util.extend({\n name: name\n }, view));\n }\n });\n\n if (panels.length) {\n panels[panels.length - 1].autoHeight = true;\n panels[panels.length - 1].maxHeight = null;\n }\n\n dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\n /**********\n * 일자표기 (상단 일월화수...)\n **********/\n dayNameView = new DayName(options.week, dayNameContainer);\n weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n weekView.addChild(dayNameView);\n\n /**********\n * 수직 레이아웃 모듈 초기화\n **********/\n vLayoutContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('vlayout-area'));\n vLayoutContainer.style.height = (domutil.getSize(weekView.container)[1] - dayNameView.container.offsetHeight) + 'px';\n\n vLayout = new VLayout({\n panels: panels,\n panelHeights: options.week.panelHeights || []\n }, vLayoutContainer);\n\n weekView.vLayout = vLayout;\n\n if (util.pick(views, 'Milestone').show) {\n /**********\n * 마일스톤\n **********/\n milestoneView = new Milestone(options.week, vLayout.getPanelByName('Milestone').container);\n milestoneView.on('afterRender', function(viewModel) {\n vLayout.getPanelByName('Milestone').setHeight(null, viewModel.height);\n });\n weekView.addChild(milestoneView);\n weekView.handler.click.milestone = new MilestoneClick(dragHandler, milestoneView, baseController);\n }\n\n if (util.pick(views, 'Task').show) {\n /**********\n * 업무\n **********/\n taskView = new TaskView(options.week, vLayout.getPanelByName('Task').container);\n taskView.on('afterRender', function() {\n vLayout.getPanelByName('Task').setHeight(null, taskView.contentHeight);\n });\n weekView.addChild(taskView);\n weekView.handler.click.task = new AlldayClick(dragHandler, taskView, baseController);\n weekView.handler.move.task = new AlldayMove(dragHandler, taskView, baseController);\n }\n\n if (util.pick(views, 'AllDay').show) {\n /**********\n * 종일일정\n **********/\n alldayPanel = vLayout.getPanelByName('AllDay');\n alldayView = new Allday(options.week, alldayPanel.container, alldayPanel.options);\n alldayView.on('afterRender', function() {\n if (alldayView.viewType === 'toggle' && !alldayView.collapsed) {\n alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n }\n if (isAllDayPanelFirstRender) {\n alldayPanel.setHeight(null, alldayView.options.height);\n isAllDayPanelFirstRender = false;\n } else {\n alldayPanel.setHeight(null, alldayView.contentHeight);\n }\n });\n\n weekView.addChild(alldayView);\n weekView.handler.click.allday = new AlldayClick(dragHandler, alldayView, baseController);\n weekView.handler.creation.allday = new AlldayCreation(dragHandler, alldayView, baseController);\n weekView.handler.move.allday = new AlldayMove(dragHandler, alldayView, baseController);\n weekView.handler.resize.allday = new AlldayResize(dragHandler, alldayView, baseController);\n\n weekView.handler.click.allday.on('clickExpand', function(index) {\n alldayView.prevMaxHeight = alldayView.aboutMe.maxHeight;\n alldayPanel.options.maxHeight = alldayView.getExpandMaxHeight();\n alldayPanel.isHeightForcedSet = false;\n alldayView.collapsed = false;\n alldayView.aboutMe.forcedLayout = false;\n alldayView.aboutMe.collapseBtnIndex = index;\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n weekView.handler.click.allday.on('clickCollapse', function() {\n var newHeight = alldayView.prevMaxHeight;\n delete alldayView.prevMaxHeight;\n alldayPanel.options.maxHeight = newHeight;\n alldayPanel.setHeight(null, newHeight);\n alldayView.collapsed = true;\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n alldayPanel.on('resize', function() {\n alldayView.aboutMe.forcedLayout = true;\n weekView.render();\n });\n }\n\n if (util.pick(views, 'TimeGrid').show) {\n /**********\n * 시간별 일정\n **********/\n timeGridView = new TimeGrid(options.week, vLayout.getPanelByName('TimeGrid').container);\n weekView.addChild(timeGridView);\n weekView.handler.click.time = new TimeClick(dragHandler, timeGridView, baseController);\n weekView.handler.creation.time = new TimeCreation(dragHandler, timeGridView, baseController);\n weekView.handler.move.time = new TimeMove(dragHandler, timeGridView, baseController);\n weekView.handler.resize.time = new TimeResize(dragHandler, timeGridView, baseController);\n }\n\n weekView.on('afterRender', function() {\n vLayout.refresh();\n });\n\n // add controller\n weekView.controller = baseController.Week;\n\n // add destroy\n weekView._beforeDestroy = function() {\n util.forEach(weekView.handler, function(type) {\n util.forEach(type, function(handler) {\n handler.off();\n handler.destroy();\n });\n });\n\n weekView.off();\n };\n\n return {\n view: weekView,\n refresh: function() {\n var weekViewHeight = weekView.getViewBound().height,\n daynameViewHeight = domutil.getBCRect(\n dayNameView.container\n ).height;\n\n vLayout.container.style.height =\n weekViewHeight - daynameViewHeight + 'px';\n vLayout.refresh();\n },\n scrollToNow: function() {\n if (timeGridView) {\n timeGridView.scrollToNow();\n }\n }\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/factory/weekView.js\n// module id = 72\n// module chunks = 0","/**\n * @fileoverview Click handle module for allday schedules\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar AlldayMove = require('./move');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayClick(dragHandler, alldayView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy handler module\n */\nAlldayClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.alldayView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nAlldayClick.prototype.checkExpectCondition = AlldayMove.prototype.checkExpectedCondition;\n\n/**\n * Click event handler\n * @param {object} clickEvent - click event data\n * @emits AlldayClick#clickSchedule\n */\nAlldayClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n scheduleCollection = this.baseController.schedules,\n collapseElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-collapse-btn')\n );\n var blockElement, scheduleElement;\n\n if (collapseElement) {\n self.fire('clickCollapse');\n\n return;\n }\n\n if (!timeView) {\n return;\n }\n\n if (this._onClickMoreElement(clickEvent.target)) {\n return;\n }\n\n scheduleElement = domutil.closest(target, config.classname('.weekday-schedule'));\n if (scheduleElement) {\n blockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nAlldayClick.prototype._onClickMoreElement = function(target) {\n var moreElement = domutil.closest(target, config.classname('.weekday-exceed-in-week'));\n var index = moreElement.dataset ? moreElement.dataset.index : moreElement.getAttribute('data-index');\n var parseInt = Number.parseInt || window.parseInt;\n\n if (moreElement) {\n this.fire('clickExpand', parseInt(index || 0, 10));\n\n return true;\n }\n\n return false;\n};\n\nutil.CustomEvents.mixin(AlldayClick);\n\nmodule.exports = AlldayClick;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/click.js\n// module id = 73\n// module chunks = 0","/**\n * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar alldayCore = require('./core');\nvar AlldayCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CutomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayCreation(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {AlldayCreationGuide}\n */\n this.guide = new AlldayCreationGuide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(alldayView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destroy method\n */\nAlldayCreation.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (this.alldayView && this.alldayView.container) {\n domevent.off(this.alldayView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.alldayView = this.baseController = this.getScheduleDataFunc = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target).trim();\n var isAllDay = domutil.closest(target, config.classname('.allday-container'));\n var excludeTarget = true;\n var matches, schedulesElement;\n\n if (!isAllDay) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-exceed-in-week'))\n || domutil.closest(target, config.classname('.weekday-collapse-btn'))\n ) {\n return false;\n }\n\n if (domutil.closest(target, config.classname('.weekday-schedule-block'), excludeTarget)) {\n return false;\n }\n\n schedulesElement = domutil.closest(target, config.classname('.weekday-schedules'));\n if (!schedulesElement && cssClass !== config.classname('weekday-schedules')) {\n return false;\n }\n\n target = schedulesElement ? schedulesElement.parentNode : target.parentNode;\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {AlldayCreation#beforeCreateSchedule}\n * @param {object} scheduleData - schedule data from AlldayCreation module.\n */\nAlldayCreation.prototype._createSchedule = function(scheduleData) {\n var dateRange = scheduleData.range,\n startXIndex = scheduleData.dragStartXIndex,\n xIndex = scheduleData.xIndex,\n start, end;\n\n // when inverse start, end then change it.\n if (xIndex < startXIndex) {\n startXIndex = xIndex + startXIndex;\n xIndex = startXIndex - xIndex;\n startXIndex = startXIndex - xIndex;\n }\n\n start = new TZDate(dateRange[startXIndex].getTime());\n end = datetime.end(dateRange[xIndex]);\n\n /**\n * @event {AlldayCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: true,\n start: start,\n end: end,\n guide: this.guide,\n triggerEventName: scheduleData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler method.\n * @emits AlldayCreation#alldayCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n */\nAlldayCreation.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n\n scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\n /**\n * @event AlldayCreation#alldayCreationDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayCreationDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayCreation#alldayCreationDrag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nAlldayCreation.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent);\n\n /**\n * @event AlldayCreation#alldayCreationDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayCreationDrag', scheduleData);\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayCreation#alldayCreationDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n */\nAlldayCreation.prototype._onDragEnd = function(dragEndEventData, overrideEventName) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n var scheduleData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n\n this._createSchedule(scheduleData);\n\n /**\n * @event AlldayCreation#alldayCreationDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayCreationDragend', scheduleData);\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayCreation#alldayCreationClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData.originEvent);\n scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('alldayCreationClick', scheduleData);\n self._createSchedule(scheduleData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Dblclick event handler method.\n * @emits AlldayCreation#alldayCreationClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayCreation.prototype._onDblClick = function(clickEventData) {\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, clickEventData);\n scheduleData = getScheduleDataFunc(clickEventData);\n\n this.fire('alldayCreationClick', scheduleData);\n\n this._createSchedule(scheduleData);\n\n this._requestOnClick = false;\n};\n\ncommon.mixin(alldayCore, AlldayCreation);\nutil.CustomEvents.mixin(AlldayCreation);\n\nmodule.exports = AlldayCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/creation.js\n// module id = 74\n// module chunks = 0","/**\n * @fileoverview Guide element for Allday.Creation\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for Allday.Creation dragging effect.\n * @constructor\n * @param {AlldayCreation} alldayCreation - instance of AlldayCreation.\n */\nfunction AlldayCreationGuide(alldayCreation) {\n /**\n * @type {AlldayCreation}\n */\n this.alldayCreation = alldayCreation;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = document.createElement('div');\n\n this.initializeGuideElement();\n\n alldayCreation.on({\n alldayCreationDragstart: this._createGuideElement,\n alldayCreationDrag: this._onDrag,\n alldayCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.alldayCreation.off(this);\n this.alldayCreation = this.scheduleContainer = this.guideElement = null;\n};\n\n/**\n * initialize guide element's default style.\n */\nAlldayCreationGuide.prototype.initializeGuideElement = function() {\n domutil.addClass(this.guideElement, config.classname('allday-guide-creation-block'));\n};\n\n/**\n * Drag event handler\n * @param {object} scheduleData - schedule data from Allday.Creation handler.\n */\nAlldayCreationGuide.prototype._onDrag = function(scheduleData) {\n this._refreshGuideElement(scheduleData, true);\n};\n\n/**\n * Get element width based on narrowWeekend\n * @param {number} dragStartIndex - grid start index\n * @param {number} dragEndIndex - grid end index\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nAlldayCreationGuide.prototype._getGuideWidth = function(dragStartIndex, dragEndIndex, grids) {\n var width = 0;\n var i = dragStartIndex;\n for (; i <= dragEndIndex; i += 1) {\n width += grids[i] ? grids[i].width : 0;\n }\n\n return width;\n};\n\n/**\n * Refresh guide element.\n * @param {object} scheduleData - schedule data from Allday.Creation handler.\n * @param {boolean} defer - If set to true, set style in the next frame\n */\nAlldayCreationGuide.prototype._refreshGuideElement = function(scheduleData, defer) {\n var guideElement = this.guideElement,\n data = scheduleData,\n dragStartXIndex = data.dragStartXIndex < data.xIndex ? data.dragStartXIndex : data.xIndex,\n dragEndXIndex = data.dragStartXIndex < data.xIndex ? data.xIndex : data.dragStartXIndex,\n leftPercent,\n widthPercent;\n\n leftPercent = data.grids[dragStartXIndex] ? data.grids[dragStartXIndex].left : 0;\n widthPercent = this._getGuideWidth(dragStartXIndex, dragEndXIndex, data.grids);\n\n /** eslint-disable require-jsdoc */\n function setStyle() {\n guideElement.style.display = 'block';\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n }\n\n if (defer) {\n reqAnimFrame.requestAnimFrame(setStyle);\n } else {\n setStyle();\n }\n};\n\n/**\n * Clear guide element.\n */\nAlldayCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement;\n\n domutil.remove(guideElement);\n\n guideElement.style.display = 'none';\n guideElement.style.left = '';\n guideElement.style.width = '';\n};\n\n/**\n * Create guide element\n * @param {object} dragStartEventData - schedule data object of Allday.Creation.\n */\nAlldayCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var alldayCreation = this.alldayCreation,\n alldayView = alldayCreation.alldayView,\n alldayContainerElement = alldayView.container,\n scheduleContainer = domutil.find(config.classname('.weekday-grid'), alldayContainerElement);\n\n scheduleContainer.appendChild(this.guideElement);\n this._refreshGuideElement(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - event data object of Allday.Creation.\n */\nAlldayCreationGuide.prototype._onDrag = function(dragEventData) {\n this._refreshGuideElement(dragEventData);\n};\n\nmodule.exports = AlldayCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/creationGuide.js\n// module id = 75\n// module chunks = 0","/**\n * @fileoverview Effect module for Allday.Move\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * Class for Allday.Move dragging effect.\n * @constructor\n * @param {AlldayMove} alldayMove - instance of AlldayMove.\n */\nfunction AlldayMoveGuide(alldayMove) {\n /**\n * @type {AlldayMove}\n */\n this.alldayMove = alldayMove;\n\n /**\n * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {number}\n */\n this._dragStartXIndex = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n alldayMove.on({\n 'alldayMoveDragstart': this._onDragStart,\n 'alldayMoveDrag': this._onDrag,\n 'alldayMoveDragend': this._clearGuideElement,\n 'alldayMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.alldayMove.off(this);\n this.alldayMove = this.scheduleContainer = this._dragStartXIndex =\n this.elements = this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nAlldayMoveGuide.prototype._clearGuideElement = function() {\n this._showOriginScheduleBlocks();\n\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._dragStartXIndex = this.getScheduleDataFunc = this.guideElement = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nAlldayMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n var scheduleBlocks = domutil.find(\n config.classname('.weekday-schedule-block'),\n this.alldayMove.alldayView.container,\n true\n );\n\n this.elements = util.filter(scheduleBlocks, function(schedule) {\n return domutil.getData(schedule, 'id') === modelID;\n });\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nAlldayMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\n/**\n * @param {Schedule} model - model\n * @param {HTMLElement} parent - parent element\n * Highlight element blocks\n */\nAlldayMoveGuide.prototype._highlightScheduleBlocks = function(model, parent) {\n var elements = domutil.find(config.classname('.weekday-schedule'), parent, true);\n\n util.forEach(elements, function(el) {\n el.style.margin = '0';\n\n if (!model.isFocused) {\n el.style.backgroundColor = el.style.color;\n el.style.borderLeftColor = el.style.color;\n el.style.color = '#ffffff';\n }\n });\n};\n\n/**\n * Refresh guide element.\n * @param {number} leftPercent - left percent of guide element.\n * @param {number} widthPercent - width percent of guide element.\n * @param {boolean} isExceededLeft - schedule start is faster then render start date?\n * @param {boolean} isExceededRight - schedule end is later then render end date?\n */\nAlldayMoveGuide.prototype.refreshGuideElement = function(leftPercent, widthPercent, isExceededLeft, isExceededRight) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.left = leftPercent + '%';\n guideElement.style.width = widthPercent + '%';\n\n if (isExceededLeft) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-left'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-left'));\n }\n\n if (isExceededRight) {\n domutil.addClass(guideElement, config.classname('weekday-exceed-right'));\n } else {\n domutil.removeClass(guideElement, config.classname('weekday-exceed-right'));\n }\n });\n};\n\n/**\n * Get schedule block information from schedule data.\n *\n * For example, there is single schedule has 10 length. but render range in view is 5 then\n * rendered block must be cut out to render properly. in this case, this method return\n * how many block are cut before rendering.\n *\n * 이벤트 데이터에서 이벤트 블록 엘리먼트 렌더링에 대한 필요 정보를 추출한다.\n *\n * ex) 렌더링 된 블록의 길이는 5지만 실제 이 이벤트는 10의 길이를 가지고 있을 때\n * 좌 우로 몇 만큼 잘려있는지에 관한 정보를 반환함.\n * @param {object} dragStartEventData - schedule data from Allday.Move handler.\n * @returns {function} function that return schedule block information.\n */\nAlldayMoveGuide.prototype._getScheduleBlockDataFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n datesInRange = dragStartEventData.datesInRange,\n range = dragStartEventData.range,\n baseWidthPercent = (100 / datesInRange),\n originScheduleStarts = datetime.start(model.start),\n originScheduleEnds = datetime.end(model.end),\n renderStartDate = datetime.start(range[0]),\n renderEndDate = datetime.end(range[range.length - 1]),\n fromLeft = (new TZDate(originScheduleStarts.getTime() -\n renderStartDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0,\n fromRight = (new TZDate(originScheduleEnds.getTime() -\n renderEndDate.getTime())) / datetime.MILLISECONDS_PER_DAY | 0;\n\n return function(indexOffset) {\n return {\n baseWidthPercent: baseWidthPercent,\n fromLeft: fromLeft + indexOffset,\n fromRight: fromRight + indexOffset\n };\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var alldayViewContainer = this.alldayMove.alldayView.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n this._hideOriginScheduleBlocks(String(dragStartEventData.model.cid()));\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n domutil.addClass(guideElement, config.classname('allday-guide-move'));\n scheduleContainer.appendChild(guideElement);\n\n this._dragStartXIndex = dragStartEventData.xIndex;\n this.getScheduleDataFunc = this._getScheduleBlockDataFunc(dragStartEventData);\n\n this._highlightScheduleBlocks(dragStartEventData.model, guideElement);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nAlldayMoveGuide.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStartXIndex = this._dragStartXIndex,\n datesInRange = dragEventData.datesInRange,\n grids = dragEventData.grids,\n scheduleData,\n isExceededLeft,\n isExceededRight,\n originLength,\n leftIndex,\n size,\n newLeft,\n newWidth;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.xIndex - dragStartXIndex);\n isExceededLeft = scheduleData.fromLeft < 0;\n isExceededRight = scheduleData.fromRight > 0;\n\n leftIndex = Math.max(0, scheduleData.fromLeft);\n originLength = (scheduleData.fromLeft * -1) + (datesInRange + scheduleData.fromRight);\n size = isExceededLeft ? (originLength + scheduleData.fromLeft) : originLength;\n size = isExceededRight ? (size - scheduleData.fromRight) : size;\n\n newLeft = grids[leftIndex] ? grids[leftIndex].left : 0;\n newWidth = getScheduleBlockWidth(leftIndex, size, grids);\n\n this.refreshGuideElement(newLeft, newWidth, isExceededLeft, isExceededRight);\n};\n\n/**\n * Get schedule width based on grids\n * @param {number} left - left index\n * @param {number} size - schedule width\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getScheduleBlockWidth(left, size, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n for (; i < size; i += 1) {\n left = (left + i) % length;\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nmodule.exports = AlldayMoveGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/moveGuide.js\n// module id = 76\n// module chunks = 0","/**\n * @fileoverview Resize handler module for Allday view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar AlldayCore = require('./core');\nvar AlldayResizeGuide = require('./resizeGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes AlldayCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Allday} [alldayView] - Allday view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction AlldayResize(dragHandler, alldayView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * allday view instance.\n * @type {Allday}\n */\n this.alldayView = alldayView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * Temporary variable for dragStart event data.\n * @type {object}\n */\n this._dragStart = null;\n\n dragHandler.on({\n dragStart: this._onDragStart\n }, this);\n\n /**\n * @type {AlldayResizeGuide}\n */\n this.guide = new AlldayResizeGuide(this);\n}\n\n/**\n * Destroy method\n */\nAlldayResize.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.alldayView = this.baseController =\n this.guide = this._dragStart = null;\n};\n\n/**\n * Check dragstart target is expected conditions for this handler.\n * @param {HTMLElement} target - dragstart event handler's target element.\n * @returns {boolean|WeekdayInWeek} return WeekdayInWeek view instance when satiate condition.\n */\nAlldayResize.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (!~cssClass.indexOf(config.classname('weekday-resize-handle'))) {\n return false;\n }\n\n target = domutil.closest(target, config.classname('.weekday'));\n\n if (!target) {\n return false;\n }\n\n cssClass = domutil.getClass(target);\n matches = cssClass.match(config.allday.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.alldayView.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler.\n * @emits AlldayResize#alldayResizeDragstart\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.baseController,\n scheduleBlockElement,\n modelID,\n targetModel,\n getScheduleDataFunc,\n scheduleData;\n\n if (!result) {\n return;\n }\n\n scheduleBlockElement = domutil.closest(target, config.classname('.weekday-schedule-block'));\n modelID = domutil.getData(scheduleBlockElement, 'id');\n targetModel = controller.schedules.items[modelID];\n\n if (!targetModel) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.alldayView, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n scheduleData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n util.extend(scheduleData, {\n scheduleBlockElement: scheduleBlockElement,\n model: targetModel\n });\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event AlldayResize#alldayResizeDragstart\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n * @property {Schedule} model - data object of model isntance.\n * @property {HTMLDivElement} scheduleBlockElement - target schedule block element.\n */\n this.fire('alldayResizeDragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits AlldayResize#alldayResizeDrag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nAlldayResize.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @event AlldayResize#alldayResizeDrag\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire('alldayResizeDrag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule instance to base controller.\n * @fires AlldayResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from AlldayResize handler.\n */\nAlldayResize.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newEnds = new TZDate(schedule.end.getTime());\n\n newEnds = new TZDate(newEnds.setDate(newEnds.getDate() + dateOffset));\n newEnds = new TZDate(Math.max(datetime.end(schedule.start).getTime(), newEnds.getTime()));\n\n /**\n * @event AlldayResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {date} start - start time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits AlldayResize#alldayResizeDragend\n * @param {object} dragEndEventData - Drag#DragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {?boolean} skipUpdate - true then skip update schedule model.\n */\nAlldayResize.prototype._onDragEnd = function(dragEndEventData, overrideEventName, skipUpdate) {\n var getScheduleDataFunc = this.getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent);\n util.extend(scheduleData, {\n targetModel: dragStart.model\n });\n\n if (!skipUpdate) {\n this._updateSchedule(scheduleData);\n }\n\n /**\n * @event AlldayResize#alldayResizeDragend\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this.fire(overrideEventName || 'alldayResizeDragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits AlldayResize#alldayResizeClick\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nAlldayResize.prototype._onClick = function(clickEventData) {\n /**\n * @event AlldayResize#alldayResizeClick\n * @type {object}\n * @property {AlldayView} relatedView - allday view instance.\n * @property {number} datesInRange - date count of this view.\n * @property {number} dragStartXIndex - index number of dragstart grid index.\n * @property {number} xIndex - index number of mouse positions.\n */\n this._onDragEnd(clickEventData, 'alldayResizeClick', true);\n};\n\ncommon.mixin(AlldayCore, AlldayResize);\nutil.CustomEvents.mixin(AlldayResize);\n\nmodule.exports = AlldayResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/resize.js\n// module id = 77\n// module chunks = 0","/**\n * @fileoverview Resize Guide module.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @param {AlldayResize} alldayResize - instance of AlldayResize\n */\nfunction AlldayResizeGuide(alldayResize) {\n /**\n * @type {AlldayResize}\n */\n this.alldayResize = alldayResize;\n\n /**\n * 실제로 이벤트 엘리먼트를 담는 엘리먼트\n * @type {HTMLDIVElement}\n */\n this.scheduleContainer = null;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {HTMLDIVElement}\n */\n this.guideElement = null;\n\n alldayResize.on({\n 'alldayResizeDragstart': this._onDragStart,\n 'alldayResizeDrag': this._onDrag,\n 'alldayResizeDragend': this._clearGuideElement,\n 'alldayResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nAlldayResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.alldayResize.off(this);\n this.alldayResize = this.scheduleContainer = this.getScheduleDataFunc =\n this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nAlldayResizeGuide.prototype._clearGuideElement = function() {\n domutil.remove(this.guideElement);\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Refresh guide element\n * @param {number} newWidth - new width percentage value to resize guide element.\n */\nAlldayResizeGuide.prototype.refreshGuideElement = function(newWidth) {\n var guideElement = this.guideElement;\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.width = newWidth + '%';\n });\n};\n\n/**\n * Return function that calculate guide element's new width percentage value.\n * @param {object} dragStartEventData - dragstart schedule data.\n * @returns {function} return function that calculate guide element new width percentage.\n */\nAlldayResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n viewOptions = this.alldayResize.alldayView.options,\n fromLeft = (new TZDate(\n model.start.getTime() - datetime.parse(viewOptions.renderStartDate)\n )) / datetime.MILLISECONDS_PER_DAY | 0,\n grids = dragStartEventData.grids;\n\n return function(xIndex) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n width += grids[fromLeft] ? grids[fromLeft].width : 0;\n\n for (; i < length; i += 1) {\n if (i > fromLeft && i <= xIndex) {\n width += grids[i] ? grids[i].width : 0;\n }\n }\n\n return width;\n };\n};\n\n/**\n * DragStart event handler.\n * @param {object} dragStartEventData - schedule data.\n */\nAlldayResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var alldayViewContainer = this.alldayResize.alldayView.container,\n guideElement = this.guideElement = dragStartEventData.scheduleBlockElement.cloneNode(true),\n scheduleContainer;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n\n scheduleContainer = domutil.find(config.classname('.weekday-schedules'), alldayViewContainer);\n domutil.addClass(guideElement, config.classname('allday-guide-move'));\n scheduleContainer.appendChild(guideElement);\n\n this.getScheduleDataFunc = this.getGuideElementWidthFunc(dragStartEventData);\n};\n\n/**\n * Drag event handler.\n * @param {object} dragEventData - schedule data.\n */\nAlldayResizeGuide.prototype._onDrag = function(dragEventData) {\n var func = this.getScheduleDataFunc;\n\n if (!func) {\n return;\n }\n\n this.refreshGuideElement(func(dragEventData.xIndex));\n};\n\nmodule.exports = AlldayResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/allday/resizeGuide.js\n// module id = 78\n// module chunks = 0","/**\n * @fileoverview 마일스톤 항목 클릭 이벤트 핸들러 모듈\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * 마일스톤 클릭 이벤트 핸들러 모듈\n * @constructor\n * @implelements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} dragHandler - dragHandler instance\n * @param {Milestone} milestoneView - milstone view instance\n * @param {Base} baseController - baseController instance\n */\nfunction MilestoneClick(dragHandler, milestoneView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Milestone}\n */\n this.milestoneView = milestoneView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy\n */\nMilestoneClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dragHandler = this.milestoneView = this.baseController = null;\n};\n\n/**\n * @param {HTMLElement} target - check reponsibility to this handler module supplied element\n * @returns {boolean|string} return false when handler has no responsibility for supplied element.\n * otherwise, return schedule model id that related with target element.\n */\nMilestoneClick.prototype.checkExpectedCondition = function(target) {\n target = domutil.closest(target, config.classname('.milestone-item'));\n\n if (!target) {\n return false;\n }\n\n return domutil.getData(target, 'id');\n};\n\n/**\n * @emits MilestoneClick#clickSchedule\n * @param {object} clickEvent - click event object\n */\nMilestoneClick.prototype._onClick = function(clickEvent) {\n var self = this,\n modelID = this.checkExpectedCondition(clickEvent.target);\n\n if (!modelID) {\n return;\n }\n\n this.baseController.schedules.doWhenHas(modelID, function(schedule) {\n /**\n * @events MilestoneClick#clickEvent\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(MilestoneClick);\n\nmodule.exports = MilestoneClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/milestone/click.js\n// module id = 79\n// module chunks = 0","/**\n * @fileoverview Click handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {Month} [monthView] - Month view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction MonthClick(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.monthView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * @fires MonthClick#clickMore\n * @param {object} clickEvent - click event object\n */\nMonthClick.prototype._onClick = function(clickEvent) {\n var self = this,\n moreElement,\n scheduleCollection = this.baseController.schedules,\n blockElement = domutil.closest(clickEvent.target, config.classname('.weekday-schedule-block'))\n || domutil.closest(clickEvent.target, config.classname('.month-more-schedule'));\n\n moreElement = domutil.closest(\n clickEvent.target,\n config.classname('.weekday-exceed-in-month')\n );\n\n if (moreElement) {\n self.fire('clickMore', {\n date: datetime.parse(domutil.getData(moreElement, 'ymd')),\n target: moreElement,\n ymd: domutil.getData(moreElement, 'ymd')\n });\n }\n\n if (blockElement) {\n scheduleCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events AlldayClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n }\n};\n\nutil.CustomEvents.mixin(MonthClick);\n\nmodule.exports = MonthClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/click.js\n// module id = 80\n// module chunks = 0","/**\n * @fileoverview Creation handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar array = require('../../common/array');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar getMousePosDate = require('./core');\nvar Guide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthCreation(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * Cache for dragging session\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthCreationGuide}\n */\n this.guide = new Guide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destructor\n */\nMonthCreation.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.guide.destroy();\n\n if (this.monthView && this.monthView.container) {\n domevent.off(this.monthView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.monthView = this.baseController =\n this.getScheduleData = this._cache = this.guide = null;\n};\n\n/**\n * Fire before create schedule\n * @fires {MonthCreation#beforeCreateSchedule}\n * @param {object} eventData - cache data from single dragging session\n */\nMonthCreation.prototype._createSchedule = function(eventData) {\n /**\n * @event {MonthCreation#beforeCreateSchedule}\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: eventData.isAllDay,\n start: eventData.start,\n end: eventData.end,\n guide: this.guide.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * DragStart event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {object} dragStartEvent - dragStart event data\n */\nMonthCreation.prototype._onDragStart = function(dragStartEvent) {\n var eventData;\n\n if (!isElementWeekdayGrid(dragStartEvent.target)) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosDate(this.monthView);\n\n eventData = this.getScheduleData(dragStartEvent.originEvent);\n\n this._cache = {\n start: new TZDate(Number(eventData.date))\n };\n\n /**\n * @event {MonthCreation#monthCreationDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragstart', eventData);\n};\n\n/**\n * Drag event handler\n * @fires {MonthCreation#monthCreationDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthCreation.prototype._onDrag = function(dragEvent) {\n var eventData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEvent.originEvent);\n\n if (!eventData) {\n return;\n }\n\n /**\n * @event {MonthCreation#monthCreationDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDrag', eventData);\n};\n\n/**\n * DragEnd event handler\n * @fires {MonthCreation#monthCreationDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthCreation.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var eventData;\n var times;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n eventData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (eventData) {\n cache.end = new TZDate(Number(eventData.date));\n cache.isAllDay = true;\n\n times = [\n Number(cache.start),\n Number(cache.end)\n ].sort(array.compare.num.asc);\n\n cache.start = new TZDate(times[0]);\n cache.end = datetime.end(new TZDate(times[1]));\n\n this._createSchedule(cache);\n }\n\n /**\n * @event {MonthCreation#monthCreationDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthCreationDragend', eventData);\n\n this.getScheduleData = this._cache = null;\n};\n\n/**\n * Dblclick event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onDblClick = function(e) {\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e);\n\n this.fire('monthCreationClick', eventData);\n\n range = this._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\n this._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n\n this._requestOnClick = false;\n};\n\n/**\n * Click event handler\n * @fires {MonthCreation#monthCreationDragstart}\n * @param {MouseEvent} e - Native MouseEvent\n */\nMonthCreation.prototype._onClick = function(e) {\n var self = this;\n var eventData, range;\n\n if (!isElementWeekdayGrid(e.target)) {\n return;\n }\n\n eventData = getMousePosDate(this.monthView)(e.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('monthCreationClick', eventData);\n\n range = self._adjustStartAndEndTime(new TZDate(Number(eventData.date)), new TZDate(Number(eventData.date)));\n\n self._createSchedule({\n start: range.start,\n end: range.end,\n isAllDay: false,\n triggerEvent: eventData.triggerEvent\n });\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Adjust time to our o'clock\n * @param {TZDate} start - start time\n * @param {TZDate} end - end time\n * @returns {Object} start and end\n */\nMonthCreation.prototype._adjustStartAndEndTime = function(start, end) {\n var now = new TZDate();\n var hours = now.getHours();\n var minutes = now.getMinutes();\n\n // adjust start to less time. Adjusting had been greater time in monthly view when clicking grid\n if (minutes <= 30) {\n minutes = 0;\n } else {\n minutes = 30;\n }\n start.setHours(hours, minutes, 0, 0);\n end.setHours(hours + 1, minutes, 0, 0);\n\n return {\n start: start,\n end: end\n };\n};\n\n/**\n * Returns whether the given element is Weekday-Schedule.\n * @param {HTMLElement} el - target element\n * @returns {boolean}\n */\nfunction isElementWeekdayGrid(el) {\n return domutil.closest(el, config.classname('.weekday-grid'))\n && !domutil.closest(el, config.classname('.weekday-exceed-in-month'));\n}\n\nutil.CustomEvents.mixin(MonthCreation);\n\nmodule.exports = MonthCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/creation.js\n// module id = 81\n// module chunks = 0","/**\n * @fileoverview Creation guide module for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthCreation} monthCreation - instance of MonthCreation\n */\nfunction MonthCreationGuide(monthCreation) {\n /**\n * @type {MonthCreation}\n */\n this.monthCreation = monthCreation;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthCreation.on({\n monthCreationDragstart: this._createGuideElement,\n monthCreationDrag: this._onDrag,\n monthCreationDragend: this._onDragEnd,\n monthCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthCreationGuide.prototype.destroy = function() {\n this.monthCreation.off(this);\n\n if (this.guide) {\n this.guide.destroy();\n }\n\n this.guide = this.monthCreation = null;\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._createGuideElement = function(dragStartEvent) {\n var options = {\n isCreationMode: true,\n height: '100%',\n top: 0\n };\n\n this.guide = new MonthGuide(options, this.monthCreation.monthView);\n this.guide.start(dragStartEvent);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - schedule data from MonthCreation\n */\nMonthCreationGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthCreationGuide.prototype._onDragEnd = function() {\n // Do nothing. 사용자가 직접 destroy 호출\n this.guide = null;\n};\n\nmodule.exports = MonthCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/creationGuide.js\n// module id = 82\n// module chunks = 0","/**\n * @fileoverview Move handler for month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n datetime = require('../../common/datetime'),\n getMousePosData = require('./core'),\n MonthMoveGuide = require('./moveGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthMove(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthMoveGuide}\n */\n this.guide = new MonthMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthMove.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Update target schedule\n * @fires {MonthMove#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthMove.prototype.updateSchedule = function(scheduleCache) {\n var schedule = scheduleCache.model;\n var duration = schedule.duration().getTime();\n var startDateRaw = datetime.raw(schedule.start);\n var dragEndTime = Number(scheduleCache.end);\n var newStartDate = new TZDate(dragEndTime);\n\n newStartDate.setHours(startDateRaw.h, startDateRaw.m, startDateRaw.s, startDateRaw.ms);\n\n /**\n * @event MonthMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStartDate,\n end: new TZDate(newStartDate.getTime() + duration)\n });\n};\n\n/**\n * Get schedule block to clone for month guide effect\n * @param {HTMLElement} target - target element that related with drag schedule\n * @returns {HTMLElement} element to create guide effect\n */\nMonthMove.prototype.getMonthScheduleBlock = function(target) {\n var blockSelector = config.classname('.weekday-schedule-block');\n\n return domutil.closest(target, blockSelector);\n};\n\n/**\n * Get schedule block from more layer\n * @param {HTMLElement} target - element to check\n * @returns {HTMLElement} schedule element\n */\nMonthMove.prototype.getMoreLayerScheduleBlock = function(target) {\n var className = config.classname('.month-more-schedule');\n\n return domutil.closest(target, className);\n};\n\n/**\n * Check handler has permission to handle fired schedule\n * @fires {MonthMove#monthMoveStart_from_morelayer}\n * @param {HTMLElement} target - target element of fired schedule\n * @returns {(string|null)} model instance ID related with schedule. if handle\n * has not permission to handle the schedule then return null.\n */\nMonthMove.prototype.hasPermissionToHandle = function(target) {\n var modelID = null;\n var blockElement;\n\n if (domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return null;\n }\n\n blockElement = this.getMonthScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n } else {\n blockElement = this.getMoreLayerScheduleBlock(target);\n\n if (blockElement) {\n modelID = domutil.getData(blockElement, 'id');\n /**\n * Fire for notificate that the drag schedule start at more layer view.\n * @event {MonthMove#monthMoveStart_from_morelayer}\n */\n this.fire('monthMoveStart_from_morelayer');\n }\n }\n\n return modelID;\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthMove#monthMoveDragstart}\n * @param {object} dragStartEvent - drag start schedule data\n */\nMonthMove.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID = this.hasPermissionToHandle(target),\n model,\n scheduleData;\n\n if (!modelID) {\n return;\n }\n\n model = this.baseController.schedules.items[modelID];\n\n if (model.isReadOnly) {\n return;\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.originEvent = dragStartEvent.originEvent;\n scheduleData.target = this.getMonthScheduleBlock(target);\n scheduleData.model = model;\n\n this._cache = {\n model: model,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthMove#monthMoveDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthMoveDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthMove#monthMoveDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthMove.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = util.extend({\n originEvent: dragEvent.originEvent\n }, this.getScheduleData(dragEvent.originEvent));\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthMove#monthMoveDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDrag', scheduleData);\n};\n\n/**\n * Event handler for Drag#dragEnd\n * @fires {MonthMove#monthMoveDragend}\n * @param {object} dragEndEvent - dragend event data\n */\nMonthMove.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache;\n var scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(Number(scheduleData.date));\n this.updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthMoveDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthMoveDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthMove);\n\nmodule.exports = MonthMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/move.js\n// module id = 83\n// module chunks = 0","/**\n * @fileoverview Module for modification of guide element for move in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n domevent = require('../../common/domevent'),\n FloatingLayer = require('../../common/floatingLayer'),\n tmpl = require('./moveGuide.hbs'),\n Schedule = require('../../model/schedule');\n\n/**\n * @constructor\n * @param {MonthMove} monthMove - month/move module instance\n */\nfunction MonthMoveGuide(monthMove) {\n /**\n * @type {MonthMove}\n */\n this.monthMove = monthMove;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = null;\n\n monthMove.on({\n monthMoveDragstart: this._onDragStart,\n monthMoveDrag: this._onDrag,\n monthMoveDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthMoveGuide.prototype.destroy = function() {\n this.monthMove.off(this);\n this._clearGridBgColor();\n\n if (this.layer) {\n this.layer.destroy();\n }\n\n if (this.element) {\n domutil.remove(this.element);\n }\n\n this.monthMove = this.elements = this.layer = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthMoveGuide.prototype._hideOriginScheduleBlocks = function(modelID) {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthMove.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n domutil.addClass(el, className);\n });\n};\n\n/**\n * Show element blocks\n */\nMonthMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('weekday-schedule-block-dragging-dim');\n\n util.forEach(this.elements, function(el) {\n domutil.removeClass(el, className);\n });\n};\n\nMonthMoveGuide.prototype._getHighlightColorModel = function(model) {\n return {\n bgColor: model.color\n };\n};\n\n/**\n * Clear background color for filled grid element.\n */\nMonthMoveGuide.prototype._clearGridBgColor = function() {\n var selector = config.classname('.weekday-filled'),\n className = config.classname('weekday-filled'),\n beforeGridElement = domutil.find(selector,\n this.monthMove.monthView.container);\n\n if (beforeGridElement) {\n domutil.removeClass(beforeGridElement, className);\n }\n};\n\n/**\n * Fill background color of date grids relatied with model updates.\n * @param {object} dragEvent - drag event data from MonthMoveGuide#_onDrag\n */\nMonthMoveGuide.prototype._updateGridBgColor = function(dragEvent) {\n var gridElements = domutil.find(config.classname('.weekday-grid-line'), this.monthMove.monthView.container, true),\n className = config.classname('weekday-filled'),\n targetIndex = (dragEvent.x + (dragEvent.sizeX * dragEvent.y));\n\n this._clearGridBgColor();\n\n if (!gridElements || !gridElements[targetIndex]) {\n return;\n }\n\n domutil.addClass(gridElements[targetIndex], className);\n};\n\n/**\n * Handler for MonthMove#dragStart\n * @param {object} dragStartEvent - dragStart schedule data object\n */\nMonthMoveGuide.prototype._onDragStart = function(dragStartEvent) {\n var monthView = this.monthMove.monthView,\n firstWeekdayView = monthView.children.single(),\n weekdayOptions = firstWeekdayView.options,\n widthPercent = 100 / firstWeekdayView.getRenderDateRange().length,\n height = weekdayOptions.scheduleGutter + weekdayOptions.scheduleHeight,\n container = monthView.container,\n mousePos = domevent.getMousePosition(dragStartEvent.originEvent, container),\n model = dragStartEvent.model,\n layer = new FloatingLayer(null, container);\n\n this._hideOriginScheduleBlocks(model.cid());\n\n this.layer = layer;\n layer.setSize(widthPercent + '%', height);\n layer.setPosition(mousePos[0], mousePos[1]);\n layer.setContent(tmpl({\n model: util.extend(\n Schedule.create(model),\n model,\n this._getHighlightColorModel(model)\n )\n }));\n layer.show();\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n};\n\n/**\n * Handler for MonthMove#drag\n * @param {object} dragEvent - drag event data object\n */\nMonthMoveGuide.prototype._onDrag = function(dragEvent) {\n var container = this.monthMove.monthView.container,\n mousePos = domevent.getMousePosition(\n dragEvent.originEvent,\n container\n );\n\n this._updateGridBgColor(dragEvent);\n\n if (!this.layer) {\n return;\n }\n\n this.layer.setPosition(mousePos[0], mousePos[1]);\n};\n\n/**\n * Handler for MonthMove#dragEnd\n */\nMonthMoveGuide.prototype._onDragEnd = function() {\n this._showOriginScheduleBlocks();\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n\n this._clearGridBgColor();\n this.layer.destroy();\n this.layer = null;\n};\n\nmodule.exports = MonthMoveGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/moveGuide.js\n// module id = 84\n// module chunks = 0","/**\n * @fileoverview Module for resize schedule in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n getMousePosData = require('./core'),\n MonthResizeGuide = require('./resizeGuide'),\n TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {Month} monthView - Month view instance.\n * @param {Base} baseController - Base controller instance.\n */\nfunction MonthResize(dragHandler, monthView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {Month}\n */\n this.monthView = monthView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this.getScheduleData = null;\n\n /**\n * @type {object}\n */\n this._cache = null;\n\n /**\n * @type {MonthResizeGuide}\n */\n this.guide = new MonthResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destructor\n */\nMonthResize.prototype.destroy = function() {\n this.dragHandler.off(this);\n\n this.dragHandler = this.monthView = this.baseController = null;\n};\n\n/**\n * Fire event for update model\n * @fires {MonthResize#beforeUpdateSchedule}\n * @param {object} scheduleCache - cache object that result of single dragging\n * session.\n */\nMonthResize.prototype._updateSchedule = function(scheduleCache) {\n // 일정의 시작 일자를 변경할 순 없음.\n // 종료시간만 변경 가능.\n var newEnd = datetime.end(new TZDate(Number(scheduleCache.end))),\n schedule = scheduleCache.schedule;\n\n /**\n * @event MonthResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: new TZDate(Number(schedule.getStarts())),\n end: newEnd\n });\n};\n\n/**\n * Event handler for Drag#dragStart\n * @fires {MonthResize#monthResizeDragstart}\n * @param {object} dragStartEvent - drag start event data\n */\nMonthResize.prototype._onDragStart = function(dragStartEvent) {\n var target = dragStartEvent.target,\n modelID, schedule,\n scheduleData;\n\n if (!domutil.hasClass(target, config.classname('weekday-resize-handle'))) {\n return;\n }\n\n target = domutil.closest(target, config.classname('.weekday-schedule-block'));\n\n if (!target) {\n return;\n }\n\n modelID = domutil.getData(target, 'id');\n schedule = this.baseController.schedules.items[modelID];\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n this.getScheduleData = getMousePosData(this.monthView);\n scheduleData = this.getScheduleData(dragStartEvent.originEvent);\n scheduleData.target = target;\n scheduleData.model = schedule;\n\n this._cache = {\n schedule: schedule,\n target: target,\n start: new TZDate(Number(scheduleData.date))\n };\n\n /**\n * @event {MonthCreation#monthResizeDragstart}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n * @property {HTMLElement} target - schedule block element\n * @property {Schedule} model - model instance\n */\n this.fire('monthResizeDragstart', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDrag}\n * @param {object} dragEvent - drag event data\n */\nMonthResize.prototype._onDrag = function(dragEvent) {\n var scheduleData;\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEvent.originEvent);\n\n if (!scheduleData) {\n return;\n }\n\n /**\n * @event {MonthResize#monthResizeDrag}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDrag', scheduleData);\n};\n\n/**\n * @fires {MonthResize#monthResizeDragend}\n * @param {object} dragEndEvent - drag end event data\n */\nMonthResize.prototype._onDragEnd = function(dragEndEvent) {\n var cache = this._cache,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n if (!this.getScheduleData) {\n return;\n }\n\n scheduleData = this.getScheduleData(dragEndEvent.originEvent);\n\n if (scheduleData) {\n cache.end = new TZDate(Number(scheduleData.date));\n this._updateSchedule(cache);\n }\n\n /**\n * @event {MonthResize#monthResizeDragend}\n * @type {object}\n * @property {number} x - x index\n * @property {number} y - y index\n * @property {Date} date - drag date\n */\n this.fire('monthResizeDragend', scheduleData);\n\n this.getScheduleData = this._cache = null;\n};\n\nutil.CustomEvents.mixin(MonthResize);\n\nmodule.exports = MonthResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/resize.js\n// module id = 85\n// module chunks = 0","/**\n * @fileoverview Module for modification of guide element in schedule resize\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n MonthGuide = require('./guide');\n\n/**\n * @constructor\n * @param {MonthResize} monthResize - month/resize module instance\n */\nfunction MonthResizeGuide(monthResize) {\n /**\n * @type {MonthResize}\n */\n this.monthResize = monthResize;\n\n /**\n * @type {HTMLElement[]}\n */\n this.elements = null;\n\n /**\n * @type {MonthGuide}\n */\n this.guide = null;\n\n monthResize.on({\n monthResizeDragstart: this._onDragStart,\n monthResizeDrag: this._onDrag,\n monthResizeDragend: this._onDragEnd\n }, this);\n}\n\n/**\n * Destructor\n */\nMonthResizeGuide.prototype.destroy = function() {\n this.monthResize.off(this);\n this.guide.destroy();\n\n this.guide = this.monthResize = null;\n};\n\n/**\n * Hide element blocks for resize effect\n * @param {number} modelID - Schedule model instance ID\n */\nMonthResizeGuide.prototype._hideScheduleBlocks = function(modelID) {\n this.elements = domutil.find(\n config.classname('.weekday-schedule-block-' + modelID),\n this.monthResize.monthView.container,\n true\n );\n\n util.forEach(this.elements, function(el) {\n el.style.display = 'none';\n });\n};\n\n/**\n * Show element blocks\n */\nMonthResizeGuide.prototype._showScheduleBlocks = function() {\n util.forEach(this.elements, function(el) {\n el.style.display = 'block';\n });\n};\n\n/**\n * Drag start event handler\n * @param {object} dragStartEvent - schedule data from MonthResize\n */\nMonthResizeGuide.prototype._onDragStart = function(dragStartEvent) {\n this.guide = new MonthGuide({\n isResizeMode: true\n }, this.monthResize.monthView);\n\n this._hideScheduleBlocks(dragStartEvent.model.cid());\n\n this.guide.start(dragStartEvent);\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\n/**\n * Drag event handler\n * @param {object} dragEvent - event data from MonthCreation\n */\nMonthResizeGuide.prototype._onDrag = function(dragEvent) {\n this.guide.update(dragEvent.x, dragEvent.y);\n};\n\n/**\n * Drag end event handler\n */\nMonthResizeGuide.prototype._onDragEnd = function() {\n this._showScheduleBlocks();\n\n this.guide.destroy();\n this.elements = this.guide = null;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing-x'));\n }\n};\n\nmodule.exports = MonthResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/month/resizeGuide.js\n// module id = 86\n// module chunks = 0","/**\n * @fileoverview Allday event click event hander module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeClick(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.timeGridView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nTimeClick.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits TimeClick#clickEvent\n */\nTimeClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n schedulesCollection = this.baseController.schedules;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n schedulesCollection.doWhenHas(domutil.getData(blockElement, 'id'), function(schedule) {\n /**\n * @events TimeClick#clickSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance\n * @property {MouseEvent} event - MouseEvent object\n */\n self.fire('clickSchedule', {\n schedule: schedule,\n event: clickEvent.originEvent\n });\n });\n};\n\nutil.CustomEvents.mixin(TimeClick);\n\nmodule.exports = TimeClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/click.js\n// module id = 87\n// module chunks = 0","/**\n * @fileoverview Dayname click event hander module\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayName} [dayNameView] - DayName view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction DayNameClick(dragHandler, dayNameView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayName}\n */\n this.dayNameView = dayNameView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayNameClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.dayNameView = this.baseController = this.dragHandler = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {string} - model id\n */\nDayNameClick.prototype.checkExpectCondition = function(target) {\n var container = domutil.closest(target, config.classname('.dayname-date-area'));\n\n if (!container) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Click event hander\n * @param {object} clickEvent - click event from {@link Drag}\n * @emits DayNameClick#clickDayname\n */\nDayNameClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n daynameView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.dayname'));\n\n if (!daynameView || !blockElement) {\n return;\n }\n\n /**\n * @events DayNameClick#clickDayname\n * @type {object}\n * @property {string} date - click date\n */\n self.fire('clickDayname', {\n date: domutil.getData(blockElement, 'date')\n });\n};\n\nutil.CustomEvents.mixin(DayNameClick);\n\nmodule.exports = DayNameClick;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/clickDayname.js\n// module id = 88\n// module chunks = 0","/**\n * @fileoverview Handling creation events from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar array = require('../../common/array');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar TimeCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeCreation(dragHandler, timeGridView, baseController) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * TimeGrid view instance.\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {TimeCreationGuide}\n */\n this.guide = new TimeCreationGuide(this);\n\n /**\n * Temporary function for single drag session's calc.\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * Temporary function for drag start data cache.\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n}\n\n/**\n * Destroy method\n */\nTimeCreation.prototype.destroy = function() {\n var timeGridView = this.timeGridView;\n\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (timeGridView && timeGridView.container) {\n domevent.off(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this.guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {(boolean|Time)} - return Time view instance when satiate condition.\n */\nTimeCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target),\n matches;\n\n if (cssClass === config.classname('time-date-schedule-block-wrap')) {\n target = target.parentNode;\n cssClass = domutil.getClass(target);\n }\n\n matches = cssClass.match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, matches[1]);\n};\n\n/**\n * Drag#dragStart event handler.\n * @emits TimeCreation#timeCreationDragstart\n * @param {object} dragStartEventData - Drag#dragStart event data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDragStart = function(dragStartEventData, overrideEventName, revise) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n getScheduleDataFunc,\n eventData;\n\n if (!result) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(result);\n eventData = this._dragStart = getScheduleDataFunc(dragStartEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * @event TimeCreation#timeCreationDragstart\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDragstart', eventData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeCreation#timeCreationDrag\n * @param {object} dragEventData - event data from Drag#drag.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise event data before emit.\n */\nTimeCreation.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n eventData;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n eventData = getScheduleDataFunc(dragEventData.originEvent);\n\n if (revise) {\n revise(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDrag\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n */\n this.fire(overrideEventName || 'timeCreationDrag', eventData);\n};\n\n/**\n * @fires TimeCreation#beforeCreateSchedule\n * @param {object} eventData - event data object from TimeCreation#timeCreationDragend\n * or TimeCreation#timeCreationClick\n */\nTimeCreation.prototype._createSchedule = function(eventData) {\n var relatedView = eventData.relatedView,\n createRange = eventData.createRange,\n nearestGridTimeY = eventData.nearestGridTimeY,\n baseDate,\n dateStart,\n dateEnd,\n start,\n end;\n\n if (!createRange) {\n createRange = [\n nearestGridTimeY,\n nearestGridTimeY + datetime.millisecondsFrom('minutes', 30)\n ];\n }\n\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.end(baseDate);\n start = Math.max(dateStart.getTime(), createRange[0]);\n end = Math.min(dateEnd.getTime(), createRange[1]);\n\n /**\n * @event TimeCreation#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - whether schedule is fired in allday view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {TimeCreationGuide} guide - TimeCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n isAllDay: false,\n start: new TZDate(start),\n end: new TZDate(end),\n guide: this.guide,\n triggerEventName: eventData.triggerEvent\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeCreation#timeCreationDragend\n * @param {object} dragEndEventData - event data from Drag#dragend\n */\nTimeCreation.prototype._onDragEnd = function(dragEndEventData) {\n var self = this,\n dragStart = this._dragStart;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n /**\n * Function for manipulate event data before firing event\n * @param {object} eventData - event data\n */\n function reviseFunc(eventData) {\n var range = [\n dragStart.nearestGridTimeY,\n eventData.nearestGridTimeY\n ].sort(array.compare.num.asc);\n range[1] += datetime.millisecondsFrom('hour', 0.5);\n\n eventData.createRange = range;\n\n self._createSchedule(eventData);\n }\n\n /**\n * @event TimeCreation#timeCreationDragend\n * @type {object}\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {number[]} createRange - milliseconds range between drag start and end to create.\n */\n this._onDrag(dragEndEventData, 'timeCreationDragend', reviseFunc);\n\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Drag#click event handler\n * @emits TimeCreation#timeCreationClick\n * @param {object} clickEventData - event data from Drag#click.\n */\nTimeCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var condResult, getScheduleDataFunc, eventData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd\n }, this);\n\n condResult = this.checkExpectedCondition(clickEventData.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('timeCreationClick', eventData);\n self._createSchedule(eventData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n this._dragStart = this._getScheduleDataFunc = null;\n};\n\n/**\n * Dblclick event handler\n * @param {MouseEvent} e - Native MouseEvent\n */\nTimeCreation.prototype._onDblClick = function(e) {\n var condResult, getScheduleDataFunc, eventData;\n\n condResult = this.checkExpectedCondition(e.target);\n if (!condResult) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(condResult);\n eventData = getScheduleDataFunc(e);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n\n this._requestOnClick = false;\n};\n\ntimeCore.mixin(TimeCreation);\nutil.CustomEvents.mixin(TimeCreation);\n\nmodule.exports = TimeCreation;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/creation.js\n// module id = 89\n// module chunks = 0","/**\n * @fileoverview Module for Time.Creation effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar TZDate = require('../../common/timezone').Date;\nvar MIN30 = (datetime.MILLISECONDS_PER_MINUTES * 30);\n\n/**\n * Class for Time.Creation dragging effect.\n * @constructor\n * @param {TimeCreation} timeCreation - instance of TimeCreation.\n */\nfunction TimeCreationGuide(timeCreation) {\n /**\n * Guide element for creation effect.\n * @type {HTMLElement}\n */\n this.guideElement = global.document.createElement('div');\n\n /**\n * @type {HTMLDivElement}\n */\n this.guideTimeElement = domutil.appendHTMLElement(\n 'span',\n this.guideElement,\n config.classname('time-guide-creation-label')\n );\n\n domutil.addClass(this.guideElement, config.classname('time-guide-creation'));\n\n /**\n * @type {TimeCreation}\n */\n this.timeCreation = timeCreation;\n\n /**\n * @type {array}\n */\n this._styleUnit = null;\n\n /**\n * @type {array}\n */\n this._styleStart = null;\n\n /**\n * @type {function}\n */\n this._styleFunc = null;\n\n timeCreation.on({\n timeCreationDragstart: this._createGuideElement,\n timeCreationDrag: this._onDrag,\n timeCreationClick: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method.\n */\nTimeCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.timeCreation.off(this);\n this.timeCreation = this._styleUnit = this._styleStart =\n this._styleFunc = this.guideElement = this.guideTimeElement = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeCreationGuide.prototype.clearGuideElement = function() {\n var guideElement = this.guideElement,\n timeElement = this.guideTimeElement;\n\n domutil.remove(guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.display = 'none';\n guideElement.style.top = '';\n guideElement.style.height = '';\n timeElement.innerHTML = '';\n });\n};\n\n/**\n * Refresh guide element\n * @param {number} top - The number of guide element's style top\n * @param {number} height - The number of guide element's style height\n * @param {Date} start - start time of schedule to create\n * @param {Date} end - end time of schedule to create\n * @param {boolean} bottomLabel - is label need to render bottom of guide element?\n */\nTimeCreationGuide.prototype._refreshGuideElement = function(top, height, start, end, bottomLabel) {\n var guideElement = this.guideElement;\n var timeElement = this.guideTimeElement;\n\n guideElement.style.top = top + 'px';\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n\n timeElement.innerHTML = datetime.format(new TZDate(start), 'HH:mm') +\n ' - ' + datetime.format(new TZDate(end), 'HH:mm');\n\n if (bottomLabel) {\n domutil.removeClass(timeElement, config.classname('time-guide-bottom'));\n } else {\n domutil.addClass(timeElement, config.classname('time-guide-bottom'));\n }\n};\n\n/**\n * Get unit data of calculating new style of guide element by user interaction\n * @param {Time} relatedView - time view instance related with schedule\n * @returns {array} unit data.\n */\nTimeCreationGuide.prototype._getUnitData = function(relatedView) {\n var viewOpt = relatedView.options,\n viewHeight = relatedView.getViewBound().height,\n hourLength = viewOpt.hourEnd - viewOpt.hourStart,\n todayStart = datetime.parse(viewOpt.ymd),\n todayEnd = datetime.end(todayStart);\n\n todayStart.setHours(0, 0, 0, 0);\n todayStart.setHours(viewOpt.hourStart);\n\n // [0] height of view\n // [1] hour length of view\n // [2] start time of view\n // [3] end time of view\n // [4] height of view for one hour\n return [\n viewHeight,\n hourLength,\n Number(todayStart),\n Number(todayEnd),\n viewHeight / hourLength\n ];\n};\n\n/**\n * Applying limitation to supplied data and return it.\n * @param {number} top - top pixel of guide element\n * @param {number} height - height pixel of guide element\n * @param {number} start - relative time value of dragstart point\n * @param {number} end - relative time value of dragend point\n * @returns {array} limited style data\n */\nTimeCreationGuide.prototype._limitStyleData = function(top, height, start, end) {\n var unitData = this._styleUnit;\n\n top = common.limit(top, [0], [unitData[0]]);\n height = common.limit(top + height, [0], [unitData[0]]) - top;\n start = common.limit(start, [unitData[2]], [unitData[3]]);\n end = common.limit(end, [unitData[2]], [unitData[3]]);\n\n return [top, height, start, end];\n};\n\n/**\n * Get function to calculate guide element UI data from supplied units\n * @param {number} viewHeight - total height of view's container element\n * @param {number} hourLength - hour length that rendered in time view\n * @param {number} todayStart - time for view's start date\n * @returns {function} UI data calculator function\n */\nTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n var todayEnd = Number(datetime.end(new TZDate(Number(todayStart))));\n\n /**\n * Get top, time value from schedule dat\n * @param {object} scheduleData - schedule data object\n * @returns {number[]} top, time\n */\n function getStyleData(scheduleData) {\n var gridY = scheduleData.nearestGridY,\n gridTimeY = scheduleData.nearestGridTimeY,\n top, time;\n\n top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n time = common.limit(gridTimeY, [todayStart], [todayEnd]);\n\n return [top, time];\n }\n\n return getStyleData;\n};\n\n/**\n * DragStart event handler\n * @param {object} dragStartEventData - dragStart schedule data.\n */\nTimeCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var relatedView = dragStartEventData.relatedView,\n unitData, styleFunc, styleData, result;\n\n unitData = this._styleUnit = this._getUnitData(relatedView);\n styleFunc = this._styleFunc = this._getStyleDataFunc.apply(this, unitData);\n styleData = this._styleStart = styleFunc(dragStartEventData);\n\n result = this._limitStyleData(\n styleData[0],\n (unitData[4] / 2),\n styleData[1],\n (styleData[1] + MIN30)\n );\n\n this._refreshGuideElement.apply(this, result);\n\n relatedView.container.appendChild(this.guideElement);\n};\n\n/**\n * Drag event handler\n * @param {object} dragEventData - drag schedule data.\n */\nTimeCreationGuide.prototype._onDrag = function(dragEventData) {\n var styleFunc = this._styleFunc,\n unitData = this._styleUnit,\n startStyle = this._styleStart,\n refreshGuideElement = this._refreshGuideElement.bind(this),\n heightOfHalfHour,\n endStyle,\n result;\n\n if (!styleFunc || !unitData || !startStyle) {\n return;\n }\n\n heightOfHalfHour = (unitData[4] / 2);\n endStyle = styleFunc(dragEventData);\n\n if (endStyle[0] > startStyle[0]) {\n result = this._limitStyleData(\n startStyle[0],\n (endStyle[0] - startStyle[0]) + heightOfHalfHour,\n startStyle[1],\n (endStyle[1] + MIN30)\n );\n } else {\n result = this._limitStyleData(\n endStyle[0],\n (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n endStyle[1],\n (startStyle[1] + MIN30)\n );\n result.push(true);\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n refreshGuideElement.apply(null, result);\n });\n};\n\nmodule.exports = TimeCreationGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/creationGuide.js\n// module id = 90\n// module chunks = 0","/**\n * @fileoverview Handling move schedules from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeMoveGuide = require('./moveGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeMove(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeMoveGuide}\n */\n this._guide = new TimeMoveGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method.\n */\nTimeMove.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * Check target element is expected condition for activate this plugins.\n * @param {HTMLElement} target - The element to check\n * @returns {boolean|object} - return object when satiate condition.\n */\nTimeMove.prototype.checkExpectCondition = function(target) {\n if (!domutil.closest(target, config.classname('.time-schedule'))) {\n return false;\n }\n\n return this._getTimeView(target);\n};\n\n/**\n * Get Time view container from supplied element.\n * @param {HTMLElement} target - element to find time view container.\n * @returns {object|boolean} - return time view instance when finded.\n */\nTimeMove.prototype._getTimeView = function(target) {\n var container = domutil.closest(target, config.classname('.time-date')),\n matches;\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeMove#timeMoveDragstart\n * @param {object} dragStartEventData - Drag#dragStart schedule data.\n */\nTimeMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData,\n ctrl = this.baseController,\n targetModelID,\n targetModel;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n targetModel = ctrl.schedules.items[targetModelID];\n\n if (targetModel.isReadOnly) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n model: targetModel\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeMove#timeMoveDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {Schedule} model - model instance\n */\n this.fire('timeMoveDragstart', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveDrag\n * @param {MouseEvent} dragEventData - mousemove event object\n * @param {string} [overrideEventName] - name of emitting event to override.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeMove.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n timeView = this._getTimeView(dragEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n if (!timeView || !getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n currentView: timeView,\n targetModelID: dragStart.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeMove#timeMoveDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeMoveDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeMove#timeMoveDragend\n */\nTimeMove.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n dateDiff = 0,\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n currentView = scheduleData.currentView,\n scheduleDuration,\n dateStart,\n dateEnd,\n newStarts,\n newEnds,\n baseDate;\n\n if (!schedule || !currentView) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.end(baseDate);\n newStarts = new TZDate(schedule.getStarts().getTime() + timeDiff);\n newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n scheduleDuration = schedule.duration();\n\n if (currentView) {\n dateDiff = currentView.getDate() - relatedView.getDate();\n }\n\n if (newStarts < dateStart) {\n newStarts = new TZDate(dateStart.getTime());\n newEnds = new TZDate(newStarts.getTime() + scheduleDuration.getTime());\n } else if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd.getTime());\n newStarts = new TZDate(newEnds.getTime() - scheduleDuration.getTime());\n }\n\n newStarts = new TZDate(newStarts.getTime() + dateDiff);\n newEnds = new TZDate(newEnds.getTime() + dateDiff);\n\n /**\n * @event TimeMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * @emits TimeMove#timeMoveDragend\n * @param {MouseEvent} dragEndEventData - mouseup mouse event object.\n */\nTimeMove.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n currentView = this._getTimeView(dragEndEventData.target),\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n currentView: currentView,\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeMove#timeMoveDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {Time} currentView - time view instance related with current mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeMoveDragend', scheduleData);\n};\n\n/**\n * @emits TimeMove#timeMoveClick\n * @param {MouseEvent} clickEventData - click mouse event object.\n */\nTimeMove.prototype._onClick = function(clickEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(clickEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n /**\n * @event TimeMove#timeMoveClick\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeMoveClick', scheduleData);\n};\n\ntimeCore.mixin(TimeMove);\nutil.CustomEvents.mixin(TimeMove);\n\nmodule.exports = TimeMove;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/move.js\n// module id = 91\n// module chunks = 0","/**\n * @fileoverview Module for Time.Move effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\nvar FloatingLayer = require('../../common/floatingLayer');\nvar tmpl = require('../../view/template/week/timeMoveGuide.hbs');\nvar TZDate = require('../../common/timezone').Date;\nvar Schedule = require('../../model/schedule');\n\n/**\n * Class for Time.Move effect.\n * @constructor\n * @param {TimeMove} timeMove - The instance of TimeMove.\n */\nfunction TimeMoveGuide(timeMove) {\n /**\n * @type {FloatingLayer}\n */\n this._guideLayer = null;\n\n /**\n * @Type {Schedule}\n */\n this._model = null;\n\n /**\n * @type {object}\n */\n this._lastDrag = null;\n\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeMove}\n */\n this.timeMove = timeMove;\n\n /**\n * @type {HTMLElement}\n */\n this._container = null;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n timeMove.on({\n 'timeMoveDragstart': this._onDragStart,\n 'timeMoveDrag': this._onDrag,\n 'timeMoveDragend': this._clearGuideElement,\n 'timeMoveClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeMove.off(this);\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n this.guideElement = this.timeMove = this._container = this._guideLayer = this._lastDrag =\n this._getTopFunc = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeMoveGuide.prototype._clearGuideElement = function() {\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('dragging'));\n }\n if (this._guideLayer) {\n this._guideLayer.destroy();\n }\n\n this._showOriginScheduleBlocks();\n\n this.guideElement = this._getTopFunc = this._guideLayer = this._model = this._lastDrag =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Dim element blocks\n * @param {number} modelID - Schedule model instance ID\n */\nTimeMoveGuide.prototype._hideOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.addClass(this.guideElement, className);\n }\n};\n\n/**\n * Show element blocks\n */\nTimeMoveGuide.prototype._showOriginScheduleBlocks = function() {\n var className = config.classname('time-date-schedule-block-dragging-dim');\n if (this.guideElement) {\n domutil.removeClass(this.guideElement, className);\n }\n};\n\nTimeMoveGuide.prototype._getHighlightColorModel = function(model) {\n return {\n bgColor: model.color\n };\n};\n\n/**\n * Refresh guide element\n * @param {string} top - guide element's style top.\n * @param {Schedule} model - updated model\n */\nTimeMoveGuide.prototype._refreshGuideElement = function(top, model) {\n var self = this;\n\n reqAnimFrame.requestAnimFrame(function() {\n if (!self._guideLayer) {\n return;\n }\n self._guideLayer.setPosition(0, top);\n self._guideLayer.setContent(tmpl({model: model}));\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var guideElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n );\n\n if (!guideElement) {\n return;\n }\n\n this._startTopPixel = parseFloat(guideElement.style.top);\n this._startGridY = dragStartEventData.nearestGridY;\n this.guideElement = guideElement;\n this._container = dragStartEventData.relatedView.container;\n\n this._model = util.extend(\n Schedule.create(dragStartEventData.model),\n dragStartEventData.model,\n this._getHighlightColorModel(dragStartEventData.model)\n );\n this._lastDrag = dragStartEventData;\n\n this._resetGuideLayer();\n this._hideOriginScheduleBlocks();\n};\n\n/**\n * TimeMove#timeMoveDrag event handler\n * @param {object} dragEventData - drag event data\n */\nTimeMoveGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.currentView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n guideHeight = parseFloat(this.guideElement.style.height),\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n timeDiff = dragEventData.nearestGridTimeY - this._lastDrag.nearestGridTimeY,\n bottomLimit,\n top;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('dragging'));\n }\n\n if (this._container !== timeView.container) {\n this._container = timeView.container;\n this._resetGuideLayer();\n }\n\n top = this._startTopPixel + gridYOffsetPixel;\n bottomLimit = viewHeight - guideHeight;\n\n top = Math.max(top, 0);\n top = Math.min(top, bottomLimit);\n\n // update time\n this._model.start = new TZDate(this._model.getStarts().getTime() + timeDiff);\n this._model.end = new TZDate(this._model.getEnds().getTime() + timeDiff);\n this._lastDrag = dragEventData;\n\n this._refreshGuideElement(top, this._model);\n};\n\nTimeMoveGuide.prototype._resetGuideLayer = function() {\n if (this._guideLayer) {\n this._guideLayer.destroy();\n this._guideLayer = null;\n }\n this._guideLayer = new FloatingLayer(null, this._container);\n this._guideLayer.setSize(this._container.getBoundingClientRect().width, this.guideElement.style.height);\n this._guideLayer.setPosition(0, this.guideElement.style.top);\n this._guideLayer.setContent(tmpl({model: this._model}));\n this._guideLayer.show();\n};\n\nmodule.exports = TimeMoveGuide;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/moveGuide.js\n// module id = 92\n// module chunks = 0","/**\n * @fileoverview Handling resize schedules from drag handler and time grid view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar timeCore = require('./core');\nvar TimeResizeGuide = require('./resizeGuide');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes timeCore\n * @mixes util.CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {TimeGrid} [timeGridView] - TimeGrid view instance.\n * @param {Base} [baseController] - Base controller instance.\n */\nfunction TimeResize(dragHandler, timeGridView, baseController) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {TimeGrid}\n */\n this.timeGridView = timeGridView;\n\n /**\n * @type {Base}\n */\n this.baseController = baseController;\n\n /**\n * @type {function}\n */\n this._getScheduleDataFunc = null;\n\n /**\n * @type {object}\n */\n this._dragStart = null;\n\n /**\n * @type {TimeResizeGuide}\n */\n this._guide = new TimeResizeGuide(this);\n\n dragHandler.on('dragStart', this._onDragStart, this);\n}\n\n/**\n * Destroy method\n */\nTimeResize.prototype.destroy = function() {\n this._guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.timeGridView = this.baseController =\n this._getScheduleDataFunc = this._dragStart = this._guide = null;\n};\n\n/**\n * @param {HTMLElement} target - element to check condition.\n * @returns {object|boolean} - return time view instance or false\n */\nTimeResize.prototype.checkExpectCondition = function(target) {\n var container,\n matches;\n\n if (!domutil.hasClass(target, config.classname('time-resize-handle'))) {\n return false;\n }\n\n container = domutil.closest(target, config.classname('.time-date'));\n\n if (!container) {\n return false;\n }\n\n matches = domutil.getClass(container).match(config.time.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.timeGridView.children.items, Number(matches[1]));\n};\n\n/**\n * @emits TimeResize#timeResizeDragstart\n * @param {object} dragStartEventData - event data of Drag#dragstart\n */\nTimeResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block')),\n getScheduleDataFunc,\n scheduleData;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: domutil.getData(blockElement, 'id')\n }\n );\n\n this.dragHandler.on({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeDragstart\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with mouse position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire('timeResizeDragstart', scheduleData);\n};\n\n/**\n * Drag#drag event handler\n * @emits TimeResize#timeResizeDrag\n * @param {object} dragEventData - event data of Drag#drag custom event.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n * @param {function} [revise] - supply function for revise schedule data before emit.\n */\nTimeResize.prototype._onDrag = function(dragEventData, overrideEventName, revise) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n startScheduleData = this._dragStart,\n scheduleData;\n\n if (!getScheduleDataFunc || !startScheduleData) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEventData.originEvent, {\n targetModelID: startScheduleData.targetModelID\n });\n\n if (revise) {\n revise(scheduleData);\n }\n\n /**\n * @event TimeResize#timeResizeDrag\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n */\n this.fire(overrideEventName || 'timeResizeDrag', scheduleData);\n};\n\n/**\n * Update model instance by dragend event results.\n * @fires TimeResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from TimeResize#timeResizeDragend\n */\nTimeResize.prototype._updateSchedule = function(scheduleData) {\n var ctrl = this.baseController,\n modelID = scheduleData.targetModelID,\n range = scheduleData.nearestRange,\n timeDiff = range[1] - range[0],\n schedule = ctrl.schedules.items[modelID],\n relatedView = scheduleData.relatedView,\n dateEnd,\n newEnds,\n baseDate;\n\n if (!schedule) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n\n baseDate = new TZDate(relatedView.getDate());\n dateEnd = datetime.end(baseDate);\n newEnds = new TZDate(schedule.getEnds().getTime() + timeDiff);\n\n if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd.getTime());\n }\n\n if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n newEnds = new TZDate(schedule.getStarts().getTime() + datetime.millisecondsFrom('minutes', 30));\n }\n\n /**\n * @event TimeResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule instance to update\n * @property {Date} start - start time to update\n * @property {Date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * Drag#dragEnd event handler\n * @emits TimeResize#timeResizeDragend\n * @param {MouseEvent} dragEndEventData - Mouse event of Drag#dragEnd custom event.\n */\nTimeResize.prototype._onDragEnd = function(dragEndEventData) {\n var getScheduleDataFunc = this._getScheduleDataFunc,\n dragStart = this._dragStart,\n scheduleData;\n\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n if (!getScheduleDataFunc || !dragStart) {\n return;\n }\n\n scheduleData = getScheduleDataFunc(dragEndEventData.originEvent, {\n targetModelID: dragStart.targetModelID\n });\n\n scheduleData.range = [\n dragStart.timeY,\n scheduleData.timeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY + datetime.millisecondsFrom('hour', 0.5)\n ];\n\n this._updateSchedule(scheduleData);\n\n /**\n * @event TimeResize#timeResizeDragend\n * @type {object}\n * @property {HTMLElement} target - current target in mouse event object.\n * @property {Time} relatedView - time view instance related with drag start position.\n * @property {MouseEvent} originEvent - mouse event object.\n * @property {number} mouseY - mouse Y px mouse event.\n * @property {number} gridY - grid Y index value related with mouseY value.\n * @property {number} timeY - milliseconds value of mouseY points.\n * @property {number} nearestGridY - nearest grid index related with mouseY value.\n * @property {number} nearestGridTimeY - time value for nearestGridY.\n * @property {string} targetModelID - The model unique id emitted move schedule.\n * @property {number[]} range - milliseconds range between drag start and end.\n * @property {number[]} nearestRange - milliseconds range related with nearestGridY between start and end.\n */\n this.fire('timeResizeDragend', scheduleData);\n\n this._getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * @emits TimeResize#timeResizeClick\n */\nTimeResize.prototype._onClick = function() {\n this.dragHandler.off({\n drag: this._onDrag,\n dragEnd: this._onDragEnd,\n click: this._onClick\n }, this);\n\n /**\n * @event TimeResize#timeResizeClick\n */\n this.fire('timeResizeClick');\n};\n\ntimeCore.mixin(TimeResize);\nutil.CustomEvents.mixin(TimeResize);\n\nmodule.exports = TimeResize;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/resize.js\n// module id = 93\n// module chunks = 0","/**\n * @fileoverview Module for Time.Resize effect while dragging.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar ratio = require('../../common/common').ratio;\n\n/**\n * Class for Time.Resize effect.\n * @constructor\n * @param {TimeResize} timeResize - the instance of TimeResize handler.\n */\nfunction TimeResizeGuide(timeResize) {\n /**\n * @type {HTMLElement}\n */\n this.guideElement = null;\n\n /**\n * @type {TimeResize}\n */\n this.timeResize = timeResize;\n\n /**\n * @type {function}\n */\n this._getTopFunc = null;\n\n /**\n * @type {HTMLElement}\n */\n this._originScheduleElement = null;\n\n /**\n * @type {number}\n */\n this._startTopPixel = 0;\n\n /**\n * @type {number}\n */\n this._startHeightPixel = 0;\n\n /**\n * @type {number}\n */\n this._startGridY = 0;\n\n timeResize.on({\n 'timeResizeDragstart': this._onDragStart,\n 'timeResizeDrag': this._onDrag,\n 'timeResizeDragend': this._clearGuideElement,\n 'timeResizeClick': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nTimeResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.timeResize.off(this);\n this.guideElement = this.timeResize = this._getTopFunc =\n this._originScheduleElement = this._startHeightPixel =\n this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Clear guide element.\n */\nTimeResizeGuide.prototype._clearGuideElement = function() {\n var guideElement = this.guideElement,\n originElement = this._originScheduleElement;\n\n if (!util.browser.msie) {\n domutil.removeClass(global.document.body, config.classname('resizing'));\n }\n\n if (originElement) {\n originElement.style.display = 'block';\n }\n\n domutil.remove(guideElement);\n\n this.guideElement = this._getTopFunc = this._originScheduleElement =\n this._startHeightPixel = this._startGridY = this._startTopPixel = null;\n};\n\n/**\n * Refresh guide element\n * @param {string} height - guide element's style height.\n */\nTimeResizeGuide.prototype._refreshGuideElement = function(height) {\n var guideElement = this.guideElement;\n\n if (!guideElement) {\n return;\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.height = height + 'px';\n guideElement.style.display = 'block';\n });\n};\n\n/**\n * TimeMove#timeMoveDragstart event handler\n * @param {object} dragStartEventData - dragstart event data\n */\nTimeResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var originElement = domutil.closest(\n dragStartEventData.target,\n config.classname('.time-date-schedule-block')\n ),\n guideElement;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing'));\n }\n\n if (!originElement) {\n return;\n }\n\n this._startGridY = dragStartEventData.nearestGridY;\n this._startHeightPixel = parseFloat(originElement.style.height);\n this._startTopPixel = parseFloat(originElement.style.top);\n\n this._originScheduleElement = originElement;\n guideElement = this.guideElement = originElement.cloneNode(true);\n domutil.addClass(guideElement, config.classname('time-guide-resize'));\n\n originElement.style.display = 'none';\n dragStartEventData.relatedView.container.appendChild(guideElement);\n};\n\n/**\n * @param {object} dragEventData - event data from Drag#drag.\n */\nTimeResizeGuide.prototype._onDrag = function(dragEventData) {\n var timeView = dragEventData.relatedView,\n viewOptions = timeView.options,\n viewHeight = timeView.getViewBound().height,\n hourLength = viewOptions.hourEnd - viewOptions.hourStart,\n guideElement = this.guideElement,\n guideTop = parseFloat(guideElement.style.top),\n gridYOffset = dragEventData.nearestGridY - this._startGridY,\n // hourLength : viewHeight = gridYOffset : X;\n gridYOffsetPixel = ratio(hourLength, viewHeight, gridYOffset),\n minHeight,\n maxHeight,\n height;\n\n height = (this._startHeightPixel + gridYOffsetPixel);\n // at least large than 30min from schedule start time.\n minHeight = guideTop + ratio(hourLength, viewHeight, 0.5);\n minHeight -= this._startTopPixel;\n // smaller than 24h\n maxHeight = viewHeight - guideTop;\n\n height = Math.max(height, minHeight);\n height = Math.min(height, maxHeight);\n\n this._refreshGuideElement(height);\n};\n\nmodule.exports = TimeResizeGuide;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/handler/time/resizeGuide.js\n// module id = 94\n// module chunks = 0","/**\n * @fileoverview Layout view. wrap all view containers at outside.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar Collection = require('../common/collection');\nvar View = require('./view');\n\n/**\n * Layout view for toggle each child view. It will controlled via navigation UI.\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container Container element to use layout view.\n */\nfunction Layout(container) {\n container = domutil.appendHTMLElement('div', container, config.classname('layout'));\n\n /**\n * @type {HTMLElement}\n */\n this.container = container;\n\n /*eslint-disable*/\n /**\n * @type {Collection} Child view collection.\n */\n this.children = new Collection(function(childView) {\n return childView.viewName;\n });\n /* eslint-enable*/\n}\n\nutil.inherit(Layout, View);\n\n/**\n * Clear child views.\n */\nLayout.prototype.clear = function() {\n this.children.each(function(childView) {\n childView.destroy();\n });\n\n this.children.clear();\n this.container.innerHTML = '';\n};\n\n/**\n * Remove child view.\n * @override\n * @param {(string|View)} viewName - name of view or instance.\n */\nLayout.prototype.removeChild = function(viewName) {\n this.children.remove(viewName);\n};\n\n/**\n * Toggle child views.\n * @param {string} viewName - Name of view.\n */\nLayout.prototype.toggleChildView = function(viewName) {\n var container,\n prefix = ['add', 'remove'],\n flag;\n\n this.children.each(function(childView) {\n container = childView.container;\n flag = Number(childView.viewName === viewName);\n domutil[prefix[flag] + 'Class'](container, config.classname('hidden'));\n });\n};\n\nmodule.exports = Layout;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/layout.js\n// module id = 95\n// module chunks = 0","/**\n * @fileoverview Month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n tmpl = require('./month.hbs'),\n View = require('../view'),\n VLayout = require('../..//common/vlayout'),\n WeekdayInMonth = require('./weekdayInMonth');\nvar mmin = Math.min;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {function} [options.scheduleFilter] - schedule filter\n * @param {number} [options.startDayOfWeek=0] - start day of week\n * @param {string} [options.renderMonth='2015-12'] - render month\n * @param {string[]} [options.daynames] - daynames to use upside of month view\n * @param {HTMLElement} container - container element\n * @param {Base.Month} controller - controller instance\n */\nfunction Month(options, container, controller) {\n View.call(this, container);\n\n /**\n * @type {Base.Month}\n */\n this.controller = controller;\n\n /**\n * @type {VLayout}\n */\n this.vLayout = new VLayout({\n panels: [\n {height: 42},\n {autoHeight: true}\n ]\n }, container);\n\n /**\n * @type {string}\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n startDayOfWeek: 0,\n renderMonth: '2018-01',\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n narrowWeekend: false,\n visibleWeeksCount: null,\n grid: {\n header: {\n height: 34\n },\n footer: {\n height: 34\n }\n }\n }, options);\n\n this.options.grid.header = util.extend({\n height: 34\n }, util.pick(options, 'grid', 'header'));\n this.options.grid.footer = util.extend({\n height: 34\n }, util.pick(options, 'grid', 'footer'));\n\n /**\n * horizontal grid information\n * @type {Object}\n */\n this.grids = datetime.getGridLeftAndWidth(\n this.options.daynames.length,\n this.options.narrowWeekend,\n this.options.startDayOfWeek);\n}\n\nutil.inherit(Month, View);\n\n/**\n * Name of view. for managing subview at layout view\n * @type {string}\n */\nMonth.prototype.viewName = 'month';\n\n/**\n * Get calendar array by supplied date\n * @param {string} renderMonthStr - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n * @returns {array.} calendar array\n */\nMonth.prototype._getMonthCalendar = function(renderMonthStr) {\n var date = datetime.parse(renderMonthStr) || datetime.parse(renderMonthStr + '-01');\n var startDayOfWeek = this.options.startDayOfWeek || 0;\n var visibleWeeksCount = mmin(this.options.visibleWeeksCount || 0, 6);\n var workweek = this.options.workweek || false;\n var datetimeOptions, calendar;\n\n if (this.options.visibleWeeksCount) {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: false,\n visibleWeeksCount: visibleWeeksCount,\n workweek: workweek\n };\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: true,\n workweek: workweek\n };\n }\n\n calendar = datetime.arr2dCalendar(date, datetimeOptions);\n\n return calendar;\n};\n\n/**\n * Create children view (week) and add children\n * @param {HTMLElement} container - container element to render weeks\n * @param {array.} calendar - calendar array from datetime#arr2dCalendar\n */\nMonth.prototype._renderChildren = function(container, calendar) {\n var self = this;\n var weekCount = calendar.length;\n var heightPercent = 100 / weekCount;\n var opt = this.options;\n var renderMonth = opt.renderMonth;\n var narrowWeekend = opt.narrowWeekend;\n var startDayOfWeek = opt.startDayOfWeek;\n var visibleWeeksCount = opt.visibleWeeksCount;\n var visibleScheduleCount = opt.visibleScheduleCount;\n var gridOption = opt.grid;\n\n container.innerHTML = '';\n this.children.clear();\n\n util.forEach(calendar, function(weekArr) {\n var start = new TZDate(Number(weekArr[0])),\n end = new TZDate(Number(weekArr[weekArr.length - 1])),\n weekdayViewContainer,\n weekdayView;\n\n weekdayViewContainer = domutil.appendHTMLElement(\n 'div', container, config.classname('month-week-item'));\n\n weekdayView = new WeekdayInMonth({\n renderMonth: renderMonth,\n heightPercent: heightPercent,\n renderStartDate: datetime.format(start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(end, 'YYYY-MM-DD'),\n narrowWeekend: narrowWeekend,\n startDayOfWeek: startDayOfWeek,\n visibleWeeksCount: visibleWeeksCount,\n visibleScheduleCount: visibleScheduleCount,\n grid: gridOption\n }, weekdayViewContainer);\n\n self.addChild(weekdayView);\n });\n};\n\n/**\n * Render month view\n * @override\n */\nMonth.prototype.render = function() {\n var opt = this.options,\n vLayout = this.vLayout,\n controller = this.controller,\n daynames = opt.daynames,\n workweek = opt.workweek,\n calendar = this._getMonthCalendar(opt.renderMonth),\n scheduleFilter = opt.scheduleFilter,\n grids,\n daynameViewModel,\n baseViewModel;\n\n grids = this.grids = datetime.getGridLeftAndWidth(\n opt.daynames.length,\n opt.narrowWeekend,\n opt.startDayOfWeek\n );\n\n daynameViewModel = util.map(\n util.range(opt.startDayOfWeek, 7).concat(util.range(7)).slice(0, 7),\n function(day, index) {\n return {\n day: day,\n label: daynames[day],\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0\n };\n }\n );\n\n if (workweek) {\n grids = this.grids = datetime.getGridLeftAndWidth(5, opt.narrowWeekend, opt.startDayOfWeek, workweek);\n\n daynameViewModel = util.filter(daynameViewModel, function(daynameModel) {\n return !datetime.isWeekend(daynameModel.day);\n });\n\n util.forEach(daynameViewModel, function(daynameModel, index) {\n daynameModel.width = grids[index] ? grids[index].width : 0;\n daynameModel.left = grids[index] ? grids[index].left : 0;\n });\n }\n\n baseViewModel = {\n daynames: daynameViewModel\n };\n\n vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\n this._renderChildren(vLayout.panels[1].container, calendar);\n\n this.children.each(function(childView) {\n var start = datetime.parse(childView.options.renderStartDate);\n var end = datetime.parse(childView.options.renderEndDate);\n var eventsInDateRange = controller.findByDateRange(\n datetime.start(start),\n datetime.end(end),\n scheduleFilter\n );\n var dateRange = datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY);\n var viewModel = {\n eventsInDateRange: eventsInDateRange,\n range: dateRange.slice(0, grids.length),\n grids: grids\n };\n\n childView.render(viewModel);\n });\n};\n\nmodule.exports = Month;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/month.js\n// module id = 96\n// module chunks = 0","/**\n * @fileoverview Floating layer for displaying schedule in specific date\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar OUT_PADDING = 5;\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n FloatingLayer = require('../../common/floatingLayer'),\n common = require('../../common/common'),\n tmpl = require('./more.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {object} [options.moreLayerSize] - more layer size\n * @param {object} [options.moreLayerSize.width=null] - css width value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {object} [options.moreLayerSize.height=null] - css height value(px, auto).\n * The default value 'null' is to fit a grid cell.\n * @param {HTMLElement} container = container element\n */\nfunction More(options, container) {\n View.call(this, container);\n\n /**\n * @type {FloatingLayer}\n */\n this.layer = new FloatingLayer(null, container);\n\n /**\n * cached view model\n * @type {object}\n */\n this._viewModel = null;\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n moreLayerSize: {\n width: null,\n height: null\n }\n }, options);\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(More, View);\n\n/**\n * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nMore.prototype._onClick = function(clickEvent) {\n var target = (clickEvent.target || clickEvent.srcElement);\n var className = config.classname('month-more-close');\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Mousedown event handler for hiding more layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nMore.prototype._onMouseDown = function(mouseDownEvent) {\n var target = (mouseDownEvent.target || mouseDownEvent.srcElement),\n moreLayer = domutil.closest(target, config.classname('.month-more'));\n\n if (moreLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * Get new position for more layer by +n element itself\n * @param {HTMLElement} target - parent grid-line element of +n element\n * @param {HTMLElement} weekItem - weekItem container element\n * @returns {number[]} new position of more layer\n */\nMore.prototype._getRenderPosition = function(target, weekItem) {\n var pos = domevent.getMousePosition({\n clientX: domutil.getPosition(target)[0],\n clientY: domutil.getPosition(weekItem)[1]\n }, this.container);\n var containerSize = domutil.getSize(this.container);\n var left = pos[0] - OUT_PADDING;\n var top = pos[1] - OUT_PADDING;\n\n left = common.ratio(containerSize[0], 100, left) + '%';\n top = common.ratio(containerSize[1], 100, top) + '%';\n\n return [left, top];\n};\n\n/**\n * @override\n */\nMore.prototype.destroy = function() {\n this.layer.destroy();\n this.layer = null;\n domevent.off(this.container, 'click', this._onClick, this);\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n View.prototype.destroy.call(this);\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nMore.prototype.render = function(viewModel) {\n var target = domutil.closest(viewModel.target, config.classname('.weekday-grid-line'));\n var weekItem = domutil.closest(target, config.classname('.month-week-item'));\n var layer = this.layer;\n var self = this;\n var pos = this._getRenderPosition(target, weekItem);\n var height = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n var width = target.offsetWidth + (OUT_PADDING * 2);\n var optMoreLayerSize = this.options.moreLayerSize;\n this._viewModel = viewModel;\n\n if (optMoreLayerSize.width) {\n width = optMoreLayerSize.width;\n }\n\n if (optMoreLayerSize.height) {\n height = optMoreLayerSize.height;\n }\n\n layer.setContent(tmpl(viewModel));\n if (weekItem.parentElement.lastElementChild === weekItem) {\n layer.setLTRB({\n left: pos[0],\n bottom: 0\n });\n layer.setSize(width, '');\n } else {\n layer.setPosition(pos[0], pos[1]);\n layer.setSize(width, height);\n }\n\n layer.show();\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Hide layer\n */\nMore.prototype.hide = function() {\n this.layer.hide();\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nMore.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(tmpl(this._viewModel));\n }\n};\n\nmodule.exports = More;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/more.js\n// module id = 97\n// module chunks = 0","/**\n * @fileoverview Monthday in month view\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common.js'),\n domutil = require('../../common/domutil'),\n View = require('../../view/view'),\n Weekday = require('../weekday'),\n baseTmpl = require('./weekdayInMonth.hbs'),\n scheduleTmpl = require('./weekdayInMonthSchedule.hbs');\nvar mfloor = Math.floor,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for WeekdayInWeek view\n * @param {number} [options.heightPercent] - height percent of view\n * @param {number} [options.containerButtonGutter=8] - free space at bottom to\n * make create easy.\n * @param {number} [options.scheduleHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleGutter=2] - gutter height of each schedule block.\n * @param {HTMLDIVElement} container - DOM element to use container for this\n * view.\n */\nfunction WeekdayInMonth(options, container) {\n Weekday.call(this, options, container);\n container.style.height = options.heightPercent + '%';\n}\n\nutil.inherit(WeekdayInMonth, Weekday);\n\n/**\n * Get schedule container element's bound properly by override\n *\n * View#getViewBound.\n * @override\n */\nWeekdayInMonth.prototype.getViewBound = function() {\n var bound = View.prototype.getViewBound.call(this);\n\n return bound;\n};\n\n/**\n * Get limit index of schedule block in current view\n * @returns {number} limit index\n */\nWeekdayInMonth.prototype._getRenderLimitIndex = function() {\n var opt = this.options;\n var containerHeight = this.getViewBound().height;\n var gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0;\n var gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0;\n var visibleScheduleCount = opt.visibleScheduleCount || 0;\n var count;\n\n containerHeight -= (gridHeaderHeight + gridFooterHeight);\n\n count = mfloor(containerHeight / (opt.scheduleHeight + opt.scheduleGutter));\n\n if (!visibleScheduleCount) {\n visibleScheduleCount = count;\n }\n\n return mmin(count, visibleScheduleCount); // subtraction for '+n' label block\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n gridHeaderHeight = util.pick(opt, 'grid', 'header', 'height') || 0,\n gridFooterHeight = util.pick(opt, 'grid', 'footer', 'height') || 0,\n renderLimitIdx = this._getRenderLimitIndex(),\n exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range);\n var baseViewModel;\n\n viewModel = util.extend({\n exceedDate: exceedDate\n }, viewModel);\n\n baseViewModel = Weekday.prototype.getBaseViewModel.call(this, viewModel);\n\n baseViewModel = util.extend({\n matrices: viewModel.eventsInDateRange,\n gridHeaderHeight: gridHeaderHeight,\n gridFooterHeight: gridFooterHeight,\n renderLimitIdx: renderLimitIdx + 1\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nWeekdayInMonth.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainer,\n contentStr = '';\n\n if (!this.options.visibleWeeksCount) {\n setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth);\n }\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n scheduleContainer = domutil.find(\n config.classname('.weekday-schedules'),\n container\n );\n\n if (!scheduleContainer) {\n return;\n }\n\n contentStr += scheduleTmpl(baseViewModel);\n\n scheduleContainer.innerHTML = contentStr;\n\n common.setAutoEllipsis(\n config.classname('.weekday-schedule-title'),\n container\n );\n};\n\nWeekdayInMonth.prototype._beforeDestroy = function() {\n};\n\n/**\n * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n * @param {Array} dates - 날짜정보 배열\n * @param {string} renderMonthStr - 현재 렌더링중인 월 (YYYYMM)\n */\nfunction setIsOtherMonthFlag(dates, renderMonthStr) {\n var renderMonth = Number(renderMonthStr.substring(5));\n\n util.forEach(dates, function(dateObj) {\n dateObj.isOtherMonth = dateObj.month !== renderMonth;\n });\n}\n\nmodule.exports = WeekdayInMonth;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/month/weekdayInMonth.js\n// module id = 98\n// module chunks = 0","/* eslint complexity: 0 */\n/**\n * @fileoverview Helpers for handlebar templates.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Handlebars = require('handlebars-template-loader/runtime');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\nvar config = require('../../config');\n\n/**\n * Get CSS syntax for element size\n * @param {number} value - size value to apply element\n * @param {string} postfix - postfix string ex) px, em, %\n * @param {string} prefix - property name ex) width, height\n * @returns {string} CSS syntax\n */\nfunction getElSize(value, postfix, prefix) {\n prefix = prefix || '';\n if (util.isNumber(value)) {\n return prefix + ':' + value + postfix;\n }\n\n return prefix + ':auto';\n}\n\n/**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\nfunction getElLeft(viewModel, grids) {\n return grids[viewModel.left] ? grids[viewModel.left].left : 0;\n}\n\n/**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\nfunction getElWidth(viewModel, grids) {\n var width = 0;\n var i = 0;\n var length = grids.length;\n var left;\n for (; i < viewModel.width; i += 1) {\n left = (viewModel.left + i) % length;\n left += parseInt((viewModel.left + i) / length, 10);\n if (left < length) {\n width += grids[left] ? grids[left].width : 0;\n }\n }\n\n return width;\n}\n\nHandlebars.registerHelper({\n /**\n * Stamp supplied object\n *\n * Commonly use for rendering object's unique ID to rendered view\n * @param {object} obj - object to stamp\n * @returns {number} stamp value\n */\n 'stamp': function(obj) {\n return util.stamp(obj);\n },\n\n /**\n * Whether supplied object are equal?\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} result of operation\n */\n 'equal': function(a, b) {\n return a === b;\n },\n\n /**\n * OR\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'or': function(a, b) {\n return a || b;\n },\n\n /**\n * Compare object or apply logical operation by customizable oper parameter\n * @param {*} a - a\n * @param {string} oper - operator ex) '==', '<'\n * @param {*} b - b\n * @param {Handlebars} options - handlebar options\n * @returns {boolean} result of operation\n */\n 'fi': function(a, oper, b, options) {\n switch (oper) {\n case '==':\n return (a == b) ? options.fn(this) : options.inverse(this); // eslint-disable-line\n case '===':\n return (a === b) ? options.fn(this) : options.inverse(this);\n case '!==':\n return (a !== b) ? options.fn(this) : options.inverse(this);\n case '<':\n return (a < b) ? options.fn(this) : options.inverse(this);\n case '||':\n return (a || b) ? options.fn(this) : options.inverse(this);\n default:\n throw new Error('Not match operation');\n }\n },\n\n /**\n * Get hhmm formatted time str\n * @param {Date} date - date object\n * @returns {string} formatted value\n */\n 'hhmm': function(date) {\n return datetime.format(date, 'HH:mm');\n },\n\n /**\n * Get `width` stylesheet string\n * @param {number} width - width percentage\n * @returns {string} css style part\n */\n 'common-width': function(width) {\n return getElSize(width, '%', 'width');\n },\n\n /**\n * Get element left based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element left\n */\n 'grid-left': function(viewModel, grids) {\n return getElLeft(viewModel, grids);\n },\n\n /**\n * Get element width based on narrowWeekend\n * @param {object} viewModel - view model\n * @param {Array} grids - dates information\n * @returns {number} element width\n */\n 'grid-width': function(viewModel, grids) {\n return getElWidth(viewModel, grids);\n },\n\n /**\n * Use in time.hbs\n * @param {ScheduleViewModel} viewModel viewModel\n * @returns {string} element size css class\n */\n 'time-scheduleBlock': function(viewModel) {\n var top = getElSize(viewModel.top, 'px', 'top'),\n left = getElSize(viewModel.left, '%', 'left'),\n width = getElSize(viewModel.width, '%', 'width'),\n height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'month-scheduleBlock': function(viewModel, grids, blockHeight, paddingTop) {\n var top = getElSize(((viewModel.top - 1) * blockHeight) + paddingTop, 'px', 'top');\n var left = getElSize(grids[viewModel.left] ? grids[viewModel.left].left : 0, '%', 'left');\n var width = getElSize(getElWidth(viewModel, grids), '%', 'width');\n var height = getElSize(viewModel.height, 'px', 'height');\n\n return [top, left, width, height].join(';');\n },\n\n 'holiday': function(day) {\n var cssClass = '';\n\n if (day === 0) {\n cssClass = config.classname('holiday-sun');\n }\n\n if (day === 6) {\n cssClass = config.classname('holiday-sat');\n }\n\n return cssClass;\n },\n\n /**\n * Add supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'add': function(a, b) {\n return a + b;\n },\n\n /**\n * Multiply supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'multiply': function(a, b) {\n return a * b;\n },\n\n /**\n * Divide supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'divide': function(a, b) {\n return a / b;\n },\n\n /**\n * Subtract supplied two parameter\n * @param {*} a - a\n * @param {*} b - b\n * @returns {number} result of operation\n */\n 'subtract': function(a, b) {\n return a - b;\n },\n\n /**\n * Get css prefix in global configuration\n * @returns {string} css prefix\n */\n 'CSS_PREFIX': function() {\n return config.cssPrefix;\n },\n\n /**********\n * Default schedule template\n **********/\n\n 'milestone-tmpl': function(model) {\n return ' ' +\n common.stripTags(model.title);\n },\n\n 'milestoneTitle-tmpl': function() {\n return '마일스톤';\n },\n\n 'task-tmpl': function(model) {\n return ' ' +\n common.stripTags(model.title);\n },\n\n 'taskTitle-tmpl': function() {\n return '업무';\n },\n\n 'alldayTitle-tmpl': function() {\n return '종일';\n },\n\n 'alldayCollapseBtnTitle-tmpl': function() {\n return '∧';\n },\n\n 'allday-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'time-tmpl': function(model) {\n return common.stripTags(model.title);\n },\n\n 'monthMoreTitleDate-tmpl': function(date) {\n return date;\n },\n\n 'monthMoreClose-tmpl': function() {\n return 'close';\n },\n\n 'monthGridHeader-tmpl': function(model) {\n return '' + model.date + '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'monthGridFooter-tmpl': function() {\n return '';\n },\n\n /* eslint no-unused-vars: 0 */\n 'monthGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '';\n },\n\n 'weekDayname-tmpl': function(model) {\n return '' + model.date + ' ' + model.dayName;\n },\n\n 'monthDayname-tmpl': function(model) {\n return model.label;\n },\n\n 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '+' + hiddenSchedules;\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/template/helper.js\n// module id = 99\n// module chunks = 0","/**\n * @fileoverview View of allday schedule container inside of Week view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n View = require('../view'),\n WeekdayInWeek = require('./weekdayInWeek'),\n tmpl = require('../template/week/allday.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n * @param {number} [options.height=60] - minimum height of schedule container element.\n * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n * @param {HTMLElement} container Container element.\n * @param {object} aboutMe allday panel name and height\n */\nfunction Allday(options, container, aboutMe) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('allday-container')\n );\n\n /**\n * rendering options.\n * @type {object}\n */\n this.options = util.extend({\n title: 'All-day',\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: 18,\n scheduleGutter: 2,\n scheduleContainerTop: 1,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange.allday;\n }\n }, options);\n\n /**\n * height of content\n */\n this.contentHeight = 0;\n\n this.viewType = options.alldayViewType || 'scroll';\n this.collapsed = (this.viewType === 'toggle');\n this.aboutMe = util.extend(\n aboutMe, {\n name: 'allday'\n }\n );\n\n this.maxScheduleInDay = 0;\n\n View.call(this, container);\n}\n\nutil.inherit(Allday, View);\n\n/**\n * create month week view model for render allday schedules in top of week views.\n * @override\n * @param {object} viewModel - viewModel from parent views.\n */\nAllday.prototype.render = function(viewModel) {\n var container = this.container;\n var scheduleContainerTop = this.options.scheduleContainerTop;\n var self = this;\n var weekdayView;\n\n container.innerHTML = tmpl(this.options);\n\n this.children.clear();\n\n weekdayView = new WeekdayInWeek(\n this.options,\n domutil.find(config.classname('.weekday-container'), container),\n this.aboutMe\n );\n weekdayView.collapsed = this.collapsed;\n weekdayView.on('afterRender', function(weekdayViewModel) {\n self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n self.maxScheduleInDay = weekdayViewModel.maxScheduleInDay;\n });\n\n this.addChild(weekdayView);\n\n this.children.each(function(childView) {\n childView.collapsed = this.collapsed;\n childView.render(viewModel);\n }, this);\n\n this.fire('afterRender', viewModel);\n};\n\nAllday.prototype.getExpandMaxHeight = function() {\n var scheduleHeight = this.options.scheduleHeight + this.options.scheduleGutter;\n var maxExpandCount = this.aboutMe.maxExpandCount;\n\n if (this.maxScheduleInDay > maxExpandCount) {\n return scheduleHeight * (maxExpandCount + 0.5);\n }\n\n return scheduleHeight * maxExpandCount;\n};\n\nmodule.exports = Allday;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/allday.js\n// module id = 100\n// module chunks = 0","/**\n * @fileoverview View for rendering daynames\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar domutil = require('../../common/domutil');\nvar View = require('../view');\nvar daynameTmpl = require('../template/week/daynames.hbs');\n\n/**\n * @constructor\n * @param {object} options - options for dayname view\n * @param {HTMLElement} container Container element to use.\n * @extends {View}\n */\nfunction DayName(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('dayname-container')\n );\n\n this.options = util.extend({\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n }, options);\n\n View.call(this, container);\n}\n\nutil.inherit(DayName, View);\n\n/**\n * Get default viewmodels.\n * @param {Date} start The date of start render\n * @param {Date} end The end of end render\n * @param {object} grids grid data(width, left, day)\n * @returns {array} viewmodel.\n */\nDayName.prototype._getBaseViewModel = function(start, end, grids) {\n var daynames = this.options.daynames,\n viewModel;\n\n viewModel = util.map(datetime.range(\n datetime.start(start),\n datetime.end(end),\n datetime.MILLISECONDS_PER_DAY\n ), function(d, i) {\n var day = d.getDay();\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: datetime.isSameDate(d, new TZDate()),\n date: d.getDate(),\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n renderDate: datetime.format(d, 'YYYY-MM-DD')\n };\n });\n\n return viewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel View model from parent (WeekView)\n */\nDayName.prototype.render = function(viewModel) {\n var _viewModel = this._getBaseViewModel(\n viewModel.renderStartDate,\n viewModel.renderEndDate,\n viewModel.grids\n );\n\n this.container.innerHTML = daynameTmpl(_viewModel);\n};\n\nmodule.exports = DayName;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/dayname.js\n// module id = 101\n// module chunks = 0","/**\n * @fileoverview 마일스톤 뷰\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../../view/view');\nvar tmpl = require('../template/week//milestone.hbs');\n\n// item height + gutter (defined in css)\nvar ITEM_HEIGHT = 17;\n\n// list padding-top (defined in css)\nvar LIST_PADDING_TOP = 1;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options\n * @param {string} options.renderStartDate - start date of allday view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of allday view's render date. YYYY-MM-DD\n * @param {number} [options.minHeight=52] - min-height of milestone view\n * @param {number} [options.lineHeight=12] - line height of milestone view\n * @param {HTMLElement} container - container element\n */\nfunction Milestone(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('milestone-container')\n );\n\n View.call(this, container);\n\n /**\n * @type {object}\n */\n this.options = util.extend({\n renderStartDate: '',\n renderEndDate: ''\n }, options);\n}\n\nutil.inherit(Milestone, View);\n\n/**\n * Get base viewmodel for task view\n * @param {object} [viewModel] - view model from parent view\n * @returns {object} view model for task view\n */\nMilestone.prototype._getBaseViewModel = function(viewModel) {\n var schedules = {},\n range = viewModel.range,\n height,\n today = datetime.format(new TZDate(), 'YYYY-MM-DD'),\n viewModelSchedules = util.pick(viewModel.schedulesInDateRange, 'milestone'),\n grids = viewModel.grids,\n i = 0;\n\n // 일정이 없는 경우라도 빈 객체를 생성\n util.forEach(range, function(d) {\n schedules[datetime.format(d, 'YYYY-MM-DD')] = {length: 0};\n });\n\n util.extend(schedules, viewModelSchedules);\n\n util.forEach(schedules, function(schedule, key) {\n schedule.isToday = (key === today);\n schedule.left = grids[i] ? grids[i].left : 0;\n schedule.width = grids[i] ? grids[i].width : 0;\n i += 1;\n });\n\n height = LIST_PADDING_TOP;\n height += Math.max.apply(null, util.map(schedules, function(coll) {\n return coll.length;\n })) * ITEM_HEIGHT;\n\n return {\n schedules: schedules,\n height: height\n };\n};\n\n/**\n * 마일스톤 뷰 렌더링\n * @override\n */\nMilestone.prototype.render = function(viewModel) {\n var container = this.container,\n baseViewModel = this._getBaseViewModel(viewModel);\n\n container.style.minHeight = this.options.minHeight + 'px';\n container.innerHTML = tmpl(baseViewModel);\n\n util.forEach(domutil.find('li', container, true), function(el) {\n if (el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n\n this.fire('afterRender', baseViewModel);\n};\n\nmodule.exports = Milestone;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/milestone.js\n// module id = 102\n// module chunks = 0","/**\n * @fileoverview Task view for upper area of Week view.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domutil = require('../../common/domutil'),\n View = require('../view'),\n WeekdayInWeek = require('./weekdayInWeek'),\n tmpl = require('../template/week/taskview.hbs');\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options - options for TaskView\n * @param {string} options.renderStartDate - start date of this view's render date. YYYY-MM-DD\n * @param {string} options.renderEndDate - end date of this view's render date. YYYY-MM-DD\n * @param {number} [options.height=60] - minimum height of schedule container element.\n * @param {number} [options.scheduleBlockHeight=18] - height of each schedule block.\n * @param {number} [options.scheduleBlockGutter=2] - gutter height of each schedule block.\n * @param {function} [options.getViewModelFunc] - function for extract partial view model data from whole view models.\n \n * @param {HTMLElement} container - container element\n */\nfunction TaskView(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('task-container')\n );\n\n /**\n * rendering options.\n * @type {object}\n */\n this.options = util.extend({\n title: 'task',\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: 18,\n scheduleGutter: 2,\n scheduleContainerTop: 1,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange.task;\n }\n }, options);\n\n /**\n * height of content\n */\n this.contentHeight = 0;\n\n View.call(this, container);\n}\n\nutil.inherit(TaskView, View);\n\n/**\n * 업무 뷰 렌더링\n * @override\n */\nTaskView.prototype.render = function(viewModel) {\n var container = this.container;\n var scheduleContainerTop = this.options.scheduleContainerTop;\n var self = this;\n var weekdayView;\n\n container.innerHTML = tmpl(this.options);\n\n this.children.clear();\n\n weekdayView = new WeekdayInWeek(\n this.options,\n domutil.find(config.classname('.weekday-container'), container)\n );\n weekdayView.on('afterRender', function(weekdayViewModel) {\n self.contentHeight = weekdayViewModel.minHeight + scheduleContainerTop;\n });\n\n this.addChild(weekdayView);\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n });\n\n this.fire('afterRender', viewModel);\n};\n\nmodule.exports = TaskView;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/taskview.js\n// module id = 103\n// module chunks = 0","/**\n * @fileoverview View of time.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar datetime = require('../../common/datetime');\nvar domutil = require('../../common/domutil');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\nvar timeTmpl = require('../template/week/time.hbs');\n\nvar forEachArr = util.forEachArray;\n\n/**\n * @constructor\n * @extends {View}\n * @param {object} options Options\n * @param {number} options.index Date index in week view.\n * @param {number} options.width Date element width (percent)\n * @param {string} options.ymd YYYMMDD string for this view\n * @param {boolean} options.isToday when set true then assign today design class to container.\n * @param {number} options.hourStart Can limit of render hour start.\n * @param {number} options.hourEnd Can limit of render hour end.\n * @param {HTMLElement} container Element to use container for this view.\n */\nfunction Time(options, container) {\n View.call(this, container);\n\n this.options = util.extend({\n index: 0,\n width: 0,\n ymd: '',\n isToday: false,\n pending: false,\n hourStart: 0,\n hourEnd: 24,\n defaultMarginBottom: 2,\n minHeight: 18.5\n }, options);\n\n this.timeTmpl = timeTmpl;\n container.style.width = options.width + '%';\n container.style.left = options.left + '%';\n\n if (this.options.isToday) {\n domutil.addClass(this.container, config.classname('today'));\n }\n}\n\nutil.inherit(Time, View);\n\n/**\n * Convert YYYYMMDD formatted string date to Date.\n * @param {string} str formatted string.\n * @returns {Date} start of date.\n */\nTime.prototype._parseDateGroup = function(str) {\n var y = parseInt(str.substr(0, 4), 10),\n m = parseInt(str.substr(4, 2), 10),\n d = parseInt(str.substr(6, 2), 10);\n\n return new TZDate(y, m - 1, d);\n};\n\n/**\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @param {Date} options.todayStart - date object represent schedule date's start (00:00:00)\n * @param {number} options.baseMS - the number of milliseconds to render schedule blocks.\n * @param {number} options.baseHeight - pixel value related with baseMS options.\n * @param {number[]} options.baseLeft - left position percents for each columns.\n * @param {number} options.baseWidth - the unit of schedule blocks width percent.\n * @param {number} options.columnIndex - the number index of schedule blocks.\n * it represent rendering index from left sides in view.\n * @returns {object} bound object for supplied view model.\n */\nTime.prototype.getScheduleViewBound = function(viewModel, options) {\n var baseMS = options.baseMS;\n var baseHeight = options.baseHeight;\n var cropped = false;\n var offsetStart, width, height, top;\n var isReadOnly = util.pick(viewModel, 'model', 'isReadOnly') || false;\n\n offsetStart = viewModel.valueOf().start - options.todayStart;\n\n // containerHeight : milliseconds in day = x : schedule's milliseconds\n top = (baseHeight * offsetStart) / baseMS;\n height = (baseHeight * viewModel.duration()) / baseMS;\n width = options.baseWidth * (viewModel.extraSpace + 1);\n\n // set width auto when has no collisions.\n if (!viewModel.hasCollide) {\n width = null;\n }\n\n if (height + top > baseHeight) {\n height = baseHeight - top;\n cropped = true;\n }\n\n if (isReadOnly) {\n cropped = true;\n }\n\n return {\n top: top,\n left: options.baseLeft[options.columnIndex],\n width: width,\n height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n cropped: cropped\n };\n};\n\n/**\n * Set viewmodels for rendering.\n * @param {string} ymd The date of schedules. YYYYMMDD format.\n * @param {array} matrices The matrices for schedule placing.\n */\nTime.prototype._getBaseViewModel = function(ymd, matrices) {\n var self = this,\n options = this.options,\n hourStart = options.hourStart,\n hourEnd = options.hourEnd,\n containerHeight,\n todayStart,\n baseMS;\n\n /**\n * Calculate each schedule element bounds relative with rendered hour milliseconds and\n * wrap each schedule model to viewmodels.\n */\n containerHeight = this.getViewBound().height;\n todayStart = this._parseDateGroup(ymd);\n todayStart.setHours(hourStart);\n baseMS = datetime.millisecondsFrom('hour', (hourEnd - hourStart));\n\n forEachArr(matrices, function(matrix) {\n var maxRowLength,\n widthPercent,\n leftPercents,\n i;\n\n maxRowLength = Math.max.apply(null, util.map(matrix, function(row) {\n return row.length;\n }));\n\n widthPercent = 100 / maxRowLength;\n\n leftPercents = [];\n for (i = 0; i < maxRowLength; i += 1) {\n leftPercents[i] = widthPercent * i;\n }\n\n forEachArr(matrix, function(row) {\n forEachArr(row, function(viewModel, col) {\n var viewBound;\n\n if (!viewModel) {\n return;\n }\n\n viewBound = self.getScheduleViewBound(viewModel, {\n todayStart: todayStart,\n baseMS: baseMS,\n baseLeft: leftPercents,\n baseWidth: widthPercent,\n baseHeight: containerHeight,\n columnIndex: col\n });\n\n util.extend(viewModel, viewBound);\n });\n });\n });\n};\n\n/**\n * @returns {Date} - Date of this view.\n */\nTime.prototype.getDate = function() {\n return this._parseDateGroup(this.options.ymd);\n};\n\n/**\n * @override\n * @param {string} ymd The date of schedules. YYYYMMDD format\n * @param {array} matrices Matrices for placing schedules\n */\nTime.prototype.render = function(ymd, matrices) {\n this._getBaseViewModel(ymd, matrices);\n this.container.innerHTML = this.timeTmpl({\n matrices: matrices\n });\n};\n\nmodule.exports = Time;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/time.js\n// module id = 104\n// module chunks = 0","/**\n * @fileoverview View for rendered schedules by times.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar reqAnimFrame = require('../../common/reqAnimFrame');\nvar View = require('../view');\nvar Time = require('./time');\nvar AutoScroll = require('../../common/autoScroll');\nvar mainTmpl = require('../template/week/timeGrid.hbs');\n\nvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\nvar SIXTY_SECONDS = 60;\n\n/**\n * start~end 까지의 시간 레이블 목록을 반환한다.\n * 현재 시간과 가까운 레이블의 경우 hidden:true로 설정한다.\n * @param {number} start - 시작시간\n * @param {number} end - 끝시간\n * @param {boolean} hasHourMarker - 현재 시간이 표시되는지 여부\n * @returns {Array.}\n */\nfunction getHoursLabels(start, end, hasHourMarker) {\n var now = new TZDate();\n var nowMinutes = now.getMinutes();\n var nowHours = now.getHours();\n var hoursRange = util.range(start, end);\n var nowAroundHours = null;\n\n if (hasHourMarker) {\n if (nowMinutes < 20) {\n nowAroundHours = nowHours;\n } else if (nowMinutes > 40) {\n nowAroundHours = nowHours + 1;\n }\n }\n\n return hoursRange.map(function(hours) {\n return {\n hours: hours,\n hidden: nowAroundHours === hours\n };\n });\n}\n/**\n * @constructor\n * @extends {View}\n * @param {object} options The object for view customization.\n * @param {string} options.renderStartDate - render start date. YYYY-MM-DD\n * @param {string} options.renderEndDate - render end date. YYYY-MM-DD\n * @param {number} [options.hourStart=0] You can change view's start hours.\n * @param {number} [options.hourEnd=0] You can change view's end hours.\n * @param {HTMLElement} container Container element.\n */\nfunction TimeGrid(options, container) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('timegrid-container')\n );\n\n View.call(this, container);\n\n if (!util.browser.safari) {\n /**\n * @type {AutoScroll}\n */\n this._autoScroll = new AutoScroll(container);\n }\n\n /**\n * Time view options.\n * @type {object}\n */\n this.options = util.extend({\n renderStartDate: '',\n renderEndDate: '',\n hourStart: 0,\n hourEnd: 24\n }, options);\n\n /**\n * Interval id for hourmarker animation.\n * @type {number}\n */\n this.intervalID = 0;\n\n /**\n * timer id for hourmarker initial state\n * @type {number}\n */\n this.timerID = 0;\n\n /**\n * @type {boolean}\n */\n this._scrolled = false;\n\n /*\n * cache parent's view model\n * @type {object}\n */\n this._cacheParentViewModel = null;\n\n this.attachEvent();\n}\n\nutil.inherit(TimeGrid, View);\n\n/**********\n * Prototype props\n **********/\n\n/**\n * @type {string}\n */\nTimeGrid.prototype.viewName = 'timegrid';\n\n/**\n * Destroy view.\n * @override\n */\nTimeGrid.prototype._beforeDestroy = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n\n if (this._autoScroll) {\n this._autoScroll.destroy();\n }\n\n this._autoScroll = this.hourmarker = this.intervalID = this.timerID = this._cacheParentViewModel = null;\n};\n\n/**\n * @param {Date} [time] - date object to convert pixel in grids.\n * use **Date.now()** when not supplied.\n * @returns {number} The pixel value represent current time in grids.\n */\nTimeGrid.prototype._getTopPercentByTime = function(time) {\n var opt = this.options,\n raw = datetime.raw(time || new TZDate()),\n hourLength = util.range(opt.hourStart, opt.hourEnd).length,\n maxMilliseconds = hourLength * datetime.MILLISECONDS_PER_HOUR,\n hmsMilliseconds = datetime.millisecondsFrom('hour', raw.h) +\n datetime.millisecondsFrom('minutes', raw.m) +\n datetime.millisecondsFrom('seconds', raw.s) +\n raw.ms,\n topPercent;\n\n topPercent = common.ratio(maxMilliseconds, 100, hmsMilliseconds);\n topPercent -= common.ratio(maxMilliseconds, 100, datetime.millisecondsFrom('hour', opt.hourStart));\n\n return common.limit(topPercent, [0], [100]);\n};\n\n/**\n * Get Hourmarker viewmodel.\n * @param {Date} now - now\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel of hourmarker.\n */\nTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n var todaymarkerLeft = -1,\n viewModel;\n\n now = now || new TZDate();\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(now, date)) {\n todaymarkerLeft = grids[index] ? grids[index].left : 0;\n }\n });\n\n viewModel = {\n currentHours: now.getHours(),\n hourmarkerTop: this._getTopPercentByTime(now),\n hourmarkerText: datetime.format(now, 'HH:mm'),\n todaymarkerLeft: todaymarkerLeft\n };\n\n return viewModel;\n};\n\n/**\n * Get base viewModel.\n * @param {object} grids grid information(width, left, day)\n * @param {Array.} range render range\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getBaseViewModel = function(grids, range) {\n var opt = this.options;\n var viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range);\n viewModel.hoursLabels = getHoursLabels(opt.hourStart, opt.hourEnd, viewModel.todaymarkerLeft >= 0);\n\n return viewModel;\n};\n\n/**\n * Reconcilation child views and render.\n * @param {object} viewModels Viewmodel\n * @param {object} grids grid information(width, left, day)\n * @param {HTMLElement} container Container element for each time view.\n */\nTimeGrid.prototype._renderChildren = function(viewModels, grids, container) {\n var self = this,\n options = this.options,\n childOption,\n child,\n isToday,\n today = datetime.format(new TZDate(), 'YYYYMMDD'),\n i = 0;\n\n // clear contents\n container.innerHTML = '';\n this.children.clear();\n\n // reconcilation of child views\n util.forEach(viewModels, function(schedules, ymd) {\n isToday = ymd === today;\n\n childOption = {\n index: i,\n left: grids[i] ? grids[i].left : 0,\n width: grids[i] ? grids[i].width : 0,\n ymd: ymd,\n isToday: isToday,\n isPending: options.isPending,\n isFocused: options.isFocused,\n hourStart: options.hourStart,\n hourEnd: options.hourEnd\n };\n\n child = new Time(\n childOption,\n domutil.appendHTMLElement('div', container, config.classname('time-date'))\n );\n child.render(ymd, schedules);\n\n self.addChild(child);\n\n i += 1;\n });\n};\n\n/**\n * @override\n * @param {object} viewModel ViewModel list from Week view.\n */\nTimeGrid.prototype.render = function(viewModel) {\n var timeViewModel = viewModel.schedulesInDateRange.time,\n container = this.container,\n grids = viewModel.grids,\n range = viewModel.range,\n baseViewModel = this._getBaseViewModel(grids, range),\n scheduleLen = util.keys(timeViewModel).length;\n\n this._cacheParentViewModel = viewModel;\n\n if (!scheduleLen) {\n return;\n }\n\n baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\n container.innerHTML = mainTmpl(baseViewModel);\n\n /**********\n * Render children\n **********/\n this._renderChildren(\n timeViewModel,\n grids,\n domutil.find(config.classname('.timegrid-schedules-container'), container)\n );\n\n this._hourLabels = domutil.find('ul', container);\n\n /**********\n * Render hourmarker\n **********/\n this.hourmarker = domutil.find(config.classname('.timegrid-hourmarker'), container);\n\n if (!this._scrolled) {\n this._scrolled = true;\n this.scrollToNow();\n }\n};\n\n/**\n * Refresh hourmarker element.\n */\nTimeGrid.prototype.refreshHourmarker = function() {\n var hourmarker = this.hourmarker,\n grids = this._cacheParentViewModel ? this._cacheParentViewModel.grids : null,\n range = this._cacheParentViewModel ? this._cacheParentViewModel.range : null,\n viewModel = this._getHourmarkerViewModel(new TZDate(), grids, range),\n todaymarker,\n hourmarkerText;\n\n if (!hourmarker || !viewModel) {\n return;\n }\n\n todaymarker = domutil.find(config.classname('.timegrid-todaymarker'), hourmarker);\n hourmarkerText = domutil.find(config.classname('.timegrid-hourmarker-time'), hourmarker);\n\n reqAnimFrame.requestAnimFrame(function() {\n hourmarker.style.display = 'block';\n hourmarker.style.top = viewModel.hourmarkerTop + '%';\n todaymarker.style.display = (viewModel.todaymarkerLeft >= 0) ? 'block' : 'none';\n hourmarkerText.innerHTML = viewModel.hourmarkerText;\n });\n};\n\n/**\n * Attach events\n */\nTimeGrid.prototype.attachEvent = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n this.intervalID = this.timerID = null;\n\n this.timerID = setTimeout(util.bind(this.onTick, this), (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000);\n};\n\n/**\n * Scroll time grid to current hourmarker.\n */\nTimeGrid.prototype.scrollToNow = function() {\n var self = this,\n container = this.container;\n var offsetTop,\n viewBound,\n scrollTop,\n scrollAmount,\n scrollBy,\n scrollFn;\n\n if (!self.hourmarker) {\n return;\n }\n\n offsetTop = this.hourmarker.offsetTop;\n viewBound = this.getViewBound();\n scrollTop = offsetTop;\n scrollAmount = viewBound.height / 4;\n scrollBy = 10;\n\n scrollFn = function() {\n if (scrollTop > offsetTop - scrollAmount) {\n scrollTop -= scrollBy;\n container.scrollTop = scrollTop;\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n } else {\n container.scrollTop = offsetTop - scrollAmount;\n }\n };\n\n reqAnimFrame.requestAnimFrame(scrollFn);\n};\n\n/**********\n * Schedule handlers\n **********/\n\n/**\n * Interval tick handler\n */\nTimeGrid.prototype.onTick = function() {\n if (this.timerID) {\n clearTimeout(this.timerID);\n this.timerID = null;\n }\n\n if (!this.intervalID) {\n this.intervalID = setInterval(util.bind(this.onTick, this), HOURMARKER_REFRESH_INTERVAL);\n }\n this.refreshHourmarker();\n};\n\nmodule.exports = TimeGrid;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/timeGrid.js\n// module id = 105\n// module chunks = 0","/**\n * @fileoverview View of days UI.\n * @author NHN Ent. FE Development Team \n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar datetime = require('../../common/datetime');\nvar TZDate = require('../../common/timezone').Date;\nvar View = require('../view');\n\n/**\n * FullCalendar 에서는 날짜 정보만 사용(YYYY-MM-DD) 하고,\n * SplitTimeCalendar 에서는 타임존 정보까지 포함된 문자열을 사용하기 때문에 분기처리함.\n * @param {String} dateString - date string\n * @returns {TZDate}\n */\nfunction parseRangeDateString(dateString) {\n if (dateString.length === 10) {\n return datetime.parse(dateString);\n }\n\n return new TZDate(dateString);\n}\n\n/**\n * @constructor\n * @param {Base.Week} controller The controller mixin part.\n * @param {object} options View options\n * @param {string} [options.renderStartDate] Start date of render.\n * if not supplied then use -3d from today. YYYY-MM-DD format.\n * @param {string} [options.renderEndDate] End date of render.\n * if not supplied then use +3d from today. YYYY-MM-DD format.\n * @param {string} [options.cssPrefix] - CSS classname prefix\n * @param {HTMLElement} container The element to use container for this view.\n * @extends {View}\n */\nfunction Week(controller, options, container) {\n var range;\n\n container = domutil.appendHTMLElement('div', container);\n\n View.call(this, container);\n\n domutil.addClass(container, config.classname('week-container'));\n\n range = this._getRenderDateRange(new TZDate());\n\n /**\n * @type {object} Options for view.\n */\n this.options = util.extend({\n scheduleFilter: function(schedule) {\n return Boolean(schedule.isVisible);\n },\n renderStartDate: datetime.format(range.start, 'YYYY-MM-DD'),\n renderEndDate: datetime.format(range.end, 'YYYY-MM-DD'),\n narrowWeekend: false,\n startDayOfWeek: 0,\n workweek: false\n }, options);\n\n /**\n * Week controller mixin.\n * @type {Base.Week}\n */\n this.controller = controller;\n}\n\nutil.inherit(Week, View);\n\n/**********\n * Override props\n **********/\n\n/**\n * Render each child view with schedules in ranges.\n * @fires Week#afterRender\n * @override\n */\nWeek.prototype.render = function() {\n var options = this.options,\n scheduleFilter = options.scheduleFilter,\n narrowWeekend = options.narrowWeekend,\n startDayOfWeek = options.startDayOfWeek,\n workweek = options.workweek;\n var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\n renderStartDate = parseRangeDateString(options.renderStartDate);\n renderEndDate = parseRangeDateString(options.renderEndDate);\n\n range = datetime.range(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n datetime.MILLISECONDS_PER_DAY\n );\n\n if (options.workweek && datetime.compare(renderStartDate, renderEndDate)) {\n range = util.filter(range, function(date) {\n return !datetime.isWeekend(date.getDay());\n });\n\n renderStartDate = range[0];\n renderEndDate = range[range.length - 1];\n }\n\n schedulesInDateRange = this.controller.findByDateRange(\n datetime.start(renderStartDate),\n datetime.end(renderEndDate),\n scheduleFilter\n );\n\n grids = datetime.getGridLeftAndWidth(\n range.length,\n narrowWeekend,\n startDayOfWeek,\n workweek\n );\n\n viewModel = {\n schedulesInDateRange: schedulesInDateRange,\n renderStartDate: renderStartDate,\n renderEndDate: renderEndDate,\n grids: grids,\n range: range\n };\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n });\n\n /**\n * @event Week#afterRender\n */\n this.fire('afterRender');\n};\n\n/**********\n * Prototype props\n **********/\n\nWeek.prototype.viewName = 'week';\n\n/**\n * Calculate default render date range from supplied date.\n * @param {Date} baseDate base date.\n * @returns {object} date range.\n */\nWeek.prototype._getRenderDateRange = function(baseDate) {\n var base = datetime.start(baseDate),\n start = new TZDate(Number(base)),\n end = new TZDate(Number(base));\n\n start.setDate(start.getDate() - 3);\n end.setDate(end.getDate() + 3);\n\n return {\n start: start,\n end: end\n };\n};\n\nutil.CustomEvents.mixin(Week);\n\nmodule.exports = Week;\n\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/js/view/week/week.js\n// module id = 106\n// module chunks = 0"],"sourceRoot":""} \ No newline at end of file diff --git a/package.json b/package.json index 929c3a391..f6e7ff827 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tui-calendar", "author": "NHNEnt FE Development Lab ", - "version": "0.9.3", + "version": "0.9.4", "main": "dist/tui-calendar.js", "license:": "MIT", "description": "TOAST UI Calendar",