1 |
- {"version":3,"sources":["webpack://tui.Calendar/webpack/universalModuleDefinition","webpack://tui.Calendar/webpack/bootstrap","webpack://tui.Calendar/external {\"commonjs\":\"tui-code-snippet\",\"commonjs2\":\"tui-code-snippet\",\"amd\":\"tui-code-snippet\",\"root\":[\"tui\",\"util\"]}","webpack://tui.Calendar/./src/js/common/domutil.js","webpack://tui.Calendar/./src/js/config.js","webpack://tui.Calendar/./src/js/common/datetime.js","webpack://tui.Calendar/./src/js/common/timezone.js","webpack://tui.Calendar/./src/js/common/common.js","webpack://tui.Calendar/./src/js/common/domevent.js","webpack://tui.Calendar/./node_modules/handlebars/runtime.js","webpack://tui.Calendar/(webpack)/buildin/global.js","webpack://tui.Calendar/./src/js/view/view.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/utils.js","webpack://tui.Calendar/./src/js/common/reqAnimFrame.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/exception.js","webpack://tui.Calendar/./src/js/common/collection.js","webpack://tui.Calendar/./src/js/model/schedule.js","webpack://tui.Calendar/./src/js/common/array.js","webpack://tui.Calendar/./src/js/common/floatingLayer.js","webpack://tui.Calendar/./src/js/handler/daygrid/core.js","webpack://tui.Calendar/./src/js/handler/time/core.js","webpack://tui.Calendar/./src/js/handler/month/core.js","webpack://tui.Calendar/./node_modules/dompurify/dist/purify.js","webpack://tui.Calendar/./node_modules/handlebars-template-loader/runtime/index.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars.runtime.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/base.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/logger.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js","webpack://tui.Calendar/./src/js/common/dw.js","webpack://tui.Calendar/./src/js/handler/drag.js","webpack://tui.Calendar/./src/js/model/viewModel/scheduleViewModel.js","webpack://tui.Calendar/./src/js/common/vlayout.js","webpack://tui.Calendar/./src/js/view/weekday.js","webpack://tui.Calendar/./src/js/common/point.js","webpack://tui.Calendar/./src/js/view/popup/scheduleCreationPopup.js","webpack://tui.Calendar/./src/js/view/popup/scheduleDetailPopup.js","webpack://tui.Calendar/./src/js/handler/daygrid/move.js","webpack://tui.Calendar/./src/js/handler/month/guide.js","webpack://tui.Calendar/./src/index.js","webpack://tui.Calendar/./src/js/factory/calendar.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/each.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/if.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/log.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/helpers/with.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/decorators.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/safe-string.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/runtime.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js","webpack://tui.Calendar/./node_modules/handlebars/dist/cjs/handlebars/no-conflict.js","webpack://tui.Calendar/./src/js/common/intlUtil.js","webpack://tui.Calendar/./src/js/view/layout.js","webpack://tui.Calendar/./src/js/factory/controller.js","webpack://tui.Calendar/./src/js/controller/base.js","webpack://tui.Calendar/./src/js/common/dirty.js","webpack://tui.Calendar/./src/js/common/model.js","webpack://tui.Calendar/./src/js/theme/theme.js","webpack://tui.Calendar/./src/js/theme/standard.js","webpack://tui.Calendar/./src/js/theme/themeConfig.js","webpack://tui.Calendar/./src/js/controller/viewMixin/core.js","webpack://tui.Calendar/./src/js/controller/viewMixin/week.js","webpack://tui.Calendar/./src/js/controller/viewMixin/month.js","webpack://tui.Calendar/./src/js/factory/weekView.js","webpack://tui.Calendar/./src/js/common/vpanel.js","webpack://tui.Calendar/./src/js/view/week/week.js","webpack://tui.Calendar/./src/js/view/week/dayname.js","webpack://tui.Calendar/./src/js/view/template/week/daynames.hbs","webpack://tui.Calendar/./src/js/view/week/dayGrid.js","webpack://tui.Calendar/./src/js/view/week/dayGridSchedule.js","webpack://tui.Calendar/./src/js/view/template/week/dayGridSchedule.hbs","webpack://tui.Calendar/./src/js/view/template/week/dayGrid.hbs","webpack://tui.Calendar/./src/js/view/week/timeGrid.js","webpack://tui.Calendar/./src/js/view/week/time.js","webpack://tui.Calendar/./src/js/view/template/week/time.hbs","webpack://tui.Calendar/./src/js/common/autoScroll.js","webpack://tui.Calendar/./src/js/view/template/week/timeGrid.hbs","webpack://tui.Calendar/./src/js/view/template/week/timezoneSticky.hbs","webpack://tui.Calendar/./src/js/view/template/week/timeGridCurrentTime.hbs","webpack://tui.Calendar/external {\"commonjs\":\"tui-date-picker\",\"commonjs2\":\"tui-date-picker\",\"amd\":\"tui-date-picker\",\"root\":[\"tui\",\"DatePicker\"]}","webpack://tui.Calendar/./src/js/view/template/popup/scheduleCreationPopup.hbs","webpack://tui.Calendar/./src/js/view/template/popup/scheduleDetailPopup.hbs","webpack://tui.Calendar/./src/js/handler/time/clickDayname.js","webpack://tui.Calendar/./src/js/handler/daygrid/click.js","webpack://tui.Calendar/./src/js/handler/daygrid/moveGuide.js","webpack://tui.Calendar/./src/js/handler/daygrid/creation.js","webpack://tui.Calendar/./src/js/handler/daygrid/creationGuide.js","webpack://tui.Calendar/./src/js/handler/daygrid/resize.js","webpack://tui.Calendar/./src/js/handler/daygrid/resizeGuide.js","webpack://tui.Calendar/./src/js/handler/time/click.js","webpack://tui.Calendar/./src/js/handler/time/creation.js","webpack://tui.Calendar/./src/js/handler/time/creationGuide.js","webpack://tui.Calendar/./src/js/handler/time/move.js","webpack://tui.Calendar/./src/js/handler/time/moveGuide.js","webpack://tui.Calendar/./src/js/view/template/week/timeMoveGuide.hbs","webpack://tui.Calendar/./src/js/handler/time/resize.js","webpack://tui.Calendar/./src/js/handler/time/resizeGuide.js","webpack://tui.Calendar/./src/js/factory/monthView.js","webpack://tui.Calendar/./src/js/view/month/month.js","webpack://tui.Calendar/./src/js/view/template/month/month.hbs","webpack://tui.Calendar/./src/js/view/month/weekdayInMonth.js","webpack://tui.Calendar/./src/js/view/template/month/weekdayInMonth.hbs","webpack://tui.Calendar/./src/js/view/template/month/weekdayInMonthSchedule.hbs","webpack://tui.Calendar/./src/js/handler/month/click.js","webpack://tui.Calendar/./src/js/handler/month/creation.js","webpack://tui.Calendar/./src/js/handler/month/creationGuide.js","webpack://tui.Calendar/./src/js/handler/month/guide.hbs","webpack://tui.Calendar/./src/js/handler/month/resize.js","webpack://tui.Calendar/./src/js/handler/month/resizeGuide.js","webpack://tui.Calendar/./src/js/handler/month/move.js","webpack://tui.Calendar/./src/js/handler/month/moveGuide.js","webpack://tui.Calendar/./src/js/handler/month/moveGuide.hbs","webpack://tui.Calendar/./src/js/view/month/more.js","webpack://tui.Calendar/./src/js/view/template/month/more.hbs","webpack://tui.Calendar/./src/js/view/template/helper.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__WEBPACK_EXTERNAL_MODULE__0__","domutil","domevent","Collection","util","CSS_AUTO_REGEX","userSelectProperty","appendHTMLElement","tagName","container","className","el","document","createElement","appendChild","body","remove","parentNode","removeChild","id","getElementById","_matcher","selector","test","hasClass","replace","nodeName","toLowerCase","find","root","multiple","result","found","isFirst","isUndefined","isFilter","isFunction","isString","recurse","cursor","childNodes","len","length","push","window","closest","excludeEl","parent","text","ret","nodeType","textContent","firstChild","nextSibling","nodeValue","setData","data","dataset","setAttribute","getData","getAttribute","classList","getClass","RegExp","contains","addClass","setClass","forEachArray","split","add","baseVal","removeClass","removed","getStyle","style","css","currentStyle","defaultView","getComputedStyle","getPropertyValue","prop","re","arguments","toUpperCase","setPosition","x","y","left","isNumber","top","setLTRB","ltrb","forEach","getPosition","clear","bound","getBoundingClientRect","parseFloat","getSize","width","height","isNull","offsetWidth","offsetHeight","getBCRect","rect","extend","testProp","props","documentElement","getFormData","formElement","groupedByName","this","noDisabledFilter","disabled","output","apply","concat","groupBy","elements","each","type","checked","toArray","pop","opt","selected","map","supportSelectStart","prevSelectStyle","disableTextSelection","dom","onSelectstartHandler","on","preventDefault","enableTextSelection","off","disableImageDrag","enableImageDrag","cssPrefix","alldayGetViewID","alldayCheckPermission","config","throwError","msg","alert","classname","str","charAt","slice","allday","getViewIDRegExp","checkCondRegExp","daygrid","time","datetime","tokenFunc","TZDate","Date","dw","dateFormatRx","memo","date","getFullYear","leadingZero","getMonth","getDate","join","String","hour","getHours","minutes","getMinutes","MILLISECONDS_PER_DAY","MILLISECONDS_PER_HOUR","MILLISECONDS_PER_MINUTES","MILLISECONDS_SCHEDULE_MIN_DURATION","_convMilliseconds","iteratee","index","day","seconds","global","isNaN","reduce","millisecondsTo","cache","v","millisecondsFrom","minutesFromHours","hours","range","start","end","step","startTime","getTime","endTime","addDate","clone","compare","d1","d2","_d1","_d2","isSameMonth","isSameDate","isValid","toUTC","offset","getTimezoneOffset","number","zero","parse","fixMonth","separator","ymd","hms","matches","match","indexOf","splice","substr","setWithRaw","Number","raw","M","h","getSeconds","ms","getMilliseconds","setHours","format","forEachOwnProperties","converter","token","startDateOfMonth","startDate","setDate","endDateOfMonth","endDate","setMonth","arr2dCalendar","month","options","weekArr","startIndex","totalDate","afterDates","week","calendar","startDayOfWeek","isAlways6Week","visibleWeeksCount","workweek","inArray","getDay","isWeekend","getGridLeftAndWidth","days","narrowWeekend","uniformWidth","wideWidth","accumulatedWidth","dates","filter","model","isBetweenWithDate","parseInt","isStartOfDay","convertStartDayToLastDay","getStartOfNextDay","getDateDifference","time1","time2","Math","round","getHourDifference","hasMultiDates","diffDays","diffHours","abs","withinDay","renderEnd","primaryOffset","primaryTimezoneName","intlUtil","nativeOffsetMs","customOffsetMs","timezoneOffsetCallback","setByTimezoneOption","offsetCalculator","timestamp","now","getCustomTimezoneOffset","createDateWithMultipleArgs","args","utc","UTC","createDateWithUTCTime","arg","getUTCTime","Error","createDateAsLocalTime","getLocalTime","useLocalTimeConverter","nativeDate","_date","setOffset","getPrimaryOffset","setPrimaryTimezoneCode","timezoneName","getOffsetByTimezoneName","calculator","supportIntl","getOffsetCalculator","toUTCString","toDate","valueOf","addMinutes","setMinutes","addMilliseconds","milliseconds","setMilliseconds","setFullYear","toLocalTime","utcTime","methodName","setOffsetByTimezoneOption","getOffset","setOffsetCallback","callback","restoreOffset","getNativeOffsetMs","hasPrimaryTimezoneCustomSetting","resetCustomSetting","setOffsetCalculator","setPrimaryTimezoneByOption","timezoneObj","setPrimaryOffset","getPrimaryTimezoneName","isNativeOsUsingDSTTimezone","year","isPrimaryUsingDSTTimezone","jan","jul","isDifferentOffsetStartAndEndTime","offset1","offset2","isOffsetChanged","offsetDiff","scheduleIDGetter","schedule","cid","createScheduleCollection","ratio","a","b","nearest","diff","min","mixin","from","to","limit","minArr","maxArr","max","limitDate","maxDate","stripTags","firstIn2dArray","arr2d","pick","lastIn2dArray","lastRow","lastCol","setAutoEllipsis","force","scrollWidth","set","path","names","store","shiftArray","array","shift","unshift","takeArray","rightCount","leftCount","shiftHours","parseUnit","cssValue","contextopt","item","getScheduleChanges","propNames","changes","dateProps","propName","isEmpty","DRAG_START","obj","types","fn","context","_on","handler","originHandler","stamp","e","event","_checkMouse","addEventListener","attachEvent","_off","removeEventListener","detachEvent","keys","once","self","isObject","onceHandler","stopPropagation","cancelBubble","returnValue","stop","disableScrollPropagation","disableClickPropagation","getMousePosition","mouseEvent","relativeElement","clientX","clientLeft","clientY","clientTop","getWheelDelta","delta","wheelDelta","detail","related","relatedTarget","err","trigger","eventData","exec","dispatchEvent","fireEvent","eventObj","evt","bubbles","cancelable","view","screenX","screenY","ctrlKey","altKey","shiftKey","metaKey","button","undefined","createEvent","initMouseEvent","createEventObject","0","1","2","getMouseButton","implementation","hasFeature","getEventTarget","target","srcElement","g","Function","View","cssprefix","children","state","addChild","items","render","childView","recursive","skipThis","resize","Array","_onResize","_beforeDestroy","_destroy","innerHTML","destroy","isChildView","getViewBound","position","size","setState","CustomEvents","escapeExpression","string","toHTML","possible","badChars","escapeChar","isArray","createFrame","frame","_parent","blockParams","params","ids","appendContextPath","contextPath","escape","chr","toString","requestFn","cancelFn","getPrefixed","requestAnimationFrame","cancelAnimationFrame","requestAnimFrame","cancelAnimFrame","errorProps","Exception","message","node","loc","line","endLineNumber","column","endColumn","tmp","constructor","idx","captureStackTrace","lineNumber","nop","forEachProp","forEachArr","isFunc","isObj","aps","getItemIDFn","getItemID","and","filters","cnt","_id","ownItems","itemToRemove","has","isExisty","doWhenHas","groupFunc","collection","baseValue","keyIsFunc","k","single","useFilter","sort","compareFunction","arr","tz","dirty","SCHEDULE_MIN_DURATION","SCHEDULE_CATEGORY","Schedule","title","isAllDay","color","isVisible","bgColor","dragBgColor","borderColor","calendarId","category","dueDateClass","customStyle","isPending","isFocused","isReadOnly","isPrivate","location","attendees","recurrenceRule","goingDuration","comingDuration","schema","required","dateRange","inst","init","setAllDayPeriod","setTimePeriod","getStarts","getEnds","equals","duration","checkOffset","getDurationByPrimaryTimezone","startOffset","endOffset","getDurationByNativeTimezone","collidesWith","ownStarts","ownEnds","ownGoingDuration","ownComingDuration","booleanASC","stringASC","_a","_b","bsearch","search","currentIndex","comp","minIndex","maxIndex","asc","durationA","durationB","allDayCompare","startsCompare","modelA","modelB","bool","desc","num","ascIgnoreCase","descIgnoreCase","FloatingLayer","layerContainer","sibling","PROP_KEY","zIndex","getLargestZIndex","INIT_ZINDEX","display","inherit","setSize","w","setContent","html","zIndexes","layer","focus","zIndexForShow","show","hide","common","mmax","mmin","dayGridCore","_retriveScheduleData","datesInRange","containerWidth","mousePos","dragStartXIndex","grids","weekdayView","getRenderDateRange","getRenderDateGrids","getX","mouseX","xIndex","relatedView","triggerEvent","_retriveScheduleDataFromDate","grid","Point","timeCore","_calcGridYIndex","baseMil","floored","timeView","viewHeight","viewTime","hourLength","hourEnd","hourStart","mouseY","gridY","timeY","nearestGridY","nearestGridTimeY","originEvent","nearestGridEndY","getNearestHour","nearestGridEndTimeY","proto","method","nearestHour","mfloor","floor","monthView","weekColl","weeks","weekCount","dayCount","relativeContainer","vLayout","panels","pos","sizeX","sizeY","setPrototypeOf","isFrozen","getPrototypeOf","getOwnPropertyDescriptor","freeze","seal","_ref","Reflect","construct","fun","thisValue","Func","arr2","_toConsumableArray","func","arrayForEach","unapply","arrayPop","arrayPush","stringToLowerCase","stringMatch","stringReplace","stringIndexOf","stringTrim","trim","regExpTest","typeErrorCreate","TypeError","_len2","_key2","thisArg","_len","_key","addToSet","element","lcElement","newObject","lookupGetter","console","warn","svg","svgFilters","svgDisallowed","mathMl","mathMlDisallowed","html$1","svg$1","mathMl$1","xml","MUSTACHE_EXPR","ERB_EXPR","DATA_ATTR","ARIA_ATTR","IS_ALLOWED_URI","IS_SCRIPT_OR_DATA","ATTR_WHITESPACE","_typeof","iterator","_toConsumableArray$1","getGlobal","_createTrustedTypesPolicy","trustedTypes","createPolicy","suffix","currentScript","hasAttribute","policyName","createHTML","html$$1","_","createDOMPurify","DOMPurify","version","isSupported","originalDocument","DocumentFragment","HTMLTemplateElement","Node","Element","NodeFilter","_window$NamedNodeMap","NamedNodeMap","MozNamedAttrMap","Text","Comment","DOMParser","ElementPrototype","cloneNode","getNextSibling","getChildNodes","getParentNode","template","content","ownerDocument","trustedTypesPolicy","emptyHTML","RETURN_TRUSTED_TYPE","_document","createNodeIterator","createDocumentFragment","getElementsByTagName","importNode","documentMode","hooks","createHTMLDocument","MUSTACHE_EXPR$$1","ERB_EXPR$$1","DATA_ATTR$$1","ARIA_ATTR$$1","IS_SCRIPT_OR_DATA$$1","ATTR_WHITESPACE$$1","IS_ALLOWED_URI$$1","ALLOWED_TAGS","DEFAULT_ALLOWED_TAGS","ALLOWED_ATTR","DEFAULT_ALLOWED_ATTR","FORBID_TAGS","FORBID_ATTR","ALLOW_ARIA_ATTR","ALLOW_DATA_ATTR","ALLOW_UNKNOWN_PROTOCOLS","SAFE_FOR_TEMPLATES","WHOLE_DOCUMENT","SET_CONFIG","FORCE_BODY","RETURN_DOM","RETURN_DOM_FRAGMENT","RETURN_DOM_IMPORT","SANITIZE_DOM","KEEP_CONTENT","IN_PLACE","USE_PROFILES","FORBID_CONTENTS","DEFAULT_FORBID_CONTENTS","DATA_URI_TAGS","DEFAULT_DATA_URI_TAGS","URI_SAFE_ATTRIBUTES","DEFAULT_URI_SAFE_ATTRIBUTES","MATHML_NAMESPACE","SVG_NAMESPACE","HTML_NAMESPACE","NAMESPACE","IS_EMPTY_INPUT","CONFIG","_parseConfig","cfg","ADD_URI_SAFE_ATTR","ADD_DATA_URI_TAGS","ALLOWED_URI_REGEXP","ADD_TAGS","ADD_ATTR","table","tbody","MATHML_TEXT_INTEGRATION_POINTS","HTML_INTEGRATION_POINTS","ALL_SVG_TAGS","ALL_MATHML_TAGS","_checkValidNamespace","namespaceURI","parentTagName","Boolean","commonSvgAndHTMLElements","_forceRemove","outerHTML","_removeAttribute","attribute","getAttributeNode","removeAttribute","_initDocument","doc","leadingWhitespace","dirtyPayload","parseFromString","createDocument","insertBefore","createTextNode","_createIterator","SHOW_ELEMENT","SHOW_COMMENT","SHOW_TEXT","_isClobbered","elm","attributes","_isNode","_executeHook","entryPoint","currentNode","hook","_sanitizeElements","allowedTags","firstElementChild","_isValidAttribute","lcTag","lcName","_sanitizeAttributes","attr","hookEvent","attrName","attrValue","keepAttr","allowedAttributes","_attr","forceKeepAttr","setAttributeNS","_sanitizeShadowDOM","fragment","shadowNode","shadowIterator","nextNode","sanitize","importedNode","oldNode","returnNode","toStaticHTML","nodeIterator","serializedHTML","setConfig","clearConfig","isValidAttribute","tag","addHook","hookFunction","removeHook","removeHooks","removeAllHooks","factory","_interopRequireDefault","_interopRequireWildcard","newObj","base","_handlebarsSafeString2","_handlebarsException2","Utils","runtime","_handlebarsNoConflict2","hb","HandlebarsEnvironment","SafeString","VM","spec","_utils","_exception2","_helpers","_decorators","_logger2","_internalProtoAccess","VERSION","COMPILER_REVISION","LAST_COMPATIBLE_COMPILER_REVISION","REVISION_CHANGES","3","4","5","6","7","8","helpers","partials","decorators","registerDefaultHelpers","registerDefaultDecorators","logger","log","registerHelper","unregisterHelper","registerPartial","partial","unregisterPartial","registerDecorator","unregisterDecorator","resetLoggedPropertyAccesses","resetLoggedProperties","instance","_helpersBlockHelperMissing2","_helpersEach2","_helpersHelperMissing2","_helpersIf2","_helpersLog2","_helpersLookup2","_helpersWith2","moveHelperToHooks","helperName","keepHelper","methodMap","level","lookupLevel","levelMap","createProtoAccessControl","runtimeOptions","defaultMethodWhiteList","defaultPropertyWhiteList","properties","whitelist","_createNewLookupObject","createNewLookupObject","allowedProtoProperties","defaultValue","allowProtoPropertiesByDefault","methods","allowedProtoMethods","allowProtoMethodsByDefault","resultIsAllowed","protoAccessControl","propertyName","checkWhiteList","loggedProperties","protoAccessControlForType","logUnexpecedPropertyAccessOnce","DW","safe","addMonth","currentMonth","currentDay","leapYear","_isLeapYear","targetMonth","targetDaysOfMonth","isBetween","Drag","_onMouseDown","distance","exclude","_cancelled","_isMoved","_distance","_dragStartFired","_dragStartEventData","preventDefaultWhenNotPopup","_clearData","_toggleDragEvent","toBind","domMethod","mousemove","_onMouseMove","mouseup","_onMouseUp","_getEventData","mouseDownEvent","fire","mouseMoveEvent","invoke","mouseUpEvent","ScheduleViewModel","hasCollide","extraSpace","hidden","renderStarts","exceedLeft","renderEnds","exceedRight","viewModel","VPanel","mAbs","VLayout","theme","tempHeights","panelHeights","_drag","dragStart","_onDragStart","drag","_onDrag","dragEnd","_onDragEnd","_dragData","panelOpt","isSplitter","autoHeight","addPanels","refresh","getLayoutData","heightList","panel","getHeight","setLayoutData","setHeight","nextPanel","prevPanel","_initializeGuideElement","cloned","_refreshGuideElement","_clearGuideElement","_resize","splPanel","startY","resizeInfo","resizedHeight","resizeMap","toDown","forwardMethod","getResizeInfoByGrowth","pair","_getMouseYAdditionalLimit","upper","below","minHeight","oEvent","splIndex","splHeight","splOffsetY","guideElement","minY","maxY","browser","msie","dragData","asideMinMax","layoutData","remainHeight","panelToFillHeight","layoutHeight","usedHeight","addPanel","frag","option","getPanelByName","Weekday","containerBottomGutter","scheduleHeight","scheduleGutter","_cacheParentViewModel","getBaseViewModel","gridWidth","exceedDate","scheduleBlockHeight","scheduleBlockGutter","isToday","hiddenSchedules","_getDayNameColor","backgroundColor","_getDayBackgroundColor","getExceedDate","maxCount","eventsInDateRange","_initExceedDate","matrix","period","isOtherMonth","holidayExceptThisMonth","holiday","dayExceptThisMonth","saturday","today","dayname","weekend","useRound","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","DatePicker","timezone","tmpl","ScheduleCreationPopup","calendars","usageStatistics","_viewModel","_selectedCal","_schedule","_focusedDropdown","_usageStatistics","_onClickListeners","_selectDropdownMenuItem","_toggleDropdownMenuView","_closeDropdownMenuView","_closePopup","_toggleIsAllday","_toggleIsPrivate","_onClickSaveSchedule","_onClick","clickEvent","listener","dropdownBtn","_openDropdownMenuView","dropdown","itemClassName","iconClassName","contentClassName","selectedItem","innerText","cal","checkbox","alldaySection","privateSection","rangeDate","form","rangePicker","getStartDate","getEndDate","_validateForm","_getRangeDate","_isEditMode","_onClickUpdateSchedule","_onClickCreateSchedule","boxElement","guideElements","selectedCal","_makeEditModeData","guide","_getGuideElements","_createDatepicker","_setPopupPositionAndArrowDirection","debounce","class","isEditMode","guideBound","layerSize","containerBound","_calcRenderingData","_setArrowDirection","arrow","_getBoundOfFirstRowGuideElement","bottom","right","_getYAndArrowDirection","guideBoundTop","guideBoundBottom","layerHeight","containerTop","containerBottom","arrowDirection","_getXAndArrowLeft","guideBoundLeft","guideBoundRight","layerWidth","containerLeft","containerRight","arrowLeft","guideHorizontalCenter","yPosInfo","xPosInfo","direction","arrowEl","borderElement","createRangePicker","startpicker","input","endpicker","timepicker","showMeridiem","clearGuideElement","setCalendars","triggerEventName","ScheduleDetailPopup","_calendar","_onClickEditSchedule","_onClickDeleteSchedule","_scheduleEl","_getScheduleModel","scheduleViewModel","startDayOffset","primaryTimezoneCode","startTimezoneOffset","endTimezoneOffset","offsetDiffMs","scheduleEl","blockEl","scheduleBound","_getYAndArrowTop","scheduleBoundTop","scheduleBoundBottom","scheduleVerticalCenter","arrowTop","_getXAndArrowDirection","scheduleBoundLeft","scheduleBoundRight","DayGridMoveGuide","DayGridMove","dragHandler","controller","_dragStart","checkExpectedCondition","parentView","cssClass","dragStartEventData","scheduleBlockElement","modelID","targetModel","getScheduleDataFunc","scheduleData","schedules","click","dragEventData","_updateSchedule","dateOffset","newStarts","newEnds","dragEndEventData","overrideEventName","skipUpdate","clickEventData","mabs","MonthGuide","label","isResizeMode","isCreationMode","styles","_getStyles","startCoord","_getRatioValueInWeek","_createGuideElement","_getGuideElement","_getCoordByDate","getIdxFromDiff","monthStart","renderStartDate","isBefore","_getLimitedCoord","coord","dragStartEvent","temp","renderMonth","update","_updateGuides","inds","ind","exceedLClass","exceedRClass","exceedL","exceedR","_getOriginIndicate","mouseCoord","_getMouseIndicate","_getContainIndicate","_removeGuideElements","yCoords","guides","_getExcludesInRange","numbers","excludes","limitedCoord","renderedYIndex","yCoordsToUpdate","yCoordsToRemove","renderIndication","guideYCoord","indicate","border","creationGuide","marginTop","marginLeft","marginRight","borderRadius","Calendar","jQuery","tuiCalendar","Handlebars","Layout","controllerFactory","weekViewFactory","monthViewFactory","reqAnimFrame","sendHostname","querySelector","_calendarColor","_renderDate","_renderRange","_controller","_createController","_layout","_dragHandler","_viewName","_refreshMethod","_scrollToNowMethod","_requestScrollToNow","_openCreationPopup","_hideMoreView","_requestRender","_options","_initialize","_setOptionRecurseively","viewName","taskView","scheduleView","useCreationPopup","useDetailPopup","timezones","zones","disableDblClick","disableClick","scheduleFilter","_setAdditionalInternalOptions","changeView","templateFn","setCalendarColor","timezoneOffset","createSchedules","silent","_setScheduleColor","getSchedule","scheduleId","updateSchedule","ctrl","_hasChangedCalendar","deleteSchedule","_getWeekDayRange","isDate","weekday","toggleSchedules","toHide","ownSchedules","immediately","_renderFunc","clearSchedules","scrollToNow","_setViewName","move","tempDate","datetimeOptions","renderDate","_getCurrentView","recursiveSet","renderEndDate","collapsed","next","prev","calColor","ownColor","clickScheduleData","_onClickMore","clickMoreSchedule","_onClickDayname","_onBeforeCreate","createScheduleData","_showCreationPopup","_onBeforeUpdate","updateScheduleData","_onBeforeDelete","deleteScheduleData","_onAfterRenderSchedule","_onClickTimezonesCollapseBtn","timezonesCollapsed","_toggleViewSchedule","isAttach","clickHandler","creation","creationHandler","moveHandler","resizeHandler","newViewName","created","layout","_createMonthView","_createWeekView","getViewName","openCreationPopup","showCreationPopup","hideMoreView","toggleTaskView","enabled","toggleScheduleView","getElement","setTheme","setOptions","innerValue","innerName","getOptions","getDateRangeStart","getDateRangeEnd","setTimezoneOffset","setTimezoneOffsetCallback","inverse","_exception","priorKey","execIteration","field","last","first","j","newContext","it","done","conditional","hash","includeZero","lookupProperty","_decoratorsInline2","_decoratorsInline","original","sources","checkRevision","compilerInfo","compilerRevision","currentRevision","_base","runtimeVersions","compilerVersions","templateSpec","env","main","decorator","main_d","compiler","templateWasPrecompiledWithCompilerV7","strict","lookup","depths","lambda","current","invokePartial","resolvePartial","extendedOptions","compile","compilerOptions","indent","lines","programs","program","declaredBlockParams","programWrapper","wrapProgram","depth","mergeIfNeeded","param","nullContext","noop","_setup","useData","initData","useBlockParams","useDepths","executeDecorators","isTop","mergedHelpers","helper","_internalWrapHelper","wrapHelper","passLookupPropertyOption","wrapHelpersToPassLookupProperty","usePartial","useDecorators","keepHelperInHelpers","allowCallsToHelperMissing","_child","currentPartialBlock","partialBlock","prog","currentDepths","transformOptionsFn","$Handlebars","noConflict","intlFormatter","typeToPos","minute","second","Intl","DateTimeFormat","formatToParts","formatter","hourCycle","timeZone","getIntlFormatter","parts","calculateOffset","dtf","formatted","filled","formattedLength","parseOffset","applyTheme","toggleChildView","flag","prefix","Base","Core","Week","Month","Theme","SCHEDULE_VULNERABLE_OPTIONS","sanitizeOptions","dateMatrix","_getContainDatesInSchedule","rangeDateByOffset","scheduleStart","scheduleEnd","getRangeDateByOffset","createSchedule","addSchedule","dataList","origin","_removeFromMatrix","_addToMatrix","ownMatrix","containDates","splitScheduleByDateRange","scheduleCollection","findByDateRange","viewModels","dformat","setStyles","existy","_changed","_dirty","isDirty","toDirty","deleteProp","isPropChanged","methodFilterR","wrap","_flag","_name","_wrapper","_fn","flagToSet","_wrapped","spaceRx","validators","fields","valid","fieldName","validator","values","validatorName","parameterize","themeStandard","themeConfig","customTheme","_map","HashMap","setStyle","errors","categories","child","removeAll","getCollisionGroup","previousScheduleList","collisionGroups","foundPrevCollisionSchedule","previous","group","getLastRowInColumn","col","row","getMatrices","scheduleID","nextRow","lastRowInColumn","getScheduleInDateRangeFilter","dateByOffset","recalculateDateByOffset","positionViewModels","matrices","ymdListToRender","dateLength","limitRenderRange","viewModelColl","convertToViewModel","modelColl","generateTimeArrayInRow","maxColLen","startStart","startEnd","endStart","endEnd","getFunc","block","getCollides","binaryMap","maxRowLength","getViewModelForTimeView","ymdSplitted","_getViewModel","_makeGetViewModelFuncForTimeView","_makeHourRangeFilter","hStart","hEnd","ownHourStart","ownHourEnd","yyyy","mm","dd","_addMultiDatesInfo","vColl","getViewModelForAlldayView","ctrlCore","ctrlWeek","andFilters","scheduleTypes","pluck","excludeExceedSchedules","visibleScheduleCount","_onlyTimeFilter","_onlyAlldayFilter","_weightTopValue","_adjustRenderRange","_getAlldayMaxTopIndexAtYMD","vAlldayColl","topIndexesInDate","_adjustTimeTopIndex","ctrlMonth","getAlldayMaxTopIndexAtYMD","sortedTimeSchedules","maxIndexInYMD","timeViewModel","scheduleYMD","alldayMaxTopInYMD","_stackTimeFromTop","indiceInYMD","maxTopInYMD","topArrayInYMD","alldayFirstMode","coll","vList","collisionGroup","DayName","DayGrid","TimeGrid","DayNameClick","DayGridClick","DayGridCreation","DayGridResize","TimeClick","TimeCreation","TimeMove","TimeResize","DAYGRID_HANDLDERS","TIMEGRID_HANDLERS","DEFAULT_PANELS","maxHeight","showExpandableButton","maxExpandableHeight","handlers","baseController","layoutContainer","weekView","dayNameContainer","dayNameView","vLayoutContainer","createView","onSaveNewSchedule","onSetCalendars","lastVPanel","detailView","onShowDetailPopup","onDeleteSchedule","onShowEditPopup","onEditSchedule","vpanels","viewVisibilities","addHandler","weekViewHeight","daynameViewHeight","invokeCreationClick","isHeightForcedSet","_initPanel","setMaxHeight","setHeightForcedSet","getHeightForcedSet","newHeight","growth","resizeTo","borderTop","vpanelSplitter","borderBottom","_getRenderDateRange","showTimezoneCollapseButton","_disableDayOptions","schedulesInDateRange","_invokeAfterRenderSchedule","matricesOfDay","baseDate","daynameTmpl","daynames","_getBaseViewModel","isPastDay","dayName","dayNames","baseViewModel","pastDay","numberAndUnit","timezonesLength","borderLeft","paddingLeft","textAlign","daygridLeft","depth0","stack1","alias1","alias2","helperMissing","alias3","alias4","alias5","DayGridSchedule","baseTmpl","dayGridSchedule","scheduleContainerTop","getViewModelFunc","setViewModelFunc","vPanel","getWeekBackgroundColor","weekendBackgroundColor","todayBackgroundColor","getPanel","panelHeight","heightForcedSet","collapseBtnIndex","clickedExpandBtnIndex","weekdayViewModel","_expand","_collapse","borderRight","leftWidth","leftBackgroundColor","leftPaddingRight","paddingRight","leftBorderRight","_getMaxScheduleInDay","_getMinHeight","maxScheduleInDay","Time","AutoScroll","mainTmpl","timezoneStickyTmpl","timegridCurrentTimeTmpl","getHoursLabels","hasHourMarker","nowHours","nowHoursIndex","shiftByOffset","shiftMinutes","nowMinutes","hoursRange","nowAroundHours","fontWeight","pastTimeColor","pastTimeFontWeight","futureTimeColor","futureTimeFontWeight","getOffsetByTimezoneOption","panelElement","stickyContainer","safari","_autoScroll","intervalID","timerID","rAnimationFrameID","_scrolled","_cacheHoursLabels","clearInterval","clearTimeout","_onClickStickyContainer","hourmarkers","_getTopPercentByTime","topPercent","maxMilliseconds","hmsMilliseconds","_getHourmarkerViewModel","todaymarkerLeft","todaymarkerWidth","hourmarkerTimzones","dateDifference","hourmarker","timezoneDifference","dateDifferenceSign","currentHours","hourmarkerTop","todaymarkerRight","_getTimezoneViewModel","timezoneViewModel","displayTimezoneLabelBackgroundColor","timeSlots","additionalTimezoneBackgroundColor","displayLabel","tooltip","isPrimary","hoursLabels","_renderChildren","childOption","containerHeight","parentElement","scheduleLen","showHourMarker","renderStickyContainer","_hourLabels","displayTimezoneLabelHeight","refreshHourmarker","needsRender","hoursLabel","todaymarker","hourmarkerContainer","timezoneIndex","setTimeout","onTick","offsetTop","viewBound","scrollTop","scrollAmount","scrollFn","setInterval","timegridHorizontalLine","halfHourBorderBottom","timegridHalfHour","timegridLeft","leftFontSize","fontSize","timezoneWidth","timegridLeftAdditionalTimezone","timegridLeftTimezoneLabel","oneHourHeight","timegridOneHour","halfHourHeight","quaterHourHeight","currentTimeColor","currentTime","currentTimeFontSize","currentTimeFontWeight","pastTime","futureTime","currentTimeLeftBorderTop","currentTimeLinePast","currentTimeBulletBackgroundColor","currentTimeLineBullet","currentTimeTodayBorderTop","currentTimeLineToday","currentTimeRightBorderTop","currentTimeLineFuture","timeTmpl","pending","defaultMarginBottom","_parseDateGroup","_getScheduleViewBoundX","baseWidth","baseLeft","columnIndex","_getScheduleViewBoundY","goingDurationHeight","modelDurationHeight","comingDurationHeight","baseMS","baseHeight","croppedStart","croppedEnd","modelDuration","offsetStart","todayStart","getOffsetStart","hasGoingDuration","hasComingDuration","getScheduleViewBound","boundX","boundY","travelBorderColor","widthPercent","leftPercents","timegrid","timegridSchedule","_direction","DIRECTION","INSIDE","_offset","_intervalID","TOP","RIGHT","BOTTOM","LEFT","_getEdgePositions","clientRect","getRealSize","padding","computed","clientWidth","clientHeight","hasScrollbar","realSize","isOnScrollbar","_onTick","edge","scrollLeft","__WEBPACK_EXTERNAL_MODULE__81__","checkExpectCondition","daynameView","blockElement","dayGridScheduleView","collapseBtnElement","expandBtnElement","daygridMove","scheduleContainer","_dragStartXIndex","_showOriginScheduleBlocks","_hideOriginScheduleBlocks","scheduleBlocks","_highlightScheduleBlocks","margin","borderLeftColor","refreshGuideElement","leftPercent","isExceededLeft","isExceededRight","_getScheduleBlockDataFunc","baseWidthPercent","originScheduleStarts","originScheduleEnds","fromLeft","fromRight","indexOffset","originLength","leftIndex","newLeft","newWidth","getScheduleBlockWidth","DayGridCreationGuide","CLICK_DELAY","_requestOnClick","_disableDblClick","_disableClick","_onDblClick","schedulesElement","_createSchedule","startXIndex","initializeGuideElement","dragstart","_getGuideWidth","dragStartIndex","dragEndIndex","defer","dragEndXIndex","DayGridResizeGuide","getGuideElementWidthFunc","viewOptions","timeGridView","schedulesCollection","TimeCreationGuide","_getScheduleDataFunc","revise","dateStart","dateEnd","createRange","condResult","targetDate","MIN60","timeCreation","guideTimeElement","_styleUnit","_styleStart","_styleFunc","timeCreationDragstart","timeCreationDrag","timeCreationClick","timeElement","bottomLabel","_getUnitData","viewOpt","todayEnd","_limitStyleData","unitData","_getStyleDataFunc","todayStartTime","todayEndTime","gridTimeY","gridEndTimeY","styleFunc","styleData","heightOfHalfHour","endStyle","startStyle","timeStyle","TimeMoveGuide","_guide","_getTimeView","mouseDownEventData","firefox","targetModelID","currentView","nearestRange","timeDiff","dateDiff","timeMove","_guideLayer","_model","_lastDrag","_container","_getTopFunc","_startGridY","_startTopPixel","_resetGuideLayer","bottomLimit","guideHeight","gridYOffset","gridYOffsetPixel","gridDiff","TimeResizeGuide","startScheduleData","timeResize","_originScheduleElement","_startHeightPixel","originElement","minTimeHeight","timeHeight","timeMinHeight","guideTop","minutesLength","MonthClick","MonthCreation","MonthResize","MonthMove","More","monthViewContainer","moreView","clearSchedulesHandler","onUpdateSchedule","getViewModelForMoreLayer","getMoreViewElement","onShowCreationPopup","WeekdayInMonth","monthOption","header","footer","_getMonthCalendar","heightPercent","gridOption","weekdayViewContainer","daynameViewModel","daynameModel","scheduleTmpl","_getRenderLimitIndex","count","gridHeaderHeight","gridFooterHeight","renderLimitIdx","dateObj","scheduleBulletTop","moreElement","getMousePosDate","Guide","getScheduleData","_cache","isElementWeekdayGrid","dragEvent","dragEndEvent","times","_adjustStartAndEndTime","MonthCreationGuide","monthCreation","monthCreationDragstart","monthCreationDrag","monthCreationDragend","monthCreationClick","getMousePosData","MonthResizeGuide","scheduleCache","newEnd","monthResize","monthResizeDragstart","monthResizeDrag","monthResizeDragend","_hideScheduleBlocks","_showScheduleBlocks","MonthMoveGuide","startDateRaw","dragEndTime","newStartDate","getMonthScheduleBlock","blockSelector","getMoreLayerScheduleBlock","hasPermissionToHandle","monthMove","monthMoveDragstart","monthMoveDrag","monthMoveDragend","_clearGridBgColor","beforeGridElement","_updateGridBgColor","gridElements","targetIndex","firstWeekdayView","weekdayOptions","moreLayerSize","_getRenderPosition","weekItem","containerSize","calWidth","calHeight","isOverWidth","isOverHeight","optMoreLayerSize","leftPos","topPos","titleHeight","titleMarginBottom","paddingBottom","listHeight","boxShadow","moreViewTitle","marginBottom","titleBackgroundColor","titleBorderBottom","titlePadding","listPadding","moreViewList","oper","getElSize","getElLeft","getElWidth","blockHeight","paddingTop","classDay","classDayLabel","classNames","classDate","gmt","meridiem","templates","endFormat","postfix"],"mappings":";;;;;;CAAA,cACA,kDACA,yEACA,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,WAEpD,OAAI6W,EACOha,EAAS6E,OAAOxC,EAAO,eAAiBc,EAAa,GAAK,MAAQnD,EAAS6E,OAAOvC,EAAK,eAG1FtC,EAAS6E,OAAOxC,EAAO,uBAAyB,MAAQrC,EAAS6E,OAAOvC,EAAK0/D,IAEzF,2BAA4B,SAAS31D,GACjC,OAAOA,EAASyO,UAEpB,uBAAwB,SAASzO,GAC7B,OAAQA,EAAS0O,WAAa,IAAIna,KAAK,OAE3C,wBAAyB,SAASyL,GAC9B,OAAOA,EAAS+H,OAAS,QAE7B,yBAA0B,SAAS/H,GAC/B,OAAOA,EAAS2O,gBAEpB,uBAAwB,SAAS3O,GAC7B,OAAOA,EAASlV,MAEpB,iBAAkB,WACd,MAAO,QAEX,mBAAoB,WAChB,MAAO,WAWf,SAASiqE,EAAU/rE,EAAO4sE,EAASloB,GAE/B,OADAA,EAASA,GAAU,GACfvjD,EAAKoF,SAASvG,GACP0kD,EAAS,IAAM1kD,EAAQ4sE,EAG3BloB,EAAS,QAmBpB,SAASunB,EAAW/oC,EAAW7Y,GAK3B,IAJA,IAGI/jB,EAHAY,EAAQ,EACRnI,EAAI,EACJ0E,EAAS4mB,EAAM5mB,OAEZ1E,EAAImkC,EAAUh8B,MAAOnI,GAAK,EAC7BuH,GAAQ48B,EAAU58B,KAAOvH,GAAK0E,GAC9B6C,GAAQsL,UAAUsxB,EAAU58B,KAAOvH,GAAK0E,EAAQ,KACrCA,IACPyD,GAASmjB,EAAM/jB,GAAQ+jB,EAAM/jB,GAAMY,MAAQ,GAInD,OAAOA,EAGXgwC,EAAWvZ,eAAeP","file":"tui-calendar.min.js","sourcesContent":[null," \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 \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\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.l = 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// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 37);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","/* eslint complexity: 0, no-shadow: 0, max-nested-callbacks: 0 */\n/**\n * @fileoverview Utility modules for manipulate DOM elements.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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;\n\n if (!el) {\n return null;\n }\n\n 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] || 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 // When the element's left or top is '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\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, onSelectstartHandler) {\n domevent.on(dom, 'selectstart', onSelectstartHandler || 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(dom, onSelectstartHandler) {\n domevent.off(window, 'selectstart', onSelectstartHandler || 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 * @fileoverview Global configuration object module. This @echo syntax will change preprocess context. See gulpfile.js\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 daygrid: {\n getViewIDRegExp: alldayGetViewID,\n checkCondRegExp: alldayCheckPermission\n },\n\n time: {\n getViewIDRegExp: timeGetViewID\n }\n};\n\nmodule.exports = config;\n","/**\n * @fileoverview datetime utility module\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 /**\n * @param {TZDate} date date object\n * @returns {string} hh:mm\n */\n 'hh:mm': function(date) {\n var hour = date.getHours();\n var minutes = date.getMinutes();\n\n if (hour > 12) {\n hour = hour % 12;\n }\n\n return datetime.leadingZero(hour, 2) + ':' +\n datetime.leadingZero(minutes, 2);\n },\n\n /**\n * @param {TZDate} date date object\n * @returns {string} tt\n */\n 'tt': function(date) {\n var hour = date.getHours();\n\n return hour < 12 ? 'am' : 'pm';\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 * The number of milliseconds 20 minutes for schedule min duration\n * @type {number}\n */\n MILLISECONDS_SCHEDULE_MIN_DURATION: 20 * 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 * Convert hours to minutes\n * @param {number} hours - hours\n * @returns {number} minutes\n */\n minutesFromHours: function(hours) {\n return hours * 60;\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 {TZDate[]} TZDate 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(new TZDate(start));\n var result = [];\n\n while (cursor <= endTime && endTime >= date.d.getTime()) {\n result.push(datetime.start(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);\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 {(TZDate|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().setWithRaw(\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 0\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. if undefined, use now.\n * @returns {TZDate} start date.\n */\n start: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\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. if undefined, use now.\n * @returns {TZDate} end date.\n */\n end: function(date) {\n var d = date ? new TZDate(date) : new TZDate();\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(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.<TZDate[]>} 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 = util.isUndefined(options.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 = datetime.start(start).addDate(-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 = datetime.start(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 /**\n * Whether date is between supplied dates with date value?\n * @param {TZDate} d - target date\n * @param {TZDate} d1 - from date\n * @param {TZDate} d2 - to date\n * @returns {boolean} is between?\n */\n isBetweenWithDate: function(d, d1, d2) {\n var format = 'YYYYMMDD';\n d = parseInt(datetime.format(d, format), 10);\n d1 = parseInt(datetime.format(d1, format), 10);\n d2 = parseInt(datetime.format(d2, format), 10);\n\n return d1 <= d && d <= d2;\n },\n\n isStartOfDay: function(d) {\n return !datetime.compare(datetime.start(d), d);\n },\n\n convertStartDayToLastDay: function(d) {\n var date = new TZDate(d);\n if (datetime.isStartOfDay(d)) {\n date.setDate(date.getDate() - 1);\n date.setHours(23, 59, 59);\n }\n\n return date;\n },\n\n getStartOfNextDay: function(d) {\n var date = datetime.start(d);\n date.setHours(24);\n\n return date;\n },\n\n getDateDifference: function(d1, d2) {\n var time1 = new TZDate(d1.getFullYear(), d1.getMonth(), d1.getDate()).getTime();\n var time2 = new TZDate(d2.getFullYear(), d2.getMonth(), d2.getDate()).getTime();\n\n return Math.round((time1 - time2) / datetime.MILLISECONDS_PER_DAY);\n },\n\n getHourDifference: function(d1, d2) {\n var time1 = new TZDate(d1).getTime();\n var time2 = new TZDate(d2).getTime();\n\n return Math.round((time1 - time2) / datetime.MILLISECONDS_PER_HOUR);\n },\n\n hasMultiDates: function(start, end) {\n var diffDays = datetime.getDateDifference(start, end);\n var diffHours = Math.abs(datetime.getHourDifference(start, end));\n var withinDay = Math.abs(diffDays) === 1 && diffHours < 24 && datetime.isStartOfDay(end);\n\n return !datetime.isSameDate(start, end) && !withinDay;\n },\n\n renderEnd: function(start, end) {\n var diffDays = datetime.getDateDifference(start, end);\n\n return Math.abs(diffDays) >= 1 && datetime.isStartOfDay(end) ?\n datetime.convertStartDayToLastDay(end) :\n datetime.end(end);\n }\n};\n\nmodule.exports = datetime;\n","/**\n * @fileoverview timezone\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar intlUtil = require('./intlUtil');\n\nvar MIN_TO_MS = 60 * 1000;\nvar nativeOffsetMs = getTimezoneOffset();\nvar customOffsetMs = nativeOffsetMs;\nvar timezoneOffsetCallback = null;\nvar setByTimezoneOption = false;\nvar offsetCalculator = null;\nvar primaryOffset, primaryTimezoneName;\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\nvar STANDARD_TO_DST = 1;\nvar DST_TO_STANDARD = -1;\n\n/**\n * Get the timezone offset by timestampe\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n * @private\n */\nfunction getTimezoneOffset(timestamp) {\n timestamp = !util.isUndefined(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 * @private\n */\nfunction getCustomTimezoneOffset(timestamp) {\n if (!setByTimezoneOption && timezoneOffsetCallback) {\n return timezoneOffsetCallback(timestamp) * MIN_TO_MS;\n }\n\n return customOffsetMs;\n}\n\n/**\n * Convert to local time\n * @param {number} time - time\n * @returns {number} local time\n */\nfunction getLocalTime(time) {\n var customTimezoneOffset, localTime;\n\n if (!setByTimezoneOption) {\n return time;\n }\n\n customTimezoneOffset = getCustomTimezoneOffset(time);\n localTime = time - customTimezoneOffset + nativeOffsetMs;\n\n return localTime;\n}\n\n/**\n * Create a Date instance with multiple arguments\n * @param {Array} args - arguments\n * @returns {Date}\n * @private\n */\nfunction createDateWithMultipleArgs(args) {\n var utc = Date.UTC.apply(null, args);\n\n return new Date(utc + getTimezoneOffset(utc));\n}\n\n/**\n * To convert a Date to TZDate as it is.\n * @param {TZDate|number|null} arg - date\n * @returns {Date}\n */\nfunction createDateWithUTCTime(arg) {\n var time;\n\n if (arg instanceof TZDate) {\n time = arg.getUTCTime();\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);\n}\n\n/**\n * Convert time to local time. Those times are only from API and not from inner source code.\n * @param {Date|string} arg - date\n * @returns {Date}\n */\nfunction createDateAsLocalTime(arg) {\n var time;\n\n if (arg instanceof Date) {\n time = arg.getTime();\n } else if (typeof arg === 'string') {\n time = Date.parse(arg);\n } else {\n throw new Error('Invalid Type');\n }\n\n time = getLocalTime(time);\n\n return new Date(time);\n}\n\n/**\n * is it for local time? These type can be used from Calendar API.\n * @param {Date|string} arg - date\n * @returns {boolean}\n */\nfunction useLocalTimeConverter(arg) {\n return arg instanceof Date || typeof arg === 'string';\n}\n\n/**\n * Timezone Date Class\n * @param {number|TZDate|Date|string} date - date to be converted\n * @constructor\n */\nfunction TZDate(date) {\n var nativeDate;\n\n if (util.isUndefined(date)) {\n date = Date.now();\n }\n\n if (arguments.length > 1) {\n nativeDate = createDateWithMultipleArgs(arguments);\n } else if (useLocalTimeConverter(date)) {\n nativeDate = createDateAsLocalTime(date);\n } else {\n nativeDate = createDateWithUTCTime(date);\n }\n\n this._date = nativeDate;\n}\n\n/**\n * Get milliseconds which is converted by timezone\n * @returns {number} milliseconds\n */\nTZDate.prototype.getTime = function() {\n var time = this._date.getTime();\n\n return time + getCustomTimezoneOffset(time) - getTimezoneOffset(time);\n};\n\n/**\n * Get UTC milliseconds\n * @returns {number} milliseconds\n */\nTZDate.prototype.getUTCTime = function() {\n return this._date.getTime();\n};\n\n/**\n * toUTCString\n * @returns {string}\n */\nTZDate.prototype.toUTCString = function() {\n return this._date.toUTCString();\n};\n\n/**\n * to Date\n * @returns {Date}\n */\nTZDate.prototype.toDate = function() {\n return this._date;\n};\n\nTZDate.prototype.valueOf = function() {\n return this.getTime();\n};\n\nTZDate.prototype.addDate = function(day) {\n this.setDate(this.getDate() + day);\n\n return this;\n};\n\nTZDate.prototype.addMinutes = function(minutes) {\n this.setMinutes(this.getMinutes() + minutes);\n\n return this;\n};\n\nTZDate.prototype.addMilliseconds = function(milliseconds) {\n this.setMilliseconds(this.getMilliseconds() + milliseconds);\n\n return this;\n};\n\n/* eslint-disable max-params*/\nTZDate.prototype.setWithRaw = function(y, M, d, h, m, s, ms) {\n this.setFullYear(y, M, d);\n this.setHours(h, m, s, ms);\n\n return this;\n};\n\n/**\n * @returns {TZDate} local time\n */\nTZDate.prototype.toLocalTime = function() {\n var time = this.getTime();\n var utcTime = this.getUTCTime();\n var diff = time - utcTime;\n\n return new TZDate(utcTime - diff);\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\n/**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\nfunction setOffset(offset) {\n customOffsetMs = offset * MIN_TO_MS;\n}\n\n/**\n * Set primary offset\n * @param {number} offset - offset\n */\nfunction setPrimaryOffset(offset) {\n primaryOffset = offset;\n setOffset(offset);\n}\n\n/**\n * Return primary offset\n * @returns {number} offset\n */\nfunction getPrimaryOffset() {\n return util.isNumber(primaryOffset) ? primaryOffset : new Date().getTimezoneOffset();\n}\n\n/**\n * Set primary timezone name\n * @param {string} timezoneName - timezone name (time zone names of the IANA time zone database, such as 'Asia/Seoul', 'America/New_York')\n */\nfunction setPrimaryTimezoneCode(timezoneName) {\n primaryTimezoneName = timezoneName;\n}\n\n/**\n * Get offset by timezoneName\n * @param {string} timezoneName - timezone name (time zone names of the IANA time zone database, such as 'Asia/Seoul', 'America/New_York')\n * @param {number} timestamp - timestamp\n * @returns {number} timezone offset\n */\nfunction getOffsetByTimezoneName(timezoneName, timestamp) {\n var offset = getPrimaryOffset();\n var calculator;\n\n if (!timezoneName) {\n return offset;\n }\n\n calculator = getOffsetCalculator(timezoneName);\n\n return calculator ? calculator(timezoneName, timestamp) : offset;\n}\n\n/**\n * Set a calculator function to get timezone offset by timestamp\n * @param {function} calculator - offset calculator\n */\nfunction setOffsetCalculator(calculator) {\n offsetCalculator = calculator;\n}\n\n/**\n * Return a function to calculate timezone offset by timestamp\n * @param {string} timezoneName - timezone name\n * @returns {function | null} offset calculator\n */\nfunction getOffsetCalculator(timezoneName) {\n if (util.isFunction(offsetCalculator)) {\n return offsetCalculator;\n }\n\n if (intlUtil.supportIntl(timezoneName)) {\n return intlUtil.offsetCalculator;\n }\n\n return null;\n}\n\n/**\n * Set timezone and offset by timezone option\n * @param {Timezone} timezoneObj - {@link Timezone}\n */\nfunction setPrimaryTimezoneByOption(timezoneObj) {\n var timezoneName, offset;\n\n if (!(timezoneObj && timezoneObj.timezoneName)) {\n return;\n }\n\n timezoneName = timezoneObj.timezoneName;\n setByTimezoneOption = true;\n setPrimaryTimezoneCode(timezoneName);\n\n offset = getOffsetByTimezoneName(timezoneName, Date.now());\n\n if (offset === nativeOffsetMs / MIN_TO_MS) {\n setByTimezoneOption = false;\n }\n\n setPrimaryOffset(offset);\n}\n\n/**\n * Get primary timezone name\n * @returns {string} primary timezone name (time zone names of the IANA time zone database, such as 'Asia/Seoul', 'America/New_York')\n */\nfunction getPrimaryTimezoneName() {\n return primaryTimezoneName;\n}\n\n/**\n * Compare the start and end times to see if the time zone is changing.\n * @param {number} startTime - start timestamp\n * @param {number} endTime - end timestamp\n * @returns {object} whether to change the offset and offset difference value\n */\nfunction isDifferentOffsetStartAndEndTime(startTime, endTime) {\n var offset1 = getOffsetByTimezoneName(primaryTimezoneName, startTime);\n var offset2 = getOffsetByTimezoneName(primaryTimezoneName, endTime);\n var result = 0;\n\n if (offset1 > offset2) {\n result = STANDARD_TO_DST;\n } else if (offset1 < offset2) {\n result = DST_TO_STANDARD;\n }\n\n return {\n isOffsetChanged: result,\n offsetDiff: offset1 - offset2\n };\n}\n\nmodule.exports = {\n Date: TZDate,\n\n setOffset: setOffset,\n\n /**\n * Set offset\n * @param {number} offset - timezone offset based on minutes\n */\n setOffsetByTimezoneOption: function(offset) {\n this.setOffset(-offset);\n primaryOffset = -offset;\n setByTimezoneOption = true;\n },\n\n /**\n * Get offset in case of `setByTimezoneOption`. Or return 0.\n * @returns {number} timezone offset offset minutes\n */\n getOffset: function() {\n if (setByTimezoneOption) {\n return customOffsetMs / MIN_TO_MS;\n }\n\n return 0;\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 getNativeOffsetMs: function() {\n return nativeOffsetMs;\n },\n\n /**\n * Check to use custom timezone option\n * @returns {boolean} use custom timezone option\n */\n hasPrimaryTimezoneCustomSetting: function() {\n return setByTimezoneOption;\n },\n\n resetCustomSetting: function() {\n setByTimezoneOption = false;\n },\n\n setOffsetCalculator: setOffsetCalculator,\n\n setPrimaryTimezoneByOption: setPrimaryTimezoneByOption,\n\n getPrimaryOffset: getPrimaryOffset,\n\n getOffsetByTimezoneName: getOffsetByTimezoneName,\n\n getPrimaryTimezoneName: getPrimaryTimezoneName,\n\n isNativeOsUsingDSTTimezone: function() {\n var year = new Date().getFullYear();\n var jan = new Date(year, 0, 1).getTimezoneOffset();\n var jul = new Date(year, 6, 1).getTimezoneOffset();\n\n return jan !== jul;\n },\n\n isPrimaryUsingDSTTimezone: function() {\n var year = new Date().getFullYear();\n var jan = new Date(year, 0, 1);\n var jul = new Date(year, 6, 1);\n\n return (\n getOffsetByTimezoneName(primaryTimezoneName, jan) !==\n getOffsetByTimezoneName(primaryTimezoneName, jul)\n );\n },\n\n isDifferentOffsetStartAndEndTime: isDifferentOffsetStartAndEndTime,\n setPrimaryTimezoneCode: setPrimaryTimezoneCode\n};\n","/**\n * @fileoverview common/general utilities.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\n\nvar domutil = require('../common/domutil'),\n Collection = require('../common/collection');\nvar datetime = require('../common/datetime');\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 * @returns {Collection} new collection for schedule models.\n */\n createScheduleCollection: function() {\n return new Collection(scheduleIDGetter);\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 * 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 /**\n * Limit supplied date base on `min`, `max`\n * @param {TZDate} date - date\n * @param {TZDate} min - min\n * @param {TZDate} max - max\n * @returns {TZDate} limited value\n */\n limitDate: function(date, min, max) {\n if (date < min) {\n return min;\n }\n if (date > max) {\n return max;\n }\n\n return date;\n },\n\n /**\n * Max value with TZDate type for timezone calculation\n * @param {TZDate} d1 - date 1\n * @param {TZDate} d2 - date 2\n * @returns {TZDate}\n */\n maxDate: function(d1, d2) {\n if (d1 > d2) {\n return d1;\n }\n\n return d2;\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.<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.<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 elements that have exceeded content in\n * container\n * @param {string} selector - CSS selector {@see domutil#find}\n * @param {HTMLElement} container - container element\n * @param {boolean} force - force to apply\n */\n setAutoEllipsis: function(selector, container, force) {\n util.forEach(domutil.find(selector, container, true), function(el) {\n if (force || el.offsetWidth < el.scrollWidth) {\n el.setAttribute('title', domutil.getData(el, 'title'));\n }\n });\n },\n\n /**\n * Set the value at path of object.\n * @param {object} object - the object to modify\n * @param {string} path -the path of property to set\n * @param {*} value - the value to set\n */\n set: function(object, path, value) {\n var names = path.split('.');\n var store = object;\n\n util.forEach(names, function(name, index) {\n store[name] = store[name] || {};\n\n if (index === names.length - 1) {\n store[name] = value;\n } else {\n store = store[name];\n }\n });\n },\n\n /**\n * shift a array\n * @param {Array.<any>} array - array\n * @param {number} shift - positive or negative integer to shift\n * @returns {Array.<any>} shifted array\n */\n shiftArray: function(array, shift) {\n var length = Math.abs(shift);\n var i;\n\n if (shift > 0) {\n for (i = 0; i < length; i += 1) {\n array.push(array.shift());\n }\n } else if (shift < 0) {\n for (i = 0; i < length; i += 1) {\n array.unshift(array.pop());\n }\n }\n\n return array;\n },\n\n /**\n * take elements from array between start and end.\n * @param {Array.<any>} array - array\n * @param {number} start - start index\n * @param {number} end - end index\n * @returns {Array.<any>}\n */\n takeArray: function(array, start, end) {\n var length = array.length;\n var rightCount = length - end;\n var leftCount = start;\n\n // remove right\n array.splice(end, rightCount);\n // remove left\n array.splice(0, leftCount);\n\n return array;\n },\n\n /**\n * shift hours\n * @param {number} hours - hours\n * @param {number} shift - positive or negative integer to shift\n * @returns {number} shifted hours\n */\n shiftHours: function(hours, shift) {\n if (shift > 0) {\n hours = (hours + shift) % 24;\n } else if (shift < 0) {\n hours += shift;\n hours = hours > 0 ? hours : 24 + hours;\n }\n\n return hours;\n },\n\n /**\n * Parse css value into number and units\n * @param {string} cssValue - css value like '72px'\n * @returns {Array} [number, unit]\n */\n parseUnit: function(cssValue) {\n var number = parseFloat(cssValue, 10);\n var unit = cssValue.match(/[\\d.\\-+]*\\s*(.*)/)[1] || '';\n\n return [number, unit];\n },\n\n find: function(array, iteratee, contextopt) {\n var found;\n\n util.forEach(array, function(item) {\n if (iteratee) {\n found = iteratee(item);\n }\n\n if (found) {\n found = item;\n\n return false;\n }\n\n return true;\n }, contextopt);\n\n return found;\n },\n\n getScheduleChanges: function(schedule, propNames, data) {\n var changes = {};\n var dateProps = ['start', 'end'];\n\n util.forEach(propNames, function(propName) {\n if (dateProps.indexOf(propName) > -1) {\n if (datetime.compare(schedule[propName], data[propName])) {\n changes[propName] = data[propName];\n }\n } else if (!util.isUndefined(data[propName]) && schedule[propName] !== data[propName]) {\n changes[propName] = data[propName];\n }\n });\n\n return util.isEmpty(changes) ? null : changes;\n }\n};\n","/* eslint complexity: 0 */\n/**\n * @fileoverview Utility module for handling DOM events.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar eventKey = '_evt',\n DRAG_START = ['touchstart', 'mousedown'];\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 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 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 /**\n * Get target from event object\n *\n * @param {Event} event - The event object\n * @returns {object} - The event target object\n */\n getEventTarget: function(event) {\n return event.target || event.srcElement;\n }\n};\n\nmodule.exports = domevent;\n","// 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","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","/**\n * @fileoverview The base class of views.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * state of view\n */\n this.state = {};\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\n/**\n * set state\n * @param {object} state - state\n */\nView.prototype.setState = function(state) {\n util.extend(this.state, state);\n};\n\nutil.CustomEvents.mixin(View);\n\nmodule.exports = View;\n","'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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3V0aWxzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFNLE1BQU0sR0FBRztBQUNiLEtBQUcsRUFBRSxPQUFPO0FBQ1osS0FBRyxFQUFFLE1BQU07QUFDWCxLQUFHLEVBQUUsTUFBTTtBQUNYLEtBQUcsRUFBRSxRQUFRO0FBQ2IsS0FBRyxFQUFFLFFBQVE7QUFDYixLQUFHLEVBQUUsUUFBUTtBQUNiLEtBQUcsRUFBRSxRQUFRO0NBQ2QsQ0FBQzs7QUFFRixJQUFNLFFBQVEsR0FBRyxZQUFZO0lBQzNCLFFBQVEsR0FBRyxXQUFXLENBQUM7O0FBRXpCLFNBQVMsVUFBVSxDQUFDLEdBQUcsRUFBRTtBQUN2QixTQUFPLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztDQUNwQjs7QUFFTSxTQUFTLE1BQU0sQ0FBQyxHQUFHLG9CQUFvQjtBQUM1QyxPQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsU0FBUyxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtBQUN6QyxTQUFLLElBQUksR0FBRyxJQUFJLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBRTtBQUM1QixVQUFJLE1BQU0sQ0FBQyxTQUFTLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLEV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0aCA/IGNvbnRleHRQYXRoICsgJy4nIDogJycpICsgaWQ7XG59XG4iXX0=\n","/**\n * @fileoverview RequestAnimFrame\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\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, fn.bind(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","'use strict';\n\nexports.__esModule = true;\nvar errorProps = ['description', 'fileName', 'lineNumber', 'endLineNumber', 'message', 'name', 'number', 'stack'];\n\nfunction Exception(message, node) {\n var loc = node && node.loc,\n line = undefined,\n endLineNumber = undefined,\n column = undefined,\n endColumn = undefined;\n\n if (loc) {\n line = loc.start.line;\n endLineNumber = loc.end.line;\n column = loc.start.column;\n endColumn = loc.end.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 this.endLineNumber = endLineNumber;\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 Object.defineProperty(this, 'endColumn', {\n value: endColumn,\n enumerable: true\n });\n } else {\n this.column = column;\n this.endColumn = endColumn;\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2V4Y2VwdGlvbi5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxJQUFNLFVBQVUsR0FBRyxDQUNqQixhQUFhLEVBQ2IsVUFBVSxFQUNWLFlBQVksRUFDWixlQUFlLEVBQ2YsU0FBUyxFQUNULE1BQU0sRUFDTixRQUFRLEVBQ1IsT0FBTyxDQUNSLENBQUM7O0FBRUYsU0FBUyxTQUFTLENBQUMsT0FBTyxFQUFFLElBQUksRUFBRTtBQUNoQyxNQUFJLEdBQUcsR0FBRyxJQUFJLElBQUksSUFBSSxDQUFDLEdBQUc7TUFDeEIsSUFBSSxZQUFBO01BQ0osYUFBYSxZQUFBO01BQ2IsTUFBTSxZQUFBO01BQ04sU0FBUyxZQUFBLENBQUM7O0FBRVosTUFBSSxHQUFHLEVBQUU7QUFDUCxRQUFJLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUM7QUFDdEIsaUJBQWEsR0FBRyxHQUFHLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQztBQUM3QixVQUFNLEdBQUcsR0FBRyxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUM7QUFDMUIsYUFBUyxHQUFHLEdBQUcsQ0FBQyxHQUFHL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mRDb2x1bW4gPSBlbmRDb2x1bW47XG4gICAgICB9XG4gICAgfVxuICB9IGNhdGNoIChub3ApIHtcbiAgICAvKiBJZ25vcmUgaWYgdGhlIGJyb3dzZXIgaXMgdmVyeSBwYXJ0aWN1bGFyICovXG4gIH1cbn1cblxuRXhjZXB0aW9uLnByb3RvdHlwZSA9IG5ldyBFcnJvcigpO1xuXG5leHBvcnQgZGVmYXVsdCBFeGNlcHRpb247XG4iXX0=\n","/**\n * @fileoverview Common collections.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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.<string, *>}\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 * 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 */\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.<string, Collection>} 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","/* eslint complexity: 0 */\n/**\n * @fileoverview Model of schedule.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar tz = require('../common/timezone');\nvar datetime = require('../common/datetime');\nvar dirty = require('../common/dirty');\nvar model = require('../common/model');\nvar TZDate = tz.Date;\nvar MIN_TO_MS = 60 * 1000;\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * Schedule category\n * @readonly\n * @enum {string}\n */\nvar SCHEDULE_CATEGORY = {\n /** milestone */\n MILESTONE: 'milestone',\n\n /** task */\n TASK: 'task',\n\n /** all-day schedule */\n ALLDAY: 'allday',\n\n /** normal schedule */\n TIME: 'time'\n};\n\n/**\n * Get duration by primary timezone\n * @param {Date} start render start date\n * @param {Date} end render end date\n * @returns {number} duration\n */\nfunction getDurationByPrimaryTimezone(start, end) {\n var checkOffset = tz.isDifferentOffsetStartAndEndTime(start.getTime(), end.getTime());\n var isOffsetChanged = checkOffset.isOffsetChanged;\n var duration = end - start;\n\n if (isOffsetChanged !== 0) {\n duration += checkOffset.offsetDiff * MIN_TO_MS;\n }\n\n return duration;\n}\n\n/**\n * Get duration by native timezone\n * @param {TZDate} start render start date\n * @param {TZDate} end render end date\n * @returns {number} duration\n */\nfunction getDurationByNativeTimezone(start, end) {\n var startOffset = start.toDate().getTimezoneOffset();\n var endOffset = end.toDate().getTimezoneOffset();\n\n return (end - start) + ((endOffset - startOffset) * MIN_TO_MS);\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 * body for schedule.\n * @type {string}\n */\n this.body = '';\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 background color when dragging it\n * @type {string}\n */\n this.dragBgColor = '#a1b56c';\n\n /**\n * schedule left border color\n * @type {string}\n */\n this.borderColor = '#000';\n\n /**\n * calendar ID\n * @type {string}\n */\n this.calendarId = '';\n\n /**\n * Schedule category(milestone, task, allday, time)\n * @type {string}\n */\n this.category = '';\n\n /**\n * Classification of work schedules (before work, before lunch, before work)\n * @type {string}\n */\n this.dueDateClass = '';\n\n /**\n * Custom style for schedule element\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 * private schedule\n * @type {boolean}\n */\n this.isPrivate = false;\n\n /**\n * location\n * @type {string}\n */\n this.location = '';\n\n /**\n * attendees\n * @type {Array.<string>}\n */\n this.attendees = [];\n\n /**\n * recurrence rule\n * @type {any}\n */\n this.recurrenceRule = '';\n\n /**\n * state. 'Busy' is default.\n * @type {string}\n */\n this.state = '';\n\n /**\n * travelTime: going-Duration minutes\n * @type {number}\n */\n this.goingDuration = 0;\n\n /**\n * travelTime: coming-Duration minutes\n * @type {number}\n */\n this.comingDuration = 0;\n\n /**\n * Separate data storage space independent of rendering.\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.body = options.body || '';\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.dragBgColor = options.dragBgColor || this.dragBgColor;\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.location = options.location || '';\n this.attendees = options.attendees || [];\n this.recurrenceRule = options.recurrenceRule || '';\n this.isPrivate = options.isPrivate || false;\n this.isPending = options.isPending || false;\n this.isFocused = options.isFocused || false;\n this.isReadOnly = options.isReadOnly || false;\n this.goingDuration = options.goingDuration || 0;\n this.comingDuration = options.comingDuration || 0;\n this.state = options.state || '';\n\n if (this.isAllDay) {\n this.setAllDayPeriod(options.start, options.end);\n } else {\n this.setTimePeriod(options.start, options.end);\n }\n\n this.raw = options.raw || null;\n};\n\nSchedule.prototype.setAllDayPeriod = function(start, end) {\n // If it is an all-day schedule, only the date information of the string is used.\n if (util.isString(start) && start.length === 10) {\n start = datetime.parse(start);\n } else {\n start = new TZDate(start || Date.now());\n }\n\n if (util.isString(end) && end.length === 10) {\n end = datetime.parse(end);\n end.setHours(23, 59, 59);\n } else {\n end = new TZDate(end || start);\n }\n\n this.start = datetime.start(start);\n this.end = datetime.renderEnd(start, end);\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.body !== schedule.body) {\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.dragBgColor !== schedule.dragBgColor) {\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 var hasPrimaryTimezoneCustomSetting = tz.hasPrimaryTimezoneCustomSetting();\n\n if (this.isAllDay) {\n duration = datetime.end(end) - datetime.start(start);\n } else if (hasPrimaryTimezoneCustomSetting && tz.isPrimaryUsingDSTTimezone()) {\n duration = getDurationByPrimaryTimezone(start, end);\n } else if (hasPrimaryTimezoneCustomSetting && tz.isNativeOsUsingDSTTimezone()) {\n duration = getDurationByNativeTimezone(start, end);\n } else {\n duration = 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 var ownGoingDuration = datetime.millisecondsFrom('minutes', this.goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', schedule.goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', schedule.comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\n\n if (\n (start > ownStarts && start < ownEnds) ||\n (end > ownStarts && end < ownEnds) ||\n (start <= ownStarts && end >= ownEnds)\n ) {\n return true;\n }\n\n return false;\n};\n\nmodel.mixin(Schedule.prototype);\ndirty.mixin(Schedule.prototype);\n\nmodule.exports = Schedule;\n","/**\n * @fileoverview Utility module for array sort, binary search.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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();\n durationB = b.duration();\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 * @fileoverview Floating layer module\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Base mixin object for handler/daygrid\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../../common/domutil');\nvar domevent = require('../../common/domevent');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\n\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @mixin dayGridCore\n */\nvar dayGridCore = {\n /**\n * @param {view} view - view instance.\n * @param {MouseEvent} mouseEvent - mouse schedule object.\n * @returns {function|boolean} function that return schedule data by mouse events.\n */\n _retriveScheduleData: function(view, mouseEvent) {\n var weekdayView = view.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: view,\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 * @param {view} view - view instance.\n * @param {TZDate} startDate - start date\n * @returns {object} schedule data by mouse events.\n */\n _retriveScheduleDataFromDate: function(view, startDate) {\n var weekdayView = view.children.single(),\n xIndex = 0,\n datesInRange,\n dragStartXIndex = 0,\n grids,\n range;\n\n if (!weekdayView) {\n return false;\n }\n\n range = weekdayView.getRenderDateRange();\n datesInRange = range.length;\n grids = weekdayView.getRenderDateGrids();\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, startDate)) {\n xIndex = dragStartXIndex = index;\n }\n });\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: view,\n dragStartXIndex: dragStartXIndex,\n datesInRange: datesInRange,\n xIndex: xIndex,\n triggerEvent: 'manual',\n grids: grids,\n range: range\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 = dayGridCore;\n","/**\n * @fileoverview Core methods for dragging actions\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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');\nvar TZDate = require('../../common/timezone').Date;\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 = 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 function(mouseEvent, extend) {\n var mouseY = Point.n(domevent.getMousePosition(mouseEvent, container)).y,\n gridY = common.ratio(viewHeight, hourLength, mouseY),\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY)),\n nearestGridY = self._calcGridYIndex(baseMil, viewHeight, mouseY),\n nearestGridTimeY = new TZDate(viewTime).addMinutes(\n datetime.minutesFromHours(nearestGridY + options.hourStart)\n );\n\n return util.extend({\n target: domevent.getEventTarget(mouseEvent),\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 };\n },\n\n /**\n * Get function to makes event data from Time and mouseEvent\n * @param {Time} timeView - Instance of time view.\n * @param {TZDate} startDate - start date\n * @param {TZDate} endDate - end date\n * @param {number} hourStart Can limit of render hour start.\n * @returns {object} - common event data for time from mouse event.\n */\n _retriveScheduleDataFromDate: function(timeView, startDate, endDate, hourStart) {\n var viewTime = timeView.getDate();\n var gridY, timeY, nearestGridY, nearestGridTimeY, nearestGridEndY, nearestGridEndTimeY;\n\n gridY = startDate.getHours() - hourStart + getNearestHour(startDate.getMinutes());\n timeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(gridY));\n nearestGridY = gridY;\n nearestGridTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridY));\n nearestGridEndY = endDate.getHours() - hourStart + getNearestHour(endDate.getMinutes());\n nearestGridEndTimeY = new TZDate(viewTime).addMinutes(datetime.minutesFromHours(nearestGridEndY));\n\n return {\n target: timeView,\n relatedView: timeView,\n gridY: gridY,\n timeY: timeY,\n nearestGridY: nearestGridY,\n nearestGridTimeY: nearestGridTimeY,\n nearestGridEndY: nearestGridEndY,\n nearestGridEndTimeY: nearestGridEndTimeY,\n triggerEvent: 'manual',\n hourStart: hourStart\n };\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\n/**\n * Get the nearest hour\n * @param {number} minutes - minutes\n * @returns {number} hour\n */\nfunction getNearestHour(minutes) {\n var nearestHour;\n if (minutes === 0) {\n nearestHour = 0;\n } else if (minutes > 30) {\n nearestHour = 1;\n } else if (minutes <= 30) {\n nearestHour = 0.5;\n }\n\n return nearestHour;\n}\n\nmodule.exports = timeCore;\n","/* eslint-disable complexity */\n/**\n * @fileoverview Module for calculate date by month view and mouse event object\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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'),\n datetime = require('../../common/datetime');\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 left < 0 ? -1 : 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,\n date,\n dateRange;\n\n if (y < 0) {\n y = 0;\n }\n if (y >= weeks.length) {\n y = weeks.length - 1;\n }\n\n weekdayView = util.pick(weeks, y);\n\n if (!weekdayView) {\n return null;\n }\n\n dateRange = weekdayView.getRenderDateRange();\n if (x < 0) {\n x = 0;\n }\n if (x >= dateRange.length) {\n x = dateRange.length - 1;\n }\n\n date = util.pick(dateRange, 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: datetime.end(date),\n weekdayView: weekdayView,\n triggerEvent: mouseEvent.type\n };\n }\n\n return getDate;\n}\n\nmodule.exports = getMousePosDate;\n","/*! @license DOMPurify 2.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.1/LICENSE */\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global = global || self, global.DOMPurify = factory());\n}(this, function () { 'use strict';\n\n function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var hasOwnProperty = Object.hasOwnProperty,\n setPrototypeOf = Object.setPrototypeOf,\n isFrozen = Object.isFrozen,\n getPrototypeOf = Object.getPrototypeOf,\n getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n var freeze = Object.freeze,\n seal = Object.seal,\n create = Object.create; // eslint-disable-line import/no-mutable-exports\n\n var _ref = typeof Reflect !== 'undefined' && Reflect,\n apply = _ref.apply,\n construct = _ref.construct;\n\n if (!apply) {\n apply = function apply(fun, thisValue, args) {\n return fun.apply(thisValue, args);\n };\n }\n\n if (!freeze) {\n freeze = function freeze(x) {\n return x;\n };\n }\n\n if (!seal) {\n seal = function seal(x) {\n return x;\n };\n }\n\n if (!construct) {\n construct = function construct(Func, args) {\n return new (Function.prototype.bind.apply(Func, [null].concat(_toConsumableArray(args))))();\n };\n }\n\n var arrayForEach = unapply(Array.prototype.forEach);\n var arrayPop = unapply(Array.prototype.pop);\n var arrayPush = unapply(Array.prototype.push);\n\n var stringToLowerCase = unapply(String.prototype.toLowerCase);\n var stringMatch = unapply(String.prototype.match);\n var stringReplace = unapply(String.prototype.replace);\n var stringIndexOf = unapply(String.prototype.indexOf);\n var stringTrim = unapply(String.prototype.trim);\n\n var regExpTest = unapply(RegExp.prototype.test);\n\n var typeErrorCreate = unconstruct(TypeError);\n\n function unapply(func) {\n return function (thisArg) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return apply(func, thisArg, args);\n };\n }\n\n function unconstruct(func) {\n return function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return construct(func, args);\n };\n }\n\n /* Add properties to a lookup table */\n function addToSet(set, array) {\n if (setPrototypeOf) {\n // Make 'in' and truthy checks like Boolean(set.constructor)\n // independent of any properties defined on Object.prototype.\n // Prevent prototype setters from intercepting set as a this value.\n setPrototypeOf(set, null);\n }\n\n var l = array.length;\n while (l--) {\n var element = array[l];\n if (typeof element === 'string') {\n var lcElement = stringToLowerCase(element);\n if (lcElement !== element) {\n // Config presets (e.g. tags.js, attrs.js) are immutable.\n if (!isFrozen(array)) {\n array[l] = lcElement;\n }\n\n element = lcElement;\n }\n }\n\n set[element] = true;\n }\n\n return set;\n }\n\n /* Shallow clone an object */\n function clone(object) {\n var newObject = create(null);\n\n var property = void 0;\n for (property in object) {\n if (apply(hasOwnProperty, object, [property])) {\n newObject[property] = object[property];\n }\n }\n\n return newObject;\n }\n\n /* IE10 doesn't support __lookupGetter__ so lets'\n * simulate it. It also automatically checks\n * if the prop is function or getter and behaves\n * accordingly. */\n function lookupGetter(object, prop) {\n while (object !== null) {\n var desc = getOwnPropertyDescriptor(object, prop);\n if (desc) {\n if (desc.get) {\n return unapply(desc.get);\n }\n\n if (typeof desc.value === 'function') {\n return unapply(desc.value);\n }\n }\n\n object = getPrototypeOf(object);\n }\n\n function fallbackValue(element) {\n console.warn('fallback value for', element);\n return null;\n }\n\n return fallbackValue;\n }\n\n var html = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);\n\n // SVG\n var svg = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);\n\n var svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);\n\n // List of SVG elements that are disallowed by default.\n // We still need to know them so that we can do namespace\n // checks properly in case one wants to add them to\n // allow-list.\n var svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'fedropshadow', 'feimage', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']);\n\n var mathMl = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover']);\n\n // Similarly to SVG, we want to know all MathML elements,\n // even those that we disallow by default.\n var mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']);\n\n var text = freeze(['#text']);\n\n var html$1 = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'xmlns', 'slot']);\n\n var svg$1 = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'targetx', 'targety', 'transform', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);\n\n var mathMl$1 = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);\n\n var xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);\n\n // eslint-disable-next-line unicorn/better-regex\n var MUSTACHE_EXPR = seal(/\\{\\{[\\s\\S]*|[\\s\\S]*\\}\\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode\n var ERB_EXPR = seal(/<%[\\s\\S]*|[\\s\\S]*%>/gm);\n var DATA_ATTR = seal(/^data-[\\-\\w.\\u00B7-\\uFFFF]/); // eslint-disable-line no-useless-escape\n var ARIA_ATTR = seal(/^aria-[\\-\\w]+$/); // eslint-disable-line no-useless-escape\n var IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i // eslint-disable-line no-useless-escape\n );\n var IS_SCRIPT_OR_DATA = seal(/^(?:\\w+script|data):/i);\n var ATTR_WHITESPACE = seal(/[\\u0000-\\u0020\\u00A0\\u1680\\u180E\\u2000-\\u2029\\u205F\\u3000]/g // eslint-disable-line no-control-regex\n );\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n function _toConsumableArray$1(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n var getGlobal = function getGlobal() {\n return typeof window === 'undefined' ? null : window;\n };\n\n /**\n * Creates a no-op policy for internal use only.\n * Don't export this function outside this module!\n * @param {?TrustedTypePolicyFactory} trustedTypes The policy factory.\n * @param {Document} document The document object (to determine policy name suffix)\n * @return {?TrustedTypePolicy} The policy created (or null, if Trusted Types\n * are not supported).\n */\n var _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, document) {\n if ((typeof trustedTypes === 'undefined' ? 'undefined' : _typeof(trustedTypes)) !== 'object' || typeof trustedTypes.createPolicy !== 'function') {\n return null;\n }\n\n // Allow the callers to control the unique policy name\n // by adding a data-tt-policy-suffix to the script element with the DOMPurify.\n // Policy creation with duplicate names throws in Trusted Types.\n var suffix = null;\n var ATTR_NAME = 'data-tt-policy-suffix';\n if (document.currentScript && document.currentScript.hasAttribute(ATTR_NAME)) {\n suffix = document.currentScript.getAttribute(ATTR_NAME);\n }\n\n var policyName = 'dompurify' + (suffix ? '#' + suffix : '');\n\n try {\n return trustedTypes.createPolicy(policyName, {\n createHTML: function createHTML(html$$1) {\n return html$$1;\n }\n });\n } catch (_) {\n // Policy creation failed (most likely another DOMPurify script has\n // already run). Skip creating the policy, as this will only cause errors\n // if TT are enforced.\n console.warn('TrustedTypes policy ' + policyName + ' could not be created.');\n return null;\n }\n };\n\n function createDOMPurify() {\n var window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();\n\n var DOMPurify = function DOMPurify(root) {\n return createDOMPurify(root);\n };\n\n /**\n * Version label, exposed for easier checks\n * if DOMPurify is up to date or not\n */\n DOMPurify.version = '2.3.1';\n\n /**\n * Array of elements that DOMPurify removed during sanitation.\n * Empty if nothing was removed.\n */\n DOMPurify.removed = [];\n\n if (!window || !window.document || window.document.nodeType !== 9) {\n // Not running in a browser, provide a factory function\n // so that you can pass your own Window\n DOMPurify.isSupported = false;\n\n return DOMPurify;\n }\n\n var originalDocument = window.document;\n\n var document = window.document;\n var DocumentFragment = window.DocumentFragment,\n HTMLTemplateElement = window.HTMLTemplateElement,\n Node = window.Node,\n Element = window.Element,\n NodeFilter = window.NodeFilter,\n _window$NamedNodeMap = window.NamedNodeMap,\n NamedNodeMap = _window$NamedNodeMap === undefined ? window.NamedNodeMap || window.MozNamedAttrMap : _window$NamedNodeMap,\n Text = window.Text,\n Comment = window.Comment,\n DOMParser = window.DOMParser,\n trustedTypes = window.trustedTypes;\n\n\n var ElementPrototype = Element.prototype;\n\n var cloneNode = lookupGetter(ElementPrototype, 'cloneNode');\n var getNextSibling = lookupGetter(ElementPrototype, 'nextSibling');\n var getChildNodes = lookupGetter(ElementPrototype, 'childNodes');\n var getParentNode = lookupGetter(ElementPrototype, 'parentNode');\n\n // As per issue #47, the web-components registry is inherited by a\n // new document created via createHTMLDocument. As per the spec\n // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)\n // a new empty registry is used when creating a template contents owner\n // document, so we use that as our parent document to ensure nothing\n // is inherited.\n if (typeof HTMLTemplateElement === 'function') {\n var template = document.createElement('template');\n if (template.content && template.content.ownerDocument) {\n document = template.content.ownerDocument;\n }\n }\n\n var trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, originalDocument);\n var emptyHTML = trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML('') : '';\n\n var _document = document,\n implementation = _document.implementation,\n createNodeIterator = _document.createNodeIterator,\n createDocumentFragment = _document.createDocumentFragment,\n getElementsByTagName = _document.getElementsByTagName;\n var importNode = originalDocument.importNode;\n\n\n var documentMode = {};\n try {\n documentMode = clone(document).documentMode ? document.documentMode : {};\n } catch (_) {}\n\n var hooks = {};\n\n /**\n * Expose whether this browser supports running the full DOMPurify.\n */\n DOMPurify.isSupported = typeof getParentNode === 'function' && implementation && typeof implementation.createHTMLDocument !== 'undefined' && documentMode !== 9;\n\n var MUSTACHE_EXPR$$1 = MUSTACHE_EXPR,\n ERB_EXPR$$1 = ERB_EXPR,\n DATA_ATTR$$1 = DATA_ATTR,\n ARIA_ATTR$$1 = ARIA_ATTR,\n IS_SCRIPT_OR_DATA$$1 = IS_SCRIPT_OR_DATA,\n ATTR_WHITESPACE$$1 = ATTR_WHITESPACE;\n var IS_ALLOWED_URI$$1 = IS_ALLOWED_URI;\n\n /**\n * We consider the elements and attributes below to be safe. Ideally\n * don't add any new ones but feel free to remove unwanted ones.\n */\n\n /* allowed element names */\n\n var ALLOWED_TAGS = null;\n var DEFAULT_ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(html), _toConsumableArray$1(svg), _toConsumableArray$1(svgFilters), _toConsumableArray$1(mathMl), _toConsumableArray$1(text)));\n\n /* Allowed attribute names */\n var ALLOWED_ATTR = null;\n var DEFAULT_ALLOWED_ATTR = addToSet({}, [].concat(_toConsumableArray$1(html$1), _toConsumableArray$1(svg$1), _toConsumableArray$1(mathMl$1), _toConsumableArray$1(xml)));\n\n /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */\n var FORBID_TAGS = null;\n\n /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */\n var FORBID_ATTR = null;\n\n /* Decide if ARIA attributes are okay */\n var ALLOW_ARIA_ATTR = true;\n\n /* Decide if custom data attributes are okay */\n var ALLOW_DATA_ATTR = true;\n\n /* Decide if unknown protocols are okay */\n var ALLOW_UNKNOWN_PROTOCOLS = false;\n\n /* Output should be safe for common template engines.\n * This means, DOMPurify removes data attributes, mustaches and ERB\n */\n var SAFE_FOR_TEMPLATES = false;\n\n /* Decide if document with <html>... should be returned */\n var WHOLE_DOCUMENT = false;\n\n /* Track whether config is already set on this instance of DOMPurify. */\n var SET_CONFIG = false;\n\n /* Decide if all elements (e.g. style, script) must be children of\n * document.body. By default, browsers might move them to document.head */\n var FORCE_BODY = false;\n\n /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported).\n * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead\n */\n var RETURN_DOM = false;\n\n /* Decide if a DOM `DocumentFragment` should be returned, instead of a html\n * string (or a TrustedHTML object if Trusted Types are supported) */\n var RETURN_DOM_FRAGMENT = false;\n\n /* If `RETURN_DOM` or `RETURN_DOM_FRAGMENT` is enabled, decide if the returned DOM\n * `Node` is imported into the current `Document`. If this flag is not enabled the\n * `Node` will belong (its ownerDocument) to a fresh `HTMLDocument`, created by\n * DOMPurify.\n *\n * This defaults to `true` starting DOMPurify 2.2.0. Note that setting it to `false`\n * might cause XSS from attacks hidden in closed shadowroots in case the browser\n * supports Declarative Shadow: DOM https://web.dev/declarative-shadow-dom/\n */\n var RETURN_DOM_IMPORT = true;\n\n /* Try to return a Trusted Type object instead of a string, return a string in\n * case Trusted Types are not supported */\n var RETURN_TRUSTED_TYPE = false;\n\n /* Output should be free from DOM clobbering attacks? */\n var SANITIZE_DOM = true;\n\n /* Keep element content when removing element? */\n var KEEP_CONTENT = true;\n\n /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead\n * of importing it into a new Document and returning a sanitized copy */\n var IN_PLACE = false;\n\n /* Allow usage of profiles like html, svg and mathMl */\n var USE_PROFILES = {};\n\n /* Tags to ignore content of when KEEP_CONTENT is true */\n var FORBID_CONTENTS = null;\n var DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']);\n\n /* Tags that are safe for data: URIs */\n var DATA_URI_TAGS = null;\n var DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']);\n\n /* Attributes safe for values like \"javascript:\" */\n var URI_SAFE_ATTRIBUTES = null;\n var DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']);\n\n var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';\n var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';\n var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';\n /* Document namespace */\n var NAMESPACE = HTML_NAMESPACE;\n var IS_EMPTY_INPUT = false;\n\n /* Keep a reference to config to pass to hooks */\n var CONFIG = null;\n\n /* Ideally, do not touch anything below this line */\n /* ______________________________________________ */\n\n var formElement = document.createElement('form');\n\n /**\n * _parseConfig\n *\n * @param {Object} cfg optional config literal\n */\n // eslint-disable-next-line complexity\n var _parseConfig = function _parseConfig(cfg) {\n if (CONFIG && CONFIG === cfg) {\n return;\n }\n\n /* Shield configuration object from tampering */\n if (!cfg || (typeof cfg === 'undefined' ? 'undefined' : _typeof(cfg)) !== 'object') {\n cfg = {};\n }\n\n /* Shield configuration object from prototype pollution */\n cfg = clone(cfg);\n\n /* Set configuration parameters */\n ALLOWED_TAGS = 'ALLOWED_TAGS' in cfg ? addToSet({}, cfg.ALLOWED_TAGS) : DEFAULT_ALLOWED_TAGS;\n ALLOWED_ATTR = 'ALLOWED_ATTR' in cfg ? addToSet({}, cfg.ALLOWED_ATTR) : DEFAULT_ALLOWED_ATTR;\n URI_SAFE_ATTRIBUTES = 'ADD_URI_SAFE_ATTR' in cfg ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR) : DEFAULT_URI_SAFE_ATTRIBUTES;\n DATA_URI_TAGS = 'ADD_DATA_URI_TAGS' in cfg ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS) : DEFAULT_DATA_URI_TAGS;\n FORBID_CONTENTS = 'FORBID_CONTENTS' in cfg ? addToSet({}, cfg.FORBID_CONTENTS) : DEFAULT_FORBID_CONTENTS;\n FORBID_TAGS = 'FORBID_TAGS' in cfg ? addToSet({}, cfg.FORBID_TAGS) : {};\n FORBID_ATTR = 'FORBID_ATTR' in cfg ? addToSet({}, cfg.FORBID_ATTR) : {};\n USE_PROFILES = 'USE_PROFILES' in cfg ? cfg.USE_PROFILES : false;\n ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true\n ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true\n ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false\n SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false\n WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false\n RETURN_DOM = cfg.RETURN_DOM || false; // Default false\n RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false\n RETURN_DOM_IMPORT = cfg.RETURN_DOM_IMPORT !== false; // Default true\n RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false\n FORCE_BODY = cfg.FORCE_BODY || false; // Default false\n SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true\n KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true\n IN_PLACE = cfg.IN_PLACE || false; // Default false\n IS_ALLOWED_URI$$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$$1;\n NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;\n if (SAFE_FOR_TEMPLATES) {\n ALLOW_DATA_ATTR = false;\n }\n\n if (RETURN_DOM_FRAGMENT) {\n RETURN_DOM = true;\n }\n\n /* Parse profile info */\n if (USE_PROFILES) {\n ALLOWED_TAGS = addToSet({}, [].concat(_toConsumableArray$1(text)));\n ALLOWED_ATTR = [];\n if (USE_PROFILES.html === true) {\n addToSet(ALLOWED_TAGS, html);\n addToSet(ALLOWED_ATTR, html$1);\n }\n\n if (USE_PROFILES.svg === true) {\n addToSet(ALLOWED_TAGS, svg);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.svgFilters === true) {\n addToSet(ALLOWED_TAGS, svgFilters);\n addToSet(ALLOWED_ATTR, svg$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n\n if (USE_PROFILES.mathMl === true) {\n addToSet(ALLOWED_TAGS, mathMl);\n addToSet(ALLOWED_ATTR, mathMl$1);\n addToSet(ALLOWED_ATTR, xml);\n }\n }\n\n /* Merge configuration parameters */\n if (cfg.ADD_TAGS) {\n if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {\n ALLOWED_TAGS = clone(ALLOWED_TAGS);\n }\n\n addToSet(ALLOWED_TAGS, cfg.ADD_TAGS);\n }\n\n if (cfg.ADD_ATTR) {\n if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {\n ALLOWED_ATTR = clone(ALLOWED_ATTR);\n }\n\n addToSet(ALLOWED_ATTR, cfg.ADD_ATTR);\n }\n\n if (cfg.ADD_URI_SAFE_ATTR) {\n addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR);\n }\n\n if (cfg.FORBID_CONTENTS) {\n if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) {\n FORBID_CONTENTS = clone(FORBID_CONTENTS);\n }\n\n addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS);\n }\n\n /* Add #text in case KEEP_CONTENT is set to true */\n if (KEEP_CONTENT) {\n ALLOWED_TAGS['#text'] = true;\n }\n\n /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */\n if (WHOLE_DOCUMENT) {\n addToSet(ALLOWED_TAGS, ['html', 'head', 'body']);\n }\n\n /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */\n if (ALLOWED_TAGS.table) {\n addToSet(ALLOWED_TAGS, ['tbody']);\n delete FORBID_TAGS.tbody;\n }\n\n // Prevent further manipulation of configuration.\n // Not available in IE8, Safari 5, etc.\n if (freeze) {\n freeze(cfg);\n }\n\n CONFIG = cfg;\n };\n\n var MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']);\n\n var HTML_INTEGRATION_POINTS = addToSet({}, ['foreignobject', 'desc', 'title', 'annotation-xml']);\n\n /* Keep track of all possible SVG and MathML tags\n * so that we can perform the namespace checks\n * correctly. */\n var ALL_SVG_TAGS = addToSet({}, svg);\n addToSet(ALL_SVG_TAGS, svgFilters);\n addToSet(ALL_SVG_TAGS, svgDisallowed);\n\n var ALL_MATHML_TAGS = addToSet({}, mathMl);\n addToSet(ALL_MATHML_TAGS, mathMlDisallowed);\n\n /**\n *\n *\n * @param {Element} element a DOM element whose namespace is being checked\n * @returns {boolean} Return false if the element has a\n * namespace that a spec-compliant parser would never\n * return. Return true otherwise.\n */\n var _checkValidNamespace = function _checkValidNamespace(element) {\n var parent = getParentNode(element);\n\n // In JSDOM, if we're inside shadow DOM, then parentNode\n // can be null. We just simulate parent in this case.\n if (!parent || !parent.tagName) {\n parent = {\n namespaceURI: HTML_NAMESPACE,\n tagName: 'template'\n };\n }\n\n var tagName = stringToLowerCase(element.tagName);\n var parentTagName = stringToLowerCase(parent.tagName);\n\n if (element.namespaceURI === SVG_NAMESPACE) {\n // The only way to switch from HTML namespace to SVG\n // is via <svg>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'svg';\n }\n\n // The only way to switch from MathML to SVG is via\n // svg if parent is either <annotation-xml> or MathML\n // text integration points.\n if (parent.namespaceURI === MATHML_NAMESPACE) {\n return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]);\n }\n\n // We only allow elements that are defined in SVG\n // spec. All others are disallowed in SVG namespace.\n return Boolean(ALL_SVG_TAGS[tagName]);\n }\n\n if (element.namespaceURI === MATHML_NAMESPACE) {\n // The only way to switch from HTML namespace to MathML\n // is via <math>. If it happens via any other tag, then\n // it should be killed.\n if (parent.namespaceURI === HTML_NAMESPACE) {\n return tagName === 'math';\n }\n\n // The only way to switch from SVG to MathML is via\n // <math> and HTML integration points\n if (parent.namespaceURI === SVG_NAMESPACE) {\n return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName];\n }\n\n // We only allow elements that are defined in MathML\n // spec. All others are disallowed in MathML namespace.\n return Boolean(ALL_MATHML_TAGS[tagName]);\n }\n\n if (element.namespaceURI === HTML_NAMESPACE) {\n // The only way to switch from SVG to HTML is via\n // HTML integration points, and from MathML to HTML\n // is via MathML text integration points\n if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) {\n return false;\n }\n\n // Certain elements are allowed in both SVG and HTML\n // namespace. We need to specify them explicitly\n // so that they don't get erronously deleted from\n // HTML namespace.\n var commonSvgAndHTMLElements = addToSet({}, ['title', 'style', 'font', 'a', 'script']);\n\n // We disallow tags that are specific for MathML\n // or SVG and should never appear in HTML namespace\n return !ALL_MATHML_TAGS[tagName] && (commonSvgAndHTMLElements[tagName] || !ALL_SVG_TAGS[tagName]);\n }\n\n // The code should never reach this place (this means\n // that the element somehow got namespace that is not\n // HTML, SVG or MathML). Return false just in case.\n return false;\n };\n\n /**\n * _forceRemove\n *\n * @param {Node} node a DOM node\n */\n var _forceRemove = function _forceRemove(node) {\n arrayPush(DOMPurify.removed, { element: node });\n try {\n // eslint-disable-next-line unicorn/prefer-dom-node-remove\n node.parentNode.removeChild(node);\n } catch (_) {\n try {\n node.outerHTML = emptyHTML;\n } catch (_) {\n node.remove();\n }\n }\n };\n\n /**\n * _removeAttribute\n *\n * @param {String} name an Attribute name\n * @param {Node} node a DOM node\n */\n var _removeAttribute = function _removeAttribute(name, node) {\n try {\n arrayPush(DOMPurify.removed, {\n attribute: node.getAttributeNode(name),\n from: node\n });\n } catch (_) {\n arrayPush(DOMPurify.removed, {\n attribute: null,\n from: node\n });\n }\n\n node.removeAttribute(name);\n\n // We void attribute values for unremovable \"is\"\" attributes\n if (name === 'is' && !ALLOWED_ATTR[name]) {\n if (RETURN_DOM || RETURN_DOM_FRAGMENT) {\n try {\n _forceRemove(node);\n } catch (_) {}\n } else {\n try {\n node.setAttribute(name, '');\n } catch (_) {}\n }\n }\n };\n\n /**\n * _initDocument\n *\n * @param {String} dirty a string of dirty markup\n * @return {Document} a DOM, filled with the dirty markup\n */\n var _initDocument = function _initDocument(dirty) {\n /* Create a HTML document */\n var doc = void 0;\n var leadingWhitespace = void 0;\n\n if (FORCE_BODY) {\n dirty = '<remove></remove>' + dirty;\n } else {\n /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */\n var matches = stringMatch(dirty, /^[\\r\\n\\t ]+/);\n leadingWhitespace = matches && matches[0];\n }\n\n var dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty;\n /*\n * Use the DOMParser API by default, fallback later if needs be\n * DOMParser not work for svg when has multiple root element.\n */\n if (NAMESPACE === HTML_NAMESPACE) {\n try {\n doc = new DOMParser().parseFromString(dirtyPayload, 'text/html');\n } catch (_) {}\n }\n\n /* Use createHTMLDocument in case DOMParser is not available */\n if (!doc || !doc.documentElement) {\n doc = implementation.createDocument(NAMESPACE, 'template', null);\n try {\n doc.documentElement.innerHTML = IS_EMPTY_INPUT ? '' : dirtyPayload;\n } catch (_) {\n // Syntax error if dirtyPayload is invalid xml\n }\n }\n\n var body = doc.body || doc.documentElement;\n\n if (dirty && leadingWhitespace) {\n body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null);\n }\n\n /* Work on whole document or just its body */\n if (NAMESPACE === HTML_NAMESPACE) {\n return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0];\n }\n\n return WHOLE_DOCUMENT ? doc.documentElement : body;\n };\n\n /**\n * _createIterator\n *\n * @param {Document} root document/fragment to create iterator for\n * @return {Iterator} iterator instance\n */\n var _createIterator = function _createIterator(root) {\n return createNodeIterator.call(root.ownerDocument || root, root, NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT, null, false);\n };\n\n /**\n * _isClobbered\n *\n * @param {Node} elm element to check for clobbering attacks\n * @return {Boolean} true if clobbered, false if safe\n */\n var _isClobbered = function _isClobbered(elm) {\n if (elm instanceof Text || elm instanceof Comment) {\n return false;\n }\n\n if (typeof elm.nodeName !== 'string' || typeof elm.textContent !== 'string' || typeof elm.removeChild !== 'function' || !(elm.attributes instanceof NamedNodeMap) || typeof elm.removeAttribute !== 'function' || typeof elm.setAttribute !== 'function' || typeof elm.namespaceURI !== 'string' || typeof elm.insertBefore !== 'function') {\n return true;\n }\n\n return false;\n };\n\n /**\n * _isNode\n *\n * @param {Node} obj object to check whether it's a DOM node\n * @return {Boolean} true is object is a DOM node\n */\n var _isNode = function _isNode(object) {\n return (typeof Node === 'undefined' ? 'undefined' : _typeof(Node)) === 'object' ? object instanceof Node : object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string';\n };\n\n /**\n * _executeHook\n * Execute user configurable hooks\n *\n * @param {String} entryPoint Name of the hook's entry point\n * @param {Node} currentNode node to work on with the hook\n * @param {Object} data additional hook parameters\n */\n var _executeHook = function _executeHook(entryPoint, currentNode, data) {\n if (!hooks[entryPoint]) {\n return;\n }\n\n arrayForEach(hooks[entryPoint], function (hook) {\n hook.call(DOMPurify, currentNode, data, CONFIG);\n });\n };\n\n /**\n * _sanitizeElements\n *\n * @protect nodeName\n * @protect textContent\n * @protect removeChild\n *\n * @param {Node} currentNode to check for permission to exist\n * @return {Boolean} true if node was killed, false if left alive\n */\n var _sanitizeElements = function _sanitizeElements(currentNode) {\n var content = void 0;\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeElements', currentNode, null);\n\n /* Check if element is clobbered or can clobber */\n if (_isClobbered(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check if tagname contains Unicode */\n if (stringMatch(currentNode.nodeName, /[\\u0080-\\uFFFF]/)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Now let's check the element's type and name */\n var tagName = stringToLowerCase(currentNode.nodeName);\n\n /* Execute a hook if present */\n _executeHook('uponSanitizeElement', currentNode, {\n tagName: tagName,\n allowedTags: ALLOWED_TAGS\n });\n\n /* Detect mXSS attempts abusing namespace confusion */\n if (!_isNode(currentNode.firstElementChild) && (!_isNode(currentNode.content) || !_isNode(currentNode.content.firstElementChild)) && regExpTest(/<[/\\w]/g, currentNode.innerHTML) && regExpTest(/<[/\\w]/g, currentNode.textContent)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Mitigate a problem with templates inside select */\n if (tagName === 'select' && regExpTest(/<template/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Remove element if anything forbids its presence */\n if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {\n /* Keep content except for bad-listed elements */\n if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) {\n var parentNode = getParentNode(currentNode) || currentNode.parentNode;\n var childNodes = getChildNodes(currentNode) || currentNode.childNodes;\n\n if (childNodes && parentNode) {\n var childCount = childNodes.length;\n\n for (var i = childCount - 1; i >= 0; --i) {\n parentNode.insertBefore(cloneNode(childNodes[i], true), getNextSibling(currentNode));\n }\n }\n }\n\n _forceRemove(currentNode);\n return true;\n }\n\n /* Check whether element has a valid namespace */\n if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) {\n _forceRemove(currentNode);\n return true;\n }\n\n if ((tagName === 'noscript' || tagName === 'noembed') && regExpTest(/<\\/no(script|embed)/i, currentNode.innerHTML)) {\n _forceRemove(currentNode);\n return true;\n }\n\n /* Sanitize element content to be template-safe */\n if (SAFE_FOR_TEMPLATES && currentNode.nodeType === 3) {\n /* Get the element's text content */\n content = currentNode.textContent;\n content = stringReplace(content, MUSTACHE_EXPR$$1, ' ');\n content = stringReplace(content, ERB_EXPR$$1, ' ');\n if (currentNode.textContent !== content) {\n arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() });\n currentNode.textContent = content;\n }\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeElements', currentNode, null);\n\n return false;\n };\n\n /**\n * _isValidAttribute\n *\n * @param {string} lcTag Lowercase tag name of containing element.\n * @param {string} lcName Lowercase attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid, otherwise false.\n */\n // eslint-disable-next-line complexity\n var _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) {\n /* Make sure attribute cannot clobber */\n if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) {\n return false;\n }\n\n /* Allow valid data-* attributes: At least one character after \"-\"\n (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)\n XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)\n We don't need to check the value; it's always URI safe. */\n if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR$$1, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR$$1, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {\n return false;\n\n /* Check value is safe. First, is attr inert? If so, is safe */\n } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA$$1, stringReplace(value, ATTR_WHITESPACE$$1, ''))) ; else if (!value) ; else {\n return false;\n }\n\n return true;\n };\n\n /**\n * _sanitizeAttributes\n *\n * @protect attributes\n * @protect nodeName\n * @protect removeAttribute\n * @protect setAttribute\n *\n * @param {Node} currentNode to sanitize\n */\n var _sanitizeAttributes = function _sanitizeAttributes(currentNode) {\n var attr = void 0;\n var value = void 0;\n var lcName = void 0;\n var l = void 0;\n /* Execute a hook if present */\n _executeHook('beforeSanitizeAttributes', currentNode, null);\n\n var attributes = currentNode.attributes;\n\n /* Check if we have attributes; if not we might have a text node */\n\n if (!attributes) {\n return;\n }\n\n var hookEvent = {\n attrName: '',\n attrValue: '',\n keepAttr: true,\n allowedAttributes: ALLOWED_ATTR\n };\n l = attributes.length;\n\n /* Go backwards over all attributes; safely remove bad ones */\n while (l--) {\n attr = attributes[l];\n var _attr = attr,\n name = _attr.name,\n namespaceURI = _attr.namespaceURI;\n\n value = stringTrim(attr.value);\n lcName = stringToLowerCase(name);\n\n /* Execute a hook if present */\n hookEvent.attrName = lcName;\n hookEvent.attrValue = value;\n hookEvent.keepAttr = true;\n hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set\n _executeHook('uponSanitizeAttribute', currentNode, hookEvent);\n value = hookEvent.attrValue;\n /* Did the hooks approve of the attribute? */\n if (hookEvent.forceKeepAttr) {\n continue;\n }\n\n /* Remove attribute */\n _removeAttribute(name, currentNode);\n\n /* Did the hooks approve of the attribute? */\n if (!hookEvent.keepAttr) {\n continue;\n }\n\n /* Work around a security issue in jQuery 3.0 */\n if (regExpTest(/\\/>/i, value)) {\n _removeAttribute(name, currentNode);\n continue;\n }\n\n /* Sanitize attribute content to be template-safe */\n if (SAFE_FOR_TEMPLATES) {\n value = stringReplace(value, MUSTACHE_EXPR$$1, ' ');\n value = stringReplace(value, ERB_EXPR$$1, ' ');\n }\n\n /* Is `value` valid for this attribute? */\n var lcTag = currentNode.nodeName.toLowerCase();\n if (!_isValidAttribute(lcTag, lcName, value)) {\n continue;\n }\n\n /* Handle invalid data-* attribute set by try-catching it */\n try {\n if (namespaceURI) {\n currentNode.setAttributeNS(namespaceURI, name, value);\n } else {\n /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. \"x-schema\". */\n currentNode.setAttribute(name, value);\n }\n\n arrayPop(DOMPurify.removed);\n } catch (_) {}\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeAttributes', currentNode, null);\n };\n\n /**\n * _sanitizeShadowDOM\n *\n * @param {DocumentFragment} fragment to iterate over recursively\n */\n var _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) {\n var shadowNode = void 0;\n var shadowIterator = _createIterator(fragment);\n\n /* Execute a hook if present */\n _executeHook('beforeSanitizeShadowDOM', fragment, null);\n\n while (shadowNode = shadowIterator.nextNode()) {\n /* Execute a hook if present */\n _executeHook('uponSanitizeShadowNode', shadowNode, null);\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(shadowNode)) {\n continue;\n }\n\n /* Deep shadow DOM detected */\n if (shadowNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(shadowNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(shadowNode);\n }\n\n /* Execute a hook if present */\n _executeHook('afterSanitizeShadowDOM', fragment, null);\n };\n\n /**\n * Sanitize\n * Public method providing core sanitation functionality\n *\n * @param {String|Node} dirty string or DOM node\n * @param {Object} configuration object\n */\n // eslint-disable-next-line complexity\n DOMPurify.sanitize = function (dirty, cfg) {\n var body = void 0;\n var importedNode = void 0;\n var currentNode = void 0;\n var oldNode = void 0;\n var returnNode = void 0;\n /* Make sure we have a string to sanitize.\n DO NOT return early, as this will return the wrong type if\n the user has requested a DOM object rather than a string */\n IS_EMPTY_INPUT = !dirty;\n if (IS_EMPTY_INPUT) {\n dirty = '<!-->';\n }\n\n /* Stringify, in case dirty is an object */\n if (typeof dirty !== 'string' && !_isNode(dirty)) {\n // eslint-disable-next-line no-negated-condition\n if (typeof dirty.toString !== 'function') {\n throw typeErrorCreate('toString is not a function');\n } else {\n dirty = dirty.toString();\n if (typeof dirty !== 'string') {\n throw typeErrorCreate('dirty is not a string, aborting');\n }\n }\n }\n\n /* Check we can run. Otherwise fall back or ignore */\n if (!DOMPurify.isSupported) {\n if (_typeof(window.toStaticHTML) === 'object' || typeof window.toStaticHTML === 'function') {\n if (typeof dirty === 'string') {\n return window.toStaticHTML(dirty);\n }\n\n if (_isNode(dirty)) {\n return window.toStaticHTML(dirty.outerHTML);\n }\n }\n\n return dirty;\n }\n\n /* Assign config vars */\n if (!SET_CONFIG) {\n _parseConfig(cfg);\n }\n\n /* Clean up removed elements */\n DOMPurify.removed = [];\n\n /* Check if dirty is correctly typed for IN_PLACE */\n if (typeof dirty === 'string') {\n IN_PLACE = false;\n }\n\n if (IN_PLACE) ; else if (dirty instanceof Node) {\n /* If dirty is a DOM element, append to an empty document to avoid\n elements being stripped by the parser */\n body = _initDocument('<!---->');\n importedNode = body.ownerDocument.importNode(dirty, true);\n if (importedNode.nodeType === 1 && importedNode.nodeName === 'BODY') {\n /* Node is already a body, use as is */\n body = importedNode;\n } else if (importedNode.nodeName === 'HTML') {\n body = importedNode;\n } else {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n body.appendChild(importedNode);\n }\n } else {\n /* Exit directly if we have nothing to do */\n if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT &&\n // eslint-disable-next-line unicorn/prefer-includes\n dirty.indexOf('<') === -1) {\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty;\n }\n\n /* Initialize the document to work on */\n body = _initDocument(dirty);\n\n /* Check we have a DOM node from the data */\n if (!body) {\n return RETURN_DOM ? null : emptyHTML;\n }\n }\n\n /* Remove first element node (ours) if FORCE_BODY is set */\n if (body && FORCE_BODY) {\n _forceRemove(body.firstChild);\n }\n\n /* Get node iterator */\n var nodeIterator = _createIterator(IN_PLACE ? dirty : body);\n\n /* Now start iterating over the created document */\n while (currentNode = nodeIterator.nextNode()) {\n /* Fix IE's strange behavior with manipulated textNodes #89 */\n if (currentNode.nodeType === 3 && currentNode === oldNode) {\n continue;\n }\n\n /* Sanitize tags and elements */\n if (_sanitizeElements(currentNode)) {\n continue;\n }\n\n /* Shadow DOM detected, sanitize it */\n if (currentNode.content instanceof DocumentFragment) {\n _sanitizeShadowDOM(currentNode.content);\n }\n\n /* Check attributes, sanitize if necessary */\n _sanitizeAttributes(currentNode);\n\n oldNode = currentNode;\n }\n\n oldNode = null;\n\n /* If we sanitized `dirty` in-place, return it. */\n if (IN_PLACE) {\n return dirty;\n }\n\n /* Return sanitized string or DOM */\n if (RETURN_DOM) {\n if (RETURN_DOM_FRAGMENT) {\n returnNode = createDocumentFragment.call(body.ownerDocument);\n\n while (body.firstChild) {\n // eslint-disable-next-line unicorn/prefer-dom-node-append\n returnNode.appendChild(body.firstChild);\n }\n } else {\n returnNode = body;\n }\n\n if (RETURN_DOM_IMPORT) {\n /*\n AdoptNode() is not used because internal state is not reset\n (e.g. the past names map of a HTMLFormElement), this is safe\n in theory but we would rather not risk another attack vector.\n The state that is cloned by importNode() is explicitly defined\n by the specs.\n */\n returnNode = importNode.call(originalDocument, returnNode, true);\n }\n\n return returnNode;\n }\n\n var serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML;\n\n /* Sanitize final string template-safe */\n if (SAFE_FOR_TEMPLATES) {\n serializedHTML = stringReplace(serializedHTML, MUSTACHE_EXPR$$1, ' ');\n serializedHTML = stringReplace(serializedHTML, ERB_EXPR$$1, ' ');\n }\n\n return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML;\n };\n\n /**\n * Public method to set the configuration once\n * setConfig\n *\n * @param {Object} cfg configuration object\n */\n DOMPurify.setConfig = function (cfg) {\n _parseConfig(cfg);\n SET_CONFIG = true;\n };\n\n /**\n * Public method to remove the configuration\n * clearConfig\n *\n */\n DOMPurify.clearConfig = function () {\n CONFIG = null;\n SET_CONFIG = false;\n };\n\n /**\n * Public method to check if an attribute value is valid.\n * Uses last set config, if any. Otherwise, uses config defaults.\n * isValidAttribute\n *\n * @param {string} tag Tag name of containing element.\n * @param {string} attr Attribute name.\n * @param {string} value Attribute value.\n * @return {Boolean} Returns true if `value` is valid. Otherwise, returns false.\n */\n DOMPurify.isValidAttribute = function (tag, attr, value) {\n /* Initialize shared config vars if necessary. */\n if (!CONFIG) {\n _parseConfig({});\n }\n\n var lcTag = stringToLowerCase(tag);\n var lcName = stringToLowerCase(attr);\n return _isValidAttribute(lcTag, lcName, value);\n };\n\n /**\n * AddHook\n * Public method to add DOMPurify hooks\n *\n * @param {String} entryPoint entry point for the hook to add\n * @param {Function} hookFunction function to execute\n */\n DOMPurify.addHook = function (entryPoint, hookFunction) {\n if (typeof hookFunction !== 'function') {\n return;\n }\n\n hooks[entryPoint] = hooks[entryPoint] || [];\n arrayPush(hooks[entryPoint], hookFunction);\n };\n\n /**\n * RemoveHook\n * Public method to remove a DOMPurify hook at a given entryPoint\n * (pops it from the stack of hooks if more are present)\n *\n * @param {String} entryPoint entry point for the hook to remove\n */\n DOMPurify.removeHook = function (entryPoint) {\n if (hooks[entryPoint]) {\n arrayPop(hooks[entryPoint]);\n }\n };\n\n /**\n * RemoveHooks\n * Public method to remove all DOMPurify hooks at a given entryPoint\n *\n * @param {String} entryPoint entry point for the hooks to remove\n */\n DOMPurify.removeHooks = function (entryPoint) {\n if (hooks[entryPoint]) {\n hooks[entryPoint] = [];\n }\n };\n\n /**\n * RemoveAllHooks\n * Public method to remove all DOMPurify hooks\n *\n */\n DOMPurify.removeAllHooks = function () {\n hooks = {};\n };\n\n return DOMPurify;\n }\n\n var purify = createDOMPurify();\n\n return purify;\n\n}));\n//# sourceMappingURL=purify.js.map\n","module.exports = require('handlebars/runtime');","'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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9oYW5kbGViYXJzLnJ1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OEJBQXNCLG1CQUFtQjs7SUFBN0IsSUFBSTs7Ozs7b0NBSU8sMEJBQTBCOzs7O21DQUMzQix3QkFBd0I7Ozs7K0JBQ3ZCLG9CQUFvQjs7SUFBL0IsS0FBSzs7aUNBQ1Esc0JBQXNCOztJQUFuQyxPQUFPOztvQ0FFSSwwQkFBMEI7Ozs7O0FBR2pELFNBQVMsTUFBTSxHQUFHO0FBQ2hCLE1BQUksRUFBRSxHQUFHLElBQUksSUFBSSxDQUFDLHFCQUFxQixFQUFFLENBQUM7O0FBRTFDLE9BQUssQ0FBQyxNQUFNLENBQUMsRUFBRSxFQUFFLElBQUksQ0FBQyxDQUFDO0FBQ3ZCLElBQUUsQ0FBQyxVQUFVLG9DQUFhLENBQUM7QUFDM0IsSUFBRSxDQUFDLFNBQVMsbUNBQVksQ0FBQztBQUN6QixJQUFFLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQztBQUNqQixJQUFFLENBQUMsZ0JBQWdCLEdBQUcsS0FBSyxDQUFDLGdCQUFnQixDQUFDOztBQUU3QyxJQUFFLENBQU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nO1xuXG4vLyBGb3IgY29tcGF0aWJpbGl0eSBhbmQgdXNhZ2Ugb3V0c2lkZSBvZiBtb2R1bGUgc3lzdGVtcywgbWFrZSB0aGUgSGFuZGxlYmFycyBvYmplY3QgYSBuYW1lc3BhY2VcbmZ1bmN0aW9uIGNyZWF0ZSgpIHtcbiAgbGV0IGhiID0gbmV3IGJhc2UuSGFuZGxlYmFyc0Vudmlyb25tZW50KCk7XG5cbiAgVXRpbHMuZXh0ZW5kKGhiLCBiYXNlKTtcbiAgaGIuU2FmZVN0cmluZyA9IFNhZmVTdHJpbmc7XG4gIGhiLkV4Y2VwdGlvbiA9IEV4Y2VwdGlvbjtcbiAgaGIuVXRpbHMgPSBVdGlscztcbiAgaGIuZXNjYXBlRXhwcmVzc2lvbiA9IFV0aWxzLmVzY2FwZUV4cHJlc3Npb247XG5cbiAgaGIuVk0gPSBydW50aW1lO1xuICBoYi50ZW1wbGF0ZSA9IGZ1bmN0aW9uKHNwZWMpIHtcbiAgICByZXR1cm4gcnVudGltZS50ZW1wbGF0ZShzcGVjLCBoYik7XG4gIH07XG5cbiAgcmV0dXJuIGhiO1xufVxuXG5sZXQgaW5zdCA9IGNyZWF0ZSgpO1xuaW5zdC5jcmVhdGUgPSBjcmVhdGU7XG5cbm5vQ29uZmxpY3QoaW5zdCk7XG5cbmluc3RbJ2RlZmF1bHQnXSA9IGluc3Q7XG5cbmV4cG9ydCBkZWZhdWx0IGluc3Q7XG4iXX0=\n","'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 _internalProtoAccess = require('./internal/proto-access');\n\nvar VERSION = '4.7.7';\nexports.VERSION = VERSION;\nvar COMPILER_REVISION = 8;\nexports.COMPILER_REVISION = COMPILER_REVISION;\nvar LAST_COMPATIBLE_COMPILER_REVISION = 7;\n\nexports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_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 <4.3.0',\n 8: '>= 4.3.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 * Reset the memory of illegal property accesses that have already been logged.\n * @deprecated should only be used in handlebars test-cases\n */\n resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() {\n _internalProtoAccess.resetLoggedProperties();\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7cUJBQThDLFNBQVM7O3lCQUNqQyxhQUFhOzs7O3VCQUNJLFdBQVc7OzBCQUNSLGNBQWM7O3NCQUNyQyxVQUFVOzs7O21DQUNTLHlCQUF5Qjs7QUFFeEQsSUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDOztBQUN4QixJQUFNLGlCQUFpQixHQUFHLENBQUMsQ0FBQzs7QUFDNUIsSUFBTSxpQ0FBaUMsR0FBRyxDQUFDLENBQUM7OztBQUU1QyxJQUFNLGdCQUFnQixHQUFHO0FBQzlCLEdBQUMsRUFBRSxhQUFhO0FBQ2hCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxlQUFlO0FBQ2xCLEdBQUMsRUFBRSxVQUFVO0FBQ2IsR0FBQyxFQUFFLGtCQUFrQjtBQUNyQixHQUFDLEVBQUUsaUJBQWlCO0FBQ3BCLEdBQUMsRUFBRSxpQkFBaUI7QUFDcEIsR0FBQyxFQUFFLFVBQVU7Q0FDZCxDQUFDOzs7QUFFRixJQUFNLFVBQVUsR0FBRyxpQkFBaUIsQ0FBQzs7QUFFOUIsU0FBUyxxQkFBcUIsQ0FBQyxPQUFPLEVBQUUsUUFBUSxFQUFFLFVBQVUsRUFB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zXG4gICAqL1xuICByZXNldExvZ2dlZFByb3BlcnR5QWNjZXNzZXMoKSB7XG4gICAgcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCk7XG4gIH1cbn07XG5cbmV4cG9ydCBsZXQgbG9nID0gbG9nZ2VyLmxvZztcblxuZXhwb3J0IHsgY3JlYXRlRnJhbWUsIGxvZ2dlciB9O1xuIl19\n","'use strict';\n\nexports.__esModule = true;\nexports.registerDefaultHelpers = registerDefaultHelpers;\nexports.moveHelperToHooks = moveHelperToHooks;\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\nfunction moveHelperToHooks(instance, helperName, keepHelper) {\n if (instance.helpers[helperName]) {\n instance.hooks[helperName] = instance.helpers[helperName];\n if (!keepHelper) {\n delete instance.helpers[helperName];\n }\n }\n}\n//# sourceMappingURL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wZXIpIHtcbiAgICAgIGRlbGV0ZSBpbnN0YW5jZS5oZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIH1cbiAgfVxufVxuIl19\n","'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 // eslint-disable-next-line no-console\n if (!console[method]) {\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2xvZ2dlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O3FCQUF3QixTQUFTOztBQUVqQyxJQUFJLE1BQU0sR0FBRztBQUNYLFdBQVMsRUFBRSxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQztBQUM3QyxPQUFLLEVBQUUsTUFBTTs7O0FBR2IsYUFBVyxFQUFFLHFCQUFTLEtBQUssRUFBRTtBQUMzQixRQUFJLE9BQU8sS0FBSyxLQUFLLFFBQVEsRUFBRTtBQUM3QixVQUFJLFFBQVEsR0FBRyxlQUFRLE1BQU0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G4gICAgfVxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBsb2dnZXI7XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.createProtoAccessControl = createProtoAccessControl;\nexports.resultIsAllowed = resultIsAllowed;\nexports.resetLoggedProperties = resetLoggedProperties;\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 _createNewLookupObject = require('./create-new-lookup-object');\n\nvar _logger = require('../logger');\n\nvar logger = _interopRequireWildcard(_logger);\n\nvar loggedProperties = Object.create(null);\n\nfunction createProtoAccessControl(runtimeOptions) {\n var defaultMethodWhiteList = Object.create(null);\n defaultMethodWhiteList['constructor'] = false;\n defaultMethodWhiteList['__defineGetter__'] = false;\n defaultMethodWhiteList['__defineSetter__'] = false;\n defaultMethodWhiteList['__lookupGetter__'] = false;\n\n var defaultPropertyWhiteList = Object.create(null);\n // eslint-disable-next-line no-proto\n defaultPropertyWhiteList['__proto__'] = false;\n\n return {\n properties: {\n whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties),\n defaultValue: runtimeOptions.allowProtoPropertiesByDefault\n },\n methods: {\n whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods),\n defaultValue: runtimeOptions.allowProtoMethodsByDefault\n }\n };\n}\n\nfunction resultIsAllowed(result, protoAccessControl, propertyName) {\n if (typeof result === 'function') {\n return checkWhiteList(protoAccessControl.methods, propertyName);\n } else {\n return checkWhiteList(protoAccessControl.properties, propertyName);\n }\n}\n\nfunction checkWhiteList(protoAccessControlForType, propertyName) {\n if (protoAccessControlForType.whitelist[propertyName] !== undefined) {\n return protoAccessControlForType.whitelist[propertyName] === true;\n }\n if (protoAccessControlForType.defaultValue !== undefined) {\n return protoAccessControlForType.defaultValue;\n }\n logUnexpecedPropertyAccessOnce(propertyName);\n return false;\n}\n\nfunction logUnexpecedPropertyAccessOnce(propertyName) {\n if (loggedProperties[propertyName] !== true) {\n loggedProperties[propertyName] = true;\n logger.log('error', 'Handlebars: Access has been denied to resolve the property \"' + propertyName + '\" because it is not an \"own property\" of its parent.\\n' + 'You can add a runtime option to disable the check or this warning:\\n' + 'See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details');\n }\n}\n\nfunction resetLoggedProperties() {\n Object.keys(loggedProperties).forEach(function (propertyName) {\n delete loggedProperties[propertyName];\n });\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL3Byb3RvLWFjY2Vzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O3FDQUFzQyw0QkFBNEI7O3NCQUMxQyxXQUFXOztJQUF2QixNQUFNOztBQUVsQixJQUFNLGdCQUFnQixHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7O0FBRXRDLFNBQVMsd0JBQXdCLENBQUMsY0FBYyxFQUFFO0FBQ3ZELE1BQUksc0JBQXNCLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUNqRCx3QkFBc0IsQ0FBQyxhQUFhLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDOUMsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDbkQsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7QUFDbkQsd0JBQXNCLENBQUMsa0JBQWtCLENBQUMsR0FBRyxLQUFLLENBQUM7O0FBRW5ELE1BQUksd0JBQXdCLEdBQUcsTUFBTSxDQUFD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bWVdID0gdHJ1ZTtcbiAgICBsb2dnZXIubG9nKFxuICAgICAgJ2Vycm9yJyxcbiAgICAgIGBIYW5kbGViYXJzOiBBY2Nlc3MgaGFzIGJlZW4gZGVuaWVkIHRvIHJlc29sdmUgdGhlIHByb3BlcnR5IFwiJHtwcm9wZXJ0eU5hbWV9XCIgYmVjYXVzZSBpdCBpcyBub3QgYW4gXCJvd24gcHJvcGVydHlcIiBvZiBpdHMgcGFyZW50LlxcbmAgK1xuICAgICAgICBgWW91IGNhbiBhZGQgYSBydW50aW1lIG9wdGlvbiB0byBkaXNhYmxlIHRoZSBjaGVjayBvciB0aGlzIHdhcm5pbmc6XFxuYCArXG4gICAgICAgIGBTZWUgaHR0cHM6Ly9oYW5kbGViYXJzanMuY29tL2FwaS1yZWZlcmVuY2UvcnVudGltZS1vcHRpb25zLmh0bWwjb3B0aW9ucy10by1jb250cm9sLXByb3RvdHlwZS1hY2Nlc3MgZm9yIGRldGFpbHNgXG4gICAgKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gcmVzZXRMb2dnZWRQcm9wZXJ0aWVzKCkge1xuICBPYmplY3Qua2V5cyhsb2dnZWRQcm9wZXJ0aWVzKS5mb3JFYWNoKHByb3BlcnR5TmFtZSA9PiB7XG4gICAgZGVsZXRlIGxvZ2dlZFByb3BlcnRpZXNbcHJvcGVydHlOYW1lXTtcbiAgfSk7XG59XG4iXX0=\n","/**\n * @fileoverview Wrapper module for easy calc date object\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar TZDate = require('./timezone').Date;\n\n/**\n * @constructor\n * @param {TZDate} 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 {TZDate}\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 {TZDate} 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(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.\n * @param {number} m - month to add\n * @returns {DW} wrapper object\n */\nDW.prototype.addMonth = function(m) {\n var currentMonth = this.d.getMonth();\n var currentDay = this.d.getDate();\n var leapYear = this._isLeapYear();\n var targetMonth = currentMonth + m;\n var clone = this.clone();\n var targetDaysOfMonth = currentDay;\n\n if (m) {\n if (targetMonth === 1) {\n targetDaysOfMonth = leapYear ? 29 : 28;\n } else {\n if (m > 0) {\n clone.d.setMonth(targetMonth + 1, 0);\n } else {\n clone.d.setMonth(currentMonth, 0);\n }\n targetDaysOfMonth = clone.d.getDate();\n }\n }\n\n this.d.setMonth(targetMonth, Math.min(currentDay, targetDaysOfMonth));\n\n return this;\n};\n\n/**\n * Is leap year or not\n * @returns {boolean}\n */\nDW.prototype._isLeapYear = function() {\n var year = this.d.getFullYear();\n\n return ((year % 4 === 0) && (year % 100 !== 0)) || !(year % 400);\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 {TZDate|DW} d1 - from date\n * @param {TZDate|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 * @fileoverview Drag handler for calendar.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar domutil = require('../common/domutil');\nvar domevent = require('../common/domevent');\nvar config = require('../config');\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, preventDefaultWhenNotPopup);\n domutil[method + 'ImageDrag'](container, preventDefaultWhenNotPopup);\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: domevent.getEventTarget(mouseEvent),\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 = domevent.getEventTarget(mouseDownEvent);\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 * mousedown event for firefox bug. cancelable.\n * @event Drag#mouseDown\n * @type {object}\n * @property {HTMLElement} target - target element in this event.\n * @property {MouseEvent} originEvent - original mouse event object.\n */\n this.fire('mousedown', this._dragStartEventData);\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 preventDefaultWhenNotPopup(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\n/**\n * If the target is not a popup, it prevents the default.\n * @method\n * @param {MouseEvent} event - Mouse event object\n */\nfunction preventDefaultWhenNotPopup(event) {\n var popup = domutil.closest(event.target, config.classname('.popup'));\n\n if (!popup) {\n domevent.preventDefault(event);\n }\n}\n\nutil.CustomEvents.mixin(Drag);\n\nmodule.exports = Drag;\n","/**\n * @fileoverview Model for views\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar datetime = require('../../common/datetime');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\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 var ownGoingDuration = datetime.millisecondsFrom('minutes', this.valueOf().goingDuration),\n ownComingDuration = datetime.millisecondsFrom('minutes', this.valueOf().comingDuration),\n goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration),\n comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n if (Math.abs(ownEnds - ownStarts) < SCHEDULE_MIN_DURATION) {\n ownEnds += SCHEDULE_MIN_DURATION;\n }\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n ownStarts -= ownGoingDuration;\n ownEnds += ownComingDuration;\n start -= goingDuration;\n end += comingDuration;\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 * @fileoverview Layout module that supplied split height, resize height features.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @param {Theme} theme - theme instance\n */\nfunction VLayout(options, container, theme) {\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 /**\n * @type {Theme}\n */\n this.theme = theme;\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, this.theme));\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 * @fileoverview Weekday view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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.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 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 gridWidth = (100 / range.length);\n var grids = viewModel.grids;\n var exceedDate = viewModel.exceedDate || {};\n var theme = viewModel.theme;\n var now = new TZDate().toLocalTime();\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(new TZDate(date), 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, date);\n\n return {\n date: datetime.format(date, 'YYYY-MM-DD'),\n month: date.getMonth() + 1,\n day: day,\n isToday: isToday,\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 color: this._getDayNameColor(theme, day, isToday),\n backgroundColor: this._getDayBackgroundColor(theme, day)\n };\n }, this)\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.<TZDate>} 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 // check that this schedule block is not visible after rendered.\n viewModel.hidden = true;\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.<TZDate>} 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\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isOtherMonth - not this month flag\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayNameColor = function(theme, day, isToday, isOtherMonth) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = isOtherMonth ? theme.month.holidayExceptThisMonth.color : theme.common.holiday.color;\n } else if (day === 6) {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.saturday.color;\n } else if (isToday) {\n color = theme.common.today.color;\n } else {\n color = isOtherMonth ? theme.month.dayExceptThisMonth.color : theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get a day background color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nWeekday.prototype._getDayBackgroundColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0 || day === 6) {\n color = theme.month.weekend.backgroundColor;\n } else {\n color = 'inherit';\n }\n }\n\n return color;\n};\n\nmodule.exports = Weekday;\n","/**\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 FE Development Lab <dl_javascript@nhn.com>\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 * @fileoverview Floating layer for writing new schedules\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar DatePicker = require('tui-date-picker');\nvar timezone = require('../../common/timezone');\nvar config = require('../../config');\nvar domevent = require('../../common/domevent');\nvar domutil = require('../../common/domutil');\nvar common = require('../../common/common');\nvar datetime = require('../../common/datetime');\nvar tmpl = require('../template/popup/scheduleCreationPopup.hbs');\nvar TZDate = timezone.Date;\nvar MAX_WEEK_OF_MONTH = 6;\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n * @param {Array.<Calendar>} calendars - calendar list used to create new schedule\n * @param {boolean} usageStatistics - GA tracking options in Calendar\n */\nfunction ScheduleCreationPopup(container, calendars, usageStatistics) {\n View.call(this, container);\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 this._selectedCal = null;\n this._schedule = null;\n this.calendars = calendars;\n this._focusedDropdown = null;\n this._usageStatistics = usageStatistics;\n this._onClickListeners = [\n this._selectDropdownMenuItem.bind(this),\n this._toggleDropdownMenuView.bind(this),\n this._closeDropdownMenuView.bind(this, null),\n this._closePopup.bind(this),\n this._toggleIsAllday.bind(this),\n this._toggleIsPrivate.bind(this),\n this._onClickSaveSchedule.bind(this)\n ];\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleCreationPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = domevent.getEventTarget(mouseDownEvent),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleCreationPopup.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 * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleCreationPopup.prototype._onClick = function(clickEvent) {\n var target = domevent.getEventTarget(clickEvent);\n\n util.forEach(this._onClickListeners, function(listener) {\n return !listener(target);\n });\n};\n\n/**\n * Test click event target is close button, and return layer is closed(hidden)\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether popup layer is closed or not\n */\nScheduleCreationPopup.prototype._closePopup = function(target) {\n var className = config.classname('popup-close');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.hide();\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle dropdown menu view, when user clicks dropdown button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether user clicked dropdown button or not\n */\nScheduleCreationPopup.prototype._toggleDropdownMenuView = function(target) {\n var className = config.classname('dropdown-button');\n var dropdownBtn = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (!dropdownBtn) {\n return false;\n }\n\n if (domutil.hasClass(dropdownBtn.parentNode, config.classname('open'))) {\n this._closeDropdownMenuView(dropdownBtn.parentNode);\n } else {\n this._openDropdownMenuView(dropdownBtn.parentNode);\n }\n\n return true;\n};\n\n/**\n * Close drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a opened dropdown menu\n */\nScheduleCreationPopup.prototype._closeDropdownMenuView = function(dropdown) {\n dropdown = dropdown || this._focusedDropdown;\n if (dropdown) {\n domutil.removeClass(dropdown, config.classname('open'));\n this._focusedDropdown = null;\n }\n};\n\n/**\n * Open drop down menu\n * @param {HTMLElement} dropdown - dropdown element that has a closed dropdown menu\n */\nScheduleCreationPopup.prototype._openDropdownMenuView = function(dropdown) {\n domutil.addClass(dropdown, config.classname('open'));\n this._focusedDropdown = dropdown;\n};\n\n/**\n * If click dropdown menu item, close dropdown menu\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether\n */\nScheduleCreationPopup.prototype._selectDropdownMenuItem = function(target) {\n var itemClassName = config.classname('dropdown-menu-item');\n var iconClassName = config.classname('icon');\n var contentClassName = config.classname('content');\n var selectedItem = domutil.hasClass(target, itemClassName) ? target : domutil.closest(target, '.' + itemClassName);\n var bgColor, title, dropdown, dropdownBtn;\n\n if (!selectedItem) {\n return false;\n }\n\n bgColor = domutil.find('.' + iconClassName, selectedItem).style.backgroundColor || 'transparent';\n title = domutil.find('.' + contentClassName, selectedItem).innerHTML;\n\n dropdown = domutil.closest(selectedItem, config.classname('.dropdown'));\n dropdownBtn = domutil.find(config.classname('.dropdown-button'), dropdown);\n domutil.find('.' + contentClassName, dropdownBtn).innerText = title;\n\n if (domutil.hasClass(dropdown, config.classname('section-calendar'))) {\n domutil.find('.' + iconClassName, dropdownBtn).style.backgroundColor = bgColor;\n this._selectedCal = common.find(this.calendars, function(cal) {\n return String(cal.id) === domutil.getData(selectedItem, 'calendarId');\n });\n }\n\n domutil.removeClass(dropdown, config.classname('open'));\n\n return true;\n};\n\n/**\n * Toggle allday checkbox state\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is allday section or not\n */\nScheduleCreationPopup.prototype._toggleIsAllday = function(target) {\n var className = config.classname('section-allday');\n var alldaySection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n var checkbox;\n\n if (alldaySection) {\n checkbox = domutil.find(config.classname('.checkbox-square'), alldaySection);\n checkbox.checked = !checkbox.checked;\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Toggle private button\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether event target is private section or not\n */\nScheduleCreationPopup.prototype._toggleIsPrivate = function(target) {\n var className = config.classname('section-private');\n var privateSection = domutil.hasClass(target, className) ? target : domutil.closest(target, '.' + className);\n\n if (privateSection) {\n if (domutil.hasClass(privateSection, config.classname('public'))) {\n domutil.removeClass(privateSection, config.classname('public'));\n } else {\n domutil.addClass(privateSection, config.classname('public'));\n }\n\n return true;\n }\n\n return false;\n};\n\n/**\n * Save new schedule if user clicked save button\n * @emits ScheduleCreationPopup#saveSchedule\n * @param {HTMLElement} target click event target\n * @returns {boolean} whether save button is clicked or not\n */\n// eslint-disable-next-line complexity\nScheduleCreationPopup.prototype._onClickSaveSchedule = function(target) {\n var className = config.classname('popup-save');\n var cssPrefix = config.cssPrefix;\n var title;\n var startDate;\n var endDate;\n var rangeDate;\n var form;\n var isAllDay;\n\n if (!domutil.hasClass(target, className) && !domutil.closest(target, '.' + className)) {\n return false;\n }\n\n title = domutil.get(cssPrefix + 'schedule-title');\n\n startDate = new TZDate(this.rangePicker.getStartDate());\n endDate = new TZDate(this.rangePicker.getEndDate());\n\n if (!this._validateForm(title, startDate, endDate)) {\n if (!title.value) {\n title.focus();\n }\n\n return false;\n }\n\n isAllDay = !!domutil.get(cssPrefix + 'schedule-allday').checked;\n rangeDate = this._getRangeDate(startDate, endDate, isAllDay);\n\n form = {\n calendarId: this._selectedCal ? this._selectedCal.id : null,\n title: title,\n location: domutil.get(cssPrefix + 'schedule-location'),\n start: rangeDate.start,\n end: rangeDate.end,\n isAllDay: isAllDay,\n state: domutil.get(cssPrefix + 'schedule-state').innerText,\n isPrivate: !domutil.hasClass(domutil.get(cssPrefix + 'schedule-private'), config.classname('public'))\n };\n\n if (this._isEditMode) {\n this._onClickUpdateSchedule(form);\n } else {\n this._onClickCreateSchedule(form);\n }\n\n this.hide();\n\n return true;\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleCreationPopup.prototype.render = function(viewModel) {\n var calendars = this.calendars;\n var layer = this.layer;\n var self = this;\n var boxElement, guideElements;\n\n viewModel.zIndex = this.layer.zIndex + 5;\n viewModel.calendars = calendars;\n if (calendars.length) {\n viewModel.selectedCal = this._selectedCal = calendars[0];\n }\n\n this._isEditMode = viewModel.schedule && viewModel.schedule.id;\n if (this._isEditMode) {\n boxElement = viewModel.target;\n viewModel = this._makeEditModeData(viewModel);\n } else {\n this.guide = viewModel.guide;\n guideElements = this._getGuideElements(this.guide);\n boxElement = guideElements.length ? guideElements[0] : null;\n }\n layer.setContent(tmpl(viewModel));\n this._createDatepicker(viewModel.start, viewModel.end, viewModel.isAllDay);\n layer.show();\n\n if (boxElement) {\n this._setPopupPositionAndArrowDirection(boxElement.getBoundingClientRect());\n }\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n/**\n * Make view model for edit mode\n * @param {object} viewModel - original view model from 'beforeCreateEditPopup'\n * @returns {object} - edit mode view model\n */\nScheduleCreationPopup.prototype._makeEditModeData = function(viewModel) {\n var schedule = viewModel.schedule;\n var title, isPrivate, location, startDate, endDate, isAllDay, state;\n var raw = schedule.raw || {};\n var calendars = this.calendars;\n\n var id = schedule.id;\n title = schedule.title;\n isPrivate = raw['class'] === 'private';\n location = schedule.location;\n startDate = schedule.start;\n endDate = schedule.end;\n isAllDay = schedule.isAllDay;\n state = schedule.state;\n\n viewModel.selectedCal = this._selectedCal = common.find(this.calendars, function(cal) {\n return cal.id === viewModel.schedule.calendarId;\n });\n\n this._schedule = schedule;\n\n return {\n id: id,\n selectedCal: this._selectedCal,\n calendars: calendars,\n title: title,\n isPrivate: isPrivate,\n location: location,\n isAllDay: isAllDay,\n state: state,\n start: startDate,\n end: endDate,\n raw: {\n class: isPrivate ? 'private' : 'public'\n },\n zIndex: this.layer.zIndex + 5,\n isEditMode: this._isEditMode\n };\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {MonthCreationGuide|TimeCreationGuide|DayGridCreationGuide} guideBound - creation guide element\n */\nScheduleCreationPopup.prototype._setPopupPositionAndArrowDirection = function(guideBound) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n var containerBound = this.container.getBoundingClientRect();\n var pos = this._calcRenderingData(layerSize, containerBound, guideBound);\n\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Get guide elements from creation guide object\n * It is used to calculate rendering position of popup\n * It will be disappeared when hiding popup\n * @param {MonthCreationGuide|TimeCreationGuide|AlldayCreationGuide} guide - creation guide\n * @returns {Array.<HTMLElement>} creation guide element\n */\nScheduleCreationPopup.prototype._getGuideElements = function(guide) {\n var guideElements = [];\n var i = 0;\n\n if (guide.guideElement) {\n guideElements.push(guide.guideElement);\n } else if (guide.guideElements) {\n for (; i < MAX_WEEK_OF_MONTH; i += 1) {\n if (guide.guideElements[i]) {\n guideElements.push(guide.guideElements[i]);\n }\n }\n }\n\n return guideElements;\n};\n\n/**\n * Get guide element's bound data which only includes top, right, bottom, left\n * @param {Array.<HTMLElement>} guideElements - creation guide elements\n * @returns {Object} - popup bound data\n */\nScheduleCreationPopup.prototype._getBoundOfFirstRowGuideElement = function(guideElements) {\n var bound;\n\n if (!guideElements.length) {\n return null;\n }\n\n bound = guideElements[0].getBoundingClientRect();\n\n return {\n top: bound.top,\n left: bound.left,\n bottom: bound.bottom,\n right: bound.right\n };\n};\n\n/**\n * Get calculate rendering positions of y and arrow direction by guide block elements\n * @param {number} guideBoundTop - guide block's top\n * @param {number} guideBoundBottom - guide block's bottom\n * @param {number} layerHeight - popup layer's height\n * @param {number} containerTop - container's top\n * @param {number} containerBottom - container's bottom\n * @returns {YAndArrowDirection} y and arrowDirection\n */\nScheduleCreationPopup.prototype._getYAndArrowDirection = function(\n guideBoundTop,\n guideBoundBottom,\n layerHeight,\n containerTop,\n containerBottom\n) {\n var arrowDirection = 'arrow-bottom';\n var MARGIN = 3;\n var y = guideBoundTop - layerHeight;\n\n if (y < containerTop) {\n y = guideBoundBottom - containerTop + MARGIN;\n arrowDirection = 'arrow-top';\n } else {\n y = y - containerTop - MARGIN;\n }\n\n if (y + layerHeight > containerBottom) {\n y = containerBottom - layerHeight - containerTop - MARGIN;\n }\n\n /**\n * @typedef {Object} YAndArrowDirection\n * @property {number} y - top position of popup layer\n * @property {string} [arrowDirection] - direction of popup arrow\n */\n return {\n y: y,\n arrowDirection: arrowDirection\n };\n};\n\n/**\n* Get calculate rendering x position and arrow left by guide block elements\n* @param {number} guideBoundLeft - guide block's left\n* @param {number} guideBoundRight - guide block's right\n* @param {number} layerWidth - popup layer's width\n* @param {number} containerLeft - container's left\n* @param {number} containerRight - container's right\n* @returns {XAndArrowLeft} x and arrowLeft\n*/\nScheduleCreationPopup.prototype._getXAndArrowLeft = function(\n guideBoundLeft,\n guideBoundRight,\n layerWidth,\n containerLeft,\n containerRight\n) {\n var guideHorizontalCenter = (guideBoundLeft + guideBoundRight) / 2;\n var x = guideHorizontalCenter - (layerWidth / 2);\n var ARROW_WIDTH_HALF = 8;\n var arrowLeft;\n\n if (x + layerWidth > containerRight) {\n x = guideBoundRight - layerWidth + ARROW_WIDTH_HALF;\n arrowLeft = guideHorizontalCenter - x;\n } else {\n x += ARROW_WIDTH_HALF;\n }\n\n if (x < containerLeft) {\n x = 0;\n arrowLeft = guideHorizontalCenter - containerLeft - ARROW_WIDTH_HALF;\n } else {\n x = x - containerLeft - ARROW_WIDTH_HALF;\n }\n\n /**\n * @typedef {Object} XAndArrowLeft\n * @property {number} x - left position of popup layer\n * @property {numbe3er} arrowLeft - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: x,\n arrowLeft: arrowLeft\n };\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} containerBound - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} guideBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleCreationPopup.prototype._calcRenderingData = function(layerSize, containerBound, guideBound) {\n var yPosInfo = this._getYAndArrowDirection(\n guideBound.top,\n guideBound.bottom,\n layerSize.height,\n containerBound.top,\n containerBound.bottom\n );\n var xPosInfo = this._getXAndArrowLeft(\n guideBound.left,\n guideBound.right,\n layerSize.width,\n containerBound.left,\n containerBound.right\n );\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: xPosInfo.x,\n y: yPosInfo.y,\n arrow: {\n direction: yPosInfo.arrowDirection,\n position: xPosInfo.arrowLeft\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleCreationPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-bottom';\n var arrowEl = domutil.get(config.classname('popup-arrow'));\n var borderElement = domutil.find(config.classname('.popup-arrow-border', arrowEl));\n\n if (direction !== config.classname('arrow-bottom')) {\n domutil.removeClass(arrowEl, config.classname('arrow-bottom'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.left = arrow.position + 'px';\n }\n};\n\n/**\n * Create date range picker using start date and end date\n * @param {TZDate} start - start date\n * @param {TZDate} end - end date\n * @param {boolean} isAllDay - isAllDay\n */\nScheduleCreationPopup.prototype._createDatepicker = function(start, end, isAllDay) {\n var cssPrefix = config.cssPrefix;\n\n this.rangePicker = DatePicker.createRangePicker({\n startpicker: {\n date: new TZDate(start).toDate(),\n input: '#' + cssPrefix + 'schedule-start-date',\n container: '#' + cssPrefix + 'startpicker-container'\n },\n endpicker: {\n date: new TZDate(end).toDate(),\n input: '#' + cssPrefix + 'schedule-end-date',\n container: '#' + cssPrefix + 'endpicker-container'\n },\n format: isAllDay ? 'yyyy-MM-dd' : 'yyyy-MM-dd HH:mm',\n timepicker: isAllDay ? null : {\n showMeridiem: false,\n usageStatistics: this._usageStatistics\n },\n usageStatistics: this._usageStatistics\n });\n};\n\n/**\n * Hide layer\n */\nScheduleCreationPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleCreationPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\n/**\n * Set calendar list\n * @param {Array.<Calendar>} calendars - calendar list\n */\nScheduleCreationPopup.prototype.setCalendars = function(calendars) {\n this.calendars = calendars || [];\n};\n\n/**\n * Validate the form\n * @param {string} title title of then entered schedule\n * @param {TZDate} startDate start date time from range picker\n * @param {TZDate} endDate end date time from range picker\n * @returns {boolean} Returns false if the form is not valid for submission.\n */\nScheduleCreationPopup.prototype._validateForm = function(title, startDate, endDate) {\n if (!title.value) {\n return false;\n }\n\n if (!startDate && !endDate) {\n return false;\n }\n\n if (datetime.compare(startDate, endDate) === 1) {\n return false;\n }\n\n return true;\n};\n\n/**\n * Get range date from range picker\n * @param {TZDate} startDate start date time from range picker\n * @param {TZDate} endDate end date time from range picker\n * @param {boolean} isAllDay whether it is an all-day schedule\n * @returns {RangeDate} Returns the start and end time data that is the range date\n */\nScheduleCreationPopup.prototype._getRangeDate = function(startDate, endDate, isAllDay) {\n var start = isAllDay ? datetime.start(startDate) : startDate;\n var end = isAllDay ? datetime.renderEnd(startDate, endDate) : endDate;\n\n /**\n * @typedef {object} RangeDate\n * @property {TZDate} start start time\n * @property {TZDate} end end time\n */\n return {\n start: new TZDate(start),\n end: new TZDate(end)\n };\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {ScheduleCreationPopup#beforeUpdateSchedule}\n * @param {{\n calendarId: {string},\n title: {string},\n location: {string},\n start: {TZDate},\n end: {TZDate},\n isAllDay: {boolean},\n state: {string},\n isPrivate: {boolean}\n }} form schedule input form data\n*/\nScheduleCreationPopup.prototype._onClickUpdateSchedule = function(form) {\n var changes = common.getScheduleChanges(\n this._schedule,\n ['calendarId', 'title', 'location', 'start', 'end', 'isAllDay', 'state'],\n {\n calendarId: form.calendarId,\n title: form.title.value,\n location: form.location.value,\n start: form.start,\n end: form.end,\n isAllDay: form.isAllDay,\n state: form.state\n }\n );\n\n /**\n * @event ScheduleCreationPopup#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - schedule object to be updated\n */\n this.fire('beforeUpdateSchedule', {\n schedule: util.extend({\n raw: {\n class: form.isPrivate ? 'private' : 'public'\n }\n }, this._schedule),\n changes: changes,\n start: form.start,\n end: form.end,\n calendar: this._selectedCal,\n triggerEventName: 'click'\n });\n};\n\n/**\n * Request the controller to update the schedule model according to the custom schedule.\n * @fires {ScheduleCreationPopup#beforeCreateSchedule}\n * @param {{\n calendarId: {string},\n title: {string},\n location: {string},\n start: {TZDate},\n end: {TZDate},\n isAllDay: {boolean},\n state: {string}\n }} form schedule input form data\n */\nScheduleCreationPopup.prototype._onClickCreateSchedule = function(form) {\n /**\n * @event ScheduleCreationPopup#beforeCreateSchedule\n * @type {object}\n * @property {Schedule} schedule - new schedule instance to be added\n */\n this.fire('beforeCreateSchedule', {\n calendarId: form.calendarId,\n title: form.title.value,\n location: form.location.value,\n raw: {\n class: form.isPrivate ? 'private' : 'public'\n },\n start: form.start,\n end: form.end,\n isAllDay: form.isAllDay,\n state: form.state\n });\n};\n\nmodule.exports = ScheduleCreationPopup;\n","/* eslint-disable vars-on-top */\n/**\n * @fileoverview Floating layer for showing detail schedule\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar View = require('../../view/view');\nvar FloatingLayer = require('../../common/floatingLayer');\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n domevent = require('../../common/domevent'),\n domutil = require('../../common/domutil');\nvar tmpl = require('../template/popup/scheduleDetailPopup.hbs');\nvar tz = require('../../common/timezone');\nvar TZDate = tz.Date;\nvar datetime = require('../../common/datetime');\n\n/**\n * @constructor\n * @extends {View}\n * @param {HTMLElement} container - container element\n */\nfunction ScheduleDetailPopup(container) {\n View.call(this, container);\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 this._schedule = null;\n this._calendar = null;\n\n domevent.on(container, 'click', this._onClick, this);\n}\n\nutil.inherit(ScheduleDetailPopup, View);\n\n/**\n * Mousedown event handler for hiding popup layer when user mousedown outside of\n * layer\n * @param {MouseEvent} mouseDownEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onMouseDown = function(mouseDownEvent) {\n var target = domevent.getEventTarget(mouseDownEvent),\n popupLayer = domutil.closest(target, config.classname('.floating-layer'));\n\n if (popupLayer) {\n return;\n }\n\n this.hide();\n};\n\n/**\n * @override\n */\nScheduleDetailPopup.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 * Click event handler for close button\n * @param {MouseEvent} clickEvent - mouse event object\n */\nScheduleDetailPopup.prototype._onClick = function(clickEvent) {\n var target = domevent.getEventTarget(clickEvent);\n\n this._onClickEditSchedule(target);\n\n this._onClickDeleteSchedule(target);\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickEditSchedule = function(target) {\n var className = config.classname('popup-edit');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeUpdateSchedule', {\n schedule: this._schedule,\n triggerEventName: 'click',\n target: this._scheduleEl\n });\n\n this.hide();\n }\n};\n\n/**\n * @fires ScheduleDetailPopup#clickEditSchedule\n * @param {HTMLElement} target - event target\n */\nScheduleDetailPopup.prototype._onClickDeleteSchedule = function(target) {\n var className = config.classname('popup-delete');\n\n if (domutil.hasClass(target, className) || domutil.closest(target, '.' + className)) {\n this.fire('beforeDeleteSchedule', {\n schedule: this._schedule\n });\n\n this.hide();\n }\n};\n\n/**\n * @override\n * @param {object} viewModel - view model from factory/monthView\n */\nScheduleDetailPopup.prototype.render = function(viewModel) {\n var layer = this.layer;\n var self = this;\n\n layer.setContent(tmpl({\n schedule: this._getScheduleModel(viewModel.schedule),\n calendar: viewModel.calendar\n }));\n layer.show();\n this._setPopupPositionAndArrowDirection(viewModel.event);\n\n this._schedule = viewModel.schedule;\n this._calendar = viewModel.calendar;\n\n util.debounce(function() {\n domevent.on(document.body, 'mousedown', self._onMouseDown, self);\n })();\n};\n\n// eslint-disable-next-line complexity\nScheduleDetailPopup.prototype._getScheduleModel = function(scheduleViewModel) {\n var viewModel = util.extend({}, scheduleViewModel);\n var dayStart = datetime.start(scheduleViewModel.start);\n var startDayOffset = dayStart.toDate().getTimezoneOffset();\n var nativeOffsetMs = tz.getNativeOffsetMs();\n var hasPrimaryTimezoneCustomSetting = tz.hasPrimaryTimezoneCustomSetting();\n var startOffset = viewModel.start.toDate().getTimezoneOffset();\n var endOffset = viewModel.end.toDate().getTimezoneOffset();\n var primaryTimezoneCode = tz.getPrimaryTimezoneName();\n var primaryOffset = tz.getPrimaryOffset();\n var startTimezoneOffset = tz.getOffsetByTimezoneName(\n primaryTimezoneCode,\n viewModel.start.getTime()\n );\n var endTimezoneOffset = tz.getOffsetByTimezoneName(\n primaryTimezoneCode,\n viewModel.end.getTime()\n );\n var MIN_TO_MS = 60 * 1000;\n var offsetDiffMs = 0;\n var start, end;\n\n if (\n hasPrimaryTimezoneCustomSetting &&\n tz.isNativeOsUsingDSTTimezone() &&\n nativeOffsetMs !== startDayOffset\n ) {\n // When using a custom time zone, the native time zone offset is fixed and rendered.\n // So, The fixed and rendered time should be recalculated as the original time zone offset.\n // The current system OS local time is not affected by summer/standard time and the schedule should always be displayed in the same location.\n offsetDiffMs = (startOffset * MIN_TO_MS) - nativeOffsetMs;\n start = new TZDate(viewModel.start);\n start.addMilliseconds(offsetDiffMs);\n\n viewModel.start = start;\n\n offsetDiffMs = (endOffset * MIN_TO_MS) - nativeOffsetMs;\n end = new TZDate(viewModel.end);\n end.addMilliseconds(offsetDiffMs);\n\n viewModel.end = end;\n }\n\n if (\n hasPrimaryTimezoneCustomSetting &&\n tz.isPrimaryUsingDSTTimezone() &&\n (primaryOffset !== startTimezoneOffset || primaryOffset !== endTimezoneOffset)\n ) {\n // The custom time zone is a time zone where two offsets including DST are applied.\n // The first rendered schedule is calculated and drawn with the offset calculated at the access time(system OS local time).\n // It should be recalculated with the original time zone offset.\n offsetDiffMs = (primaryOffset - startTimezoneOffset) * MIN_TO_MS;\n\n start = new TZDate(viewModel.start);\n start.addMilliseconds(offsetDiffMs);\n\n viewModel.start = start;\n\n offsetDiffMs = (primaryOffset - endTimezoneOffset) * MIN_TO_MS;\n\n end = new TZDate(viewModel.end);\n end.addMilliseconds(offsetDiffMs);\n\n viewModel.end = end;\n }\n\n return viewModel;\n};\n\n/**\n * Set popup position and arrow direction to apear near guide element\n * @param {Event} event - creation guide element\n */\nScheduleDetailPopup.prototype._setPopupPositionAndArrowDirection = function(event) {\n var layer = domutil.find(config.classname('.popup'), this.layer.container);\n var layerSize = {\n width: layer.offsetWidth,\n height: layer.offsetHeight\n };\n\n var containerBound = this.container.getBoundingClientRect();\n var scheduleEl = domevent.getEventTarget(event);\n var blockEl = domutil.closest(scheduleEl, config.classname('.time-date-schedule-block'))\n || domutil.closest(scheduleEl, config.classname('.weekday-schedule'))\n || scheduleEl;\n var scheduleBound = blockEl.getBoundingClientRect();\n var pos;\n\n this._scheduleEl = blockEl;\n\n pos = this._calcRenderingData(layerSize, containerBound, scheduleBound);\n this.layer.setPosition(pos.x, pos.y);\n this._setArrowDirection(pos.arrow);\n};\n\n/**\n * Get calculate rendering positions of y and arrow top by schedule block elements\n * @param {number} scheduleBoundTop - schedule block's top\n * @param {number} scheduleBoundBottom - schedule block's bottom\n * @param {number} layerHeight - popup layer's height\n * @param {number} containerTop - container's top\n * @param {number} containerBottom - container's bottom\n * @returns {YAndArrowTop} y and arrowTop\n */\nScheduleDetailPopup.prototype._getYAndArrowTop = function(\n scheduleBoundTop,\n scheduleBoundBottom,\n layerHeight,\n containerTop,\n containerBottom\n) {\n var ARROW_WIDTH_HALF = 8;\n var scheduleVerticalCenter, y, arrowTop;\n\n scheduleBoundTop = scheduleBoundTop < 0 ? 0 : scheduleBoundTop;\n scheduleVerticalCenter = (scheduleBoundTop + scheduleBoundBottom) / 2;\n y = scheduleVerticalCenter - (layerHeight / 2);\n\n if (y < containerTop) {\n y = 0;\n arrowTop = scheduleVerticalCenter - containerTop - ARROW_WIDTH_HALF;\n } else if (y + layerHeight > containerBottom) {\n y = Math.max(containerBottom - layerHeight - containerTop, 0);\n arrowTop = scheduleVerticalCenter - y - containerTop - ARROW_WIDTH_HALF;\n } else {\n y -= containerTop;\n }\n\n if (arrowTop < 0 || arrowTop > layerHeight) {\n arrowTop = null;\n }\n\n /**\n * @typedef {Object} YAndArrowTop\n * @property {number} y - top position of popup layer\n * @property {number} [arrowTop] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n y: y,\n arrowTop: arrowTop\n };\n};\n\n/**\n * Get calculate rendering x position and arrow direction by schedule block elements\n * @param {number} scheduleBoundLeft - schedule block's left\n * @param {number} scheduleBoundRight - schedule block's right\n * @param {number} layerWidth - popup layer's width\n * @param {number} containerLeft - container's left\n * @param {number} containerRight - container's right\n * @returns {XAndArrowDirection} x and arrowDirection\n */\nScheduleDetailPopup.prototype._getXAndArrowDirection = function(\n scheduleBoundLeft,\n scheduleBoundRight,\n layerWidth,\n containerLeft,\n containerRight\n) {\n var arrowDirection = 'arrow-left';\n var x = scheduleBoundRight;\n var MARGIN = 4;\n\n if (x + layerWidth > containerRight) {\n arrowDirection = 'arrow-right';\n x = scheduleBoundLeft - layerWidth - MARGIN;\n } else {\n x += MARGIN;\n }\n\n if (x < containerLeft) {\n x = 0;\n } else {\n x -= containerLeft;\n }\n\n /**\n * @typedef {Object} XAndArrowDirection\n * @property {number} x - left position of popup layer\n * @property {string} arrowDirection - direction of popup arrow\n */\n return {\n x: x,\n arrowDirection: arrowDirection\n };\n};\n\n/**\n * Calculate rendering position usering guide elements\n * @param {{width: {number}, height: {number}}} layerSize - popup layer's width and height\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} containerBound - width and height of the upper layer, that acts as a border of popup\n * @param {{top: {number}, left: {number}, right: {number}, bottom: {number}}} scheduleBound - guide element bound data\n * @returns {PopupRenderingData} rendering position of popup and popup arrow\n */\nScheduleDetailPopup.prototype._calcRenderingData = function(layerSize, containerBound, scheduleBound) {\n var yPosInfo = this._getYAndArrowTop(\n scheduleBound.top,\n scheduleBound.bottom,\n layerSize.height,\n containerBound.top,\n containerBound.bottom\n );\n var xPosInfo = this._getXAndArrowDirection(\n scheduleBound.left,\n scheduleBound.right,\n layerSize.width,\n containerBound.left,\n containerBound.right\n );\n\n /**\n * @typedef {Object} PopupRenderingData\n * @property {number} x - left position\n * @property {number} y - top position\n * @property {string} arrow.direction - direction of popup arrow\n * @property {number} [arrow.position] - relative position of popup arrow, if it is not set, arrow appears on the middle of popup\n */\n return {\n x: xPosInfo.x,\n y: yPosInfo.y,\n arrow: {\n direction: xPosInfo.arrowDirection,\n position: yPosInfo.arrowTop\n }\n };\n};\n\n/**\n * Set arrow's direction and position\n * @param {Object} arrow rendering data for popup arrow\n */\nScheduleDetailPopup.prototype._setArrowDirection = function(arrow) {\n var direction = arrow.direction || 'arrow-left';\n var arrowEl = domutil.find(config.classname('.popup-arrow'), this.layer.container);\n var borderElement = domutil.find(config.classname('.popup-arrow-border'), arrowEl);\n\n if (direction !== config.classname('arrow-left')) {\n domutil.removeClass(arrowEl, config.classname('arrow-left'));\n domutil.addClass(arrowEl, config.classname(direction));\n }\n\n if (arrow.position) {\n borderElement.style.top = arrow.position + 'px';\n }\n};\n\n/**\n * Hide layer\n */\nScheduleDetailPopup.prototype.hide = function() {\n this.layer.hide();\n\n if (this.guide) {\n this.guide.clearGuideElement();\n this.guide = null;\n }\n\n domevent.off(document.body, 'mousedown', this._onMouseDown, this);\n};\n\n/**\n * refresh layer\n */\nScheduleDetailPopup.prototype.refresh = function() {\n if (this._viewModel) {\n this.layer.setContent(this.tmpl(this._viewModel));\n }\n};\n\nmodule.exports = ScheduleDetailPopup;\n","/**\n * @fileoverview Move handler for DayGrid view.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 dayGridCore = require('./core');\nvar DayGridMoveGuide = require('./moveGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} dragHandler - Drag handler instance.\n * @param {DayGrid} view - view instance.\n * @param {Base} controller - Base controller instance.\n */\nfunction DayGridMove(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\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 {DayGridMoveGuide}\n */\n this.guide = new DayGridMoveGuide(this);\n}\n\nDayGridMove.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\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|DayGridSchedule} return DayGridSchedule view instance when satiate condition.\n */\nDayGridMove.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.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler method.\n * @emits DayGridMove#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler event data.\n */\nDayGridMove.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\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.view, 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 DayGridMove#dragstart\n * @type {object}\n * @property {DayGrid} relatedView - 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('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridMove#drag\n * @param {object} dragEventData - Drag#drag event handler eventdata.\n */\nDayGridMove.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @schedule DayGridMove#drag\n * @type {object}\n * @property {DayGrid} relatedView - 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('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule model to base controller.\n * @fires DayGridMove#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridMove handler module.\n */\nDayGridMove.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newStarts = new TZDate(schedule.start),\n newEnds = new TZDate(schedule.end);\n\n newStarts = newStarts.addDate(dateOffset);\n newEnds = newEnds.addDate(dateOffset);\n\n /**\n * @event DayGridMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time 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 changes: {\n start: newStarts,\n end: newEnds\n },\n start: newStarts,\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridMove#dragend\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 */\nDayGridMove.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 DayGridMove#dragend\n * @type {object}\n * @property {DayGrid} relatedView - 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 || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridMove#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridMove.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridMove#click\n * @type {object}\n * @property {DayGrid} relatedView - 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, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridMove);\nutil.CustomEvents.mixin(DayGridMove);\n\nmodule.exports = DayGridMove;\n","/**\n * @fileoverview Guide element controller for creation, resize in month view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 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 /**\n * @type {object}\n */\n this.options = util.extend({\n top: 0,\n height: '20px',\n bgColor: '#f7ca88',\n label: 'New event',\n isResizeMode: false,\n isCreationMode: false,\n styles: this._getStyles(monthView.controller.theme)\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 * 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.<string, HTMLElement>}\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.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 {TZDate} date - date to find coordinate\n * @returns {number[]} coordinate (x, y)\n */\nMonthGuide.prototype._getCoordByDate = function(date) {\n var WEEKEND_DAYS = 2;\n var weeks = this.weeks;\n var isWorkWeek = util.pick(this.view, 'options', 'workweek');\n var days = isWorkWeek ? this.days + WEEKEND_DAYS : this.days;\n\n var getIdxFromDiff = function(d1, d2) {\n return mfloor(datetime.millisecondsTo('day', mabs(d2 - d1)));\n },\n monthStart = datetime.start(weeks[0].options.renderStartDate),\n isBefore = date < monthStart,\n start = new TZDate(monthStart),\n end = new TZDate(monthStart).addDate(isBefore ? -days : days).addDate(-1),\n x = getIdxFromDiff(date, start),\n y = 0;\n\n while (!datetime.isBetweenWithDate(date, start, end)) {\n start.addDate(isBefore ? -days : days);\n end = new TZDate(start).addDate(days - 1);\n x = getIdxFromDiff(date, start);\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 renderMonth = new TZDate(this.view.options.renderMonth),\n temp;\n\n if (opt.isCreationMode) {\n if (model && !datetime.isSameMonth(renderMonth, model.start)) {\n model.start.setMonth(renderMonth.getMonth());\n model.start.setDate(1);\n model.end.setMonth(renderMonth.getMonth());\n model.end.setDate(1);\n }\n } else {\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 label: model.title\n }, model);\n }\n\n if (util.isUndefined(x) || util.isUndefined(y)) {\n temp = this._getCoordByDate(model.getStarts());\n x = temp[0];\n y = temp[1];\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\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonthGuide.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.border = theme.common.creationGuide.border;\n styles.backgroundColor = theme.common.creationGuide.backgroundColor;\n styles.scheduleHeight = theme.month.schedule.height;\n styles.scheduleGutter = theme.month.schedule.marginTop;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.borderRadius = theme.month.schedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = MonthGuide;\n","/**\n * @fileoverview The entry file of fullcalendar\n * @author NHN FE Development Lab\n */\n\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Calendar = require('./js/factory/calendar');\n\nrequire('./css/main.styl');\nrequire('./js/view/template/helper');\n\n// for jquery\nif (global.jQuery) {\n global.jQuery.fn.tuiCalendar = function() {\n var options, instance;\n\n var el = this.get(0);\n var args = Array.prototype.slice.apply(arguments);\n\n if (el) {\n options = util.pick(args, 0) || {};\n\n instance = global.jQuery.data(el, 'tuiCalendar');\n\n if (instance) {\n if (typeof options === 'string' && instance[options]) {\n return instance[options].apply(instance, args.slice(1));\n }\n } else {\n instance = new Calendar(el, options);\n global.jQuery.data(el, 'tuiCalendar', instance);\n }\n }\n\n return this;\n };\n}\n\nmodule.exports = Calendar;\n","/**\n * @fileoverview Factory module for control all other factory.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar GA_TRACKING_ID = 'UA-129951699-1';\n\nvar DOMPurify = require('dompurify');\nvar util = require('tui-code-snippet'),\n Handlebars = require('handlebars-template-loader/runtime');\nvar dw = require('../common/dw');\nvar datetime = require('../common/datetime');\nvar Layout = require('../view/layout');\nvar Drag = require('../handler/drag');\nvar controllerFactory = require('./controller');\nvar weekViewFactory = require('./weekView');\nvar monthViewFactory = require('./monthView');\nvar tz = require('../common/timezone');\nvar TZDate = tz.Date;\nvar config = require('../config');\nvar reqAnimFrame = require('../common/reqAnimFrame');\n\nvar mmin = Math.min;\n\n/**\n * Schedule information\n * @typedef {object} Schedule\n * @property {string} [id] - The unique schedule id depends on calendar id\n * @property {string} calendarId - The unique calendar id\n * @property {string} [title] - The schedule title\n * @property {string} [body] - The schedule body text which is text/plain\n * @property {string|TZDate} [start] - The start time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {string|TZDate} [end] - The end time. It's 'string' for input. It's 'TZDate' for output like event handler.\n * @property {number} [goingDuration] - The travel time: Going duration minutes\n * @property {number} [comingDuration] - The travel time: Coming duration minutes\n * @property {boolean} [isAllDay] - The all day schedule\n * @property {string} [category] - The schedule type('milestone', 'task', allday', 'time')\n * @property {string} [dueDateClass] - The task schedule type string\n * (any string value is ok and mandatory if category is 'task')\n * @property {string} [location] - The location\n * @property {Array.<string>} [attendees] - The attendees\n * @property {string} [recurrenceRule] - The recurrence rule\n * @property {boolean} [isPending] - The in progress flag to do something like network job(The schedule will be transparent.)\n * @property {boolean} [isFocused] - The focused schedule flag\n * @property {boolean} [isVisible] - The schedule visibility flag\n * @property {boolean} [isReadOnly] - The schedule read-only flag\n * @property {boolean} [isPrivate] - The private schedule\n * @property {string} [color] - The schedule text color\n * @property {string} [bgColor] - The schedule background color\n * @property {string} [dragBgColor] - The schedule background color when dragging it\n * @property {string} [borderColor] - The schedule left border color\n * @property {string} [customStyle] - The schedule's custom css class\n * @property {any} [raw] - The user data\n * @property {string} [state] - The schedule's state ('busy', 'free')\n */\n\n/**\n * Template functions to support customer renderer\n * @typedef {object} Template\n * @property {function} [milestoneTitle] - The milestone title(at left column) template function\n * @property {function} [milestone] - The milestone template function\n * @property {function} [taskTitle] - The task title(at left column) template function\n * @property {function} [task] - The task template function\n * @property {function} [alldayTitle] - The allday title(at left column) template function\n * @property {function} [allday] - The allday template function\n * @property {function} [time] - The time template function\n * @property {function} [goingDuration] - The travel time(going duration) template function\n * @property {function} [comingDuration] - The travel time(coming duration) template function\n * @property {function} [monthMoreTitleDate] - The month more layer title template function\n * @property {function} [monthMoreClose] - The month more layer close button template function\n * @property {function} [monthGridHeader] - The month grid header(date, decorator, title) template function\n * @property {function} [monthGridHeaderExceed] - The month grid header(exceed schedule count) template function\n * @property {function} [monthGridFooter] - The month grid footer(date, decorator, title) template function\n * @property {function} [monthGridFooterExceed] - The month grid footer(exceed schedule count) template function\n * @property {function} [monthDayname] - The monthly dayname template function\n * @property {function} [weekDayname] - The weekly dayname template function\n * @property {function} [weekGridFooterExceed] - The week/day grid footer(exceed schedule count) template function\n * @property {function} [dayGridTitle] - The week/day grid title template function(e.g. milestone, task, allday)\n * @property {function} [schedule] - The week/day schedule template function(When the schedule category attribute is milestone, task, or all day)\n * @property {function} [collapseBtnTitle] - The week/day (exceed schedule more view) collapse button title template function\n * @property {function} [timezoneDisplayLabel] - The timezone display label template function in time grid\n * @property {function} [timegridDisplayPrimayTime] - Deprecated: use 'timegridDisplayPrimaryTime'\n * @property {function} [timegridDisplayPrimaryTime] - The display label template function of primary timezone in time grid\n * @property {function} [timegridDisplayTime] - The display time template function in time grid\n * @property {function} [timegridCurrentTime] - The current time template function in time grid\n * @property {function} [popupIsAllDay] - The all day checkbox label text template function in the default creation popup\n * @property {function} [popupStateFree] - The free option template function in the state select box of the default creation popup\n * @property {function} [popupStateBusy] - The busy option template function in the state select box of the default creation popup\n * @property {function} [titlePlaceholder] - The title input placeholder text template function in the default creation popup\n * @property {function} [locationPlaceholder] - The location input placeholder text template function in the default creation popup\n * @property {function} [startDatePlaceholder] - The start date input placeholder text template function in the default creation popup\n * @property {function} [endDatePlaceholder] - The end date input placeholder text template function in the default creation popup\n * @property {function} [popupSave] - The 'Save' button text template function in the default creation popup\n * @property {function} [popupUpdate] - The 'Update' button text template function in the default creation popup when in edit mode\n * @property {function} [popupDetailDate] - The schedule date information's template function on the default detail popup\n * @property {function} [popupDetailLocation] - The schedule location text information's template function on the default detail popup\n * @property {function} [popupDetailUser] - The schedule user text information's template function on the default detail popup\n * @property {function} [popupDetailState] - The schedule state(busy or free) text information's template function on the default detail popup\n * @property {function} [popupDetailRepeat] - The schedule repeat information's template function on the default detail popup\n * @property {function} [popupDetailBody] - The schedule body text information's template function on the default detail popup\n * @property {function} [popupEdit] - The 'Edit' button text template function on the default detail popup\n * @property {function} [popupDelete] - The 'Delete' button text template function on the default detail popup\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * ...\n * template: {\n * milestone: function(schedule) {\n * return '<span class=\"calendar-font-icon ic-milestone-b\"></span> <span style=\"background-color: ' + schedule.bgColor + '\">' + schedule.title + '</span>';\n * },\n * milestoneTitle: function() {\n * return '<span class=\"tui-full-calendar-left-content\">MILESTONE</span>';\n * },\n * task: function(schedule) {\n * return '#' + schedule.title;\n * },\n * taskTitle: function() {\n * return '<span class=\"tui-full-calendar-left-content\">TASK</span>';\n * },\n * allday: function(schedule) {\n * return getTimeTemplate(schedule, true);\n * },\n * alldayTitle: function() {\n * return '<span class=\"tui-full-calendar-left-content\">ALL DAY</span>';\n * },\n * time: function(schedule) {\n * return '<strong>' + moment(schedule.start.getTime()).format('HH:mm') + '</strong> ' + schedule.title;\n * },\n * goingDuration: function(schedule) {\n * return '<span class=\"calendar-icon ic-travel-time\"></span>' + schedule.goingDuration + 'min.';\n * },\n * comingDuration: function(schedule) {\n * return '<span class=\"calendar-icon ic-travel-time\"></span>' + schedule.comingDuration + 'min.';\n * },\n * monthMoreTitleDate: function(date, dayname) {\n * var day = date.split('.')[2];\n *\n * return '<span class=\"tui-full-calendar-month-more-title-day\">' + day + '</span> <span class=\"tui-full-calendar-month-more-title-day-label\">' + dayname + '</span>';\n * },\n * monthMoreClose: function() {\n * return '<span class=\"tui-full-calendar-icon tui-full-calendar-ic-close\"></span>';\n * },\n * monthGridHeader: function(dayModel) {\n * var date = parseInt(dayModel.date.split('-')[2], 10);\n * var classNames = ['tui-full-calendar-weekday-grid-date '];\n *\n * if (dayModel.isToday) {\n * classNames.push('tui-full-calendar-weekday-grid-date-decorator');\n * }\n *\n * return '<span class=\"' + classNames.join(' ') + '\">' + date + '</span>';\n * },\n * monthGridHeaderExceed: function(hiddenSchedules) {\n * return '<span class=\"weekday-grid-more-schedules\">+' + hiddenSchedules + '</span>';\n * },\n * monthGridFooter: function() {\n * return '';\n * },\n * monthGridFooterExceed: function(hiddenSchedules) {\n * return '';\n * },\n * monthDayname: function(model) {\n * return (model.label).toString().toLocaleUpperCase();\n * },\n * weekDayname: function(model) {\n * return '<span class=\"tui-full-calendar-dayname-date\">' + model.date + '</span> <span class=\"tui-full-calendar-dayname-name\">' + model.dayName + '</span>';\n * },\n * weekGridFooterExceed: function(hiddenSchedules) {\n * return '+' + hiddenSchedules;\n * },\n * dayGridTitle: function(viewName) {\n *\n * // use another functions instead of 'dayGridTitle'\n * // milestoneTitle: function() {...}\n * // taskTitle: function() {...}\n * // alldayTitle: function() {...}\n *\n * var title = '';\n * switch(viewName) {\n * case 'milestone':\n * title = '<span class=\"tui-full-calendar-left-content\">MILESTONE</span>';\n * break;\n * case 'task':\n * title = '<span class=\"tui-full-calendar-left-content\">TASK</span>';\n * break;\n * case 'allday':\n * title = '<span class=\"tui-full-calendar-left-content\">ALL DAY</span>';\n * break;\n * }\n *\n * return title;\n * },\n * schedule: function(schedule) {\n *\n * // use another functions instead of 'schedule'\n * // milestone: function() {...}\n * // task: function() {...}\n * // allday: function() {...}\n *\n * var tpl;\n *\n * switch(category) {\n * case 'milestone':\n * tpl = '<span class=\"calendar-font-icon ic-milestone-b\"></span> <span style=\"background-color: ' + schedule.bgColor + '\">' + schedule.title + '</span>';\n * break;\n * case 'task':\n * tpl = '#' + schedule.title;\n * break;\n * case 'allday':\n * tpl = getTimeTemplate(schedule, true);\n * break;\n * }\n *\n * return tpl;\n * },\n * collapseBtnTitle: function() {\n * return '<span class=\"tui-full-calendar-icon tui-full-calendar-ic-arrow-solid-top\"></span>';\n * },\n * timezoneDisplayLabel: function(timezoneOffset, displayLabel) {\n * var gmt, hour, minutes;\n *\n * if (!displayLabel) {\n * gmt = timezoneOffset < 0 ? '-' : '+';\n * hour = Math.abs(parseInt(timezoneOffset / 60, 10));\n * minutes = Math.abs(timezoneOffset % 60);\n * displayLabel = gmt + getPadStart(hour) + ':' + getPadStart(minutes);\n * }\n *\n * return displayLabel;\n * },\n * timegridDisplayPrimayTime: function(time) {\n * // will be deprecated. use 'timegridDisplayPrimaryTime'\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayPrimaryTime: function(time) {\n * var meridiem = 'am';\n * var hour = time.hour;\n *\n * if (time.hour > 12) {\n * meridiem = 'pm';\n * hour = time.hour - 12;\n * }\n *\n * return hour + ' ' + meridiem;\n * },\n * timegridDisplayTime: function(time) {\n * return getPadStart(time.hour) + ':' + getPadStart(time.hour);\n * },\n * timegridCurrentTime: function(timezone) {\n * var templates = [];\n *\n * if (timezone.dateDifference) {\n * templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']<br>');\n * }\n *\n * templates.push(moment(timezone.hourmarker).format('HH:mm a'));\n *\n * return templates.join('');\n * },\n * popupIsAllDay: function() {\n * return 'All Day';\n * },\n * popupStateFree: function() {\n * return 'Free';\n * },\n * popupStateBusy: function() {\n * return 'Busy';\n * },\n * titlePlaceholder: function() {\n * return 'Subject';\n * },\n * locationPlaceholder: function() {\n * return 'Location';\n * },\n * startDatePlaceholder: function() {\n * return 'Start date';\n * },\n * endDatePlaceholder: function() {\n * return 'End date';\n * },\n * popupSave: function() {\n * return 'Save';\n * },\n * popupUpdate: function() {\n * return 'Update';\n * },\n * popupDetailDate: function(isAllDay, start, end) {\n * var isSameDate = moment(start).isSame(end);\n * var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm a';\n *\n * if (isAllDay) {\n * return moment(start).format('YYYY.MM.DD') + (isSameDate ? '' : ' - ' + moment(end).format('YYYY.MM.DD'));\n * }\n *\n * return (moment(start).format('YYYY.MM.DD hh:mm a') + ' - ' + moment(end).format(endFormat));\n * },\n * popupDetailLocation: function(schedule) {\n * return 'Location : ' + schedule.location;\n * },\n * popupDetailUser: function(schedule) {\n * return 'User : ' + (schedule.attendees || []).join(', ');\n * },\n * popupDetailState: function(schedule) {\n * return 'State : ' + schedule.state || 'Busy';\n * },\n * popupDetailRepeat: function(schedule) {\n * return 'Repeat : ' + schedule.recurrenceRule;\n * },\n * popupDetailBody: function(schedule) {\n * return 'Body : ' + schedule.body;\n * },\n * popupEdit: function() {\n * return 'Edit';\n * },\n * popupDelete: function() {\n * return 'Delete';\n * }\n * }\n * }\n */\n\n/**\n * Options for daily, weekly view.\n * @typedef {object} WeekOptions\n * @property {number} [startDayOfWeek=0] - The start day of week,\n * @property {Array.<string>} [daynames] - The day names in weekly and daily. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {boolean} [showTimezoneCollapseButton=false] - Show a collapse button to close multiple timezones\n * @property {boolean} [timezonesCollapsed=false] - An initial multiple timezones collapsed state\n * @property {number} [hourStart=0] - Can limit of render hour start.\n * @property {number} [hourEnd=24] - Can limit of render hour end.\n */\n\n/**\n * Options for monthly view.\n * @typedef {object} MonthOptions\n * @property {Array.<string>} [daynames] - The day names in monthly. Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']\n * @property {number} [startDayOfWeek=0] - The start day of week\n * @property {boolean} [narrowWeekend=false] - Make weekend column narrow(1/2 width)\n * @property {number} [visibleWeeksCount=6] - The visible week count in monthly(0 or null are same with 6)\n * @property {boolean} [isAlways6Week=true] - Always show 6 weeks. If false, show 5 weeks or 6 weeks based on the month.\n * @property {boolean} [workweek=false] - Show only 5 days except for weekend\n * @property {number} [visibleScheduleCount] - The visible schedule count in monthly grid\n * @property {object} [moreLayerSize] - The more layer size\n * @property {object} [moreLayerSize.width=null] - The css width value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [moreLayerSize.height=null] - The css height value(px, 'auto').\n * The default value 'null' is to fit a grid cell.\n * @property {object} [grid] - The grid's header and footer information\n * @property {object} [grid.header] - The grid's header informatioin\n * @property {number} [grid.header.height=34] - The grid's header height\n * @property {object} [grid.footer] - The grid's footer informatioin\n * @property {number} [grid.footer.height=34] - The grid's footer height\n * @property {function} [scheduleFilter=null] - The filter schedules on month view. A parameter is {Schedule} object.\n */\n\n/**\n * @typedef {object} CalendarColor\n * @property {string} [color] - The calendar color\n * @property {string} [bgColor] - The calendar background color\n * @property {string} [borderColor] - The calendar left border color\n * @property {string} [dragBgColor] - The Background color displayed when you drag a calendar's schedule\n */\n\n/**\n * @typedef {object} Timezone\n * @property {Array.<Zone>} [zones] - {@link Zone} array. Set the list of time zones.\n * The first zone element is primary\n * The rest zone elements are shown in left timegrid of weekly/daily view\n * @property {function} [offsetCalculator = null] - If you define the 'offsetCalculator' property, the offset calculation is done with this function.\n * The offsetCalculator option allows you to set up a function that returns the timezone offset for that time using date libraries like ['js-joda'](https://js-joda.github.io/js-joda/) and ['moment-timezone'](https://momentjs.com/timezone/).\n * The 'offsetCalculator' option is useful when your browser does not support 'Intl.DateTimeFormat' and 'formatToPart', or you want to use the date library you are familiar with.\n *\n * @example\n * var cal = new Calendar('#calendar', {\n * timezone: {\n * zones: [\n * {\n * timezoneName: 'Asia/Seoul',\n * displayLabel: 'GMT+09:00',\n * tooltip: 'Seoul'\n * },\n * {\n * timezoneName: 'America/New_York',\n * displayLabel: 'GMT-05:00',\n * tooltip: 'New York',\n * }\n * ],\n * offsetCalculator: function(timezoneName, timestamp){\n * // matches 'getTimezoneOffset()' of Date API\n * // e.g. +09:00 => -540, -04:00 => 240\n * return moment.tz.zone(timezoneName).utcOffset(timestamp);\n * },\n * }\n * });\n */\n\n/**\n * @typedef {object} Zone\n * @property {string} [timezoneName] - timezone name (time zone names of the IANA time zone database, such as 'Asia/Seoul', 'America/New_York').\n * Basically, it will calculate the offset using 'Intl.DateTimeFormat' with the value of the this property entered.\n * This property is required.\n * @property {string} [displayLabel] - The display label of your timezone at weekly/daily view(e.g. 'GMT+09:00')\n * @property {string} [tooltip] - The tooltip(e.g. 'Seoul')\n * @property {number} [timezoneOffset] - The minutes for your timezone offset. If null, use the browser's timezone. Refer to Date.prototype.getTimezoneOffset().\n * This property will be deprecated. (since version 1.13)\n *\n * @example\n * var cal = new Calendar('#calendar', {\n * timezone: {\n * zones: [\n * {\n * timezoneName: 'Asia/Seoul',\n * displayLabel: 'GMT+09:00',\n * tooltip: 'Seoul'\n * },\n * {\n * timezoneName: 'America/New_York',\n * displayLabel: 'GMT-05:00',\n * tooltip: 'New York',\n * }\n * ],\n * }\n * });\n */\n\n/**\n * @typedef {object} CalendarProps\n * @property {string|number} id - The calendar id\n * @property {string} name - The calendar name\n * @property {string} color - The text color when schedule is displayed\n * @property {string} bgColor - The background color schedule is displayed\n * @property {string} borderColor - The color of left border or bullet point when schedule is displayed\n * @property {string} dragBgColor - The background color when schedule dragging\n * @example\n * var cal = new Calendar('#calendar', {\n * ...\n * calendars: [\n * {\n * id: '1',\n * name: 'My Calendar',\n * color: '#ffffff',\n * bgColor: '#9e5fff',\n * dragBgColor: '#9e5fff',\n * borderColor: '#9e5fff'\n * },\n * {\n * id: '2',\n * name: 'Company',\n * color: '#00a9ff',\n * bgColor: '#00a9ff',\n * dragBgColor: '#00a9ff',\n * borderColor: '#00a9ff'\n * },\n * ]\n * });\n */\n\n/**\n * @typedef {object} Options - Calendar option object\n * @property {string} [defaultView='week'] - Default view of calendar. The default value is 'week'.\n * @property {boolean|Array.<string>} [taskView=true] - Show the milestone and task in weekly, daily view. The default value is true. If the value is array, it can be ['milestone', 'task'].\n * @property {boolean|Array.<string>} [scheduleView=true] - Show the all day and time grid in weekly, daily view. The default value is false. If the value is array, it can be ['allday', 'time'].\n * @property {themeConfig} [theme=themeConfig] - {@link themeConfig} for custom style.\n * @property {Template} [template={}] - {@link Template} for further information\n * @property {WeekOptions} [week={}] - {@link WeekOptions} for week view\n * @property {MonthOptions} [month={}] - {@link MonthOptions} for month view\n * @property {Array.<CalendarProps>} [calendars=[]] - {@link CalendarProps} List that can be used to add new schedule. The default value is [].\n * @property {boolean} [useCreationPopup=false] - Whether use default creation popup or not. The default value is false.\n * @property {boolean} [useDetailPopup=false] - Whether use default detail popup or not. The default value is false.\n * @property {Timezone} [timezone] - {@link Timezone} - Set a custom time zone. You can add secondary timezone in the weekly/daily view.\n * @property {boolean} [disableDblClick=false] - Disable double click to create a schedule. The default value is false.\n * @property {boolean} [disableClick=false] - Disable click to create a schedule. The default value is false.\n * @property {boolean} [isReadOnly=false] - {@link Calendar} is read-only mode and a user can't create and modify any schedule. The default value is false.\n * @property {boolean} [usageStatistics=true] - Let us know the hostname. If you don't want to send the hostname, please set to false.\n * @property {Array.<Timezone>} [timezones] - This property will be deprecated. (since version 1.13) Please use timezone property.\n */\n\n/**\n * {@link https://nhn.github.io/tui.code-snippet/latest/CustomEvents CustomEvents} document at {@link https://github.com/nhn/tui.code-snippet tui-code-snippet}\n * @typedef {class} CustomEvents\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.<string, HTMLElement>} 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 - The container element or selector id\n * @param {Options} options - The calendar {@link Options} object\n * @example\n * var calendar = new tui.Calendar(document.getElementById('calendar'), {\n * defaultView: 'week',\n * taskView: true, // Can be also ['milestone', 'task']\n * scheduleView: true, // Can be also ['allday', 'time']\n * template: {\n * milestone: function(schedule) {\n * return '<span style=\"color:red;\"><i class=\"fa fa-flag\"></i> ' + schedule.title + '</span>';\n * },\n * milestoneTitle: function() {\n * return 'Milestone';\n * },\n * task: function(schedule) {\n * return ' #' + schedule.title;\n * },\n * taskTitle: function() {\n * return '<label><input type=\"checkbox\" />Task</label>';\n * },\n * allday: function(schedule) {\n * return schedule.title + ' <i class=\"fa fa-refresh\"></i>';\n * },\n * alldayTitle: function() {\n * return 'All Day';\n * },\n * time: function(schedule) {\n * return schedule.title + ' <i class=\"fa fa-refresh\"></i>' + 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 * startDayOfWeek: 0,\n * narrowWeekend: true\n * }\n * });\n */\nfunction Calendar(container, options) {\n options = util.extend(\n {\n usageStatistics: true\n },\n options\n );\n\n if (options.usageStatistics === true && util.sendHostname) {\n util.sendHostname('calendar', GA_TRACKING_ID);\n }\n\n if (util.isString(container)) {\n container = document.querySelector(container);\n }\n\n /**\n * Calendar color map\n * @type {object}\n * @private\n */\n this._calendarColor = {};\n\n /**\n * Current rendered date\n * @type {TZDate}\n * @private\n */\n this._renderDate = datetime.start();\n\n /**\n * start and end date of weekly, monthly\n * @type {object}\n * @private\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 = _createController(options);\n this._controller.setCalendars(options.calendars);\n\n /**\n * layout view (layout manager)\n * @type {Layout}\n * @private\n */\n this._layout = new Layout(container, this._controller.theme);\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 * @private\n */\n this._viewName = options.defaultView || 'week';\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 /**\n * It's true if Calendar.prototype.scrollToNow() is called.\n * @type {boolean}\n * @private\n */\n this._requestScrollToNow = false;\n\n /**\n * Open schedule creation popup\n * @type {function}\n * @private\n */\n this._openCreationPopup = null;\n\n /**\n * Hide the more view\n * @type {function}\n * @private\n */\n this._hideMoreView = null;\n\n /**\n * Unique id for requestAnimFrame()\n * @type {number}\n * @private\n */\n this._requestRender = 0;\n\n /**\n * calendar options\n * @type {Options}\n * @private\n */\n this._options = {};\n\n this._initialize(options);\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._refreshMethod\n = this._scrollToNowMethod = null;\n};\n\n/**\n * Initialize calendar\n * @param {Options} options - calendar options\n * @private\n */\n// eslint-disable-next-line complexity\nCalendar.prototype._initialize = function(options) {\n var controller = this._controller,\n viewName = this._viewName;\n\n this._options = util.extend(\n {\n defaultView: viewName,\n taskView: true,\n scheduleView: true,\n template: util.extend(\n {\n allday: null,\n time: null\n },\n util.pick(options, 'template') || {}\n ),\n week: util.extend({}, util.pick(options, 'week') || {}),\n month: util.extend({}, util.pick(options, 'month') || {}),\n calendars: [],\n useCreationPopup: false,\n useDetailPopup: false,\n timezones: options.timezone && options.timezone.zones ? options.timezone.zones : [],\n disableDblClick: false,\n disableClick: false,\n isReadOnly: false\n },\n options\n );\n\n this._options.week = util.extend(\n {\n startDayOfWeek: 0,\n workweek: false\n },\n util.pick(this._options, 'week') || {}\n );\n\n this._options.timezone = util.extend({zones: []}, util.pick(options, 'timezone') || {});\n\n this._options.month = util.extend(\n {\n startDayOfWeek: 0,\n workweek: false,\n scheduleFilter: function(schedule) {\n return (\n Boolean(schedule.isVisible) &&\n (schedule.category === 'allday' || schedule.category === 'time')\n );\n }\n },\n util.pick(options, 'month') || {}\n );\n\n if (this._options.isReadOnly) {\n this._options.useCreationPopup = false;\n }\n\n this._layout.controller = controller;\n\n this._setAdditionalInternalOptions(this._options);\n\n this.changeView(viewName, true);\n};\n\n/**\n * Set additional internal options\n * 1. Register to the template handlebar\n * 2. Update the calendar list and set the color of the calendar.\n * 3. Change the primary timezone offset of the timezones.\n * @param {Options} options - calendar options\n * @private\n */\nCalendar.prototype._setAdditionalInternalOptions = function(options) {\n var timezone = options.timezone;\n var templateWithSanitizer = function(templateFn) {\n return function() {\n var template = templateFn.apply(null, arguments);\n\n return DOMPurify.sanitize(template);\n };\n };\n var zones, offsetCalculator;\n\n util.forEach(options.template, function(func, name) {\n if (func) {\n Handlebars.registerHelper(name + '-tmpl', templateWithSanitizer(func));\n }\n });\n\n util.forEach(\n options.calendars || [],\n function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n },\n this\n );\n\n if (timezone) {\n offsetCalculator = timezone.offsetCalculator;\n\n if (util.isFunction(offsetCalculator)) {\n tz.setOffsetCalculator(offsetCalculator);\n }\n\n zones = timezone.zones;\n\n if (zones.length) {\n tz.setPrimaryTimezoneByOption(zones[0]);\n\n if (util.isNumber(zones[0].timezoneOffset)) {\n // @deprecated timezoneOffset property will be deprecated. use timezone property\n tz.setOffsetByTimezoneOption(zones[0].timezoneOffset);\n }\n }\n }\n};\n\n/**********\n * CRUD Methods\n **********/\n\n/**\n * Create schedules and render calendar.\n * @param {Array.<Schedule>} schedules - {@link 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 util.forEach(\n schedules,\n function(obj) {\n this._setScheduleColor(obj.calendarId, obj);\n },\n this\n );\n\n this._controller.createSchedules(schedules, silent);\n\n if (!silent) {\n this.render();\n }\n};\n\n/**\n * Get a {@link Schedule} object by schedule id and calendar id.\n * @param {string} scheduleId - ID of schedule\n * @param {string} calendarId - calendarId of the 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(scheduleId, calendarId) {\n return this._controller.schedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n};\n\n/**\n * Update the schedule\n * @param {string} scheduleId - ID of the original schedule to update\n * @param {string} calendarId - The calendarId of the original schedule to update\n * @param {object} changes - The {@link Schedule} properties and values with changes to update\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.updateSchedule(schedule.id, schedule.calendarId, {\n * title: 'Changed schedule',\n * start: new Date('2019-11-05T09:00:00'),\n * end: new Date('2019-11-05T10:00:00'),\n * category: 'time'\n * });\n */\nCalendar.prototype.updateSchedule = function(scheduleId, calendarId, changes, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n var hasChangedCalendar = false;\n\n if (!changes || !schedule) {\n return;\n }\n\n hasChangedCalendar = this._hasChangedCalendar(schedule, changes);\n changes = hasChangedCalendar ? this._setScheduleColor(changes.calendarId, changes) : changes;\n\n ctrl.updateSchedule(schedule, changes);\n\n if (!silent) {\n this.render();\n }\n};\n\nCalendar.prototype._hasChangedCalendar = function(schedule, changes) {\n return schedule && changes.calendarId && schedule.calendarId !== changes.calendarId;\n};\n\nCalendar.prototype._setScheduleColor = function(calendarId, schedule) {\n var calColor = this._calendarColor;\n var color = calColor[calendarId];\n\n if (color) {\n schedule.color = schedule.color || color.color;\n schedule.bgColor = schedule.bgColor || color.bgColor;\n schedule.borderColor = schedule.borderColor || color.borderColor;\n schedule.dragBgColor = schedule.dragBgColor || color.dragBgColor;\n }\n\n return schedule;\n};\n\n/**\n * Delete a schedule.\n * @param {string} scheduleId - ID of schedule to delete\n * @param {string} calendarId - The CalendarId of the schedule to delete\n * @param {boolean} [silent=false] - No auto render after creation when set true\n */\nCalendar.prototype.deleteSchedule = function(scheduleId, calendarId, silent) {\n var ctrl = this._controller,\n ownSchedules = ctrl.schedules,\n schedule = ownSchedules.single(function(model) {\n return model.id === scheduleId && model.calendarId === calendarId;\n });\n\n if (!schedule) {\n return;\n }\n\n ctrl.deleteSchedule(schedule);\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Private Methods\n **********/\n\n/**\n * @param {string|Date} date - The Date to show in calendar\n * @param {number} [startDayOfWeek=0] - The Start day of week\n * @param {boolean} [workweek=false] - The only show work week\n * @returns {array} render range\n * @private\n */\nCalendar.prototype._getWeekDayRange = function(date, startDayOfWeek, workweek) {\n var day;\n var start;\n var end;\n var range;\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(date).addDate(-day + startDayOfWeek);\n\n end = new TZDate(start).addDate(6);\n\n if (day < startDayOfWeek) {\n start = new TZDate(start).addDate(-7);\n end = new TZDate(end).addDate(-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 start = datetime.start(start);\n end = datetime.start(end);\n\n return [start, end];\n};\n\n/**\n * Toggle schedules' visibility by calendar ID\n * @param {string} calendarId - The calendar id value\n * @param {boolean} toHide - Set true to hide schedules\n * @param {boolean} [render=true] - set true then render after change visible property each models\n */\nCalendar.prototype.toggleSchedules = function(calendarId, toHide, render) {\n var ownSchedules = this._controller.schedules;\n\n render = util.isExisty(render) ? render : true;\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. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * var silent = true;\n * calendar.clear();\n * calendar.createSchedules(schedules, silent);\n * calendar.render();\n * @example\n * // Render a calendar when resizing a window.\n * window.addEventListener('resize', function() {\n * calendar.render();\n * });\n */\nCalendar.prototype.render = function(immediately) {\n if (this._requestRender) {\n reqAnimFrame.cancelAnimFrame(this._requestRender);\n }\n\n if (immediately) {\n this._renderFunc();\n } else {\n this._requestRender = reqAnimFrame.requestAnimFrame(this._renderFunc, this);\n }\n};\n\n/**\n * Render and refresh all layout and process requests.\n * @private\n */\nCalendar.prototype._renderFunc = function() {\n if (this._refreshMethod) {\n this._refreshMethod();\n }\n if (this._layout) {\n this._layout.render();\n }\n if (this._scrollToNowMethod && this._requestScrollToNow) {\n this._scrollToNowMethod();\n }\n\n this._requestScrollToNow = false;\n this._requestRender = null;\n};\n\n/**\n * Delete all schedules and clear view. The real rendering occurs after requestAnimationFrame.\n * If you have to render immediately, use the 'immediately' parameter as true.\n * @param {boolean} [immediately=false] - Render it immediately\n * @example\n * calendar.clear();\n * calendar.createSchedules(schedules, true);\n * calendar.render();\n */\nCalendar.prototype.clear = function(immediately) {\n this._controller.clearSchedules();\n this.render(immediately);\n};\n\n/**\n * Scroll to current time on today in case of daily, weekly view\n * @example\n * function onNewSchedules(schedules) {\n * calendar.createSchedules(schedules);\n * if (calendar.getViewName() !== 'month') {\n * calendar.scrollToNow();\n * }\n * }\n */\nCalendar.prototype.scrollToNow = function() {\n if (this._scrollToNowMethod) {\n this._requestScrollToNow = true;\n // this._scrollToNowMethod() will be called at next frame rendering.\n }\n};\n\n/**\n * Move to today.\n * @example\n * function onClickTodayBtn() {\n * calendar.today();\n * }\n */\nCalendar.prototype.today = function() {\n this._renderDate = datetime.start();\n\n this._setViewName(this._viewName);\n this.move();\n this.render();\n};\n\n/**\n * Move the calendar amount of offset value\n * @param {number} offset - The 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 */\n// eslint-disable-next-line complexity\nCalendar.prototype.move = function(offset) {\n var renderDate = dw(datetime.start(this._renderDate)),\n viewName = this._viewName,\n view = this._getCurrentView(),\n recursiveSet = _setOptionRecurseively,\n startDate,\n endDate,\n tempDate,\n startDayOfWeek,\n visibleWeeksCount,\n workweek,\n isAlways6Week,\n 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 isAlways6Week = util.pick(this._options, 'month', 'isAlways6Week');\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(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\n });\n } else {\n datetimeOptions = {\n startDayOfWeek: startDayOfWeek,\n isAlways6Week: isAlways6Week,\n workweek: workweek\n };\n\n renderDate.addMonth(offset);\n tempDate = datetime.arr2dCalendar(renderDate.d, datetimeOptions);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderMonth = new TZDate(renderDate.d);\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(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\n });\n } else if (viewName === 'day') {\n renderDate.addDate(offset);\n startDate = datetime.start(renderDate.d);\n endDate = datetime.end(renderDate.d);\n\n recursiveSet(view, function(childView, opt) {\n opt.renderStartDate = new TZDate(startDate);\n opt.renderEndDate = new TZDate(endDate);\n\n childView.setState({\n collapsed: true\n });\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 - The date to move\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('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(date);\n this._setViewName(this._viewName);\n this.move(0);\n this.render();\n};\n\n/**\n * Move the calendar forward a day, a week, a month, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\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, 2 weeks, 3 weeks.\n * @example\n * function moveToNextOrPrevRange(val) {\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 - The calendar ID\n * @param {CalendarColor} option - The {@link CalendarColor} object\n * @param {boolean} [silent=false] - No auto render after creation when set true\n * @example\n * calendar.setCalendarColor('1', {\n * color: '#e8e8e8',\n * bgColor: '#585858',\n * borderColor: '#a1b56c'\n * dragBgColor: '#585858',\n * });\n * calendar.setCalendarColor('2', {\n * color: '#282828',\n * bgColor: '#dc9656',\n * borderColor: '#a1b56c',\n * dragBgColor: '#dc9656',\n * });\n * calendar.setCalendarColor('3', {\n * color: '#a16946',\n * bgColor: '#ab4642',\n * borderColor: '#a1b56c',\n * dragBgColor: '#ab4642',\n * });\n */\nCalendar.prototype.setCalendarColor = function(calendarId, option, silent) {\n var calColor = this._calendarColor,\n ownSchedules = this._controller.schedules,\n ownColor = calColor[calendarId];\n\n if (!util.isObject(option)) {\n config.throwError(\n \"Calendar#changeCalendarColor(): color 는 {color: '', bgColor: ''} 형태여야 합니다.\"\n );\n }\n\n ownColor = calColor[calendarId] = util.extend(\n {\n color: '#000',\n bgColor: '#a1b56c',\n borderColor: '#a1b56c',\n dragBgColor: '#a1b56c'\n },\n option\n );\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 model.dragBgColor = ownColor.dragBgColor;\n });\n\n if (!silent) {\n this.render();\n }\n};\n\n/**********\n * Custom Events\n **********/\n\n/**\n * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickSchedule\n * @param {object} clickScheduleData - The event data of 'clickSchedule' handler\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 - The {@link 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 * A bridge-based event handler for connecting a click handler to a user click event handler for each view\n * @fires Calendar#clickMore\n * @param {object} clickMoreSchedule - The event data of 'clickMore' handler\n * @private\n */\nCalendar.prototype._onClickMore = function(clickMoreSchedule) {\n /**\n * Fire this event when click a schedule.\n * @event Calendar#clickMore\n * @type {object}\n * @property {Date} date - The Clicked date\n * @property {HTMLElement} target - The more element\n * @example\n * calendar.on('clickMore', function(event) {\n * console.log('clickMore', event.date, event.target);\n * });\n */\n this.fire('clickMore', clickMoreSchedule);\n};\n\n/**\n * dayname click event handler\n * @fires Calendar#clickDayname\n * @param {object} clickScheduleData - The event data of 'clickDayname' handler\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 - The date string by format 'YYYY-MM-DD'\n * @example\n * calendar.on('clickDayname', function(event) {\n * if (calendar.getViewName() === 'week') {\n * calendar.setDate(new Date(event.date));\n * calendar.changeView('day', true);\n * }\n * });\n */\n this.fire('clickDayname', clickScheduleData);\n};\n\n/**\n * @fires {Calendar#n('beforeCreateSchedule', function}\n * @param {object} createScheduleData - select schedule data from allday, time\n * @private\n */\nCalendar.prototype._onBeforeCreate = function(createScheduleData) {\n if (this._options.useCreationPopup && !createScheduleData.useCreationPopup) {\n if (this._showCreationPopup) {\n this._showCreationPopup(createScheduleData);\n\n return;\n }\n }\n /**\n * Fire this event when select time period in daily, weekly, monthly.\n * @event Calendar#beforeCreateSchedule\n * @type {object}\n * @property {boolean} isAllDay - The allday schedule\n * @property {Date} start - The selected start time\n * @property {Date} end - The selected end time\n * @property {TimeCreationGuide} guide - {@link TimeCreationGuide} instance\n * @property {string} triggerEventName - The 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 {@link 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 - The original {@link Schedule} instance\n * @property {object} changes - The {@link Schedule} properties and values with changes to update\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @example\n * calendar.on('beforeUpdateSchedule', function(event) {\n * var schedule = event.schedule;\n * var changes = event.changes;\n *\n * calendar.updateSchedule(schedule.id, schedule.calendarId, changes);\n * });\n */\n this.fire('beforeUpdateSchedule', updateScheduleData);\n};\n\n/**\n * @fires Calendar#beforeDeleteSchedule\n * @param {object} deleteScheduleData - delete schedule data\n * @private\n */\nCalendar.prototype._onBeforeDelete = function(deleteScheduleData) {\n /**\n * Fire this event when delete a schedule.\n * @event Calendar#beforeDeleteSchedule\n * @type {object}\n * @property {Schedule} schedule - The {@link Schedule} instance to delete\n * @example\n * calendar.on('beforeDeleteSchedule', function(event) {\n * var schedule = event.schedule;\n * alert('The schedule is removed.', schedule);\n * });\n */\n this.fire('beforeDeleteSchedule', deleteScheduleData);\n};\n\n/**\n * @fires Calendar#afterRenderSchedule\n * @param {Schedule} scheduleData - The schedule data\n * @private\n */\nCalendar.prototype._onAfterRenderSchedule = function(scheduleData) {\n /**\n * Fire this event by every single schedule after rendering whole calendar.\n * @event Calendar#afterRenderSchedule\n * @type {object}\n * @property {Schedule} schedule - A rendered {@link Schedule} instance\n * @example\n * calendar.on('afterRenderSchedule', function(event) {\n * var schedule = event.schedule;\n * var element = calendar.getElement(schedule.id, schedule.calendarId);\n * // use the element\n * console.log(element);\n * });\n */\n this.fire('afterRenderSchedule', scheduleData);\n};\n\n/**\n * @fires Calendar#clickTimezonesCollapseBtn\n * @param {boolean} timezonesCollapsed - timezones collapsed flag\n * @private\n */\nCalendar.prototype._onClickTimezonesCollapseBtn = function(timezonesCollapsed) {\n /**\n * Fire this event by clicking timezones collapse button\n * @event Calendar#clickTimezonesCollapseBtn\n * @type {object}\n * @property {boolean} timezonesCollapsed - The timezones collapes flag\n * @example\n * calendar.on('clickTimezonesCollapseBtn', function(timezonesCollapsed) {\n * console.log(timezonesCollapsed);\n * });\n */\n this.fire('clickTimezonesCollapseBtn', timezonesCollapsed);\n};\n\n/**\n * Toggle calendar factory class, main view, wallview event connection\n * @param {boolean} isAttach - attach events if true.\n * @param {Week|Month} view - Weekly view or Monthly view\n * @private\n */\nCalendar.prototype._toggleViewSchedule = function(isAttach, view) {\n var self = this,\n handler = view.handler,\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 creationHandler[method]('beforeDeleteSchedule', self._onBeforeDelete, 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 // bypass events from view\n view[method]('afterRenderSchedule', self._onAfterRenderSchedule, self);\n view[method]('clickTimezonesCollapseBtn', self._onClickTimezonesCollapseBtn, self);\n view[method]('clickMore', self._onClickMore, self);\n};\n\n/**\n * Change current view with view name('day', 'week', 'month')\n * @param {string} newViewName - The 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.changeView('day', true);\n *\n * // weekly view\n * calendar.changeView('week', true);\n *\n * // monthly view(default 6 weeks view)\n * calendar.setOptions({month: {visibleWeeksCount: 6}}, true); // or null\n * calendar.changeView('month', true);\n *\n * // 2 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 2}}, true);\n * calendar.changeView('month', true);\n *\n * // 3 weeks monthly view\n * calendar.setOptions({month: {visibleWeeksCount: 3}}, true);\n * calendar.changeView('month', true);\n *\n * // narrow weekend\n * calendar.setOptions({month: {narrowWeekend: true}}, true);\n * calendar.setOptions({week: {narrowWeekend: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // change start day of week(from monday)\n * calendar.setOptions({week: {startDayOfWeek: 1}}, true);\n * calendar.setOptions({month: {startDayOfWeek: 1}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n *\n * // work week\n * calendar.setOptions({week: {workweek: true}}, true);\n * calendar.setOptions({month: {workweek: true}}, true);\n * calendar.changeView(calendar.getViewName(), true);\n */\n// eslint-disable-next-line complexity\nCalendar.prototype.changeView = 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 = _createMonthView(controller, layout.container, dragHandler, options);\n } else if (newViewName === 'week') {\n created = _createWeekView(\n controller,\n layout.container,\n dragHandler,\n options,\n this.getViewName()\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 this._openCreationPopup = created.openCreationPopup;\n this._showCreationPopup = created.showCreationPopup;\n this._hideMoreView = created.hideMoreView;\n\n this.move();\n this.render();\n};\n\n/**\n * @deprecated\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.changeView(viewName, true);\n};\n\n/**\n * @deprecated\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.changeView(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._viewName = viewName;\n};\n\n/**\n * Get a schedule element 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(\n '[data-schedule-id=\"' + scheduleId + '\"][data-calendar-id=\"' + calendarId + '\"]'\n );\n }\n\n return null;\n};\n\n/**\n * Set a theme. If some keys are not defined in the preset, will be return.\n * @param {object} theme - multiple styles map\n * @returns {Array.<string>} keys - error keys not predefined.\n * @example\n * cal.setTheme({\n 'month.dayname.height': '31px',\n 'common.dayname.color': '#333',\n 'month.dayname.borderBottom': '1px solid #e5e5e5' // Not valid key will be return.\n * });\n */\nCalendar.prototype.setTheme = function(theme) {\n var result = this._controller.setTheme(theme);\n this.render(true);\n\n return result;\n};\n\n/**\n * Set options of calendar\n * @param {Options} options - set {@link Options}\n * @param {boolean} [silent=false] - no auto render after creation when set true\n */\nCalendar.prototype.setOptions = function(options, silent) {\n util.forEach(\n options,\n function(value, name) {\n if (util.isObject(value) && !util.isArray(value)) {\n util.forEach(\n value,\n function(innerValue, innerName) {\n this._options[name][innerName] = innerValue;\n },\n this\n );\n } else {\n this._options[name] = value;\n }\n },\n this\n );\n\n this._setAdditionalInternalOptions(options);\n\n if (!silent) {\n this.changeView(this._viewName, true);\n }\n};\n\n/**\n * Get current {@link Options}.\n * @returns {Options} options\n */\nCalendar.prototype.getOptions = function() {\n return this._options;\n};\n\n/**\n * Current rendered date ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDate = function() {\n return this._renderDate;\n};\n\n/**\n * Start time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeStart = function() {\n return this._renderRange.start;\n};\n\n/**\n * End time of rendered date range ({@link TZDate} for further information)\n * @returns {TZDate}\n */\nCalendar.prototype.getDateRangeEnd = function() {\n return this._renderRange.end;\n};\n\n/**\n * Get current view name('day', 'week', 'month')\n * @returns {string} view name\n */\nCalendar.prototype.getViewName = function() {\n return this._viewName;\n};\n\n/**\n * Set calendar list\n * @param {Array.<CalendarProps>} calendars - {@link CalendarProps} List\n */\nCalendar.prototype.setCalendars = function(calendars) {\n util.forEach(\n calendars || [],\n function(calendar) {\n this.setCalendarColor(calendar.id, calendar, true);\n },\n this\n );\n\n this._controller.setCalendars(calendars);\n\n this.render();\n};\n\n/**\n * Open schedule creation popup\n * @param {Schedule} schedule - The preset {@link Schedule} data\n */\nCalendar.prototype.openCreationPopup = function(schedule) {\n if (this._openCreationPopup) {\n this._openCreationPopup(schedule);\n }\n};\n\n/**\n * Hide the more view\n */\nCalendar.prototype.hideMoreView = function() {\n if (this._hideMoreView) {\n this._hideMoreView();\n }\n};\n\n/**\n * Set timezone offset\n * @param {number} offset - The offset (min)\n * @static\n * @deprecated\n * @example\n * var timezoneName = moment.tz.guess();\n * tui.Calendar.setTimezoneOffset(moment.tz.zone(timezoneName).utcOffset(moment()));\n */\nCalendar.setTimezoneOffset = function(offset) {\n tz.setOffset(offset);\n};\n\n/**\n * Set a callback function to get timezone offset by timestamp\n * @param {function} callback - The callback function\n * @static\n * @deprecated\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 tz.setOffsetCallback(callback);\n};\n\n/**\n * Create controller instance\n * @returns {Base} controller instance\n * @param {Options} options - calendar options\n * @private\n */\nfunction _createController(options) {\n return controllerFactory(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 * @param {string} viewName - 'week', 'day'\n * @returns {Week} week view instance\n * @private\n */\nfunction _createWeekView(controller, container, dragHandler, options, viewName) {\n return weekViewFactory(controller, container, dragHandler, options, viewName);\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 */\nfunction _createMonthView(controller, container, dragHandler, options) {\n return monthViewFactory(controller, container, dragHandler, options);\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 */\nfunction _setOptionRecurseively(view, func) {\n view.recursive(function(childView) {\n var opt = childView.options;\n\n if (!opt) {\n return;\n }\n\n func(childView, opt);\n });\n}\n\nutil.CustomEvents.mixin(Calendar);\n\nmodule.exports = Calendar;\n","'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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvYmxvY2staGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztxQkFBd0QsVUFBVTs7cUJBRW5ELFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsb0JBQW9CLEVBQUUsVUFBUyxPQUFPLEVBQUUsT0FBTyxFQUFFO0FBQ3ZFLFFBQUksT0FBTyxHQUFHLE9BQU8sQ0FBQyxPQUFPO1FBQzNCLEVBQUUsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUVsQixRQUFJLE9BQU8sS0FBSyxJQUFJLEVBQUU7QUFDcEIsYUFBTyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUM7S0FDakIsTUFBTSxJQUFJLE9BQU8sS0FBSyxLQUFLLElBQUksT0FBTyxJQUFJLElBQUksRUFBRTtBQUMvQyxhQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztLQUN0QixNQUFNLElBQUksZU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VyTWlzc2luZycsIGZ1bmN0aW9uKGNvbnRleHQsIG9wdGlvbnMpIHtcbiAgICBsZXQgaW52ZXJzZSA9IG9wdGlvbnMuaW52ZXJzZSxcbiAgICAgIGZuID0gb3B0aW9ucy5mbjtcblxuICAgIGlmIChjb250ZXh0ID09PSB0cnVlKSB7XG4gICAgICByZXR1cm4gZm4odGhpcyk7XG4gICAgfSBlbHNlIGlmIChjb250ZXh0ID09PSBmYWxzZSB8fCBjb250ZXh0ID09IG51bGwpIHtcbiAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgIH0gZWxzZSBpZiAoaXNBcnJheShjb250ZXh0KSkge1xuICAgICAgaWYgKGNvbnRleHQubGVuZ3RoID4gMCkge1xuICAgICAgICBpZiAob3B0aW9ucy5pZHMpIHtcbiAgICAgICAgICBvcHRpb25zLmlkcyA9IFtvcHRpb25zLm5hbWVdO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGluc3RhbmNlLmhlbHBlcnMuZWFjaChjb250ZXh0LCBvcHRpb25zKTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHJldHVybiBpbnZlcnNlKHRoaXMpO1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBpZiAob3B0aW9ucy5kYXRhICYmIG9wdGlvbnMuaWRzKSB7XG4gICAgICAgIGxldCBkYXRhID0gY3JlYXRlRnJhbWUob3B0aW9ucy5kYXRhKTtcbiAgICAgICAgZGF0YS5jb250ZXh0UGF0aCA9IGFwcGVuZENvbnRleHRQYXRoKFxuICAgICAgICAgIG9wdGlvbnMuZGF0YS5jb250ZXh0UGF0aCxcbiAgICAgICAgICBvcHRpb25zLm5hbWVcbiAgICAgICAgKTtcbiAgICAgICAgb3B0aW9ucyA9IHsgZGF0YTogZGF0YSB9O1xuICAgICAgfVxuXG4gICAgICByZXR1cm4gZm4oY29udGV4dCwgb3B0aW9ucyk7XG4gICAgfVxuICB9KTtcbn1cbiJdfQ==\n","'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 if (global.Symbol && context[global.Symbol.iterator]) {\n var newContext = [];\n var iterator = context[global.Symbol.iterator]();\n for (var it = iterator.next(); !it.done; it = iterator.next()) {\n newContext.push(it.value);\n }\n context = newContext;\n for (var j = context.length; i < j; i++) {\n execIteration(i, i, i === context.length - 1);\n }\n } else {\n (function () {\n var priorKey = undefined;\n\n Object.keys(context).forEach(function (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 if (priorKey !== undefined) {\n execIteration(priorKey, i - 1, true);\n }\n })();\n }\n }\n\n if (i === 0) {\n ret = inverse(this);\n }\n\n return ret;\n });\n};\n\nmodule.exports = exports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hc3QgaXRlcmF0aW9uIHdpdGhvdXQgaGF2ZSB0byBzY2FuIHRoZSBvYmplY3QgdHdpY2UgYW5kIGNyZWF0ZVxuICAgICAgICAgIC8vIGFuIGl0ZXJtZWRpYXRlIGtleXMgYXJyYXkuXG4gICAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGV4ZWNJdGVyYXRpb24ocHJpb3JLZXksIGkgLSAxKTtcbiAgICAgICAgICB9XG4gICAgICAgICAgcHJpb3JLZXkgPSBrZXk7XG4gICAgICAgICAgaSsrO1xuICAgICAgICB9KTtcbiAgICAgICAgaWYgKHByaW9yS2V5ICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICBleGVjSXRlcmF0aW9uKHByaW9yS2V5LCBpIC0gMSwgdHJ1ZSk7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAoaSA9PT0gMCkge1xuICAgICAgcmV0ID0gaW52ZXJzZSh0aGlzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n","'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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaGVscGVyLW1pc3NpbmcuanMiXSwibmFtZXMiOltdL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cbiAgICB9XG4gIH0pO1xufVxuIl19\n","'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('if', function (conditional, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#if requires exactly one argument');\n }\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 if (arguments.length != 2) {\n throw new _exception2['default']('#unless requires exactly one argument');\n }\n return instance.helpers['if'].call(this, conditional, {\n fn: options.inverse,\n inverse: options.fn,\n hash: options.hash\n });\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvaWYuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztxQkFBb0MsVUFBVTs7eUJBQ3hCLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsSUFBSSxFQUFFLFVBQVMsV0FBVyxFQUFFLE9BQU8sRUFBRTtBQUMzRCxRQUFJLFNBQVMsQ0FBQyxNQUFNLElBQUksQ0FBQyxFQUFFO0FBQ3pCLFlBQU0sMkJBQWMsbUNBQW1DLENBQUMsQ0FBQztLQUMxRDtBQUNELFFBQUksa0JBQV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sIG9wdGlvbnMpIHtcbiAgICBpZiAoYXJndW1lbnRzLmxlbmd0aCAhPSAyKSB7XG4gICAgICB0aHJvdyBuZXcgRXhjZXB0aW9uKCcjdW5sZXNzIHJlcXVpcmVzIGV4YWN0bHkgb25lIGFyZ3VtZW50Jyk7XG4gICAgfVxuICAgIHJldHVybiBpbnN0YW5jZS5oZWxwZXJzWydpZiddLmNhbGwodGhpcywgY29uZGl0aW9uYWwsIHtcbiAgICAgIGZuOiBvcHRpb25zLmludmVyc2UsXG4gICAgICBpbnZlcnNlOiBvcHRpb25zLmZuLFxuICAgICAgaGFzaDogb3B0aW9ucy5oYXNoXG4gICAgfSk7XG4gIH0pO1xufVxuIl19\n","'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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9nLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxLQUFLLEVBQUUsa0NBQWlDO0FBQzlELFFBQUksSUFBSSxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQ3BCLE9BQU8sR0FBRyxTQUFTLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxDQUFDLENBQUMsQ0FBQztBQUM1QyxTQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUF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cbiAgICB9XG5cbiAgICBsZXQgbGV2ZWwgPSAxO1xuICAgIGlmIChvcHRpb25zLmhhc2gubGV2ZWwgIT0gbnVsbCkge1xuICAgICAgbGV2ZWwgPSBvcHRpb25zLmhhc2gubGV2ZWw7XG4gICAgfSBlbHNlIGlmIChvcHRpb25zLmRhdGEgJiYgb3B0aW9ucy5kYXRhLmxldmVsICE9IG51bGwpIHtcbiAgICAgIGxldmVsID0gb3B0aW9ucy5kYXRhLmxldmVsO1xuICAgIH1cbiAgICBhcmdzWzBdID0gbGV2ZWw7XG5cbiAgICBpbnN0YW5jZS5sb2coLi4uYXJncyk7XG4gIH0pO1xufVxuIl19\n","'use strict';\n\nexports.__esModule = true;\n\nexports['default'] = function (instance) {\n instance.registerHelper('lookup', function (obj, field, options) {\n if (!obj) {\n // Note for 5.0: Change to \"obj == null\" in 5.0\n return obj;\n }\n return options.lookupProperty(obj, field);\n });\n};\n\nmodule.exports = exports['default'];\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRTtBQUM5RCxRQUFJLENBQUMsR0FBRyxFQUFFOztBQUVSLGFBQU8sR0FBRyxDQUFDO0tBQ1o7QUFDRCxXQUFPLE9BQU8sQ0FBQyxjQUFjLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxDQUFDO0dBQzNDLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6Imxvb2t1cC5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCdsb29rdXAnLCBmdW5jdGlvbihvYmosIGZpZWxkLCBvcHRpb25zKSB7XG4gICAgaWYgKCFvYmopIHtcbiAgICAgIC8vIE5vdGUgZm9yIDUuMDogQ2hhbmdlIHRvIFwib2JqID09IG51bGxcIiBpbiA1LjBcbiAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuICAgIHJldHVybiBvcHRpb25zLmxvb2t1cFByb3BlcnR5KG9iaiwgZmllbGQpO1xuICB9KTtcbn1cbiJdfQ==\n","'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('with', function (context, options) {\n if (arguments.length != 2) {\n throw new _exception2['default']('#with requires exactly one argument');\n }\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvd2l0aC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O3FCQU1PLFVBQVU7O3lCQUNLLGNBQWM7Ozs7cUJBRXJCLFVBQVMsUUFBUSxFQUFFO0FBQ2hDLFVBQVEsQ0FBQyxjQUFjLENBQUMsTUFBTSxF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MoW2NvbnRleHRdLCBbZGF0YSAmJiBkYXRhLmNvbnRleHRQYXRoXSlcbiAgICAgIH0pO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gb3B0aW9ucy5pbnZlcnNlKHRoaXMpO1xuICAgIH1cbiAgfSk7XG59XG4iXX0=\n","'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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Z0NBQTJCLHFCQUFxQjs7OztBQUV6QyxTQUFTLHlCQUF5QixDQUFDLFFBQVEsRUFBRTtBQUNsRCxnQ0FBZSxRQUFRLENBQUMsQ0FBQztDQUMxQiIsImZpbGUiOiJkZWNvcmF0b3JzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHJlZ2lzdGVySW5saW5lIGZyb20gJy4vZGVjb3JhdG9ycy9pbmxpbmUnO1xuXG5leHBvcnQgZnVuY3Rpb24gcmVnaXN0ZXJEZWZhdWx0RGVjb3JhdG9ycyhpbnN0YW5jZSkge1xuICByZWdpc3RlcklubGluZShpbnN0YW5jZSk7XG59XG4iXX0=\n","'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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2RlY29yYXRvcnMvaW5saW5lLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQXVCLFVBQVU7O3FCQUVsQixVQUFTLFFBQVEsRUFBRTtBQUNoQyxVQUFRLENBQUMsaUJBQWlCLENBQUMsUUFBUSxFQUFFLFVBQVMsRUFBRSxFQUFFLEtBQUssRUFBRSxTQUFTLEVBQUUsT0FBTyxFQUFFO0FBQzNFLFFBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztBQUNiLFFBQUksQ0FBQyxLQUFLLENBQUMsUUFBUSxFQUFFO0FBQ25CLFdBQUssQ0FBQyxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ3BCLFNBQUcsR0FBRyxVQUFTLE9BQU8sRUFBRSxPQUFPLEVBQUU7O0FBRS9CLFlBQUksUUFBUSxHQUFHLFNBQVMsQ0FBQyxRQUFRLENBQUM7QUFDbEMsaUJBQVMsQ0FBQyxRQUFRLEdBQUcsY0FBTyxFQUFFLEVBQUUsUUFBUSxFQUFFLEtBQUssQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUMxRCxZQUFJLEdBQUcsR0FBRyxFQUFFLENBQUMsT0FBTyxFQUFFLE9BQU8sQ0FBQyxDQUFDO0FBQy9CLGlCQUFTLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztBQUM5QixlQUFPLEdBQUcsQ0FBQztPQUNaLENBQUM7S0FDSDs7QUFFRCxTQUFLLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxPQUFPLENBQUMsRUFBRSxDQUFDOztBQUU3QyxXQUFPLEdBQUcsQ0FBQztHQUNaLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6ImlubGluZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGV4dGVuZCB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24oaW5zdGFuY2UpIHtcbiAgaW5zdGFuY2UucmVnaXN0ZXJEZWNvcmF0b3IoJ2lubGluZScsIGZ1bmN0aW9uKGZuLCBwcm9wcywgY29udGFpbmVyLCBvcHRpb25zKSB7XG4gICAgbGV0IHJldCA9IGZuO1xuICAgIGlmICghcHJvcHMucGFydGlhbHMpIHtcbiAgICAgIHByb3BzLnBhcnRpYWxzID0ge307XG4gICAgICByZXQgPSBmdW5jdGlvbihjb250ZXh0LCBvcHRpb25zKSB7XG4gICAgICAgIC8vIENyZWF0ZSBhIG5ldyBwYXJ0aWFscyBzdGFjayBmcmFtZSBwcmlvciB0byBleGVjLlxuICAgICAgICBsZXQgb3JpZ2luYWwgPSBjb250YWluZXIucGFydGlhbHM7XG4gICAgICAgIGNvbnRhaW5lci5wYXJ0aWFscyA9IGV4dGVuZCh7fSwgb3JpZ2luYWwsIHByb3BzLnBhcnRpYWxzKTtcbiAgICAgICAgbGV0IHJldCA9IGZuKGNvbnRleHQsIG9wdGlvbnMpO1xuICAgICAgICBjb250YWluZXIucGFydGlhbHMgPSBvcmlnaW5hbDtcbiAgICAgICAgcmV0dXJuIHJldDtcbiAgICAgIH07XG4gICAgfVxuXG4gICAgcHJvcHMucGFydGlhbHNbb3B0aW9ucy5hcmdzWzBdXSA9IG9wdGlvbnMuZm47XG5cbiAgICByZXR1cm4gcmV0O1xuICB9KTtcbn1cbiJdfQ==\n","'use strict';\n\nexports.__esModule = true;\nexports.createNewLookupObject = createNewLookupObject;\n\nvar _utils = require('../utils');\n\n/**\n * Create a new object with \"null\"-prototype to avoid truthy results on prototype properties.\n * The resulting object can be used with \"object[property]\" to check if a property exists\n * @param {...object} sources a varargs parameter of source objects that will be merged\n * @returns {object}\n */\n\nfunction createNewLookupObject() {\n for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) {\n sources[_key] = arguments[_key];\n }\n\n return _utils.extend.apply(undefined, [Object.create(null)].concat(sources));\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2ludGVybmFsL2NyZWF0ZS1uZXctbG9va3VwLW9iamVjdC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztxQkFBdUIsVUFBVTs7Ozs7Ozs7O0FBUTFCLFNBQVMscUJBQXFCLEdBQWE7b0NBQVQsT0FBTztBQUFQLFdBQU87OztBQUM5QyxTQUFPLGdDQUFPLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLFNBQUssT0FBTyxFQUFDLENBQUM7Q0FDaEQiLCJmaWxlIjoiY3JlYXRlLW5ldy1sb29rdXAtb2JqZWN0LmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgZXh0ZW5kIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vKipcbiAqIENyZWF0ZSBhIG5ldyBvYmplY3Qgd2l0aCBcIm51bGxcIi1wcm90b3R5cGUgdG8gYXZvaWQgdHJ1dGh5IHJlc3VsdHMgb24gcHJvdG90eXBlIHByb3BlcnRpZXMuXG4gKiBUaGUgcmVzdWx0aW5nIG9iamVjdCBjYW4gYmUgdXNlZCB3aXRoIFwib2JqZWN0W3Byb3BlcnR5XVwiIHRvIGNoZWNrIGlmIGEgcHJvcGVydHkgZXhpc3RzXG4gKiBAcGFyYW0gey4uLm9iamVjdH0gc291cmNlcyBhIHZhcmFyZ3MgcGFyYW1ldGVyIG9mIHNvdXJjZSBvYmplY3RzIHRoYXQgd2lsbCBiZSBtZXJnZWRcbiAqIEByZXR1cm5zIHtvYmplY3R9XG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBjcmVhdGVOZXdMb29rdXBPYmplY3QoLi4uc291cmNlcykge1xuICByZXR1cm4gZXh0ZW5kKE9iamVjdC5jcmVhdGUobnVsbCksIC4uLnNvdXJjZXMpO1xufVxuIl19\n","// 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","'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\nvar _helpers = require('./helpers');\n\nvar _internalWrapHelper = require('./internal/wrapHelper');\n\nvar _internalProtoAccess = require('./internal/proto-access');\n\nfunction checkRevision(compilerInfo) {\n var compilerRevision = compilerInfo && compilerInfo[0] || 1,\n currentRevision = _base.COMPILER_REVISION;\n\n if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) {\n return;\n }\n\n if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) {\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\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 pseudo-supported APIs.\n env.VM.checkRevision(templateSpec.compiler);\n\n // backwards compatibility for precompiled templates with compiler-version 7 (<4.3.0)\n var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7;\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 partial = env.VM.resolvePartial.call(this, partial, context, options);\n\n var extendedOptions = Utils.extend({}, options, {\n hooks: this.hooks,\n protoAccessControl: this.protoAccessControl\n });\n\n var result = env.VM.invokePartial.call(this, partial, context, extendedOptions);\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, extendedOptions);\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, loc) {\n if (!obj || !(name in obj)) {\n throw new _exception2['default']('\"' + name + '\" not defined in ' + obj, {\n loc: loc\n });\n }\n return container.lookupProperty(obj, name);\n },\n lookupProperty: function lookupProperty(parent, propertyName) {\n var result = parent[propertyName];\n if (result == null) {\n return result;\n }\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return result;\n }\n\n if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) {\n return result;\n }\n return undefined;\n },\n lookup: function lookup(depths, name) {\n var len = depths.length;\n for (var i = 0; i < len; i++) {\n var result = depths[i] && container.lookupProperty(depths[i], name);\n if (result != 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 mergeIfNeeded: function mergeIfNeeded(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\n main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);\n return main(context, options);\n }\n\n ret.isTop = true;\n\n ret._setup = function (options) {\n if (!options.partial) {\n var mergedHelpers = Utils.extend({}, env.helpers, options.helpers);\n wrapHelpersToPassLookupProperty(mergedHelpers, container);\n container.helpers = mergedHelpers;\n\n if (templateSpec.usePartial) {\n // Use mergeIfNeeded here to prevent compiling global partials multiple times\n container.partials = container.mergeIfNeeded(options.partials, env.partials);\n }\n if (templateSpec.usePartial || templateSpec.useDecorators) {\n container.decorators = Utils.extend({}, env.decorators, options.decorators);\n }\n\n container.hooks = {};\n container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options);\n\n var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7;\n _helpers.moveHelperToHooks(container, 'helperMissing', keepHelperInHelpers);\n _helpers.moveHelperToHooks(container, 'blockHelperMissing', keepHelperInHelpers);\n } else {\n container.protoAccessControl = options.protoAccessControl; // internal option\n container.helpers = options.helpers;\n container.partials = options.partials;\n container.decorators = options.decorators;\n container.hooks = options.hooks;\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\n/**\n * This is currently part of the official API, therefore implementation details should not be changed.\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\nfunction wrapHelpersToPassLookupProperty(mergedHelpers, container) {\n Object.keys(mergedHelpers).forEach(function (helperName) {\n var helper = mergedHelpers[helperName];\n mergedHelpers[helperName] = passLookupPropertyOption(helper, container);\n });\n}\n\nfunction passLookupPropertyOption(helper, container) {\n var lookupProperty = container.lookupProperty;\n return _internalWrapHelper.wrapHelper(helper, function (options) {\n return Utils.extend({ lookupProperty: lookupProperty }, options);\n });\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL3J1bnRpbWUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7cUJBQXVCLFNBQVM7O0lBQXBCLEtBQUs7O3lCQUNLLGFBQWE7Ozs7b0JBTTVCLFFBQVE7O3VCQUNtQixXQUFXOztrQ0FDbEIsdUJBQXVCOzttQ0FJM0MseUJBQXlCOztBQUV6QixTQUFTLGFBQWEsQ0FBQyxZQUFZLEVBQUU7QUFDMUMsTUFBTSxnQkFBZ0IsR0FBRyxBQUFDLFlBQVksSUFBSSxZQUFZLENBQUMsQ0FBQyxDQUFDLElBQUssQ0FBQztNQUM3RCxlQUFlLDBCQUFvQixDQUFDOztBQUV0QyxNQUNFLGdCQUFnQiwyQ0FBcUMsSUFDckQsZ0JBQWdCLDJCQUFxQixFQUNyQztBQUNBLFdBQU87R0FDUjs7QUFFRCxNQUFJLGdCQUFnQiwwQ0FBb0MsRUFBRTtBQUN4RCxRQUFNLGVBQWUsR0FBRyx1QkFBaUIsZUFBZSxDQUFDO1FBQ3ZELGdCQUFnQixHQUFHLHVCQUFpQixnQkFBZ0IsQ0FBQyxDQUFDO0FBQ3hELFVBQU0sMkJBQ0oseUZBQXlGLEdBQ3ZGLHFEQUFxRCxHQUNyRCxlQUFlLEdBQ2YsbURBQW1ELEdBQ25ELGdCQUFnQixHQUNoQixJQUFJLENBQ1AsQ0FBQztHQUNILE1BQU07O0FBRUwsVUFBTSwyQkFDSix3RkFBd0YsR0FDdEYsaURBQWlELEdBQ2pELFlBQVksQ0FBQyxDQUFDLENBQUMsR0FDZixJQUFJLENBQ1AsQ0FBQztHQUNIO0NBQ0Y7O0FBRU0sU0FBUyxRQUFRLENBQUMsWUF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29udGV4dCAhPSBvcHRpb25zLmRlcHRoc1swXVxuICAgICAgICAgICAgPyBbY29udGV4dF0uY29uY2F0KG9wdGlvbnMuZGVwdGhzKVxuICAgICAgICAgICAgOiBvcHRpb25zLmRlcHRocztcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGRlcHRocyA9IFtjb250ZXh0XTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICBmdW5jdGlvbiBtYWluKGNvbnRleHQgLyosIG9wdGlvbnMqLykge1xuICAgICAgcmV0dXJuIChcbiAgICAgICAgJycgK1xuICAgICAgICB0ZW1wbGF0ZVNwZWMubWFpbihcbiAgICAgICAgICBjb250YWluZXIsXG4gICAgICAgICAgY29udGV4dCxcbiAgICAgICAgICBjb250YWluZXIuaGVscGVycyxcbiAgICAgICAgICBjb250YWluZXIucGFydGlhbHMsXG4gICAgICAgICAgZGF0YSxcbiAgICAgICAgICBibG9ja1BhcmFtcyxcbiAgICAgICAgICBkZXB0aHNcbiAgICAgICAgKVxuICAgICAgKTtcbiAgICB9XG5cbiAgICBtYWluID0gZXhlY3V0ZURlY29yYXRvcnMoXG4gICAgICB0ZW1wbGF0ZVNwZWMubWFpbixcbiAgICAgIG1haW4sXG4gICAgICBjb250YWluZXIsXG4gICAgICBvcHRpb25zLmRlcHRocyB8fCBbXSxcbiAgICAgIGRhdGEsXG4gICAgICBibG9ja1BhcmFtc1xuICAgICk7XG4gICAgcmV0dXJuIG1haW4oY29udGV4dCwgb3B0aW9ucyk7XG4gIH1cblxuICByZXQuaXNUb3AgPSB0cnVlO1xuXG4gIHJldC5fc2V0dXAgPSBmdW5jdGlvbihvcHRpb25zKSB7XG4gICAgaWYgKCFvcHRpb25zLnBhcnRpYWwpIHtcbiAgICAgIGxldCBtZXJnZWRIZWxwZXJzID0gVXRpbHMuZXh0ZW5kKHt9LCBlbnYuaGVscGVycywgb3B0aW9ucy5oZWxwZXJzKTtcbiAgICAgIHdyYXBIZWxwZXJzVG9QYXNzTG9va3VwUHJvcGVydHkobWVyZ2VkSGVscGVycywgY29udGFpbmVyKTtcbiAgICAgIGNvbnRhaW5lci5oZWxwZXJzID0gbWVyZ2VkSGVscGVycztcblxuICAgICAgaWYgKHRlbXBsYXRlU3BlYy51c2VQYXJ0aWFsKSB7XG4gICAgICAgIC8vIFVzZSBtZXJnZUlmTmVlZGVkIGhlcmUgdG8gcHJldmVudCBjb21waWxpbmcgZ2xvYmFsIHBhcnRpYWxzIG11bHRpcGxlIHRpbWVzXG4gICAgICAgIGNvbnRhaW5lci5wYXJ0aWFscyA9IGNvbnRhaW5lci5tZXJnZUlmTmVlZGVkKFxuICAgICAgICAgIG9wdGlvbnMucGFydGlhbHMsXG4gICAgICAgICAgZW52LnBhcnRpYWxzXG4gICAgICAgICk7XG4gICAgICB9XG4gICAgICBpZiAodGVtcGxhdGVTcGVjLnVzZVBhcnRpYWwgfHwgdGVtcGxhdGVTcGVjLnVzZURlY29yYXRvcnMpIHtcbiAgICAgICAgY29udGFpbmVyLmRlY29yYXRvcnMgPSBVdGlscy5leHRlbmQoXG4gICAgICAgICAge30sXG4gICAgICAgICAgZW52LmRlY29yYXRvcnMsXG4gICAgICAgICAgb3B0aW9ucy5kZWNvcmF0b3JzXG4gICAgICAgICk7XG4gICAgICB9XG5cbiAgICAgIGNvbnRhaW5lci5ob29rcyA9IHt9O1xuICAgICAgY29udGFpbmVyLnByb3RvQWNjZXNzQ29udHJvbCA9IGNyZWF0ZVByb3RvQWNjZXNzQ29udHJvbChvcHRpb25zKTtcblxuICAgICAgbGV0IGtlZXBIZWxwZXJJbkhlbHBlcnMgPVxuICAgICAgICBvcHRpb25zLmFsbG93Q2FsbHNUb0hlbHBlck1pc3NpbmcgfHxcbiAgICAgICAgdGVtcGxhdGVXYXNQcmVjb21waWxlZFdpdGhDb21waWxlclY3O1xuICAgICAgbW92ZUhlbHBlclRvSG9va3MoY29udGFpbmVyLCAnaGVscGVyTWlzc2luZycsIGtlZXBIZWxwZXJJbkhlbHBlcnMpO1xuIC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VwdGhzXG4gICAgKTtcbiAgICBVdGlscy5leHRlbmQocHJvZywgcHJvcHMpO1xuICB9XG4gIHJldHVybiBwcm9nO1xufVxuXG5mdW5jdGlvbiB3cmFwSGVscGVyc1RvUGFzc0xvb2t1cFByb3BlcnR5KG1lcmdlZEhlbHBlcnMsIGNvbnRhaW5lcikge1xuICBPYmplY3Qua2V5cyhtZXJnZWRIZWxwZXJzKS5mb3JFYWNoKGhlbHBlck5hbWUgPT4ge1xuICAgIGxldCBoZWxwZXIgPSBtZXJnZWRIZWxwZXJzW2hlbHBlck5hbWVdO1xuICAgIG1lcmdlZEhlbHBlcnNbaGVscGVyTmFtZV0gPSBwYXNzTG9va3VwUHJvcGVydHlPcHRpb24oaGVscGVyLCBjb250YWluZXIpO1xuICB9KTtcbn1cblxuZnVuY3Rpb24gcGFzc0xvb2t1cFByb3BlcnR5T3B0aW9uKGhlbHBlciwgY29udGFpbmVyKSB7XG4gIGNvbnN0IGxvb2t1cFByb3BlcnR5ID0gY29udGFpbmVyLmxvb2t1cFByb3BlcnR5O1xuICByZXR1cm4gd3JhcEhlbHBlcihoZWxwZXIsIG9wdGlvbnMgPT4ge1xuICAgIHJldHVybiBVdGlscy5leHRlbmQoeyBsb29rdXBQcm9wZXJ0eSB9LCBvcHRpb25zKTtcbiAgfSk7XG59XG4iXX0=\n","'use strict';\n\nexports.__esModule = true;\nexports.wrapHelper = wrapHelper;\n\nfunction wrapHelper(helper, transformOptionsFn) {\n if (typeof helper !== 'function') {\n // This should not happen, but apparently it does in https://github.com/wycats/handlebars.js/issues/1639\n // We try to make the wrapper least-invasive by not wrapping it, if the helper is not a function.\n return helper;\n }\n var wrapper = function wrapper() /* dynamic arguments */{\n var options = arguments[arguments.length - 1];\n arguments[arguments.length - 1] = transformOptionsFn(options);\n return helper.apply(this, arguments);\n };\n return wrapper;\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4u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3QgYSBmdW5jdGlvbi5cbiAgICByZXR1cm4gaGVscGVyO1xuICB9XG4gIGxldCB3cmFwcGVyID0gZnVuY3Rpb24oLyogZHluYW1pYyBhcmd1bWVudHMgKi8pIHtcbiAgICBjb25zdCBvcHRpb25zID0gYXJndW1lbnRzW2FyZ3VtZW50cy5sZW5ndGggLSAxXTtcbiAgICBhcmd1bWVudHNbYXJndW1lbnRzLmxlbmd0aCAtIDFdID0gdHJhbnNmb3JtT3B0aW9uc0ZuKG9wdGlvbnMpO1xuICAgIHJldHVybiBoZWxwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKTtcbiAgfTtcbiAgcmV0dXJuIHdyYXBwZXI7XG59XG4iXX0=\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL25vLWNvbmZsaWN0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxVQUFVLEVBQUU7O0FBRWxDLE1BQUksSUFBSSxHQUFHLE9BQU8sTUFBTSxLQUFLLFdBQVcsR0FBRyxNQUFNLEdBQUcsTUFBTTtNQUN4RCxXQUFXLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQzs7QUFFaEMsWUFBVSxDQUFDLFVBQVUsR0FBRyxZQUFXO0FBQ2pDLFFBQUksSUFBSSxDQUFDLFVBQVUsS0FBSyxVQUFVLEVBQUU7QUFDbEMsVUFBSSxDQUFDLFVBQVUsR0FBRyxXQUFXLENBQUM7S0FDL0I7QUFDRCxXQUFPLFVBQVUsQ0FBQztHQUNuQixDQUFDO0NBQ0giLCJmaWxlIjoibm8tY29uZmxpY3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZGVmYXVsdCBmdW5jdGlvbihIYW5kbGViYXJzKSB7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIGxldCByb290ID0gdHlwZW9mIGdsb2JhbCAhPT0gJ3VuZGVmaW5lZCcgPyBnbG9iYWwgOiB3aW5kb3csXG4gICAgJEhhbmRsZWJhcnMgPSByb290LkhhbmRsZWJhcnM7XG4gIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gIEhhbmRsZWJhcnMubm9Db25mbGljdCA9IGZ1bmN0aW9uKCkge1xuICAgIGlmIChyb290LkhhbmRsZWJhcnMgPT09IEhhbmRsZWJhcnMpIHtcbiAgICAgIHJvb3QuSGFuZGxlYmFycyA9ICRIYW5kbGViYXJzO1xuICAgIH1cbiAgICByZXR1cm4gSGFuZGxlYmFycztcbiAgfTtcbn1cbiJdfQ==\n","'use strict';\n\nvar util = require('tui-code-snippet');\nvar intlFormatter = {};\nvar intlUtil;\n\nvar typeToPos = {\n year: 0,\n month: 1,\n day: 2,\n hour: 3,\n minute: 4,\n second: 5\n};\n\n/**\n * Extract date tokens (y, M, d, h, m, s) using the formatToParts() method.\n * @param {Intl.DateTimeFormat} dtf - Intl.DateTimeFormat instance\n * @param {Date} date - date object\n * @returns {Array.<number>} An array of objects only containing the formatted date\n */\nfunction parseOffset(dtf, date) {\n var formatted = dtf.formatToParts(date);\n var filled = [];\n var formattedLength = formatted.length;\n var i, pos;\n\n for (i = 0; i < formattedLength; i += 1) {\n pos = typeToPos[formatted[i].type];\n\n if (!util.isUndefined(pos)) {\n filled[pos] = parseInt(formatted[i].value, 10);\n }\n }\n\n return filled;\n}\n\n/**\n * The time zone offset is calculated from the difference between the current time and the time in a specific time zone.\n * @param {Array.<number>} parts - An array of objects only containing the formatted date (e.g. [2020, 12, 14, 10, 15, 19])\n * @param {Date} date - date object\n * @returns {number} offset\n */\nfunction calculateOffset(parts, date) {\n var y = parts[0];\n var M = parts[1];\n var d = parts[2];\n var h = parts[3];\n var m = parts[4];\n var s = parts[5];\n\n var utc = new Date(Date.UTC(y, M - 1, d, h, m, s));\n var offset = (utc - date) / 60 / 1000;\n\n return Math.round(offset);\n}\n\n/**\n * Check if browser supports Intl.DateTimeFormat.prototype.formatToParts API\n * @returns {boolean} supported\n */\nfunction supportIntl() {\n /**\n * IE9 and IE10 do not support Intl.DateTimeFormat\n * IE11 does not support IANA timezone names\n * http://kangax.github.io/compat-table/esintl/#test-DateTimeFormat_accepts_IANA_timezone_names\n */\n return global.Intl && global.Intl.DateTimeFormat &&\n util.isFunction(Intl.DateTimeFormat.prototype.formatToParts);\n}\n\n/**\n * Return DateTimeFormat instance by timezone\n * @param {string} timezoneName - timezone\n * @returns {DateTimeFormat} Intl.DateTimeFormat instance\n */\nfunction getIntlFormatter(timezoneName) {\n if (!intlFormatter[timezoneName]) {\n intlFormatter[timezoneName] = new Intl.DateTimeFormat('en-US', {\n hourCycle: 'h23',\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric',\n timeZone: timezoneName\n });\n }\n\n return intlFormatter[timezoneName];\n}\n\n/**\n * Get offset of the time by timezone\n * @param {string} timezoneName - recognize the time zone names of the IANA time zone database, such as 'Asia/Seoul', 'America/New_York'\n * @param {number} timestamp - timestamp\n * @returns {number} offset\n */\nfunction offsetCalculator(timezoneName, timestamp) {\n var formatter = getIntlFormatter(timezoneName);\n var date = new Date(timestamp);\n\n return -calculateOffset(parseOffset(formatter, date), date);\n}\n\nintlUtil = {\n supportIntl: supportIntl,\n offsetCalculator: offsetCalculator\n};\n\nmodule.exports = intlUtil;\n","/**\n * @fileoverview Layout view. wrap all view containers at outside.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @param {Theme} theme - theme instance\n */\nfunction Layout(container, theme) {\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 /**\n * @type {Theme}\n */\n this.theme = theme;\n\n this.applyTheme();\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\nLayout.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme.common;\n\n // background color\n style.backgroundColor = theme.backgroundColor;\n};\n\nmodule.exports = Layout;\n","/**\n * @fileoverview Controller factory module.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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\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] = method.bind(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\n mixin(Core, controller, 'Core');\n mixin(Week, controller, 'Week');\n mixin(Month, controller, 'Month');\n\n // for Theme\n controller.Core.theme = controller.theme;\n controller.Week.theme = controller.theme;\n controller.Month.theme = controller.theme;\n\n return controller;\n};\n","/**\n * @fileoverview Base calendar controller\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar DOMPurify = require('dompurify');\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');\nvar Theme = require('../theme/theme');\nvar tz = require('../common/timezone');\nvar TZDate = tz.Date;\n\nvar SCHEDULE_VULNERABLE_OPTIONS = ['title', 'body', 'location', 'state', 'category', 'dueDateClass'];\n\n/**\n * Sanitize option values having possible vulnerabilities\n * @param {object} options options.\n * @returns {object} sanitized options.\n */\nfunction sanitizeOptions(options) {\n util.forEachArray(SCHEDULE_VULNERABLE_OPTIONS, function(prop) {\n if (options[prop]) {\n options[prop] = DOMPurify.sanitize(options[prop]);\n }\n });\n\n return options;\n}\n\n/**\n * Get range date by custom timezone or native timezone\n * @param {Schedule} schedule The instance of schedule.\n * @returns {RangeDate} start and end date\n */\nfunction getRangeDateByOffset(schedule) {\n var scheduleStart = schedule.getStarts();\n var scheduleEnd = schedule.getEnds();\n var start = datetime.start(scheduleStart);\n var equalStartEnd = datetime.compare(scheduleStart, scheduleEnd) === 0;\n var endDate = equalStartEnd ? scheduleEnd : datetime.convertStartDayToLastDay(scheduleEnd);\n var end = datetime.end(endDate);\n\n var nativeOffsetMs = tz.getNativeOffsetMs();\n var startOffset = scheduleStart.toDate().getTimezoneOffset();\n var MIN_TO_MS = 60 * 1000;\n var offsetDiffMs = 0;\n\n var primaryTimezoneName = tz.getPrimaryTimezoneName();\n var primaryOffset = tz.getPrimaryOffset();\n var timezoneOffset = tz.getOffsetByTimezoneName(primaryTimezoneName, scheduleStart.getTime());\n\n if (tz.isNativeOsUsingDSTTimezone() && nativeOffsetMs !== startOffset) {\n // When using a custom time zone, the native time zone offset is fixed and rendered.\n // So, The fixed and rendered time should be recalculated as the original time zone offset.\n offsetDiffMs = (startOffset * MIN_TO_MS) - nativeOffsetMs;\n }\n\n if (tz.isPrimaryUsingDSTTimezone() && primaryOffset !== timezoneOffset) {\n // The custom time zone is a time zone where two offsets including DST are applied.\n // The first rendered schedule is calculated and drawn with the offset calculated at the access time(system OS local time).\n // It should be recalculated with the original time zone offset.\n offsetDiffMs = (primaryOffset - timezoneOffset) * MIN_TO_MS;\n }\n\n start = datetime.start(scheduleStart.getUTCTime() + offsetDiffMs);\n end = datetime.end(\n datetime.convertStartDayToLastDay(new TZDate(scheduleEnd.getUTCTime() + offsetDiffMs))\n );\n\n return {\n start: start,\n end: end\n };\n}\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 * @param {themeConfig} [options.theme] - theme object\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 =\n options.groupFunc ||\n function(viewModel) {\n var model = viewModel.model;\n\n if (viewModel.model.isAllDay) {\n return 'allday';\n }\n\n if (\n model.category === 'time' &&\n model.end - model.start > datetime.MILLISECONDS_PER_DAY\n ) {\n return 'allday';\n }\n\n return model.category;\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.<string, array>}\n */\n this.dateMatrix = {};\n\n /**\n * Theme\n * @type {Theme}\n */\n this.theme = new Theme(options.theme);\n\n /**\n * Calendar list\n * @type {Array.<Calendar>}\n */\n this.calendars = [];\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 scheduleStart = schedule.getStarts();\n var scheduleEnd = schedule.getEnds();\n var start = datetime.start(scheduleStart);\n var equalStartEnd = datetime.compare(scheduleStart, scheduleEnd) === 0;\n var endDate = equalStartEnd ? scheduleEnd : datetime.convertStartDayToLastDay(scheduleEnd);\n var end = datetime.end(endDate);\n var rangeDateByOffset;\n\n if (tz.hasPrimaryTimezoneCustomSetting()) {\n rangeDateByOffset = getRangeDateByOffset(schedule);\n start = rangeDateByOffset.start;\n end = rangeDateByOffset.end;\n }\n\n return datetime.range(start, end, datetime.MILLISECONDS_PER_DAY);\n};\n\n/****************\n * CRUD Schedule\n ****************/\n\n/**\n * Create a 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: sanitizeOptions(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 a 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 */\n// eslint-disable-next-line complexity\nBase.prototype.updateSchedule = function(schedule, options) {\n var start = options.start || schedule.start;\n var end = options.end || schedule.end;\n\n options = options ? sanitizeOptions(options) : {};\n\n if (['milestone', 'task', 'allday', 'time'].indexOf(options.category) > -1) {\n schedule.set('category', options.category);\n }\n\n if (options.category === 'allday') {\n options.isAllDay = true;\n }\n\n if (!util.isUndefined(options.isAllDay)) {\n schedule.set('isAllDay', options.isAllDay);\n }\n\n if (!util.isUndefined(options.calendarId)) {\n schedule.set('calendarId', options.calendarId);\n }\n\n if (options.title) {\n schedule.set('title', options.title);\n }\n\n if (options.body) {\n schedule.set('body', options.body);\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 if (!util.isUndefined(options.isReadOnly)) {\n schedule.set('isReadOnly', options.isReadOnly);\n }\n\n if (options.location) {\n schedule.set('location', options.location);\n }\n\n if (options.state) {\n schedule.set('state', options.state);\n }\n\n if (options.raw) {\n schedule.set('raw', options.raw);\n }\n\n if (options.attendees) {\n schedule.set('attendees', options.attendees);\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(\n this.dateMatrix,\n function(matrix) {\n var index = util.inArray(modelID, matrix);\n\n if (~index) {\n matrix.splice(index, 1);\n }\n },\n this\n );\n};\n\n/**\n * Add a 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.<string, Collection>} 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 {TZDate} start start date.\n * @param {TZDate} end end date.\n * @returns {object.<string, Collection>} 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(\n viewModels,\n util.map(matrix, function(id) {\n return ScheduleViewModel.create(ownSchedules[id]);\n })\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/**\n * Set a theme.\n * @param {themeConfig} theme - theme keys, styles\n * @returns {Array.<string>} keys - error keys not predefined.\n */\nBase.prototype.setTheme = function(theme) {\n return this.theme.setStyles(theme);\n};\n\n/**\n * Set calendar list\n * @param {Array.<Calendar>} calendars - calendar list\n */\nBase.prototype.setCalendars = function(calendars) {\n this.calendars = calendars;\n};\n\n// mixin\nutil.CustomEvents.mixin(Base);\n\nmodule.exports = Base;\n","/**\n * @fileoverview Dirty flagging module for objects.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @fileoverview Mixin module for models.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar themeStandard = require('./standard');\nvar themeConfig = require('./themeConfig');\nvar common = require('../common/common');\n\n/**\n * Theme manager\n * @param {object} customTheme - custom theme\n */\nfunction Theme(customTheme) {\n var theme = customTheme || themeStandard;\n\n /**\n * @type {util.HashMap}\n */\n this._map = new util.HashMap();\n\n this.setStyles(theme);\n}\n\n/**\n * Get a style with key\n * @param {string} key - key for getting a style\n * @returns {string|undefined} style\n */\nTheme.prototype.getStyle = function(key) {\n return this._map.get(key);\n};\n\n/**\n * Set a style\n * @param {string} key - key for setting a style\n * @param {string} style - style value\n * @returns {boolean} true if the give key is valid or false\n */\nTheme.prototype.setStyle = function(key, style) {\n var styles = {};\n styles[key] = style;\n\n return this.setStyles(styles).length === 0;\n};\n\n/**\n * Set styles\n * @param {object} styles - multiple styles map\n * @returns {Array.<string>} error keys\n */\nTheme.prototype.setStyles = function(styles) {\n var errors = [];\n\n util.forEach(styles, function(style, key) {\n if (util.isUndefined(themeConfig[key])) {\n errors.push(key);\n } else {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n // apply missing styles which have to be default\n util.forEach(themeConfig, function(style, key) {\n if (!this.getStyle(key)) {\n this._map.set(key, style);\n common.set(this, key, style);\n }\n }, this);\n\n return errors;\n};\n\n/**\n * Delete all styles\n */\nTheme.prototype.clear = function() {\n var keys = this._map.keys();\n var categories = {};\n util.forEach(keys, function(key) {\n var category = key.split('.')[0];\n if (!categories[category]) {\n categories[category] = category;\n }\n });\n\n util.forEach(categories, function(child) {\n delete this[child];\n }, this);\n\n this._map.removeAll();\n};\n\nmodule.exports = Theme;\n","/**\n * @fileoverview The standard theme\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\n/**\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n */\nvar theme = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': 'none',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '0',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'none',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': 'inherit',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = theme;\n","/**\n * @fileoverview The all configuration of a theme\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\n/**\n * Full configuration for theme.\n * \"common\" prefix is for entire calendar. \"common\" properties can be overriden by \"week\", \"month\".\n * \"week\" prefix is for weekly and daily view.\n * \"month\" prefix is for monthly view.\n * @typedef {object} themeConfig\n * @example\n // default keys and styles\n var themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n */\nvar themeConfig = {\n 'common.border': '1px solid #e5e5e5',\n 'common.backgroundColor': 'white',\n 'common.holiday.color': '#ff4040',\n 'common.saturday.color': '#333',\n 'common.dayname.color': '#333',\n 'common.today.color': '#333',\n\n // creation guide style\n 'common.creationGuide.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'common.creationGuide.border': '1px solid #515ce6',\n\n // month header 'dayname'\n 'month.dayname.height': '31px',\n 'month.dayname.borderLeft': '1px solid #e5e5e5',\n 'month.dayname.paddingLeft': '10px',\n 'month.dayname.paddingRight': '10px',\n 'month.dayname.backgroundColor': 'inherit',\n 'month.dayname.fontSize': '12px',\n 'month.dayname.fontWeight': 'normal',\n 'month.dayname.textAlign': 'left',\n\n // month day grid cell 'day'\n 'month.holidayExceptThisMonth.color': 'rgba(255, 64, 64, 0.4)',\n 'month.dayExceptThisMonth.color': 'rgba(51, 51, 51, 0.4)',\n 'month.weekend.backgroundColor': 'inherit',\n 'month.day.fontSize': '14px',\n\n // month schedule style\n 'month.schedule.borderRadius': '2px',\n 'month.schedule.height': '24px',\n 'month.schedule.marginTop': '2px',\n 'month.schedule.marginLeft': '8px',\n 'month.schedule.marginRight': '8px',\n\n // month more view\n 'month.moreView.border': '1px solid #d5d5d5',\n 'month.moreView.boxShadow': '0 2px 6px 0 rgba(0, 0, 0, 0.1)',\n 'month.moreView.backgroundColor': 'white',\n 'month.moreView.paddingBottom': '17px',\n 'month.moreViewTitle.height': '44px',\n 'month.moreViewTitle.marginBottom': '12px',\n 'month.moreViewTitle.backgroundColor': 'inherit',\n 'month.moreViewTitle.borderBottom': 'none',\n 'month.moreViewTitle.padding': '12px 17px 0 17px',\n 'month.moreViewList.padding': '0 17px',\n\n // week header 'dayname'\n 'week.dayname.height': '42px',\n 'week.dayname.borderTop': '1px solid #e5e5e5',\n 'week.dayname.borderBottom': '1px solid #e5e5e5',\n 'week.dayname.borderLeft': 'inherit',\n 'week.dayname.paddingLeft': '0',\n 'week.dayname.backgroundColor': 'inherit',\n 'week.dayname.textAlign': 'left',\n 'week.today.color': '#333',\n 'week.pastDay.color': '#bbb',\n\n // week vertical panel 'vpanel'\n 'week.vpanelSplitter.border': '1px solid #e5e5e5',\n 'week.vpanelSplitter.height': '3px',\n\n // week daygrid 'daygrid'\n 'week.daygrid.borderRight': '1px solid #e5e5e5',\n 'week.daygrid.backgroundColor': 'inherit',\n\n 'week.daygridLeft.width': '72px',\n 'week.daygridLeft.backgroundColor': 'inherit',\n 'week.daygridLeft.paddingRight': '8px',\n 'week.daygridLeft.borderRight': '1px solid #e5e5e5',\n\n 'week.today.backgroundColor': 'rgba(81, 92, 230, 0.05)',\n 'week.weekend.backgroundColor': 'inherit',\n\n // week timegrid 'timegrid'\n 'week.timegridLeft.width': '72px',\n 'week.timegridLeft.backgroundColor': 'inherit',\n 'week.timegridLeft.borderRight': '1px solid #e5e5e5',\n 'week.timegridLeft.fontSize': '11px',\n 'week.timegridLeftTimezoneLabel.height': '40px',\n 'week.timegridLeftAdditionalTimezone.backgroundColor': 'white',\n\n 'week.timegridOneHour.height': '52px',\n 'week.timegridHalfHour.height': '26px',\n 'week.timegridHalfHour.borderBottom': 'none',\n 'week.timegridHorizontalLine.borderBottom': '1px solid #e5e5e5',\n\n 'week.timegrid.paddingRight': '8px',\n 'week.timegrid.borderRight': '1px solid #e5e5e5',\n 'week.timegridSchedule.borderRadius': '2px',\n 'week.timegridSchedule.paddingLeft': '2px',\n\n 'week.currentTime.color': '#515ce6',\n 'week.currentTime.fontSize': '11px',\n 'week.currentTime.fontWeight': 'normal',\n\n 'week.pastTime.color': '#bbb',\n 'week.pastTime.fontWeight': 'normal',\n\n 'week.futureTime.color': '#333',\n 'week.futureTime.fontWeight': 'normal',\n\n 'week.currentTimeLinePast.border': '1px dashed #515ce6',\n 'week.currentTimeLineBullet.backgroundColor': '#515ce6',\n 'week.currentTimeLineToday.border': '1px solid #515ce6',\n 'week.currentTimeLineFuture.border': 'none',\n\n // week creation guide style\n 'week.creationGuide.color': '#515ce6',\n 'week.creationGuide.fontSize': '11px',\n 'week.creationGuide.fontWeight': 'bold',\n\n // week daygrid schedule style\n 'week.dayGridSchedule.borderRadius': '2px',\n 'week.dayGridSchedule.height': '24px',\n 'week.dayGridSchedule.marginTop': '2px',\n 'week.dayGridSchedule.marginLeft': '8px',\n 'week.dayGridSchedule.marginRight': '8px'\n};\n\nmodule.exports = themeConfig;\n","/**\n * @fileoverview Core methods for schedule block placing\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 tz = require('../../common/timezone');\nvar TZDate = tz.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 // If overlapping previous schedules, find a Collision Group of overlapping schedules and add this schedules\n foundPrevCollisionSchedule = true;\n\n forEachArr(collisionGroups.slice(0).reverse(), function(group) {\n if (~util.inArray(util.stamp(previous.valueOf()), group)) {\n // If you find a previous schedule that overlaps, include it in the Collision Group to which it belongs.\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 // This schedule is a schedule that does not overlap with the previous schedule, so a new Collision Group is constructed.\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 var dateByOffset;\n\n if (tz.hasPrimaryTimezoneCustomSetting()) {\n dateByOffset = recalculateDateByOffset(ownStarts, ownEnds);\n ownStarts = dateByOffset.start;\n ownEnds = dateByOffset.end;\n }\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, startDate, endDate;\n\n if (!viewModel) {\n return;\n }\n\n startDate = viewModel.getStarts();\n endDate = viewModel.getEnds();\n dateLength = datetime.range(\n datetime.start(startDate),\n datetime.renderEnd(startDate, endDate),\n datetime.MILLISECONDS_PER_DAY\n ).length;\n\n ymd = datetime.format(startDate, 'YYYYMMDD');\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 {TZDate} start - start date to render\n * @param {TZDate} 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);\n }\n\n if (viewModel.getEnds() > end) {\n viewModel.exceedRight = true;\n viewModel.renderEnds = new TZDate(end);\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\n/**\n * Get range date by custom timezone or native timezone\n * @param {TZDate} ownStarts start date.\n * @param {TZDate} ownEnds end date.\n * @returns {RangeDate} recalculated start and end date\n */\nfunction recalculateDateByOffset(ownStarts, ownEnds) {\n var nativeOffsetMs = tz.getNativeOffsetMs();\n var startOffset = ownStarts.toDate().getTimezoneOffset();\n var MIN_TO_MS = 60 * 1000;\n var offsetDiffMs = 0;\n\n var primaryTimezoneName = tz.getPrimaryTimezoneName();\n var primaryOffset = tz.getPrimaryOffset();\n var timezoneOffset = tz.getOffsetByTimezoneName(primaryTimezoneName, ownStarts.getTime());\n\n if (tz.isNativeOsUsingDSTTimezone() && nativeOffsetMs !== startOffset) {\n // When using a custom time zone, the native time zone offset is fixed and rendered.\n // So, The fixed and rendered time should be recalculated as the original time zone offset.\n offsetDiffMs = (startOffset * MIN_TO_MS) - nativeOffsetMs;\n }\n\n if (tz.isPrimaryUsingDSTTimezone() && primaryOffset !== timezoneOffset) {\n // The custom time zone is a time zone where two offsets including DST are applied.\n // The first rendered schedule is calculated and drawn with the offset calculated at the access time(system OS local time).\n // It should be recalculated with the original time zone offset.\n offsetDiffMs = (primaryOffset - timezoneOffset) * MIN_TO_MS;\n }\n\n return {\n start: new TZDate(ownStarts.getUTCTime() + offsetDiffMs),\n end: new TZDate(ownEnds.getUTCTime() + offsetDiffMs)\n };\n}\n\nmodule.exports = Core;\n","/* eslint no-shadow: 0 */\n/**\n * @fileoverview Controller mixin modules for day views.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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');\nvar TZDate = require('../../common/timezone').Date;\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\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 start,\n end,\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 start = schedule.getStarts().getTime() - datetime.millisecondsFrom('minutes', schedule.valueOf().goingDuration);\n end = schedule.getEnds().getTime() + datetime.millisecondsFrom('minutes', schedule.valueOf().comingDuration);\n\n if (Math.abs(end - start) < SCHEDULE_MIN_DURATION) {\n end += SCHEDULE_MIN_DURATION;\n }\n\n cursor.push([start, end]);\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.<number[]>} 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();\n endTime = viewModel.getEnds().getTime();\n\n if (Math.abs(endTime - startTime) < SCHEDULE_MIN_DURATION) {\n endTime += SCHEDULE_MIN_DURATION;\n }\n\n startTime -= datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n endTime += datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n\n endTime -= 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 * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {object} view model for time part.\n */\n getViewModelForTimeView: function(start, end, time, hourStart, hourEnd) {\n var self = this,\n ymdSplitted = this.splitScheduleByDateRange(start, end, time),\n result = {};\n\n var _getViewModel = Week._makeGetViewModelFuncForTimeView(hourStart, hourEnd);\n\n util.forEach(ymdSplitted, function(collection, ymd) {\n var viewModels = _getViewModel(collection);\n var collisionGroups, 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 * make view model function depending on start and end hour\n * if time view option has start or end hour condition\n * it add filter\n * @param {number} hourStart - start hour to be shown\n * @param {number} hourEnd - end hour to be shown\n * @returns {function} function\n */\n _makeGetViewModelFuncForTimeView: function(hourStart, hourEnd) {\n if (hourStart === 0 && hourEnd === 24) {\n return function(collection) {\n return collection.sort(array.compare.schedule.asc);\n };\n }\n\n return function(collection) {\n return collection.find(Week._makeHourRangeFilter(hourStart, hourEnd))\n .sort(array.compare.schedule.asc);\n };\n },\n\n /**\n * make a filter function that is not included range of start, end hour\n * @param {number} hStart - hour start\n * @param {number} hEnd - hour end\n * @returns {function} - filtering function\n */\n _makeHourRangeFilter: function(hStart, hEnd) {\n // eslint-disable-next-line complexity\n return function(schedule) {\n var ownHourStart = schedule.model.start;\n var ownHourEnd = schedule.model.end;\n var yyyy = ownHourStart.getFullYear();\n var mm = ownHourStart.getMonth();\n var dd = ownHourStart.getDate();\n\n var hourStart = new TZDate(yyyy, mm, dd).setHours(hStart);\n var hourEnd = new TZDate(yyyy, mm, dd).setHours(hEnd);\n\n return (ownHourStart >= hourStart && ownHourStart < hourEnd) ||\n (ownHourEnd > hourStart && ownHourEnd <= hourEnd) ||\n (ownHourStart < hourStart && ownHourEnd > hourStart) ||\n (ownHourEnd > hourEnd && ownHourStart < hourEnd);\n };\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 var start = model.getStarts();\n var end = model.getEnds();\n\n viewModel.hasMultiDates = true;\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.renderEnd(start, end);\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 {Array.<object>} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {function[]} [andFilters] - optional filters to applying search query\n * @param {Object} options - week view options\n * @returns {object} schedules grouped by dates.\n */\n findByDateRange: function(start, end, panels, andFilters, options) {\n var ctrlCore = this.Core,\n ctrlWeek = this.Week,\n filter = ctrlCore.getScheduleInDateRangeFilter(start, end),\n scheduleTypes = util.pluck(panels, 'name'),\n hourStart = util.pick(options, 'hourStart'),\n hourEnd = util.pick(options, 'hourEnd'),\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(scheduleTypes, this.groupFunc);\n util.forEach(panels, function(panel) {\n var name = panel.name;\n if (panel.type === 'daygrid') {\n group[name] = ctrlWeek.getViewModelForAlldayView(start, end, group[name]);\n } else if (panel.type === 'timegrid') {\n group[name] = ctrlWeek.getViewModelForTimeView(start, end, group[name], hourStart, hourEnd);\n }\n });\n\n return group;\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.<TZDate>} range - date range of one week\n * @returns {object} exceedDate\n */\n getExceedDate: function(maxCount, eventsInDateRange, 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 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 * Exclude overflow schedules from matrices\n * @param {array} matrices - The matrices for schedule placing.\n * @param {number} visibleScheduleCount - maximum visible count on panel\n * @returns {array} - The matrices for schedule placing except overflowed schedules.\n */\n excludeExceedSchedules: function(matrices, visibleScheduleCount) {\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\nmodule.exports = Week;\n","/**\n * @fileoverview Controller mixin for Month View\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 {TZDate} start - render start date\n * @param {TZDate} 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.hasMultiDates(start, end);\n\n if (!model.isAllDay && viewModel.hasMultiDates) {\n viewModel.renderStarts = datetime.start(start);\n viewModel.renderEnds = datetime.renderEnd(start, end);\n }\n });\n },\n\n /**\n * Find schedule and get view model for specific month\n * @this Base\n * @param {TZDate} start - start date to find schedules\n * @param {TZDate} 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 * @fileoverview Factory module for WeekView\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../config');\nvar domutil = require('../common/domutil');\nvar common = require('../common/common');\nvar VLayout = require('../common/vlayout');\nvar reqAnimFrame = require('../common/reqAnimFrame');\nvar Schedule = require('../model/schedule');\n// Parent views\nvar Week = require('../view/week/week');\n\n// Sub views\nvar DayName = require('../view/week/dayname');\nvar DayGrid = require('../view/week/dayGrid');\nvar TimeGrid = require('../view/week/timeGrid');\nvar ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup');\nvar ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup');\n\n// Handlers\nvar DayNameClick = require('../handler/time/clickDayname');\nvar DayGridClick = require('../handler/daygrid/click');\nvar DayGridCreation = require('../handler/daygrid/creation');\nvar DayGridMove = require('../handler/daygrid/move');\nvar DayGridResize = require('../handler/daygrid/resize');\nvar TimeClick = require('../handler/time/click');\nvar TimeCreation = require('../handler/time/creation');\nvar TimeMove = require('../handler/time/move');\nvar TimeResize = require('../handler/time/resize');\n\nvar DAYGRID_HANDLDERS = {\n 'click': DayGridClick,\n 'creation': DayGridCreation,\n 'move': DayGridMove,\n 'resize': DayGridResize\n};\nvar TIMEGRID_HANDLERS = {\n 'click': TimeClick,\n 'creation': TimeCreation,\n 'move': TimeMove,\n 'resize': TimeResize\n};\nvar DEFAULT_PANELS = [\n {\n name: 'milestone',\n type: 'daygrid',\n minHeight: 20,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click'],\n show: true\n },\n {\n name: 'task',\n type: 'daygrid',\n minHeight: 40,\n maxHeight: 120,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'move'],\n show: true\n },\n {\n name: 'allday',\n type: 'daygrid',\n minHeight: 30,\n maxHeight: 80,\n showExpandableButton: true,\n maxExpandableHeight: 210,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n },\n {\n name: 'time',\n type: 'timegrid',\n autoHeight: true,\n handlers: ['click', 'creation', 'move', 'resize'],\n show: true\n }\n];\n\n/* eslint-disable complexity*/\nmodule.exports = function(baseController, layoutContainer, dragHandler, options, viewName) {\n var panels = [],\n vpanels = [];\n var weekView, dayNameContainer, dayNameView, vLayoutContainer, vLayout;\n var createView, onSaveNewSchedule, onSetCalendars, lastVPanel;\n var detailView, onShowDetailPopup, onDeleteSchedule, onShowEditPopup, onEditSchedule;\n var taskView = options.taskView;\n var scheduleView = options.scheduleView;\n var viewVisibilities = {\n 'milestone': util.isArray(taskView) ? util.inArray('milestone', taskView) >= 0 : taskView,\n 'task': util.isArray(taskView) ? util.inArray('task', taskView) >= 0 : taskView,\n 'allday': util.isArray(scheduleView) ? util.inArray('allday', scheduleView) >= 0 : scheduleView,\n 'time': util.isArray(scheduleView) ? util.inArray('time', scheduleView) >= 0 : scheduleView\n };\n\n // Make panels by view sequence and visibilities\n util.forEach(DEFAULT_PANELS, function(panel) {\n var name = panel.name;\n\n panel = util.extend({}, panel);\n panels.push(panel);\n\n // Change visibilities\n panel.show = viewVisibilities[name];\n\n if (panel.show) {\n if (vpanels.length) {\n vpanels.push({\n isSplitter: true\n });\n }\n vpanels.push(util.extend({}, panel));\n }\n });\n\n if (vpanels.length) {\n lastVPanel = vpanels[vpanels.length - 1];\n lastVPanel.autoHeight = true;\n lastVPanel.maxHeight = null;\n lastVPanel.showExpandableButton = false;\n\n util.forEach(panels, function(panel) {\n if (panel.name === lastVPanel.name) {\n panel.showExpandableButton = false;\n\n return false;\n }\n\n return true;\n });\n }\n\n util.extend(options.week, {panels: panels});\n\n weekView = new Week(null, options.week, layoutContainer, panels, viewName);\n weekView.handler = {\n click: {},\n dayname: {},\n creation: {},\n move: {},\n resize: {}\n };\n\n dayNameContainer = domutil.appendHTMLElement('div', weekView.container, config.classname('dayname-layout'));\n\n /**********\n * Day name (top row(Mon, Tue, Wed...))\n **********/\n dayNameView = new DayName(options, dayNameContainer, baseController.theme);\n weekView.handler.dayname.date = new DayNameClick(dragHandler, dayNameView, baseController);\n weekView.addChild(dayNameView);\n\n /**********\n * Initialize vertical layout module\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: vpanels,\n panelHeights: options.week.panelHeights || []\n }, vLayoutContainer, baseController.theme);\n\n weekView.vLayout = vLayout;\n\n util.forEach(panels, function(panel) {\n var name = panel.name;\n var handlers = panel.handlers;\n var view;\n\n if (!panel.show) {\n return;\n }\n\n if (panel.type === 'daygrid') {\n /**********\n * Schedule panel by Grid\n **********/\n view = new DayGrid(name, options, vLayout.getPanelByName(panel.name).container, baseController.theme);\n view.on('afterRender', function(viewModel) {\n vLayout.getPanelByName(name).setHeight(null, viewModel.height);\n });\n\n weekView.addChild(view);\n\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new DAYGRID_HANDLDERS[type](dragHandler, view, baseController, options);\n view.addHandler(type, weekView.handler[type][name], vLayout.getPanelByName(name));\n }\n });\n } else if (panel.type === 'timegrid') {\n /**********\n * Schedule panel by TimeGrid\n **********/\n view = new TimeGrid(name, options, vLayout.getPanelByName(name).container);\n weekView.addChild(view);\n util.forEach(handlers, function(type) {\n if (!options.isReadOnly || type === 'click') {\n weekView.handler[type][name] =\n new TIMEGRID_HANDLERS[type](dragHandler, view, baseController, options);\n }\n });\n\n view.on('clickTimezonesCollapsedBtn', function() {\n var timezonesCollapsed = !weekView.state.timezonesCollapsed;\n\n weekView.setState({\n timezonesCollapsed: timezonesCollapsed\n });\n reqAnimFrame.requestAnimFrame(function() {\n if (!weekView.invoke('clickTimezonesCollapseBtn', timezonesCollapsed)) {\n weekView.render();\n }\n });\n });\n }\n });\n\n vLayout.on('resize', function() {\n reqAnimFrame.requestAnimFrame(function() {\n weekView.render();\n });\n });\n\n // binding create schedules event\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n util.extend(scheduleData, {\n useCreationPopup: true\n });\n if (scheduleData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeCreateSchedule', scheduleData);\n } else {\n weekView.handler.creation.time.fire('beforeCreateSchedule', scheduleData);\n }\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n onSetCalendars = function(calendars) {\n if (createView) {\n createView.setCalendars(calendars);\n }\n };\n\n baseController.on('setCalendars', onSetCalendars);\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.creation.allday.fire('beforeDeleteSchedule', eventData);\n } else {\n weekView.handler.creation.time.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n if (eventData.isAllDay) {\n weekView.handler.move.allday.fire('beforeUpdateSchedule', eventData);\n } else {\n weekView.handler.move.time.fire('beforeUpdateSchedule', eventData);\n }\n };\n\n util.forEach(weekView.handler.click, function(panel) {\n panel.on('clickSchedule', onShowDetailPopup);\n });\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n var calendars = baseController.calendars;\n eventData.isEditMode = true;\n createView.setCalendars(calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\n }\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\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 if (options.useCreationPopup) {\n createView.off('beforeCreateSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\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 weekView.children.each(function(childView) {\n if (childView.scrollToNow) {\n childView.scrollToNow();\n }\n });\n },\n openCreationPopup: function(schedule) {\n if (createView) {\n if (schedule.isAllDay) {\n weekView.handler.creation.allday.invokeCreationClick(Schedule.create(schedule));\n } else {\n weekView.handler.creation.time.invokeCreationClick(Schedule.create(schedule));\n }\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n }\n };\n};\n","/**\n * @fileoverview Panel class for VLayout module\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @param {Theme} theme - theme instance\n */\nfunction VPanel(options, container, theme) {\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 /**\n * @type {Theme}\n */\n this.theme = theme;\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 max height of panel\n * @param {number} maxHeight - maxHeight\n */\nVPanel.prototype.setMaxHeight = function(maxHeight) {\n if (!this.options.autoHeight) {\n this.options.maxHeight = maxHeight;\n }\n};\n\n/**\n * set forced height flag\n * @param {boolean} set - enable or not\n */\nVPanel.prototype.setHeightForcedSet = function(set) {\n this.isHeightForcedSet = set;\n};\n\n/**\n * get forced height flag\n * @returns {boolean} set - enable or not\n */\nVPanel.prototype.getHeightForcedSet = function() {\n return this.isHeightForcedSet;\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 this.applyTheme();\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\nVPanel.prototype.applyTheme = function() {\n var style = this.container.style;\n var theme = this.theme;\n\n if (!theme) {\n return;\n }\n\n style.borderTop = theme.week.vpanelSplitter.border || theme.common.border;\n style.borderBottom = theme.week.vpanelSplitter.border || theme.common.border;\n style.height = theme.week.vpanelSplitter.height;\n};\n\nmodule.exports = VPanel;\n","/**\n * @fileoverview View of days UI.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @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 * @param {object} panels - schedule panels like 'milestone', 'task', 'allday', 'time'\n * @param {string} viewName - 'week', 'day'\n * @extends {View}\n */\nfunction Week(controller, options, container, panels, viewName) {\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 showTimezoneCollapseButton: false,\n timezonesCollapsed: false,\n hourStart: 0,\n hourEnd: 24\n }, options);\n\n /**\n * Week controller mixin.\n * @type {Base.Week}\n */\n this.controller = controller;\n\n /**\n * Schedule Panels\n * @type {Array.<object>}\n */\n this.panels = panels;\n\n /**\n * Week view states\n * @type {object}\n */\n this.state = {\n timezonesCollapsed: this.options.timezonesCollapsed\n };\n\n if (viewName === 'day') {\n _disableDayOptions(this.options);\n }\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 self = this,\n options = this.options,\n scheduleFilter = options.scheduleFilter,\n narrowWeekend = options.narrowWeekend,\n startDayOfWeek = options.startDayOfWeek,\n workweek = options.workweek,\n theme = this.controller.theme || {},\n state = this.state;\n var renderStartDate, renderEndDate, schedulesInDateRange, viewModel, grids, range;\n\n renderStartDate = new TZDate(options.renderStartDate);\n renderEndDate = new TZDate(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 this.panels,\n scheduleFilter,\n this.options\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 theme: theme,\n state: state\n };\n\n this.children.each(function(childView) {\n var matrices;\n var viewName = util.pick(childView.options, 'viewName');\n childView.render(viewModel);\n\n if (viewName) {\n matrices = viewModel.schedulesInDateRange[viewName]; // DayGrid limits schedule count by visibleScheduleCount after rendering it.\n\n if (util.isArray(matrices)) {\n self._invokeAfterRenderSchedule(matrices);\n } else {\n util.forEach(matrices, function(matricesOfDay) {\n self._invokeAfterRenderSchedule(matricesOfDay);\n });\n }\n }\n });\n\n /**\n * @event Week#afterRender\n */\n this.fire('afterRender');\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Week#afterRenderSchedule\n */\nWeek.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event Week#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\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\n/**\n * disable options for day view\n * @param {WeekOptions} options - week options to disable\n */\nfunction _disableDayOptions(options) {\n options.workweek = false;\n}\n\nutil.CustomEvents.mixin(Week);\n\nmodule.exports = Week;\n","/**\n * @fileoverview View for rendering daynames\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar common = require('../../common/common');\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 * @param {Theme} theme - theme instance\n * @extends {View}\n */\nfunction DayName(options, container, theme) {\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 timezones: options.timezones\n }, options.week);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\n View.call(this, container);\n\n this.applyTheme();\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 theme = this.theme,\n now = new TZDate().toLocalTime(),\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 var isToday = datetime.isSameDate(d, now);\n var isPastDay = d < now && !isToday;\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\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 color: this._getDayNameColor(theme, day, isToday, isPastDay)\n };\n }, this);\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 dayNames = this._getBaseViewModel(\n viewModel.renderStartDate,\n viewModel.renderEndDate,\n viewModel.grids\n );\n var timezonesCollapsed = viewModel.state.timezonesCollapsed;\n var styles = this._getStyles(this.theme, timezonesCollapsed);\n var baseViewModel = util.extend({}, {\n dayNames: dayNames,\n styles: styles\n });\n\n this.container.innerHTML = daynameTmpl(baseViewModel);\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {boolean} isPastDay - is past day flag\n * @returns {string} style - color style\n */\nDayName.prototype._getDayNameColor = function(theme, day, isToday, isPastDay) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (isPastDay) {\n color = theme.week.pastDay.color || theme.common.dayname.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else if (isToday) {\n color = theme.week.today.color || theme.common.today.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayName.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderTop = theme.week.dayname.borderTop || theme.common.border;\n styles.borderBottom = theme.week.dayname.borderBottom || theme.common.border;\n styles.borderLeft = theme.week.dayname.borderLeft || theme.common.border;\n styles.paddingLeft = theme.week.dayname.paddingLeft;\n styles.backgroundColor = theme.week.dayname.backgroundColor;\n styles.height = theme.week.dayname.height;\n styles.textAlign = theme.week.dayname.textAlign;\n styles.marginLeft = theme.week.daygridLeft.width;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.marginLeft);\n styles.marginLeft = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\nDayName.prototype.applyTheme = function() {\n var styles = this._getStyles(this.theme);\n var style = this.container.style;\n\n style.borderTop = styles.borderTop;\n style.borderBottom = styles.borderBottom;\n style.height = styles.height;\n style.backgroundColor = styles.backgroundColor;\n style.textAlign = styles.textAlign;\n\n return style;\n};\n\nmodule.exports = DayName;\n","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/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=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":12},\"end\":{\"line\":3,\"column\":26}}}) : helper)))\n + \"dayname \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isToday\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":34},\"end\":{\"line\":3,\"column\":75}}})) != null ? stack1 : \"\")\n + \" \"\n + alias4((lookupProperty(helpers,\"holiday\")||(depth0 && lookupProperty(depth0,\"holiday\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"day\") : depth0),{\"name\":\"holiday\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":76},\"end\":{\"line\":3,\"column\":91}}}))\n + \"\\\"\\n data-date=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"renderDate\") || (depth0 != null ? lookupProperty(depth0,\"renderDate\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"renderDate\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":16},\"end\":{\"line\":4,\"column\":30}}}) : helper)))\n + \"\\\"\\n style=\\\"\"\n + alias4((lookupProperty(helpers,\"common-width\")||(depth0 && lookupProperty(depth0,\"common-width\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"width\") : depth0),{\"name\":\"common-width\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":12},\"end\":{\"line\":5,\"column\":34}}}))\n + \";left:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"left\") || (depth0 != null ? lookupProperty(depth0,\"left\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"left\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":40},\"end\":{\"line\":5,\"column\":48}}}) : helper)))\n + \"%; line-height: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"height\")), depth0))\n + \"; border-left: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderLeft\")), depth0))\n + \"; padding-left: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"paddingLeft\")), depth0))\n + \";\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":17},\"end\":{\"line\":6,\"column\":31}}}) : helper)))\n + \"dayname-date-area\\\" style=\\\"color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"color\") || (depth0 != null ? lookupProperty(depth0,\"color\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"color\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":64},\"end\":{\"line\":6,\"column\":73}}}) : helper)))\n + \";\\\">\\n \"\n + ((stack1 = (lookupProperty(helpers,\"weekDayname-tmpl\")||(depth0 && lookupProperty(depth0,\"weekDayname-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"weekDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":7,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n </span>\\n</div>\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":49},\"end\":{\"line\":3,\"column\":63}}}) : helper)))\n + \"today\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"dayname-leftmargin\\\" style=\\\"margin-left: \"\n + alias2(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"dayNames\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":10,\"column\":9}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"useData\":true});","/**\n * @fileoverview DayGrid in weekly view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config'),\n common = require('../../common/common'),\n datetime = require('../../common/datetime'),\n domutil = require('../../common/domutil'),\n TZDate = require('../../common/timezone').Date,\n View = require('../../view/view'),\n DayGridSchedule = require('./dayGridSchedule'),\n baseTmpl = require('../template/week/dayGrid.hbs'),\n reqAnimFrame = require('../../common/reqAnimFrame');\nvar mmax = Math.max,\n mmin = Math.min;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {string} name - view name\n * @param {object} options - options for DayGridSchedule 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 * @param {Theme} theme - theme instance\n */\nfunction DayGrid(name, options, container, theme) {\n container = domutil.appendHTMLElement(\n 'div',\n container,\n config.classname('daygrid-layout')\n );\n View.call(this, container);\n\n name = name || 'daygrid';\n\n this.options = util.extend({\n viewName: name,\n daynames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n renderStartDate: '',\n renderEndDate: '',\n containerBottomGutter: 18,\n scheduleHeight: parseInt(theme.week.dayGridSchedule.height, 10),\n scheduleGutter: parseInt(theme.week.dayGridSchedule.marginTop, 10),\n scheduleContainerTop: 1,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n getViewModelFunc: function(viewModel) {\n return viewModel.schedulesInDateRange[name];\n },\n setViewModelFunc: function(viewModel, matrices) {\n viewModel.schedulesInDateRange[name] = matrices;\n }\n }, options.week);\n\n this.handler = {};\n this.vPanel = null;\n\n this.state.collapsed = true;\n}\n\nutil.inherit(DayGrid, View);\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options,\n daynames = opt.daynames,\n range = viewModel.range,\n grids = viewModel.grids,\n matrices = opt.getViewModelFunc(viewModel),\n exceedDate = {},\n panel = getPanel(opt.panels, opt.viewName),\n panelHeight = this.getViewBound().height,\n collapsed = this.state.collapsed,\n heightForcedSet = this.vPanel ? this.vPanel.getHeightForcedSet() : false,\n timezonesCollapsed = viewModel.state.timezonesCollapsed,\n styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n var baseViewModel, visibleScheduleCount;\n var now = new TZDate().toLocalTime();\n\n if (panel.showExpandableButton) {\n if (!heightForcedSet) {\n if (collapsed) {\n panelHeight = mmax(panelHeight, panel.maxHeight);\n } else {\n panelHeight = mmin(panelHeight, panel.maxExpandableHeight);\n }\n }\n\n visibleScheduleCount = Math.floor(panelHeight / (opt.scheduleHeight + opt.scheduleGutter));\n if (collapsed) {\n exceedDate = this.parent.controller.getExceedDate(visibleScheduleCount,\n matrices,\n viewModel.range\n );\n matrices = this.parent.controller.excludeExceedSchedules(matrices, visibleScheduleCount);\n opt.setViewModelFunc(viewModel, matrices);\n }\n }\n\n baseViewModel = {\n viewName: opt.viewName,\n range: range,\n grids: grids,\n days: util.map(viewModel.range, function(d, index) {\n var day = d.getDay();\n var ymd = datetime.format(d, 'YYYYMMDD');\n var isToday = datetime.isSameDate(now, d);\n\n return {\n day: day,\n dayName: daynames[day],\n isToday: isToday,\n date: d.getDate(),\n renderDate: datetime.format(d, 'YYYY-MM-DD'),\n hiddenSchedules: exceedDate[ymd] || 0,\n width: grids[index] ? grids[index].width : 0,\n left: grids[index] ? grids[index].left : 0,\n backgroundColor: viewModel.range.length > 1 ?\n getWeekBackgroundColor(day, isToday, styles) : styles.backgroundColor\n };\n }),\n exceedDate: exceedDate,\n showExpandableButton: panel.showExpandableButton,\n collapsed: collapsed,\n collapseBtnIndex: this.state.clickedExpandBtnIndex,\n styles: styles\n };\n\n return baseViewModel;\n};\n\n/**\n * @override\n * @param {object} viewModel - schedules view models\n */\nDayGrid.prototype.render = function(viewModel) {\n var opt = this.options,\n container = this.container,\n baseViewModel = this.getBaseViewModel(viewModel),\n scheduleContainerTop = this.options.scheduleContainerTop;\n var dayGridSchedule;\n\n container.innerHTML = baseTmpl(baseViewModel);\n\n this.children.clear();\n\n dayGridSchedule = new DayGridSchedule(\n opt,\n domutil.find(config.classname('.container'), container)\n );\n this.addChild(dayGridSchedule);\n\n dayGridSchedule.on('afterRender', function(weekdayViewModel) {\n baseViewModel.height = weekdayViewModel.minHeight + scheduleContainerTop;\n });\n\n this.children.each(function(childView) {\n childView.render(viewModel);\n }, this);\n\n this.fire('afterRender', baseViewModel);\n};\n\nDayGrid.prototype._beforeDestroy = function() {\n};\n\nDayGrid.prototype.addHandler = function(type, handler, vPanel) {\n var self = this;\n\n this.handler[type] = handler;\n this.vPanel = vPanel;\n\n if (type === 'click') {\n handler.on('expand', function() {\n self.setState({\n collapsed: false\n });\n }, this);\n handler.on('collapse', function() {\n self.setState({\n collapsed: true\n });\n }, this);\n }\n};\n\nDayGrid.prototype._expand = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxExpandableHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.maxExpandableHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\nDayGrid.prototype._collapse = function() {\n reqAnimFrame.requestAnimFrame(function() {\n var vPanel = this.vPanel;\n var opt = this.options;\n var panel = getPanel(opt.panels, opt.viewName);\n\n vPanel.setMaxHeight(panel.maxHeight);\n vPanel.setHeightForcedSet(false);\n vPanel.setHeight(null, panel.minHeight);\n\n if (this.parent) {\n this.parent.render();\n }\n }, this);\n};\n\n/**\n * set state\n * @param {object} state - state\n */\nDayGrid.prototype.setState = function(state) {\n var collapsed = this.state.collapsed;\n View.prototype.setState.call(this, state);\n\n if (this.state.collapsed === collapsed) {\n return;\n }\n\n if (this.state.collapsed) {\n this._collapse();\n } else {\n this._expand();\n }\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\nDayGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderRight = theme.week.daygrid.borderRight || theme.common.border;\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.daygridLeft.width;\n styles.leftBackgroundColor = theme.week.daygridLeft.backgroundColor;\n styles.leftPaddingRight = theme.week.daygridLeft.paddingRight;\n styles.leftBorderRight = theme.week.daygridLeft.borderRight;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * Get a background color based on day.\n * @param {number} day - day number\n * @param {boolean} isToday - today flag\n * @param {object} styles - style object\n * @returns {string} backgroundColor\n */\nfunction getWeekBackgroundColor(day, isToday, styles) {\n var backgroundColor = '';\n\n if (day === 0 || day === 6) {\n backgroundColor = styles.weekendBackgroundColor;\n } else if (isToday) {\n backgroundColor = styles.todayBackgroundColor;\n } else {\n backgroundColor = styles.backgroundColor;\n }\n\n return backgroundColor;\n}\n\n/**\n * get a panel infomation\n * @param {Array.<object[]>} panels - panel infomations\n * @param {string} name - panel name\n * @returns {object} panel information\n */\nfunction getPanel(panels, name) {\n var found;\n\n util.forEach(panels, function(panel) {\n if (panel.name === name) {\n found = panel;\n }\n });\n\n return found;\n}\n\nmodule.exports = DayGrid;\n","/**\n * @fileoverview Weekday view for week\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar Weekday = require('../weekday'),\n tmpl = require('../template/week/dayGridSchedule.hbs');\nvar mmax = Math.max;\n\n/**\n * @constructor\n * @extends {Weekday}\n * @param {object} options - options for DayGridSchedule 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 DayGridSchedule(options, container) {\n Weekday.call(this, options, container);\n\n this.collapsed = true;\n}\n\nutil.inherit(DayGridSchedule, Weekday);\n\n/**\n * Render Weekday view\n * @override\n */\nDayGridSchedule.prototype.render = function(viewModel) {\n var container = this.container;\n var baseViewModel;\n\n baseViewModel = this.getBaseViewModel(viewModel);\n\n container.innerHTML = tmpl(baseViewModel);\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 */\nDayGridSchedule.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 */\nDayGridSchedule.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 * @override\n * @param {object} viewModel - schedules view models\n */\nDayGridSchedule.prototype.getBaseViewModel = function(viewModel) {\n var opt = this.options;\n var matrices = opt.getViewModelFunc(viewModel);\n var maxScheduleInDay = this._getMaxScheduleInDay(matrices);\n var baseViewModel;\n var styles = this._getStyles(viewModel.theme);\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 isReadOnly: opt.isReadOnly,\n styles: styles\n }, baseViewModel);\n\n return baseViewModel;\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nDayGridSchedule.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderRadius = theme.week.dayGridSchedule.borderRadius;\n }\n\n return styles;\n};\n\nmodule.exports = DayGridSchedule;\n","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":27,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":4},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":25,\"column\":13}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\", alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n <div data-id=\\\"\"\n + alias3((lookupProperty(helpers,\"stamp\")||(depth0 && lookupProperty(depth0,\"stamp\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"stamp\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":18},\"end\":{\"line\":6,\"column\":33}}}))\n + \"\\\"\\n class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias4 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":15},\"end\":{\"line\":7,\"column\":29}}}) : helper)))\n + \"weekday-schedule-block\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"exceedLeft\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":12},\"end\":{\"line\":8,\"column\":71}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"exceedRight\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":12},\"end\":{\"line\":9,\"column\":73}}})) != null ? stack1 : \"\")\n + \"\\\"\\n style=\\\"top:\"\n + alias3((lookupProperty(helpers,\"multiply\")||(depth0 && lookupProperty(depth0,\"multiply\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"top\") : depth0),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleBlockHeight\")),{\"name\":\"multiply\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":19},\"end\":{\"line\":10,\"column\":61}}}))\n + \"px;\\n left:\"\n + alias3((lookupProperty(helpers,\"grid-left\")||(depth0 && lookupProperty(depth0,\"grid-left\"))||alias2).call(alias1,depth0,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"dates\")),{\"name\":\"grid-left\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":21},\"end\":{\"line\":11,\"column\":51}}}))\n + \"%;\\n width:\"\n + alias3((lookupProperty(helpers,\"grid-width\")||(depth0 && lookupProperty(depth0,\"grid-width\"))||alias2).call(alias1,depth0,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"dates\")),{\"name\":\"grid-width\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":22},\"end\":{\"line\":12,\"column\":53}}}))\n + \"%\\\">\\n <div data-schedule-id=\\\"\"\n + alias3(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"id\") : stack1), depth0))\n + \"\\\" data-calendar-id=\\\"\"\n + alias3(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"calendarId\") : stack1), depth0))\n + \"\\\" class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias4 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":92},\"end\":{\"line\":13,\"column\":106}}}) : helper)))\n + \"weekday-schedule \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":123},\"end\":{\"line\":13,\"column\":192}}})) != null ? stack1 : \"\")\n + \"\\\"\\n style=\\\"height:\"\n + alias3(alias5(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; line-height:\"\n + alias3(alias5(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; border-radius: \"\n + alias3(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.program(13, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":16},\"end\":{\"line\":19,\"column\":23}}})) != null ? stack1 : \"\")\n + \" \"\n + alias3(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"customStyle\") : stack1), depth0))\n + \"\\\">\\n <span class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias4 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":25},\"end\":{\"line\":21,\"column\":39}}}) : helper)))\n + \"weekday-schedule-title\\\" title=\\\"\"\n + alias3(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"title\") : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"schedule-tmpl\")||(depth0 && lookupProperty(depth0,\"schedule-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":87},\"end\":{\"line\":21,\"column\":112}}})) != null ? stack1 : \"\")\n + \"</span>\\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias2).call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"isReadOnly\")),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":22},\"end\":{\"line\":22,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":12},\"end\":{\"line\":22,\"column\":193}}})) != null ? stack1 : \"\")\n + \"\\n </div>\\n </div>\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":31},\"end\":{\"line\":8,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":32},\"end\":{\"line\":9,\"column\":46}}}) : helper)))\n + \"weekday-exceed-right\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":146},\"end\":{\"line\":13,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<span class=\\\"\"\n + alias1(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":75},\"end\":{\"line\":22,\"column\":89}}}) : helper)))\n + \"weekday-resize-handle handle-y\\\" style=\\\"line-height:\"\n + alias1(container.lambda(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px;\\\"> </span>\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"weekday-schedules \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"collapsed\") || (depth0 != null ? lookupProperty(depth0,\"collapsed\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"collapsed\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":44},\"end\":{\"line\":1,\"column\":57}}}) : helper)))\n + \"\\\"style=\\\"top:\"\n + alias4(container.lambda(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleContainerTop\")), depth0))\n + \"px;\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"matrices\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/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=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":24},\"end\":{\"line\":8,\"column\":38}}}) : helper)))\n + \"weekday-grid-line\\\"\\n style=\\\"left:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"left\") || (depth0 != null ? lookupProperty(depth0,\"left\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"left\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":28},\"end\":{\"line\":9,\"column\":36}}}) : helper)))\n + \"%; width:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"width\") || (depth0 != null ? lookupProperty(depth0,\"width\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"width\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":45},\"end\":{\"line\":9,\"column\":54}}}) : helper)))\n + \"%; background-color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"backgroundColor\") || (depth0 != null ? lookupProperty(depth0,\"backgroundColor\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"backgroundColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":75},\"end\":{\"line\":9,\"column\":94}}}) : helper)))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(data && lookupProperty(data,\"last\")),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":20},\"end\":{\"line\":12,\"column\":31}}})) != null ? stack1 : \"\")\n + \" \\\"></div>\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRight\")), depth0))\n + \";\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"days\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":27,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"collapsed\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":26,\"column\":19}}})) != null ? stack1 : \"\");\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":19,\"column\":16},\"end\":{\"line\":21,\"column\":23}}})) != null ? stack1 : \"\");\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":33},\"end\":{\"line\":20,\"column\":47}}}) : helper)))\n + \"weekday-exceed-in-week\\\" style=\\\"z-index: 1; right:\"\n + alias4((lookupProperty(helpers,\"getRight\")||(depth0 && lookupProperty(depth0,\"getRight\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"left\") : depth0),(depth0 != null ? lookupProperty(depth0,\"width\") : depth0),{\"name\":\"getRight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":96},\"end\":{\"line\":20,\"column\":119}}}))\n + \"%;\\\" data-index=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"key\") || (data && lookupProperty(data,\"key\"))) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"key\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":135},\"end\":{\"line\":20,\"column\":143}}}) : helper)))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"weekGridFooterExceed-tmpl\")||(depth0 && lookupProperty(depth0,\"weekGridFooterExceed-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"weekGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":145},\"end\":{\"line\":20,\"column\":192}}})) != null ? stack1 : \"\")\n + \"</span>\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(data && lookupProperty(data,\"key\")),\"===\",((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"collapseBtnIndex\")),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":16},\"end\":{\"line\":25,\"column\":23}}})) != null ? stack1 : \"\");\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":33},\"end\":{\"line\":24,\"column\":47}}}) : helper)))\n + \"weekday-collapse-btn\\\" style=\\\"z-index: 1; right:\"\n + alias4((lookupProperty(helpers,\"getRight\")||(depth0 && lookupProperty(depth0,\"getRight\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"left\") : depth0),(depth0 != null ? lookupProperty(depth0,\"width\") : depth0),{\"name\":\"getRight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":94},\"end\":{\"line\":24,\"column\":117}}}))\n + \"%;\\\">\"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"collapseBtnTitle-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"collapseBtnTitle-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"collapseBtnTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":121},\"end\":{\"line\":24,\"column\":148}}}) : helper))) != null ? stack1 : \"\")\n + \"</span>\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + alias4(((helper = (helper = lookupProperty(helpers,\"viewName\") || (depth0 != null ? lookupProperty(depth0,\"viewName\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"viewName\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":26},\"end\":{\"line\":1,\"column\":38}}}) : helper)))\n + \"-left \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":44},\"end\":{\"line\":1,\"column\":58}}}) : helper)))\n + \"left\\\" style=\\\"border-right: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"leftBorderRight\") : stack1), depth0))\n + \"; width: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"leftWidth\") : stack1), depth0))\n + \"; background-color: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"leftBackgroundColor\") : stack1), depth0))\n + \"; padding-right: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"leftPaddingRight\") : stack1), depth0))\n + \";\\\">\\n \"\n + ((stack1 = (lookupProperty(helpers,\"dayGridTitle-tmpl\")||(depth0 && lookupProperty(depth0,\"dayGridTitle-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"viewName\") : depth0),{\"name\":\"dayGridTitle-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":2,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n</div>\\n<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":12},\"end\":{\"line\":4,\"column\":26}}}) : helper)))\n + alias4(((helper = (helper = lookupProperty(helpers,\"viewName\") || (depth0 != null ? lookupProperty(depth0,\"viewName\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"viewName\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":26},\"end\":{\"line\":4,\"column\":38}}}) : helper)))\n + \"-right \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":45},\"end\":{\"line\":4,\"column\":59}}}) : helper)))\n + \"right\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":16},\"end\":{\"line\":5,\"column\":30}}}) : helper)))\n + \"container\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":20},\"end\":{\"line\":6,\"column\":34}}}) : helper)))\n + \"weekday-grid\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"days\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":8},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showExpandableButton\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":8},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \" </div>\\n </div>\\n</div>\\n\";\n},\"useData\":true});","/**\n * @fileoverview View for rendered schedules by times.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 domevent = require('../../common/domevent');\nvar datetime = require('../../common/datetime');\nvar tz = require('../../common/timezone');\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');\nvar timezoneStickyTmpl = require('../template/week/timezoneSticky.hbs');\nvar timegridCurrentTimeTmpl = require('../template/week/timeGridCurrentTime.hbs');\nvar TZDate = tz.Date;\nvar HOURMARKER_REFRESH_INTERVAL = 1000 * 60;\nvar SIXTY_SECONDS = 60;\nvar SIXTY_MINUTES = 60;\n\n/**\n * Returns a list of time labels from start to end.\n * For hidden labels near the current time, set to hidden: true.\n * @param {object} opt - TimeGrid.options\n * @param {boolean} hasHourMarker - Whether the current time is displayed\n * @param {number} timezoneOffset - timezone offset\n * @param {object} styles - styles\n * @returns {Array.<Object>}\n */\nfunction getHoursLabels(opt, hasHourMarker, timezoneOffset, styles) {\n var hourStart = opt.hourStart;\n var hourEnd = opt.hourEnd;\n var renderEndDate = new TZDate(opt.renderEndDate);\n var shiftByOffset = parseInt(timezoneOffset / SIXTY_MINUTES, 10);\n var shiftMinutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n var now = new TZDate().toLocalTime();\n var nowMinutes = now.getMinutes();\n var hoursRange = util.range(0, 24);\n var nowAroundHours = null;\n var nowHours, nowHoursIndex;\n var isNegativeZero = 1 / -Infinity === shiftByOffset;\n\n if ((shiftByOffset < 0 || isNegativeZero) && shiftMinutes > 0) {\n shiftByOffset -= 1;\n }\n\n // shift the array and take elements between start and end\n common.shiftArray(hoursRange, shiftByOffset);\n common.takeArray(hoursRange, hourStart, hourEnd);\n\n nowHours = common.shiftHours(now.getHours(), shiftByOffset) % 24;\n nowHoursIndex = util.inArray(nowHours, hoursRange);\n\n if (hasHourMarker) {\n if (nowMinutes < 20) {\n nowAroundHours = nowHours;\n } else if (nowMinutes > 40) {\n nowAroundHours = nowHours + 1;\n }\n\n if (util.isNumber(nowAroundHours)) {\n nowAroundHours %= 24;\n }\n }\n\n return util.map(hoursRange, function(hour, index) {\n var color;\n var fontWeight;\n var isPast =\n (hasHourMarker && index <= nowHoursIndex) ||\n (renderEndDate < now && !datetime.isSameDate(renderEndDate, now));\n\n if (isPast) {\n // past\n color = styles.pastTimeColor;\n fontWeight = styles.pastTimeFontWeight;\n } else {\n // future\n color = styles.futureTimeColor;\n fontWeight = styles.futureTimeFontWeight;\n }\n\n return {\n hour: hour,\n minutes: shiftMinutes,\n hidden: nowAroundHours === hour || index === 0,\n color: color || '',\n fontWeight: fontWeight || ''\n };\n });\n}\n\n/**\n * Returns timezone offset from timezone object\n * @param {object} timezoneObj - timezone object in options.timzones\n * @param {number} timestamp - timestamp\n * @returns {number} timezoneOffset - timezone offset\n */\nfunction getOffsetByTimezoneOption(timezoneObj, timestamp) {\n var primaryOffset = tz.getPrimaryOffset();\n if (util.isString(timezoneObj.timezoneName)) {\n return -tz.getOffsetByTimezoneName(timezoneObj.timezoneName, timestamp);\n }\n\n // @deprecated timezoneOffset property will be deprecated\n if (util.isNumber(timezoneObj.timezoneOffset) && timezoneObj.timezoneOffset !== primaryOffset) {\n return timezoneObj.timezoneOffset;\n }\n\n return -primaryOffset;\n}\n\n/**\n * @constructor\n * @extends {View}\n * @param {string} name - view name\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} panelElement panel element.\n */\nfunction TimeGrid(name, options, panelElement) {\n var container = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-container')\n );\n var stickyContainer = domutil.appendHTMLElement(\n 'div',\n panelElement,\n config.classname('timegrid-sticky-container')\n );\n\n panelElement.style.position = 'relative'; // for stickyContainer\n\n name = name || 'time';\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 this.stickyContainer = stickyContainer;\n\n /**\n * Time view options.\n * @type {object}\n */\n this.options = util.extend(\n {\n viewName: name,\n renderStartDate: '',\n renderEndDate: '',\n hourStart: 0,\n hourEnd: 24,\n timezones: options.timezones,\n isReadOnly: options.isReadOnly,\n showTimezoneCollapseButton: false\n },\n options.week\n );\n\n if (this.options.timezones.length < 1) {\n this.options.timezones = [\n {\n timezoneOffset: tz.getPrimaryOffset()\n }\n ];\n }\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 * requestAnimationFrame unique ID\n * @type {number}\n */\n this.rAnimationFrameID = 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 /**\n * cache hoursLabels view model to render again TimeGrid\n * @type {object}\n */\n this._cacheHoursLabels = 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 reqAnimFrame.cancelAnimFrame(this.rAnimationFrameID);\n\n if (this._autoScroll) {\n this._autoScroll.destroy();\n }\n\n domevent.off(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n\n this._autoScroll = this.hourmarkers = this.intervalID\n = this.timerID = this.rAnimationFrameID = this._cacheParentViewModel = this.stickyContainer = 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 =\n 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(\n maxMilliseconds,\n 100,\n datetime.millisecondsFrom('hour', opt.hourStart)\n );\n\n return common.limit(topPercent, [0], [100]);\n};\n\n/**\n * Get Hourmarker viewmodel.\n * @param {TZDate} now - now\n * @param {object} grids grid information(width, left, day)\n * @param {Array.<TZDate>} range render range\n * @returns {object} ViewModel of hourmarker.\n */\nTimeGrid.prototype._getHourmarkerViewModel = function(now, grids, range) {\n var todaymarkerLeft = -1;\n var todaymarkerWidth = -1;\n var hourmarkerTimzones = [];\n var opt = this.options;\n var primaryOffset = tz.getPrimaryOffset();\n var timezones = opt.timezones;\n var viewModel;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(now, date)) {\n todaymarkerLeft = grids[index] ? grids[index].left : 0;\n todaymarkerWidth = grids[index] ? grids[index].width : 0;\n }\n });\n\n util.forEach(timezones, function(timezone) {\n var hourmarker = new TZDate(now);\n var timezoneOffset = getOffsetByTimezoneOption(timezone, hourmarker.getTime());\n var timezoneDifference = timezoneOffset + primaryOffset;\n var dateDifference;\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = datetime.getDateDifference(hourmarker, now);\n\n hourmarkerTimzones.push({\n hourmarker: hourmarker,\n dateDifferenceSign: dateDifference < 0 ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n viewModel = {\n currentHours: now.getHours(),\n hourmarkerTop: this._getTopPercentByTime(now),\n hourmarkerTimzones: hourmarkerTimzones,\n todaymarkerLeft: todaymarkerLeft,\n todaymarkerWidth: todaymarkerWidth,\n todaymarkerRight: todaymarkerLeft + todaymarkerWidth\n };\n\n return viewModel;\n};\n\n/**\n * Get timezone view model\n * @param {number} currentHours - current hour\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @param {object} styles - styles\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getTimezoneViewModel = function(currentHours, timezonesCollapsed, styles) {\n var opt = this.options;\n var primaryOffset = tz.getPrimaryOffset();\n var timezones = opt.timezones;\n var timezonesLength = timezones.length;\n var timezoneViewModel = [];\n var collapsed = timezonesCollapsed;\n var width = collapsed ? 100 : 100 / timezonesLength;\n var now = new TZDate().toLocalTime();\n var backgroundColor = styles.displayTimezoneLabelBackgroundColor;\n\n // eslint-disable-next-line complexity\n util.forEach(timezones, function(timezone, index) {\n var hourmarker = new TZDate(now);\n var timezoneOffset = getOffsetByTimezoneOption(timezone, hourmarker.getTime());\n var timezoneDifference = timezoneOffset + primaryOffset;\n var timeSlots = getHoursLabels(opt, currentHours >= 0, timezoneDifference, styles);\n var dateDifference;\n\n hourmarker.setMinutes(hourmarker.getMinutes() + timezoneDifference);\n dateDifference = datetime.getDateDifference(hourmarker, now);\n\n if (index > 0) {\n backgroundColor = styles.additionalTimezoneBackgroundColor;\n }\n\n timezoneViewModel.push({\n timeSlots: timeSlots,\n displayLabel: timezone.displayLabel,\n timezoneOffset: timezone.timezoneOffset,\n tooltip: timezone.tooltip || '',\n width: width,\n left: collapsed ? 0 : (timezones.length - index - 1) * width,\n isPrimary: index === 0,\n backgroundColor: backgroundColor || '',\n hidden: index !== 0 && collapsed,\n hourmarker: hourmarker,\n dateDifferenceSign: dateDifference < 0 ? '-' : '+',\n dateDifference: Math.abs(dateDifference)\n });\n });\n\n return timezoneViewModel;\n};\n\n/**\n * Get base viewModel.\n * @param {object} viewModel - view model\n * @returns {object} ViewModel\n */\nTimeGrid.prototype._getBaseViewModel = function(viewModel) {\n var grids = viewModel.grids;\n var range = viewModel.range;\n var opt = this.options;\n var baseViewModel = this._getHourmarkerViewModel(new TZDate().toLocalTime(), grids, range);\n var timezonesCollapsed = util.pick(viewModel, 'state', 'timezonesCollapsed');\n var styles = this._getStyles(viewModel.theme, timezonesCollapsed);\n\n return util.extend(baseViewModel, {\n timezones: this._getTimezoneViewModel(\n baseViewModel.todaymarkerLeft,\n timezonesCollapsed,\n styles\n ),\n hoursLabels: getHoursLabels(opt, baseViewModel.todaymarkerLeft >= 0, 0, styles),\n styles: styles,\n showTimezoneCollapseButton: util.pick(opt, 'showTimezoneCollapseButton'),\n timezonesCollapsed: timezonesCollapsed\n });\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 * @param {Theme} theme - theme instance\n */\nTimeGrid.prototype._renderChildren = function(viewModels, grids, container, theme) {\n var self = this,\n options = this.options,\n childOption,\n child,\n isToday,\n containerHeight,\n today = datetime.format(new TZDate().toLocalTime(), 'YYYYMMDD'),\n i = 0;\n\n // clear contents\n container.innerHTML = '';\n this.children.clear();\n\n containerHeight = domutil.getSize(container.parentElement)[1];\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 isReadOnly: options.isReadOnly,\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 theme\n );\n child.render(ymd, schedules, containerHeight);\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 opt = this.options,\n timeViewModel = viewModel.schedulesInDateRange[opt.viewName],\n container = this.container,\n grids = viewModel.grids,\n baseViewModel = this._getBaseViewModel(viewModel),\n scheduleLen = util.keys(timeViewModel).length;\n\n this._cacheParentViewModel = viewModel;\n this._cacheHoursLabels = baseViewModel.hoursLabels;\n\n if (!scheduleLen) {\n return;\n }\n\n baseViewModel.showHourMarker = baseViewModel.todaymarkerLeft >= 0;\n\n container.innerHTML = mainTmpl(baseViewModel);\n\n /**********\n * Render sticky container for timezone display label\n **********/\n this.renderStickyContainer(baseViewModel);\n\n /**********\n * Render children\n **********/\n this._renderChildren(\n timeViewModel,\n grids,\n domutil.find(config.classname('.timegrid-schedules-container'), container),\n viewModel.theme\n );\n\n this._hourLabels = domutil.find('ul', container);\n\n /**********\n * Render hourmarker\n **********/\n this.hourmarkers = domutil.find(config.classname('.timegrid-hourmarker'), container, true);\n\n if (!this._scrolled) {\n this._scrolled = true;\n this.scrollToNow();\n }\n};\n\nTimeGrid.prototype.renderStickyContainer = function(baseViewModel) {\n var stickyContainer = this.stickyContainer;\n\n stickyContainer.innerHTML = timezoneStickyTmpl(baseViewModel);\n\n stickyContainer.style.display = baseViewModel.timezones.length > 1 ? 'block' : 'none';\n stickyContainer.style.width = baseViewModel.styles.leftWidth;\n stickyContainer.style.height = baseViewModel.styles.displayTimezoneLabelHeight;\n stickyContainer.style.borderBottom = baseViewModel.styles.leftBorderRight;\n};\n\n/**\n * Refresh hourmarker element.\n */\nTimeGrid.prototype.refreshHourmarker = function() {\n var hourmarkers = this.hourmarkers;\n var viewModel = this._cacheParentViewModel;\n var hoursLabels = this._cacheHoursLabels;\n var rAnimationFrameID = this.rAnimationFrameID;\n var baseViewModel;\n\n if (!hourmarkers || !viewModel || rAnimationFrameID) {\n return;\n }\n\n baseViewModel = this._getBaseViewModel(viewModel);\n\n this.rAnimationFrameID = reqAnimFrame.requestAnimFrame(function() {\n var needsRender = false;\n\n util.forEach(hoursLabels, function(hoursLabel, index) {\n if (hoursLabel.hidden !== baseViewModel.hoursLabels[index].hidden) {\n needsRender = true;\n\n return false;\n }\n\n return true;\n });\n\n if (needsRender) {\n this.render(viewModel);\n } else {\n util.forEach(hourmarkers, function(hourmarker) {\n var todaymarker = domutil.find(\n config.classname('.timegrid-todaymarker'),\n hourmarker\n );\n var hourmarkerContainer = domutil.find(\n config.classname('.timegrid-hourmarker-time'),\n hourmarker\n );\n var timezone = domutil.closest(hourmarker, config.classname('.timegrid-timezone'));\n var timezoneIndex = timezone ? domutil.getData(timezone, 'timezoneIndex') : 0;\n\n hourmarker.style.top = baseViewModel.hourmarkerTop + '%';\n\n if (todaymarker) {\n todaymarker.style.display =\n baseViewModel.todaymarkerLeft >= 0 ? 'block' : 'none';\n }\n if (hourmarkerContainer) {\n hourmarkerContainer.innerHTML = timegridCurrentTimeTmpl(\n baseViewModel.hourmarkerTimzones[timezoneIndex]\n );\n }\n });\n }\n\n this.rAnimationFrameID = null;\n }, this);\n};\n\n/**\n * Attach events\n */\nTimeGrid.prototype.attachEvent = function() {\n clearInterval(this.intervalID);\n clearTimeout(this.timerID);\n this.intervalID = this.timerID = this.rAnimationFrameID = null;\n\n this.timerID = setTimeout(\n this.onTick.bind(this),\n (SIXTY_SECONDS - new TZDate().getSeconds()) * 1000\n );\n\n domevent.on(this.stickyContainer, 'click', this._onClickStickyContainer, this);\n};\n\n/**\n * Scroll time grid to current hourmarker.\n */\nTimeGrid.prototype.scrollToNow = function() {\n var container = this.container;\n var offsetTop, viewBound, scrollTop, scrollAmount, scrollBy, scrollFn;\n\n if (!this.hourmarkers || !this.hourmarkers.length) {\n return;\n }\n\n offsetTop = this.hourmarkers[0].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(this.onTick.bind(this), HOURMARKER_REFRESH_INTERVAL);\n }\n this.refreshHourmarker();\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @param {boolean} timezonesCollapsed - multiple timezones are collapsed.\n * @returns {object} styles - styles object\n */\n// eslint-disable-next-line complexity\nTimeGrid.prototype._getStyles = function(theme, timezonesCollapsed) {\n var styles = {};\n var timezonesLength = this.options.timezones.length;\n var collapsed = timezonesCollapsed;\n var numberAndUnit;\n\n if (theme) {\n styles.borderBottom = theme.week.timegridHorizontalLine.borderBottom || theme.common.border;\n styles.halfHourBorderBottom =\n theme.week.timegridHalfHour.borderBottom || theme.common.border;\n\n styles.todayBackgroundColor = theme.week.today.backgroundColor;\n styles.weekendBackgroundColor = theme.week.weekend.backgroundColor;\n styles.backgroundColor = theme.week.daygrid.backgroundColor;\n styles.leftWidth = theme.week.timegridLeft.width;\n styles.leftBackgroundColor = theme.week.timegridLeft.backgroundColor;\n styles.leftBorderRight = theme.week.timegridLeft.borderRight || theme.common.border;\n styles.leftFontSize = theme.week.timegridLeft.fontSize;\n styles.timezoneWidth = theme.week.timegridLeft.width;\n styles.additionalTimezoneBackgroundColor =\n theme.week.timegridLeftAdditionalTimezone.backgroundColor || styles.leftBackgroundColor;\n\n styles.displayTimezoneLabelHeight = theme.week.timegridLeftTimezoneLabel.height;\n styles.displayTimezoneLabelBackgroundColor =\n theme.week.timegridLeft.backgroundColor === 'inherit'\n ? 'white'\n : theme.week.timegridLeft.backgroundColor;\n\n styles.oneHourHeight = theme.week.timegridOneHour.height;\n styles.halfHourHeight = theme.week.timegridHalfHour.height;\n styles.quaterHourHeight = (parseInt(styles.halfHourHeight, 10) / 2) + 'px';\n\n styles.currentTimeColor = theme.week.currentTime.color;\n styles.currentTimeFontSize = theme.week.currentTime.fontSize;\n styles.currentTimeFontWeight = theme.week.currentTime.fontWeight;\n\n styles.pastTimeColor = theme.week.pastTime.color;\n styles.pastTimeFontWeight = theme.week.pastTime.fontWeight;\n\n styles.futureTimeColor = theme.week.futureTime.color;\n styles.futureTimeFontWeight = theme.week.futureTime.fontWeight;\n\n styles.currentTimeLeftBorderTop = theme.week.currentTimeLinePast.border;\n styles.currentTimeBulletBackgroundColor = theme.week.currentTimeLineBullet.backgroundColor;\n styles.currentTimeTodayBorderTop = theme.week.currentTimeLineToday.border;\n styles.currentTimeRightBorderTop = theme.week.currentTimeLineFuture.border;\n\n if (!collapsed && timezonesLength > 1) {\n numberAndUnit = common.parseUnit(styles.leftWidth);\n styles.leftWidth = (numberAndUnit[0] * timezonesLength) + numberAndUnit[1];\n }\n }\n\n return styles;\n};\n\n/**\n * @param {MouseEvent} event - mouse event object\n */\nTimeGrid.prototype._onClickStickyContainer = function(event) {\n var target = domevent.getEventTarget(event);\n var closeBtn = domutil.closest(target, config.classname('.timegrid-timezone-close-btn'));\n\n if (!closeBtn) {\n return;\n }\n\n this.fire('clickTimezonesCollapsedBtn');\n};\n\nmodule.exports = TimeGrid;\n","/**\n * @fileoverview View of time.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 View = require('../view');\nvar timeTmpl = require('../template/week/time.hbs');\nvar tz = require('../../common/timezone');\n\nvar forEachArr = util.forEachArray;\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\n\n/**\n * calculate offset start of schedule\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nfunction getOffsetStart(viewModel, options) {\n var goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n var startDayOffset = options.todayStart.toDate().getTimezoneOffset();\n var nativeOffsetMs = tz.getNativeOffsetMs();\n var startOffset = viewModel.valueOf().start.toDate().getTimezoneOffset();\n var primaryOffset = tz.getPrimaryOffset();\n var timezoneOffset = tz.getOffsetByTimezoneName(\n tz.getPrimaryTimezoneName(),\n viewModel.valueOf().start.getTime()\n );\n var MIN_TO_MS = 60 * 1000;\n var offsetDiffMs = 0;\n var offsetStart = viewModel.valueOf().start - goingDuration - options.todayStart;\n\n if (tz.hasPrimaryTimezoneCustomSetting()) {\n if (tz.isNativeOsUsingDSTTimezone() && nativeOffsetMs !== startDayOffset) {\n // When using a custom time zone, the native time zone offset is fixed and rendered.\n // So, The fixed and rendered time should be recalculated as the original time zone offset.\n // The current system OS local time is not affected by summer/standard time and the schedule should always be displayed in the same location.\n offsetDiffMs = (startOffset * MIN_TO_MS) - nativeOffsetMs;\n offsetStart += offsetDiffMs;\n }\n\n if (tz.isPrimaryUsingDSTTimezone() && primaryOffset !== timezoneOffset) {\n // The custom time zone is a time zone where two offsets including DST are applied.\n // The first rendered schedule is calculated and drawn with the offset calculated at the access time(system OS local time).\n // It should be recalculated with the original time zone offset.\n offsetDiffMs = (primaryOffset - timezoneOffset) * MIN_TO_MS;\n offsetStart += offsetDiffMs;\n }\n }\n\n return offsetStart;\n}\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 * @param {Theme} theme - theme instance\n */\nfunction Time(options, container, theme) {\n View.call(this, container);\n\n this.options = util.extend(\n {\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 isReadOnly: false\n },\n options\n );\n\n this.timeTmpl = timeTmpl;\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\n\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 this.applyTheme();\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 var date = datetime.start();\n\n date.setFullYear(y, m - 1, d);\n\n return datetime.start(date);\n};\n\n/**\n * calculate left and width\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundX = function(viewModel, options) {\n var 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 return {\n left: options.baseLeft[options.columnIndex],\n width: width\n };\n};\n\n/**\n * calculate top, height, croppedStart and croppedEnd\n * @param {ScheduleViewModel} viewModel - view model instance to calculate bound.\n * @param {object} options - options for calculating schedule element's bound.\n * @returns {object} - left and width\n */\nTime.prototype._getScheduleViewBoundY = function(viewModel, options) {\n var baseMS = options.baseMS;\n var baseHeight = options.baseHeight;\n var croppedStart = false;\n var croppedEnd = false;\n var goingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().goingDuration);\n var comingDuration = datetime.millisecondsFrom('minutes', viewModel.valueOf().comingDuration);\n var modelDuration = viewModel.duration();\n var top, height, duration;\n var goingDurationHeight, modelDurationHeight, comingDurationHeight;\n var offsetStart = getOffsetStart(viewModel, options);\n\n // containerHeight : milliseconds in day = x : schedule's milliseconds\n top = (baseHeight * offsetStart) / baseMS;\n\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n duration = modelDuration + goingDuration + comingDuration;\n height = (baseHeight * duration) / baseMS;\n\n goingDurationHeight = (baseHeight * goingDuration) / baseMS; // common.ratio(duration, goingDuration, 100);\n modelDurationHeight = (baseHeight * modelDuration) / baseMS; // common.ratio(duration, modelDuration, 100);\n comingDurationHeight = (baseHeight * comingDuration) / baseMS; // common.ratio(duration, comingDuration, 100);\n\n if (offsetStart < 0) {\n top = 0;\n height += (baseHeight * offsetStart) / baseMS;\n croppedStart = true;\n }\n\n if (height + top > baseHeight) {\n height = baseHeight - top;\n croppedEnd = true;\n }\n\n return {\n top: top,\n height: Math.max(height, this.options.minHeight) - this.options.defaultMarginBottom,\n modelDurationHeight: modelDurationHeight,\n goingDurationHeight: goingDurationHeight,\n comingDurationHeight: comingDurationHeight,\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n croppedStart: croppedStart,\n croppedEnd: croppedEnd\n };\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 boundX = this._getScheduleViewBoundX(viewModel, options);\n var boundY = this._getScheduleViewBoundY(viewModel, options);\n var schedule = viewModel.model;\n var isReadOnly = util.pick(schedule, 'isReadOnly') || false;\n var travelBorderColor = schedule.isFocused ? '#ffffff' : schedule.borderColor;\n if (travelBorderColor === schedule.bgColor) {\n travelBorderColor = null; // follow text color\n }\n\n return util.extend(\n {\n isReadOnly: isReadOnly,\n travelBorderColor: travelBorderColor\n },\n boundX,\n boundY\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 * @param {number} containerHeight - container's height\n */\nTime.prototype._getBaseViewModel = function(ymd, matrices, containerHeight) {\n var self = this,\n options = this.options,\n hourStart = options.hourStart,\n hourEnd = options.hourEnd,\n isReadOnly = options.isReadOnly,\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 = 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, widthPercent, leftPercents, i;\n\n maxRowLength = Math.max.apply(\n null,\n util.map(matrix, function(row) {\n return row.length;\n })\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 isReadOnly: isReadOnly\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 * @param {number} containerHeight - container's height\n */\nTime.prototype.render = function(ymd, matrices, containerHeight) {\n this._getBaseViewModel(ymd, matrices, containerHeight);\n this.container.innerHTML = this.timeTmpl({\n matrices: matrices,\n styles: this._getStyles(this.theme),\n isReadOnly: this.options.isReadOnly\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nTime.prototype._getStyles = function(theme) {\n var styles = {};\n var options = this.options;\n\n if (theme) {\n styles.borderRight = theme.week.timegrid.borderRight || theme.common.border;\n styles.marginRight = theme.week.timegrid.paddingRight;\n styles.borderRadius = theme.week.timegridSchedule.borderRadius;\n styles.paddingLeft = theme.week.timegridSchedule.paddingLeft;\n styles.backgroundColor = options.isToday ? theme.week.today.backgroundColor : 'inherit';\n }\n\n return styles;\n};\n\nTime.prototype.applyTheme = function() {\n var style = this.container.style;\n var styles = this._getStyles(this.theme);\n\n style.borderRight = styles.borderRight;\n style.backgroundColor = styles.backgroundColor;\n};\n\nmodule.exports = Time;\n","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":60,\"column\":13}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":59,\"column\":17}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":8},\"end\":{\"line\":58,\"column\":17}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":20},\"end\":{\"line\":6,\"column\":34}}}) : helper)))\n + \"time-date-schedule-block \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isPending\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":59},\"end\":{\"line\":6,\"column\":136}}})) != null ? stack1 : \"\")\n + \"\\\" data-id=\\\"\"\n + alias4((lookupProperty(helpers,\"stamp\")||(depth0 && lookupProperty(depth0,\"stamp\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"stamp\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":147},\"end\":{\"line\":6,\"column\":162}}}))\n + \"\\\"\\n style=\\\"\"\n + alias4((lookupProperty(helpers,\"time-scheduleBlock\")||(depth0 && lookupProperty(depth0,\"time-scheduleBlock\"))||alias2).call(alias1,depth0,{\"name\":\"time-scheduleBlock\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":19},\"end\":{\"line\":7,\"column\":46}}}))\n + \";\\n\"\n + ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"left\") : depth0),\"!==\",0,{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":16},\"end\":{\"line\":10,\"column\":23}}})) != null ? stack1 : \"\")\n + \" \\\">\\n <div data-schedule-id=\\\"\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"id\") : stack1), depth0))\n + \"\\\" data-calendar-id=\\\"\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"calendarId\") : stack1), depth0))\n + \"\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":96},\"end\":{\"line\":12,\"column\":110}}}) : helper)))\n + \"time-schedule \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":124},\"end\":{\"line\":12,\"column\":190}}})) != null ? stack1 : \"\")\n + \"\\\"\\n style=\\\"\\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"croppedEnd\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":16},\"end\":{\"line\":17,\"column\":27}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"croppedStart\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":16},\"end\":{\"line\":21,\"column\":27}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.program(17, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":16},\"end\":{\"line\":26,\"column\":23}}})) != null ? stack1 : \"\")\n + \" \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"customStyle\") : stack1), depth0))\n + \"\\\"\\n >\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasGoingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(19, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":12},\"end\":{\"line\":37,\"column\":19}}})) != null ? stack1 : \"\")\n + \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":38,\"column\":28},\"end\":{\"line\":38,\"column\":42}}}) : helper)))\n + \"time-schedule-content \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":38,\"column\":64},\"end\":{\"line\":38,\"column\":78}}}) : helper)))\n + \"time-schedule-content-time\\\" style=\\\"height: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"modelDurationHeight\") || (depth0 != null ? lookupProperty(depth0,\"modelDurationHeight\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"modelDurationHeight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":38,\"column\":121},\"end\":{\"line\":38,\"column\":144}}}) : helper)))\n + \"px;\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(20, data, 0),\"inverse\":container.program(22, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":39,\"column\":16},\"end\":{\"line\":43,\"column\":23}}})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasComingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":44,\"column\":16},\"end\":{\"line\":44,\"column\":96}}})) != null ? stack1 : \"\")\n + \"\\\">\\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":45,\"column\":20},\"end\":{\"line\":45,\"column\":41}}})) != null ? stack1 : \"\")\n + \"\\n </div>\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasComingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":12},\"end\":{\"line\":54,\"column\":19}}})) != null ? stack1 : \"\")\n + \" </div>\\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"croppedEnd\") : depth0),(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias2).call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"isReadOnly\")),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":37},\"end\":{\"line\":56,\"column\":75}}}),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":22},\"end\":{\"line\":56,\"column\":76}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(29, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":12},\"end\":{\"line\":56,\"column\":207}}})) != null ? stack1 : \"\")\n + \"\\n </div>\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":83},\"end\":{\"line\":6,\"column\":97}}}) : helper)))\n + \"time-date-schedule-block-pending\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" padding-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"paddingLeft\")), depth0))\n + \";\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":147},\"end\":{\"line\":12,\"column\":161}}}) : helper)))\n + \"time-schedule-focused \";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-bottom-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n border-bottom-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-top-left-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n border-top-right-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":28},\"end\":{\"line\":30,\"column\":42}}}) : helper)))\n + \"time-schedule-content \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":64},\"end\":{\"line\":30,\"column\":78}}}) : helper)))\n + \"time-schedule-content-travel-time\\\" style=\\\"height: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"goingDurationHeight\") || (depth0 != null ? lookupProperty(depth0,\"goingDurationHeight\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"goingDurationHeight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":128},\"end\":{\"line\":30,\"column\":151}}}) : helper)))\n + \"px;\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(20, data, 0),\"inverse\":container.program(22, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":31,\"column\":16},\"end\":{\"line\":35,\"column\":23}}})) != null ? stack1 : \"\")\n + \" border-bottom: 1px dashed \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"travelBorderColor\") || (depth0 != null ? lookupProperty(depth0,\"travelBorderColor\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"travelBorderColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":42},\"end\":{\"line\":36,\"column\":63}}}) : helper)))\n + \";\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"goingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"goingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":66},\"end\":{\"line\":36,\"column\":96}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"border-bottom: 1px dashed \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"travelBorderColor\") || (depth0 != null ? lookupProperty(depth0,\"travelBorderColor\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"travelBorderColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":44,\"column\":67},\"end\":{\"line\":44,\"column\":88}}}) : helper)))\n + \";\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":48,\"column\":28},\"end\":{\"line\":48,\"column\":42}}}) : helper)))\n + \"time-schedule-content \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":48,\"column\":64},\"end\":{\"line\":48,\"column\":78}}}) : helper)))\n + \"time-schedule-content-travel-time\\\" style=\\\"height: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"comingDurationHeight\") || (depth0 != null ? lookupProperty(depth0,\"comingDurationHeight\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"comingDurationHeight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":48,\"column\":128},\"end\":{\"line\":48,\"column\":152}}}) : helper)))\n + \"px;\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(20, data, 0),\"inverse\":container.program(27, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":49,\"column\":16},\"end\":{\"line\":53,\"column\":23}}})) != null ? stack1 : \"\")\n + \";\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"comingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"comingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":53,\"column\":26},\"end\":{\"line\":53,\"column\":57}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-color:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n \";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias1(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":56,\"column\":90},\"end\":{\"line\":56,\"column\":104}}}) : helper)))\n + \"time-resize-handle handle-x\\\" style=\\\"margin-left: \"\n + alias1(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"paddingLeft\")), depth0))\n + \";\\\"> </div>\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"time-date-schedule-block-wrap\\\" style=\\\"margin-right: \"\n + alias2(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"marginRight\") : stack1), depth0))\n + \";\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"matrices\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":61,\"column\":9}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"useData\":true});","/**\n * @fileoverview Add autoscroll feature to elements that prevented text selection.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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; // In IE, the offset of the actual UI pixel when the scroll bar is clicked is 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(this._onTick.bind(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","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/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=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":20},\"end\":{\"line\":3,\"column\":34}}}) : helper)))\n + \"timegrid-timezone\\\" data-timezone-index=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"index\") || (data && lookupProperty(data,\"index\"))) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"index\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":74},\"end\":{\"line\":3,\"column\":84}}}) : helper)))\n + \"\\\" style=\\\"\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hidden\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":93},\"end\":{\"line\":3,\"column\":127}}})) != null ? stack1 : \"\")\n + \"position: absolute; top: 0; width: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"width\") || (depth0 != null ? lookupProperty(depth0,\"width\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"width\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":162},\"end\":{\"line\":3,\"column\":171}}}) : helper)))\n + \"%; left: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"left\") || (depth0 != null ? lookupProperty(depth0,\"left\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"left\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":180},\"end\":{\"line\":3,\"column\":188}}}) : helper)))\n + \"%; border-right: \"\n + alias4(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"leftBorderRight\")), depth0))\n + \"; background-color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"backgroundColor\") || (depth0 != null ? lookupProperty(depth0,\"backgroundColor\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"backgroundColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":257},\"end\":{\"line\":3,\"column\":276}}}) : helper)))\n + \";\\\" >\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isPrimary\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(10, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":26,\"column\":15}}})) != null ? stack1 : \"\")\n + \" </div>\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"timeSlots\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":12},\"end\":{\"line\":9,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showHourMarker\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":12},\"end\":{\"line\":14,\"column\":19}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":28},\"end\":{\"line\":6,\"column\":42}}}) : helper)))\n + \"timegrid-hour\\\" style=\\\"height: \"\n + alias4(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"oneHourHeight\")), depth0))\n + \"; color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"color\") || (depth0 != null ? lookupProperty(depth0,\"color\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"color\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":111},\"end\":{\"line\":6,\"column\":120}}}) : helper)))\n + \"; font-weight: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"fontWeight\") || (depth0 != null ? lookupProperty(depth0,\"fontWeight\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"fontWeight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":135},\"end\":{\"line\":6,\"column\":149}}}) : helper)))\n + \";\\\">\\n <span style=\\\"\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hidden\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":33},\"end\":{\"line\":7,\"column\":66}}})) != null ? stack1 : \"\")\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"timegridDisplayPrimayTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridDisplayPrimayTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayPrimayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":68},\"end\":{\"line\":7,\"column\":109}}})) != null ? stack1 : \"\")\n + \"</span>\\n </div>\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n return \"display:none\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":28},\"end\":{\"line\":11,\"column\":42}}}) : helper)))\n + \"timegrid-hourmarker\\\" style=\\\"top:\"\n + alias4(alias5(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"hourmarkerTop\")), depth0))\n + \"%; margin-top: calc(6px - \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"halfHourHeight\")), depth0))\n + \"); height: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"halfHourHeight\")), depth0))\n + \";\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":32},\"end\":{\"line\":12,\"column\":46}}}) : helper)))\n + \"timegrid-hourmarker-time\\\" style=\\\"color: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"currentTimeColor\")), depth0))\n + \"; font-size: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"currentTimeFontSize\")), depth0))\n + \"; font-weight: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"currentTimeFontWeight\")), depth0))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"timegridCurrentTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridCurrentTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":223},\"end\":{\"line\":12,\"column\":258}}})) != null ? stack1 : \"\")\n + \"</div>\\n </div>\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"timeSlots\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":20,\"column\":23}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showHourMarker\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":25,\"column\":19}}})) != null ? stack1 : \"\");\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":28},\"end\":{\"line\":17,\"column\":42}}}) : helper)))\n + \"timegrid-hour\\\" style=\\\"height: \"\n + alias4(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"oneHourHeight\")), depth0))\n + \"; color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"color\") || (depth0 != null ? lookupProperty(depth0,\"color\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"color\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":111},\"end\":{\"line\":17,\"column\":120}}}) : helper)))\n + \"; font-weight: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"fontWeight\") || (depth0 != null ? lookupProperty(depth0,\"fontWeight\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"fontWeight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":135},\"end\":{\"line\":17,\"column\":149}}}) : helper)))\n + \";\\\">\\n <span style=\\\"\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hidden\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":33},\"end\":{\"line\":18,\"column\":66}}})) != null ? stack1 : \"\")\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"timegridDisplayTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridDisplayTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridDisplayTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":68},\"end\":{\"line\":18,\"column\":103}}})) != null ? stack1 : \"\")\n + \"</span>\\n </div>\\n\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":28},\"end\":{\"line\":22,\"column\":42}}}) : helper)))\n + \"timegrid-hourmarker\\\" style=\\\"top:\"\n + alias4(alias5(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"hourmarkerTop\")), depth0))\n + \"%; margin-top: calc(6px - \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"halfHourHeight\")), depth0))\n + \"); height: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"halfHourHeight\")), depth0))\n + \";\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":32},\"end\":{\"line\":23,\"column\":46}}}) : helper)))\n + \"timegrid-hourmarker-time\\\" style=\\\"color: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"currentTimeColor\")), depth0))\n + \"; font-size: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"currentTimeFontSize\")), depth0))\n + \";\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"timegridCurrentTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridCurrentTime-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":171},\"end\":{\"line\":23,\"column\":206}}})) != null ? stack1 : \"\")\n + \"</div>\\n </div>\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":33,\"column\":20},\"end\":{\"line\":33,\"column\":34}}}) : helper)))\n + \"timegrid-gridline\\\" style=\\\"height: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"oneHourHeight\")), depth0))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(data && lookupProperty(data,\"last\")),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(16, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":34,\"column\":12},\"end\":{\"line\":36,\"column\":23}}})) != null ? stack1 : \"\")\n + \" \\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":38,\"column\":24},\"end\":{\"line\":38,\"column\":38}}}) : helper)))\n + \"timegrid-gridline-half\\\" style=\\\"height: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"halfHourHeight\")), depth0))\n + \"; border-bottom: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"halfHourBorderBottom\")), depth0))\n + \";\\\"></div>\\n </div>\\n\";\n},\"16\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-bottom: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderBottom\")), depth0))\n + \";\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":16},\"end\":{\"line\":47,\"column\":30}}}) : helper)))\n + \"timegrid-hourmarker\\\" style=\\\"top:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"hourmarkerTop\") || (depth0 != null ? lookupProperty(depth0,\"hourmarkerTop\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"hourmarkerTop\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":62},\"end\":{\"line\":47,\"column\":79}}}) : helper)))\n + \"%\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":48,\"column\":20},\"end\":{\"line\":48,\"column\":34}}}) : helper)))\n + \"timegrid-hourmarker-line-left\\\" style=\\\"width:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"todaymarkerLeft\") || (depth0 != null ? lookupProperty(depth0,\"todaymarkerLeft\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"todaymarkerLeft\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":48,\"column\":78},\"end\":{\"line\":48,\"column\":97}}}) : helper)))\n + \"%; border-top: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"currentTimeLeftBorderTop\") : stack1), depth0))\n + \";\\\"></div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":49,\"column\":20},\"end\":{\"line\":49,\"column\":34}}}) : helper)))\n + \"timegrid-todaymarker\\\" style=\\\"left:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"todaymarkerLeft\") || (depth0 != null ? lookupProperty(depth0,\"todaymarkerLeft\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"todaymarkerLeft\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":49,\"column\":68},\"end\":{\"line\":49,\"column\":87}}}) : helper)))\n + \"%; background-color: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"currentTimeBulletBackgroundColor\") : stack1), depth0))\n + \"; \\\">today</div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":50,\"column\":20},\"end\":{\"line\":50,\"column\":34}}}) : helper)))\n + \"timegrid-hourmarker-line-today\\\" style=\\\"left:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"todaymarkerLeft\") || (depth0 != null ? lookupProperty(depth0,\"todaymarkerLeft\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"todaymarkerLeft\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":50,\"column\":78},\"end\":{\"line\":50,\"column\":97}}}) : helper)))\n + \"%; width: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"todaymarkerWidth\") || (depth0 != null ? lookupProperty(depth0,\"todaymarkerWidth\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"todaymarkerWidth\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":50,\"column\":107},\"end\":{\"line\":50,\"column\":127}}}) : helper)))\n + \"%; border-top: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"currentTimeTodayBorderTop\") : stack1), depth0))\n + \";\\\"></div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":51,\"column\":20},\"end\":{\"line\":51,\"column\":34}}}) : helper)))\n + \"timegrid-hourmarker-line-right\\\" style=\\\"left:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"todaymarkerRight\") || (depth0 != null ? lookupProperty(depth0,\"todaymarkerRight\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"todaymarkerRight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":51,\"column\":78},\"end\":{\"line\":51,\"column\":98}}}) : helper)))\n + \"%; border-top: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"currentTimeRightBorderTop\") : stack1), depth0))\n + \";\\\"></div>\\n </div>\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"timegrid-left\\\" style=\\\"width: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"leftWidth\") : stack1), depth0))\n + \"; font-size: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"leftFontSize\") : stack1), depth0))\n + \";\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"timezones\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":28,\"column\":15}}})) != null ? stack1 : \"\")\n + \"</div>\\n<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":12},\"end\":{\"line\":30,\"column\":26}}}) : helper)))\n + \"timegrid-right\\\" style=\\\"margin-left: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"leftWidth\")), depth0))\n + \";\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":31,\"column\":16},\"end\":{\"line\":31,\"column\":30}}}) : helper)))\n + \"timegrid-h-grid\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hoursLabels\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":32,\"column\":8},\"end\":{\"line\":40,\"column\":19}}})) != null ? stack1 : \"\")\n + \"</div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":42,\"column\":16},\"end\":{\"line\":42,\"column\":30}}}) : helper)))\n + \"timegrid-schedules\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":43,\"column\":20},\"end\":{\"line\":43,\"column\":34}}}) : helper)))\n + \"timegrid-schedules-container\\\"></div>\\n </div>\\n\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"showHourMarker\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":46,\"column\":4},\"end\":{\"line\":53,\"column\":11}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/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=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":12},\"end\":{\"line\":2,\"column\":26}}}) : helper)))\n + \"timegrid-timezone-label-container\\\" style=\\\"\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hidden\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":68},\"end\":{\"line\":2,\"column\":102}}})) != null ? stack1 : \"\")\n + \"background-color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"backgroundColor\") || (depth0 != null ? lookupProperty(depth0,\"backgroundColor\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"backgroundColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":120},\"end\":{\"line\":2,\"column\":139}}}) : helper)))\n + \"; height: 100%; width: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"width\") || (depth0 != null ? lookupProperty(depth0,\"width\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"width\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":162},\"end\":{\"line\":2,\"column\":171}}}) : helper)))\n + \"%; left: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"left\") || (depth0 != null ? lookupProperty(depth0,\"left\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"left\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":180},\"end\":{\"line\":2,\"column\":188}}}) : helper)))\n + \"%; font-size: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"leftFontSize\")), depth0))\n + \"; border-right: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"leftBorderRight\")), depth0))\n + \";\\\">\\n <div title=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"tooltip\") || (depth0 != null ? lookupProperty(depth0,\"tooltip\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"tooltip\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":16},\"end\":{\"line\":3,\"column\":27}}}) : helper)))\n + \"\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":36},\"end\":{\"line\":3,\"column\":50}}}) : helper)))\n + \"timegrid-timezone-label-cell\\\" data-timezone=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"displayLabel\") || (depth0 != null ? lookupProperty(depth0,\"displayLabel\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"displayLabel\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":95},\"end\":{\"line\":3,\"column\":111}}}) : helper)))\n + \"\\\" style=\\\"height: 100%; width: 100%;\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(lookupProperty(helpers,\"and\")||(depth0 && lookupProperty(depth0,\"and\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"isPrimary\") : depth0),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"showTimezoneCollapseButton\")),{\"name\":\"and\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":14},\"end\":{\"line\":4,\"column\":62}}}),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":8},\"end\":{\"line\":10,\"column\":15}}})) != null ? stack1 : \"\")\n + \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":20},\"end\":{\"line\":11,\"column\":34}}}) : helper)))\n + \"timegrid-timezone-label\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"timezoneDisplayLabel-tmpl\")||(depth0 && lookupProperty(depth0,\"timezoneDisplayLabel-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"timezoneOffset\") : depth0),(depth0 != null ? lookupProperty(depth0,\"displayLabel\") : depth0),{\"name\":\"timezoneDisplayLabel-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":59},\"end\":{\"line\":11,\"column\":118}}})) != null ? stack1 : \"\")\n + \"</div>\\n </div>\\n</div>\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n return \"display:none;\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":24},\"end\":{\"line\":5,\"column\":38}}}) : helper)))\n + \"timegrid-timezone-close-btn\\\" style=\\\"border: 1px solid #ddd; top:2px; bottom: 2px; width: 10px; border-left: none;\\\">\\n <span style=\\\"color: #777; height: calc(\"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"displayTimezoneLabelHeight\")), depth0))\n + \" - 6px); line-height: calc(\"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"displayTimezoneLabelHeight\")), depth0))\n + \" - 6px);\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":33},\"end\":{\"line\":7,\"column\":47}}}) : helper)))\n + \"icon \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"timezonesCollapsed\")),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":52},\"end\":{\"line\":7,\"column\":154}}})) != null ? stack1 : \"\")\n + \"\\\"></span>\\n </span>\\n </div>\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"ic-arrow-right\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":120},\"end\":{\"line\":7,\"column\":134}}}) : helper)))\n + \"ic-arrow-left\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(lookupProperty(helpers,\"reverse\")||(depth0 && lookupProperty(depth0,\"reverse\"))||container.hooks.helperMissing).call(alias1,(depth0 != null ? lookupProperty(depth0,\"timezones\") : depth0),{\"name\":\"reverse\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":8},\"end\":{\"line\":1,\"column\":27}}}),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":14,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"timegridCurrentTime-tmpl\")||(depth0 && lookupProperty(depth0,\"timegridCurrentTime-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"timegridCurrentTime-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":1,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"useData\":true});","module.exports = __WEBPACK_EXTERNAL_MODULE__81__;","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":150},\"end\":{\"line\":3,\"column\":164}}}) : helper)))\n + \"hide\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <li class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":31},\"end\":{\"line\":11,\"column\":45}}}) : helper)))\n + \"popup-section-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":64},\"end\":{\"line\":11,\"column\":78}}}) : helper)))\n + \"dropdown-menu-item\\\" data-calendar-id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"id\") || (depth0 != null ? lookupProperty(depth0,\"id\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"id\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":116},\"end\":{\"line\":11,\"column\":122}}}) : helper)))\n + \"\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":37},\"end\":{\"line\":12,\"column\":51}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":56},\"end\":{\"line\":12,\"column\":70}}}) : helper)))\n + \"calendar-dot\\\" style=\\\"background-color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"bgColor\") || (depth0 != null ? lookupProperty(depth0,\"bgColor\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"bgColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":109},\"end\":{\"line\":12,\"column\":120}}}) : helper)))\n + \"\\\"></span>\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":37},\"end\":{\"line\":13,\"column\":51}}}) : helper)))\n + \"content\\\">\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"name\") || (depth0 != null ? lookupProperty(depth0,\"name\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"name\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":60},\"end\":{\"line\":13,\"column\":68}}}) : helper)))\n + \"</span>\\n </li>\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":135},\"end\":{\"line\":23,\"column\":149}}}) : helper)))\n + \"public\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n return \" checked\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"state\") || (depth0 != null ? lookupProperty(depth0,\"state\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"state\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":99},\"end\":{\"line\":54,\"column\":108}}}) : helper)));\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupStateBusy-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupStateBusy-tmpl\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":116},\"end\":{\"line\":54,\"column\":141}}}) : helper))) != null ? stack1 : \"\");\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupUpdate-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupUpdate-tmpl\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupUpdate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":69,\"column\":163},\"end\":{\"line\":69,\"column\":185}}}) : helper))) != null ? stack1 : \"\");\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupSave-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupSave-tmpl\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"popupSave-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":69,\"column\":193},\"end\":{\"line\":69,\"column\":213}}}) : helper))) != null ? stack1 : \"\");\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"popup\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":16},\"end\":{\"line\":2,\"column\":30}}}) : helper)))\n + \"popup-container\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":20},\"end\":{\"line\":3,\"column\":34}}}) : helper)))\n + \"popup-section \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":48},\"end\":{\"line\":3,\"column\":62}}}) : helper)))\n + \"dropdown \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":71},\"end\":{\"line\":3,\"column\":85}}}) : helper)))\n + \"close \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":91},\"end\":{\"line\":3,\"column\":105}}}) : helper)))\n + \"section-calendar\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"calendars\") : depth0)) != null ? lookupProperty(stack1,\"length\") : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":121},\"end\":{\"line\":3,\"column\":179}}})) != null ? stack1 : \"\")\n + \"\\\">\\n <button class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":27},\"end\":{\"line\":4,\"column\":41}}}) : helper)))\n + \"button \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":48},\"end\":{\"line\":4,\"column\":62}}}) : helper)))\n + \"dropdown-button \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":78},\"end\":{\"line\":4,\"column\":92}}}) : helper)))\n + \"popup-section-item\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":29},\"end\":{\"line\":5,\"column\":43}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":48},\"end\":{\"line\":5,\"column\":62}}}) : helper)))\n + \"calendar-dot\\\" style=\\\"background-color: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"selectedCal\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"\\\"></span>\\n <span id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":26},\"end\":{\"line\":6,\"column\":40}}}) : helper)))\n + \"schedule-calendar\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":66},\"end\":{\"line\":6,\"column\":80}}}) : helper)))\n + \"content\\\">\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"selectedCal\") : depth0)) != null ? lookupProperty(stack1,\"name\") : stack1), depth0))\n + \"</span>\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":29},\"end\":{\"line\":7,\"column\":43}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":48},\"end\":{\"line\":7,\"column\":62}}}) : helper)))\n + \"dropdown-arrow\\\"></span>\\n </button>\\n <ul class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":23},\"end\":{\"line\":9,\"column\":37}}}) : helper)))\n + \"dropdown-menu\\\" style=\\\"z-index: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"zIndex\") || (depth0 != null ? lookupProperty(depth0,\"zIndex\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"zIndex\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":68},\"end\":{\"line\":9,\"column\":78}}}) : helper)))\n + \"\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"calendars\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":16},\"end\":{\"line\":15,\"column\":25}}})) != null ? stack1 : \"\")\n + \" </ul>\\n </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":20},\"end\":{\"line\":18,\"column\":34}}}) : helper)))\n + \"popup-section\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":19,\"column\":24},\"end\":{\"line\":19,\"column\":38}}}) : helper)))\n + \"popup-section-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":19,\"column\":57},\"end\":{\"line\":19,\"column\":71}}}) : helper)))\n + \"section-title\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":25},\"end\":{\"line\":20,\"column\":39}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":44},\"end\":{\"line\":20,\"column\":58}}}) : helper)))\n + \"ic-title\\\"></span>\\n <input id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":27},\"end\":{\"line\":21,\"column\":41}}}) : helper)))\n + \"schedule-title\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":64},\"end\":{\"line\":21,\"column\":78}}}) : helper)))\n + \"content\\\" placeholder=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"titlePlaceholder-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"titlePlaceholder-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"titlePlaceholder-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":100},\"end\":{\"line\":21,\"column\":125}}}) : helper)))\n + \"\\\" value=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"title\") || (depth0 != null ? lookupProperty(depth0,\"title\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"title\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":134},\"end\":{\"line\":21,\"column\":143}}}) : helper)))\n + \"\\\">\\n </div>\\n <button id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":24},\"end\":{\"line\":23,\"column\":38}}}) : helper)))\n + \"schedule-private\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":63},\"end\":{\"line\":23,\"column\":77}}}) : helper)))\n + \"button \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":84},\"end\":{\"line\":23,\"column\":98}}}) : helper)))\n + \"section-private\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isPrivate\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":113},\"end\":{\"line\":23,\"column\":166}}})) != null ? stack1 : \"\")\n + \"\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":25},\"end\":{\"line\":24,\"column\":39}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":44},\"end\":{\"line\":24,\"column\":58}}}) : helper)))\n + \"ic-private\\\"></span>\\n </button>\\n </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":27,\"column\":20},\"end\":{\"line\":27,\"column\":34}}}) : helper)))\n + \"popup-section\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":28,\"column\":24},\"end\":{\"line\":28,\"column\":38}}}) : helper)))\n + \"popup-section-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":28,\"column\":57},\"end\":{\"line\":28,\"column\":71}}}) : helper)))\n + \"section-location\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":25},\"end\":{\"line\":29,\"column\":39}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":44},\"end\":{\"line\":29,\"column\":58}}}) : helper)))\n + \"ic-location\\\"></span>\\n <input id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":27},\"end\":{\"line\":30,\"column\":41}}}) : helper)))\n + \"schedule-location\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":67},\"end\":{\"line\":30,\"column\":81}}}) : helper)))\n + \"content\\\" placeholder=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"locationPlaceholder-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"locationPlaceholder-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"locationPlaceholder-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":103},\"end\":{\"line\":30,\"column\":131}}}) : helper)))\n + \"\\\" value=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"location\") || (depth0 != null ? lookupProperty(depth0,\"location\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"location\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":140},\"end\":{\"line\":30,\"column\":152}}}) : helper)))\n + \"\\\">\\n </div>\\n </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":33,\"column\":20},\"end\":{\"line\":33,\"column\":34}}}) : helper)))\n + \"popup-section\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":34,\"column\":24},\"end\":{\"line\":34,\"column\":38}}}) : helper)))\n + \"popup-section-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":34,\"column\":57},\"end\":{\"line\":34,\"column\":71}}}) : helper)))\n + \"section-start-date\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":35,\"column\":29},\"end\":{\"line\":35,\"column\":43}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":35,\"column\":48},\"end\":{\"line\":35,\"column\":62}}}) : helper)))\n + \"ic-date\\\"></span>\\n <input id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":27},\"end\":{\"line\":36,\"column\":41}}}) : helper)))\n + \"schedule-start-date\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":69},\"end\":{\"line\":36,\"column\":83}}}) : helper)))\n + \"content\\\" placeholder=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"startDatePlaceholder-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"startDatePlaceholder-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"startDatePlaceholder-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":105},\"end\":{\"line\":36,\"column\":134}}}) : helper)))\n + \"\\\">\\n <div id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":37,\"column\":25},\"end\":{\"line\":37,\"column\":39}}}) : helper)))\n + \"startpicker-container\\\" style=\\\"margin-left: -1px; position: relative\\\"></div>\\n </div>\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":39,\"column\":25},\"end\":{\"line\":39,\"column\":39}}}) : helper)))\n + \"section-date-dash\\\">-</span>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":40,\"column\":24},\"end\":{\"line\":40,\"column\":38}}}) : helper)))\n + \"popup-section-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":40,\"column\":57},\"end\":{\"line\":40,\"column\":71}}}) : helper)))\n + \"section-end-date\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":41,\"column\":29},\"end\":{\"line\":41,\"column\":43}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":41,\"column\":48},\"end\":{\"line\":41,\"column\":62}}}) : helper)))\n + \"ic-date\\\"></span>\\n <input id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":42,\"column\":27},\"end\":{\"line\":42,\"column\":41}}}) : helper)))\n + \"schedule-end-date\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":42,\"column\":67},\"end\":{\"line\":42,\"column\":81}}}) : helper)))\n + \"content\\\" placeholder=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"endDatePlaceholder-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"endDatePlaceholder-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"endDatePlaceholder-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":42,\"column\":103},\"end\":{\"line\":42,\"column\":130}}}) : helper)))\n + \"\\\">\\n <div id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":43,\"column\":25},\"end\":{\"line\":43,\"column\":39}}}) : helper)))\n + \"endpicker-container\\\" style=\\\"margin-left: -1px; position: relative\\\"></div>\\n </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":45,\"column\":24},\"end\":{\"line\":45,\"column\":38}}}) : helper)))\n + \"popup-section-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":45,\"column\":57},\"end\":{\"line\":45,\"column\":71}}}) : helper)))\n + \"section-allday\\\">\\n <input id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":46,\"column\":27},\"end\":{\"line\":46,\"column\":41}}}) : helper)))\n + \"schedule-allday\\\" type=\\\"checkbox\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":46,\"column\":81},\"end\":{\"line\":46,\"column\":95}}}) : helper)))\n + \"checkbox-square\\\"\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isAllDay\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":46,\"column\":111},\"end\":{\"line\":46,\"column\":142}}})) != null ? stack1 : \"\")\n + \">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":29},\"end\":{\"line\":47,\"column\":43}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":48},\"end\":{\"line\":47,\"column\":62}}}) : helper)))\n + \"ic-checkbox\\\"></span>\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":48,\"column\":29},\"end\":{\"line\":48,\"column\":43}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupIsAllDay-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupIsAllDay-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupIsAllDay-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":48,\"column\":52},\"end\":{\"line\":48,\"column\":76}}}) : helper))) != null ? stack1 : \"\")\n + \"</span>\\n </div>\\n </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":51,\"column\":20},\"end\":{\"line\":51,\"column\":34}}}) : helper)))\n + \"popup-section \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":51,\"column\":48},\"end\":{\"line\":51,\"column\":62}}}) : helper)))\n + \"dropdown \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":51,\"column\":71},\"end\":{\"line\":51,\"column\":85}}}) : helper)))\n + \"close \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":51,\"column\":91},\"end\":{\"line\":51,\"column\":105}}}) : helper)))\n + \"section-state\\\">\\n <button class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":52,\"column\":27},\"end\":{\"line\":52,\"column\":41}}}) : helper)))\n + \"button \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":52,\"column\":48},\"end\":{\"line\":52,\"column\":62}}}) : helper)))\n + \"dropdown-button \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":52,\"column\":78},\"end\":{\"line\":52,\"column\":92}}}) : helper)))\n + \"popup-section-item\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":53,\"column\":29},\"end\":{\"line\":53,\"column\":43}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":53,\"column\":48},\"end\":{\"line\":53,\"column\":62}}}) : helper)))\n + \"ic-state\\\"></span>\\n <span id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":26},\"end\":{\"line\":54,\"column\":40}}}) : helper)))\n + \"schedule-state\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":63},\"end\":{\"line\":54,\"column\":77}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"state\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.program(11, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":86},\"end\":{\"line\":54,\"column\":148}}})) != null ? stack1 : \"\")\n + \"</span>\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":29},\"end\":{\"line\":55,\"column\":43}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":48},\"end\":{\"line\":55,\"column\":62}}}) : helper)))\n + \"dropdown-arrow\\\"></span>\\n </button>\\n <ul class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":57,\"column\":23},\"end\":{\"line\":57,\"column\":37}}}) : helper)))\n + \"dropdown-menu\\\" style=\\\"z-index: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"zIndex\") || (depth0 != null ? lookupProperty(depth0,\"zIndex\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"zIndex\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":57,\"column\":68},\"end\":{\"line\":57,\"column\":78}}}) : helper)))\n + \"\\\">\\n <li class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":58,\"column\":27},\"end\":{\"line\":58,\"column\":41}}}) : helper)))\n + \"popup-section-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":58,\"column\":60},\"end\":{\"line\":58,\"column\":74}}}) : helper)))\n + \"dropdown-menu-item\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":59,\"column\":29},\"end\":{\"line\":59,\"column\":43}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":59,\"column\":48},\"end\":{\"line\":59,\"column\":62}}}) : helper)))\n + \"none\\\"></span>\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":60,\"column\":29},\"end\":{\"line\":60,\"column\":43}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupStateBusy-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupStateBusy-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateBusy-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":60,\"column\":52},\"end\":{\"line\":60,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"</span>\\n </li>\\n <li class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":62,\"column\":27},\"end\":{\"line\":62,\"column\":41}}}) : helper)))\n + \"popup-section-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":62,\"column\":60},\"end\":{\"line\":62,\"column\":74}}}) : helper)))\n + \"dropdown-menu-item\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":63,\"column\":29},\"end\":{\"line\":63,\"column\":43}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":63,\"column\":48},\"end\":{\"line\":63,\"column\":62}}}) : helper)))\n + \"none\\\"></span>\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":64,\"column\":29},\"end\":{\"line\":64,\"column\":43}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupStateFree-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupStateFree-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupStateFree-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":64,\"column\":52},\"end\":{\"line\":64,\"column\":77}}}) : helper))) != null ? stack1 : \"\")\n + \"</span>\\n </li>\\n </ul>\\n </div>\\n <button class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":68,\"column\":23},\"end\":{\"line\":68,\"column\":37}}}) : helper)))\n + \"button \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":68,\"column\":44},\"end\":{\"line\":68,\"column\":58}}}) : helper)))\n + \"popup-close\\\"><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":68,\"column\":84},\"end\":{\"line\":68,\"column\":98}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":68,\"column\":103},\"end\":{\"line\":68,\"column\":117}}}) : helper)))\n + \"ic-close\\\"></span></button>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":69,\"column\":20},\"end\":{\"line\":69,\"column\":34}}}) : helper)))\n + \"section-button-save\\\"><button class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":69,\"column\":70},\"end\":{\"line\":69,\"column\":84}}}) : helper)))\n + \"button \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":69,\"column\":91},\"end\":{\"line\":69,\"column\":105}}}) : helper)))\n + \"confirm \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":69,\"column\":113},\"end\":{\"line\":69,\"column\":127}}}) : helper)))\n + \"popup-save\\\"><span>\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isEditMode\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.program(15, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":69,\"column\":145},\"end\":{\"line\":69,\"column\":220}}})) != null ? stack1 : \"\")\n + \"</span></button></div>\\n </div>\\n <div id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":71,\"column\":13},\"end\":{\"line\":71,\"column\":27}}}) : helper)))\n + \"popup-arrow\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":71,\"column\":47},\"end\":{\"line\":71,\"column\":61}}}) : helper)))\n + \"popup-arrow \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":71,\"column\":73},\"end\":{\"line\":71,\"column\":87}}}) : helper)))\n + \"arrow-bottom\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":72,\"column\":20},\"end\":{\"line\":72,\"column\":34}}}) : helper)))\n + \"popup-arrow-border\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":73,\"column\":24},\"end\":{\"line\":73,\"column\":38}}}) : helper)))\n + \"popup-arrow-fill\\\"></div>\\n </div>\\n </div>\\n</div>\\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/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=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":45},\"end\":{\"line\":11,\"column\":59}}}) : helper)))\n + \"popup-detail-item\\\"><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":91},\"end\":{\"line\":11,\"column\":105}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":110},\"end\":{\"line\":11,\"column\":124}}}) : helper)))\n + \"ic-location-b\\\"></span><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":159},\"end\":{\"line\":11,\"column\":173}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailLocation-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailLocation-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailLocation-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":182},\"end\":{\"line\":11,\"column\":221}}})) != null ? stack1 : \"\")\n + \"</span></div>\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":51},\"end\":{\"line\":12,\"column\":65}}}) : helper)))\n + \"popup-detail-item\\\"><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":97},\"end\":{\"line\":12,\"column\":111}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":116},\"end\":{\"line\":12,\"column\":130}}}) : helper)))\n + \"ic-repeat-b\\\"></span><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":163},\"end\":{\"line\":12,\"column\":177}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailRepeat-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailRepeat-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailRepeat-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":186},\"end\":{\"line\":12,\"column\":223}}})) != null ? stack1 : \"\")\n + \"</span></div>\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":46},\"end\":{\"line\":13,\"column\":60}}}) : helper)))\n + \"popup-detail-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":78},\"end\":{\"line\":13,\"column\":92}}}) : helper)))\n + \"popup-detail-item-indent\\\"><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":131},\"end\":{\"line\":13,\"column\":145}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":150},\"end\":{\"line\":13,\"column\":164}}}) : helper)))\n + \"ic-user-b\\\"></span><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":195},\"end\":{\"line\":13,\"column\":209}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailUser-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailUser-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailUser-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":218},\"end\":{\"line\":13,\"column\":253}}})) != null ? stack1 : \"\")\n + \"</span></div>\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":42},\"end\":{\"line\":14,\"column\":56}}}) : helper)))\n + \"popup-detail-item\\\"><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":88},\"end\":{\"line\":14,\"column\":102}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":107},\"end\":{\"line\":14,\"column\":121}}}) : helper)))\n + \"ic-state-b\\\"></span><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":153},\"end\":{\"line\":14,\"column\":167}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailState-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailState-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailState-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":176},\"end\":{\"line\":14,\"column\":212}}})) != null ? stack1 : \"\")\n + \"</span></div>\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":20},\"end\":{\"line\":16,\"column\":34}}}) : helper)))\n + \"popup-detail-item\\\"><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":66},\"end\":{\"line\":16,\"column\":80}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":85},\"end\":{\"line\":16,\"column\":99}}}) : helper)))\n + \"calendar-dot\\\" style=\\\"background-color: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"\\\"></span><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":180},\"end\":{\"line\":16,\"column\":194}}}) : helper)))\n + \"content\\\">\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"calendar\") : depth0)) != null ? lookupProperty(stack1,\"name\") : stack1), depth0))\n + \"</span></div>\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":41},\"end\":{\"line\":18,\"column\":55}}}) : helper)))\n + \"popup-detail-item \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":73},\"end\":{\"line\":18,\"column\":87}}}) : helper)))\n + \"popup-detail-item-separate\\\"><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":128},\"end\":{\"line\":18,\"column\":142}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailBody-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailBody-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0),{\"name\":\"popupDetailBody-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":151},\"end\":{\"line\":18,\"column\":186}}})) != null ? stack1 : \"\")\n + \"</span></div>\";\n},\"13\":function(container,depth0,helpers,partials,data) {\n return \"\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":16},\"end\":{\"line\":22,\"column\":30}}}) : helper)))\n + \"section-button\\\">\\n <button class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":21},\"end\":{\"line\":23,\"column\":35}}}) : helper)))\n + \"popup-edit\\\"><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":60},\"end\":{\"line\":23,\"column\":74}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":79},\"end\":{\"line\":23,\"column\":93}}}) : helper)))\n + \"ic-edit\\\"></span><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":122},\"end\":{\"line\":23,\"column\":136}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupEdit-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupEdit-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupEdit-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":145},\"end\":{\"line\":23,\"column\":165}}}) : helper))) != null ? stack1 : \"\")\n + \"</span></button>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":18},\"end\":{\"line\":24,\"column\":32}}}) : helper)))\n + \"popup-vertical-line\\\"></div>\\n <button class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":25,\"column\":21},\"end\":{\"line\":25,\"column\":35}}}) : helper)))\n + \"popup-delete\\\"><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":25,\"column\":62},\"end\":{\"line\":25,\"column\":76}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":25,\"column\":81},\"end\":{\"line\":25,\"column\":95}}}) : helper)))\n + \"ic-delete\\\"></span><span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":25,\"column\":126},\"end\":{\"line\":25,\"column\":140}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"popupDelete-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"popupDelete-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"popupDelete-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":25,\"column\":149},\"end\":{\"line\":25,\"column\":171}}}) : helper))) != null ? stack1 : \"\")\n + \"</span></button>\\n </div>\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"popup \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":32},\"end\":{\"line\":1,\"column\":46}}}) : helper)))\n + \"popup-detail\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":14},\"end\":{\"line\":2,\"column\":28}}}) : helper)))\n + \"popup-container\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":16},\"end\":{\"line\":3,\"column\":30}}}) : helper)))\n + \"popup-section \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":44},\"end\":{\"line\":3,\"column\":58}}}) : helper)))\n + \"section-header\\\">\\n <div>\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":21},\"end\":{\"line\":5,\"column\":35}}}) : helper)))\n + \"schedule-private \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":52},\"end\":{\"line\":5,\"column\":66}}}) : helper)))\n + \"icon \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":71},\"end\":{\"line\":5,\"column\":85}}}) : helper)))\n + \"ic-private\\\"></span>\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":21},\"end\":{\"line\":6,\"column\":35}}}) : helper)))\n + \"schedule-title\\\">\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"title\") : stack1), depth0))\n + \"</span>\\n </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":18},\"end\":{\"line\":8,\"column\":32}}}) : helper)))\n + \"popup-detail-date \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":50},\"end\":{\"line\":8,\"column\":64}}}) : helper)))\n + \"content\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"popupDetailDate-tmpl\")||(depth0 && lookupProperty(depth0,\"popupDetailDate-tmpl\"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"start\") : stack1),((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"end\") : stack1),{\"name\":\"popupDetailDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":73},\"end\":{\"line\":8,\"column\":145}}})) != null ? stack1 : \"\")\n + \"</div>\\n </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":16},\"end\":{\"line\":10,\"column\":30}}}) : helper)))\n + \"section-detail\\\">\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"location\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":8},\"end\":{\"line\":11,\"column\":241}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"recurrenceRule\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":8},\"end\":{\"line\":12,\"column\":243}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"attendees\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":13,\"column\":273}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"state\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":8},\"end\":{\"line\":14,\"column\":232}}})) != null ? stack1 : \"\")\n + \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"calendar\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":8},\"end\":{\"line\":17,\"column\":15}}})) != null ? stack1 : \"\")\n + \" \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"body\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":8},\"end\":{\"line\":18,\"column\":206}}})) != null ? stack1 : \"\")\n + \"\\n </div>\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.program(15, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":4},\"end\":{\"line\":27,\"column\":11}}})) != null ? stack1 : \"\")\n + \" </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":14},\"end\":{\"line\":29,\"column\":28}}}) : helper)))\n + \"popup-top-line\\\" style=\\\"background-color: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"schedule\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"\\\"></div>\\n <div id=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":11},\"end\":{\"line\":30,\"column\":25}}}) : helper)))\n + \"popup-arrow\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":45},\"end\":{\"line\":30,\"column\":59}}}) : helper)))\n + \"popup-arrow \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":71},\"end\":{\"line\":30,\"column\":85}}}) : helper)))\n + \"arrow-left\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":31,\"column\":16},\"end\":{\"line\":31,\"column\":30}}}) : helper)))\n + \"popup-arrow-border\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":32,\"column\":20},\"end\":{\"line\":32,\"column\":34}}}) : helper)))\n + \"popup-arrow-fill\\\"></div>\\n </div>\\n </div>\\n</div>\\n\";\n},\"useData\":true});","/**\n * @fileoverview Dayname click event hander module\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @fileoverview Click handle module for daygrid schedules\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar util = require('tui-code-snippet');\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar DayGridMove = require('./move');\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - daygrid view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridClick(dragHandler, view, controller) {\n /**\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * @type {Base}\n */\n this.controller = controller;\n\n dragHandler.on({\n 'click': this._onClick\n }, this);\n}\n\n/**\n * Destroy handler module\n */\nDayGridClick.prototype.destroy = function() {\n this.dragHandler.off(this);\n this.view = this.controller = 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 */\nDayGridClick.prototype.checkExpectCondition = DayGridMove.prototype.checkExpectedCondition;\n\n/**\n * Click event handler\n * @param {object} clickEvent - click event data\n * @emits DayGridClick#clickSchedule\n * @emits DayGridClick#collapse\n * @emits DayGridClick#expand\n */\nDayGridClick.prototype._onClick = function(clickEvent) {\n var self = this,\n target = clickEvent.target,\n dayGridScheduleView = this.checkExpectCondition(target),\n scheduleCollection = this.controller.schedules,\n collapseBtnElement = domutil.closest(\n target,\n config.classname('.weekday-collapse-btn')\n ),\n expandBtnElement = domutil.closest(\n target,\n config.classname('.weekday-exceed-in-week')\n ),\n containsTarget = this.view.container.contains(target);\n var blockElement, scheduleElement;\n\n if (!containsTarget) {\n return;\n }\n\n if (collapseBtnElement) {\n /**\n * click collpase btn event\n * @events DayGridClick#collapse\n */\n self.fire('collapse');\n\n return;\n }\n\n if (expandBtnElement) {\n this.view.setState({\n clickedExpandBtnIndex: parseInt(domutil.getData(expandBtnElement, 'index'), 10)\n });\n\n /**\n * click expand btn event\n * @events DayGridClick#expand\n */\n self.fire('expand');\n\n return;\n }\n\n if (!dayGridScheduleView) {\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 DayGridClick#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(DayGridClick);\n\nmodule.exports = DayGridClick;\n","/**\n * @fileoverview Effect module for DayGrid.Move\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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');\n\n/**\n * Class for DayGrid.Move dragging effect.\n * @constructor\n * @param {DayGridMove} daygridMove - instance of DayGridMove.\n */\nfunction DayGridMoveGuide(daygridMove) {\n /**\n * @type {DayGridMove}\n */\n this.daygridMove = daygridMove;\n\n /**\n * The element that actually contains the event element\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 daygridMove.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridMoveGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.daygridMove.off(this);\n this.daygridMove = this.scheduleContainer = this._dragStartXIndex =\n this.elements = this.guideElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridMoveGuide.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 */\nDayGridMoveGuide.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.daygridMove.view.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 */\nDayGridMoveGuide.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 * Highlight element blocks\n * @param {Schedule} model - model\n * @param {HTMLElement} parent - parent element\n */\nDayGridMoveGuide.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 = model.dragBgColor;\n el.style.borderLeftColor = model.borderColor;\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 */\nDayGridMoveGuide.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 * @param {object} dragStartEventData - schedule data from DayGrid.Move handler.\n * @returns {function} function that return schedule block information.\n */\nDayGridMoveGuide.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 = Math.ceil((originScheduleStarts.getTime() -\n renderStartDate.getTime()) / datetime.MILLISECONDS_PER_DAY) || 0,\n fromRight = Math.ceil((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 */\nDayGridMoveGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.daygridMove.view.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'), container);\n domutil.appendHTMLElement('div', guideElement, config.classname('weekday-schedule-cover'));\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 */\nDayGridMoveGuide.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 = DayGridMoveGuide;\n","/**\n * @fileoverview Handler module for WeekdayInWeek view's creation actions.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 dayGridCore = require('./core');\nvar DayGridCreationGuide = require('./creationGuide');\nvar TZDate = require('../../common/timezone').Date;\n\nvar CLICK_DELAY = 300;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CutomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - DayGrid view instance.\n * @param {Base} [controller] - Base controller instance.\n * @param {Options} [options] - calendar Options\n */\nfunction DayGridCreation(dragHandler, view, controller, options) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\n\n /**\n * @type {function}\n */\n this.getScheduleDataFunc = null;\n\n /**\n * @type {DayGridCreationGuide}\n */\n this.guide = new DayGridCreationGuide(this);\n\n /**\n * @type {boolean}\n */\n this._requestOnClick = false;\n\n /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(view.container, 'dblclick', this._onDblClick, this);\n }\n}\n\n/**\n * Destroy method\n */\nDayGridCreation.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n\n if (this.view && this.view.container) {\n domevent.off(this.view.container, 'dblclick', this._onDblClick, this);\n }\n\n this.dragHandler = this.view = this.controller = 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 */\nDayGridCreation.prototype.checkExpectedCondition = function(target) {\n var cssClass = domutil.getClass(target).trim();\n var excludeTarget = true;\n var matches, schedulesElement;\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.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * Request schedule model creation to controller by custom schedules.\n * @fires {DayGridCreation#beforeCreateSchedule}\n * @param {object} scheduleData - schedule data from DayGridCreation module.\n */\nDayGridCreation.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]);\n end = datetime.end(dateRange[xIndex]);\n\n /**\n * @event {DayGridCreation#beforeCreateSchedule}\n * @type {object}\n * @property {string} category - schedule category\n * @property {boolean} isAllDay - whether schedule is fired in view area?\n * @property {Date} start - select start time\n * @property {Date} end - select end time\n * @property {DayGridCreationGuide} guide - DayGridCreationGuide instance\n * @property {string} triggerEventName - event name\n */\n this.fire('beforeCreateSchedule', {\n category: this.view.options.viewName,\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 DayGridCreation#dragstart\n * @param {object} dragStartEventData - Drag#dragStart event handler schedule data.\n */\nDayGridCreation.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.view, dragStartEventData.originEvent);\n this.getScheduleDataFunc = getScheduleDataFunc;\n\n scheduleData = getScheduleDataFunc(dragStartEventData.originEvent);\n\n /**\n * @event DayGridCreation#dragstart\n * @type {object}\n * @property {DayGridView} relatedView - 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('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridCreation#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridCreation.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 DayGridCreation#drag\n * @type {object}\n * @property {DayGridView} relatedView - 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('drag', scheduleData);\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridCreation#dragend\n * @param {object} dragEndEventData - Drag#dragEnd event handler data.\n * @param {string} [overrideEventName] - override emitted event name when supplied.\n */\nDayGridCreation.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 DayGridCreation#dragend\n * @type {object}\n * @property {DayGridView} relatedView - 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 || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#click event handler data.\n */\nDayGridCreation.prototype._onClick = function(clickEventData) {\n var self = this;\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target) || this._disableClick) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData.originEvent);\n scheduleData = getScheduleDataFunc(clickEventData.originEvent);\n\n this._requestOnClick = true;\n setTimeout(function() {\n if (self._requestOnClick) {\n self.fire('click', scheduleData);\n self._createSchedule(scheduleData);\n }\n self._requestOnClick = false;\n }, CLICK_DELAY);\n};\n\n/**\n * Dblclick event handler method.\n * @emits DayGridCreation#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridCreation.prototype._onDblClick = function(clickEventData) {\n var getScheduleDataFunc, scheduleData;\n\n if (!this.checkExpectedCondition(clickEventData.target)) {\n return;\n }\n\n getScheduleDataFunc = this._retriveScheduleData(this.view, clickEventData);\n scheduleData = getScheduleDataFunc(clickEventData);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n\n this._requestOnClick = false;\n};\n\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nDayGridCreation.prototype.invokeCreationClick = function(schedule) {\n var scheduleData = this._retriveScheduleDataFromDate(this.view, schedule.start);\n\n this.fire('click', scheduleData);\n\n this._createSchedule(scheduleData);\n};\n\ncommon.mixin(dayGridCore, DayGridCreation);\nutil.CustomEvents.mixin(DayGridCreation);\n\nmodule.exports = DayGridCreation;\n","/**\n * @fileoverview Guide element for DayGrid.Creation\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar config = require('../../config');\nvar domutil = require('../../common/domutil');\nvar reqAnimFrame = require('../../common/reqAnimFrame');\n\n/**\n * Class for DayGrid.Creation dragging effect.\n * @constructor\n * @param {DayGridCreation} creation - instance of DayGridCreation.\n */\nfunction DayGridCreationGuide(creation) {\n /**\n * @type {DayGridCreation}\n */\n this.creation = creation;\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 this.applyTheme(creation.controller.theme);\n\n creation.on({\n dragstart: this._createGuideElement,\n drag: this._onDrag,\n click: this._createGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridCreationGuide.prototype.destroy = function() {\n this.clearGuideElement();\n this.creation.off(this);\n this.creation = this.scheduleContainer = this.guideElement = null;\n};\n\n/**\n * initialize guide element's default style.\n */\nDayGridCreationGuide.prototype.initializeGuideElement = function() {\n domutil.addClass(this.guideElement, config.classname('daygrid-guide-creation-block'));\n};\n\n/**\n * Drag event handler\n * @param {object} scheduleData - schedule data from DayGrid.Creation handler.\n */\nDayGridCreationGuide.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 */\nDayGridCreationGuide.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 DayGrid.Creation handler.\n * @param {boolean} defer - If set to true, set style in the next frame\n */\nDayGridCreationGuide.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 */\nDayGridCreationGuide.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 DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._createGuideElement = function(dragStartEventData) {\n var creation = this.creation,\n view = creation.view,\n container = view.container,\n scheduleContainer = domutil.find(config.classname('.weekday-grid'), container);\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 DayGrid.Creation.\n */\nDayGridCreationGuide.prototype._onDrag = function(dragEventData) {\n this._refreshGuideElement(dragEventData);\n};\n\nDayGridCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n};\n\nmodule.exports = DayGridCreationGuide;\n","/**\n * @fileoverview Resize handler module for DayGrid view.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 dayGridCore = require('./core');\nvar DayGridResizeGuide = require('./resizeGuide');\nvar TZDate = require('../../common/timezone').Date;\n\n/**\n * @constructor\n * @implements {Handler}\n * @mixes dayGridCore\n * @mixes CustomEvents\n * @param {Drag} [dragHandler] - Drag handler instance.\n * @param {DayGrid} [view] - view instance.\n * @param {Base} [controller] - Base controller instance.\n */\nfunction DayGridResize(dragHandler, view, controller) {\n /**\n * Drag handler instance.\n * @type {Drag}\n */\n this.dragHandler = dragHandler;\n\n /**\n * view instance.\n * @type {DayGrid}\n */\n this.view = view;\n\n /**\n * Base controller instance.\n * @type {Base}\n */\n this.controller = controller;\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 {DayGridResizeGuide}\n */\n this.guide = new DayGridResizeGuide(this);\n}\n\n/**\n * Destroy method\n */\nDayGridResize.prototype.destroy = function() {\n this.guide.destroy();\n this.dragHandler.off(this);\n this.dragHandler = this.view = this.controller =\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 */\nDayGridResize.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.daygrid.getViewIDRegExp);\n\n if (!matches || matches.length < 2) {\n return false;\n }\n\n return util.pick(this.view.children.items, matches[1]);\n};\n\n/**\n * DragStart event handler.\n * @emits DayGridResize#dragstart\n * @param {object} dragStartEventData - schedule data.\n */\nDayGridResize.prototype._onDragStart = function(dragStartEventData) {\n var target = dragStartEventData.target,\n result = this.checkExpectedCondition(target),\n controller = this.controller,\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.view, 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 DayGridResize#dragstart\n * @type {object}\n * @property {View} relatedView - 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('dragstart', scheduleData);\n};\n\n/**\n * Drag event handler method.\n * @emits DayGridResize#drag\n * @param {object} dragEventData - Drag#drag event handler scheduledata.\n */\nDayGridResize.prototype._onDrag = function(dragEventData) {\n var getScheduleDataFunc = this.getScheduleDataFunc;\n\n if (!getScheduleDataFunc) {\n return;\n }\n\n /**\n * @event DayGridResize#drag\n * @type {object}\n * @property {View} relatedView - 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('drag', getScheduleDataFunc(dragEventData.originEvent));\n};\n\n/**\n * Request update schedule instance to base controller.\n * @fires DayGridResize#beforeUpdateSchedule\n * @param {object} scheduleData - schedule data from DayGridResize handler.\n */\nDayGridResize.prototype._updateSchedule = function(scheduleData) {\n var schedule = scheduleData.targetModel,\n dateOffset = scheduleData.xIndex - scheduleData.dragStartXIndex,\n newEnds = new TZDate(schedule.end);\n var changes;\n\n newEnds = newEnds.addDate(dateOffset);\n newEnds = new TZDate(common.maxDate(datetime.end(schedule.start), newEnds));\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event DayGridResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: schedule.getStarts(),\n end: newEnds\n });\n};\n\n/**\n * DragEnd event hander method.\n * @emits DayGridResize#dragend\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 */\nDayGridResize.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 DayGridResize#dragend\n * @type {object}\n * @property {View} relatedView - 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 || 'dragend', scheduleData);\n\n this.getScheduleDataFunc = this._dragStart = null;\n};\n\n/**\n * Click event handler method.\n * @emits DayGridResize#click\n * @param {object} clickEventData - Drag#Click event handler data.\n */\nDayGridResize.prototype._onClick = function(clickEventData) {\n /**\n * @event DayGridResize#click\n * @type {object}\n * @property {View} relatedView - 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, 'click', true);\n};\n\ncommon.mixin(dayGridCore, DayGridResize);\nutil.CustomEvents.mixin(DayGridResize);\n\nmodule.exports = DayGridResize;\n","/**\n * @fileoverview Resize Guide module.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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');\n\n/**\n * @constructor\n * @param {DayGridResize} resizeHandler - instance of DayGridResize\n */\nfunction DayGridResizeGuide(resizeHandler) {\n /**\n * @type {DayGridResize}\n */\n this.resizeHandler = resizeHandler;\n\n /**\n * The element that actually contains the event element\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 /**\n * @type {HTMLDIVElement}\n */\n this.scheduleBlockElement = null;\n\n resizeHandler.on({\n 'dragstart': this._onDragStart,\n 'drag': this._onDrag,\n 'dragend': this._clearGuideElement,\n 'click': this._clearGuideElement\n }, this);\n}\n\n/**\n * Destroy method\n */\nDayGridResizeGuide.prototype.destroy = function() {\n this._clearGuideElement();\n this.resizeHandler.off(this);\n this.resizeHandler = this.scheduleContainer = this.getScheduleDataFunc =\n this.guideElement = this.scheduleBlockElement = null;\n};\n\n/**\n * Clear guide element.\n */\nDayGridResizeGuide.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 if (this.scheduleBlockElement) {\n domutil.removeClass(this.scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\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 */\nDayGridResizeGuide.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 */\nDayGridResizeGuide.prototype.getGuideElementWidthFunc = function(dragStartEventData) {\n var model = dragStartEventData.model,\n viewOptions = this.resizeHandler.view.options,\n fromLeft = Math.ceil(\n (model.start - viewOptions.renderStartDate) / datetime.MILLISECONDS_PER_DAY\n ) || 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 */\nDayGridResizeGuide.prototype._onDragStart = function(dragStartEventData) {\n var container = this.resizeHandler.view.container,\n scheduleBlockElement = this.scheduleBlockElement = dragStartEventData.scheduleBlockElement,\n guideElement = this.guideElement = 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'), container);\n domutil.addClass(guideElement, config.classname('daygrid-guide-move'));\n domutil.addClass(scheduleBlockElement, config.classname('weekday-schedule-block-dragging-dim'));\n\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 */\nDayGridResizeGuide.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 = DayGridResizeGuide;\n","/**\n * @fileoverview Allday event click event hander module\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @fileoverview Handling creation events from drag handler and time grid view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 common = require('../../common/common');\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 * @param {Options} [options] - calendar Options\n */\nfunction TimeCreation(dragHandler, timeGridView, baseController, options) {\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 /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(timeGridView.container, 'dblclick', this._onDblClick, this);\n }\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 nearestGridEndTimeY = eventData.nearestGridEndTimeY\n ? eventData.nearestGridEndTimeY\n : new TZDate(nearestGridTimeY).addMinutes(30),\n baseDate,\n dateStart,\n dateEnd,\n start,\n end;\n\n if (!createRange) {\n createRange = [\n nearestGridTimeY,\n nearestGridEndTimeY\n ];\n }\n\n baseDate = new TZDate(relatedView.getDate());\n dateStart = datetime.start(baseDate);\n dateEnd = datetime.getStartOfNextDay(baseDate);\n start = common.limitDate(createRange[0], dateStart, dateEnd);\n end = common.limitDate(createRange[1], dateStart, dateEnd);\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].addMinutes(30);\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 || this._disableClick) {\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\n/**\n * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nTimeCreation.prototype.invokeCreationClick = function(schedule) {\n var opt = this.timeGridView.options,\n range = datetime.range(\n opt.renderStartDate,\n opt.renderEndDate,\n datetime.MILLISECONDS_PER_DAY),\n hourStart = opt.hourStart,\n targetDate = schedule.start;\n var eventData, timeView;\n\n util.forEach(range, function(date, index) {\n if (datetime.isSameDate(date, targetDate)) {\n timeView = this.timeGridView.children.toArray()[index];\n }\n }, this);\n\n // If start date is not in current date, set start date as first date.\n if (!timeView) {\n timeView = this.timeGridView.children.toArray()[0];\n }\n\n eventData = this._retriveScheduleDataFromDate(timeView, schedule.start, schedule.end, hourStart);\n\n this.fire('timeCreationClick', eventData);\n\n this._createSchedule(eventData);\n};\n\ntimeCore.mixin(TimeCreation);\nutil.CustomEvents.mixin(TimeCreation);\n\nmodule.exports = TimeCreation;\n","/**\n * @fileoverview Module for Time.Creation effect while dragging.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 MIN60 = (datetime.MILLISECONDS_PER_MINUTES * 60);\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 this.applyTheme(timeCreation.baseController.theme);\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 {TZDate} start - start time of schedule to create\n * @param {TZDate} 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(start, 'HH:mm') +\n ' - ' + datetime.format(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.getStartOfNextDay(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 todayStart,\n 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 {TZDate} start - relative time value of dragstart point\n * @param {TZDate} 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.limitDate(start, unitData[2], unitData[3]);\n end = common.limitDate(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 {TZDate} todayStart - time for view's start date\n * @returns {function} UI data calculator function\n */\nTimeCreationGuide.prototype._getStyleDataFunc = function(viewHeight, hourLength, todayStart) {\n var todayStartTime = todayStart;\n var todayEndTime = datetime.end(todayStart);\n\n /**\n * Get top, time value from schedule data\n * @param {object} scheduleData - schedule data object\n * @returns {number[]} top, time\n */\n function getStyleData(scheduleData) {\n var minMinutes = 30;\n var gridY = scheduleData.nearestGridY,\n gridTimeY = scheduleData.nearestGridTimeY,\n gridEndTimeY = scheduleData.nearestGridEndTimeY || new TZDate(gridTimeY).addMinutes(minMinutes),\n top, startTime, endTime;\n\n top = common.limit(ratio(hourLength, viewHeight, gridY), [0], [viewHeight]);\n startTime = common.limitDate(gridTimeY, todayStartTime, todayEndTime);\n endTime = common.limitDate(gridEndTimeY, todayStartTime, todayEndTime);\n\n return [top, startTime, endTime];\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 hourStart = datetime.millisecondsFrom('hour', dragStartEventData.hourStart) || 0,\n unitData, styleFunc, styleData, result, top, height, start, end;\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 start = new TZDate(styleData[1]).addMinutes(datetime.minutesFromHours(hourStart));\n end = new TZDate(styleData[2]).addMinutes(datetime.minutesFromHours(hourStart));\n top = styleData[0];\n height = (unitData[4] * (end - start) / MIN60);\n\n result = this._limitStyleData(\n top,\n height,\n start,\n end\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 minutes30 = 30;\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 new TZDate(endStyle[1]).addMinutes(minutes30)\n );\n } else {\n result = this._limitStyleData(\n endStyle[0],\n (startStyle[0] - endStyle[0]) + heightOfHalfHour,\n endStyle[1],\n new TZDate(startStyle[1]).addMinutes(minutes30)\n );\n result.push(true);\n }\n\n reqAnimFrame.requestAnimFrame(function() {\n refreshGuideElement.apply(null, result);\n });\n};\n\nTimeCreationGuide.prototype.applyTheme = function(theme) {\n var style = this.guideElement.style;\n var timeStyle = this.guideTimeElement.style;\n\n // block\n style.backgroundColor = theme.common.creationGuide.backgroundColor;\n style.border = theme.common.creationGuide.border;\n\n // label\n timeStyle.color = theme.week.creationGuide.color;\n timeStyle.fontSize = theme.week.creationGuide.fontSize;\n timeStyle.fontWeight = theme.week.creationGuide.fontWeight;\n};\n\nmodule.exports = TimeCreationGuide;\n","/**\n * @fileoverview Handling move schedules from drag handler and time grid view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 domevent = require('../../common/domevent');\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 dragHandler.on('mousedown', this._onMouseDown, 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#mousedown\n * @param {object} mouseDownEventData - Drag#mousedown schedule data.\n */\nTimeMove.prototype._onMouseDown = function(mouseDownEventData) {\n var target = mouseDownEventData.target,\n timeView = this.checkExpectCondition(target),\n blockElement = domutil.closest(target, config.classname('.time-date-schedule-block'));\n\n if (!timeView || !blockElement) {\n return;\n }\n\n // EventTarget.target is not changed in mousemove event even if mouse is over the other element.\n // It's different with other browsers(IE, Chrome, Safari)\n if (util.browser.firefox) {\n domevent.preventDefault(mouseDownEventData.originEvent);\n }\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 newStarts,\n newEnds;\n\n if (!schedule || !currentView) {\n return;\n }\n\n timeDiff -= datetime.millisecondsFrom('minutes', 30);\n newStarts = new TZDate(schedule.getStarts()).addMilliseconds(timeDiff);\n newEnds = new TZDate(schedule.getEnds()).addMilliseconds(timeDiff);\n\n if (currentView) {\n dateDiff = currentView.getDate() - relatedView.getDate();\n }\n\n newStarts.addMilliseconds(dateDiff);\n newEnds.addMilliseconds(dateDiff);\n\n /**\n * @event TimeMove#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time 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 changes: {\n start: newStarts,\n end: newEnds\n },\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 new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n new TZDate(scheduleData.nearestGridTimeY).addMinutes(30)\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 * @fileoverview Module for Time.Move effect while dragging.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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');\nvar datetime = require('../../common/datetime');\nvar common = require('../../common/common');\n\nvar SCHEDULE_MIN_DURATION = datetime.MILLISECONDS_SCHEDULE_MIN_DURATION;\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._viewModel = 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 = this._viewModel = 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 = this._viewModel = 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\n/**\n * Refresh guide element\n * @param {string} top - guide element's style top.\n * @param {Schedule} model - updated model\n * @param {object} viewModel - view model\n */\nTimeMoveGuide.prototype._refreshGuideElement = function(top, model, viewModel) {\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(util.extend({model: model}, viewModel)));\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 var duration, modelDuration, goingDuration, comingDuration;\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 );\n\n modelDuration = this._model.duration();\n modelDuration = modelDuration > SCHEDULE_MIN_DURATION ? modelDuration : SCHEDULE_MIN_DURATION;\n goingDuration = datetime.millisecondsFrom('minutes', this._model.goingDuration);\n comingDuration = datetime.millisecondsFrom('minutes', this._model.comingDuration);\n duration = goingDuration + modelDuration + comingDuration;\n\n this._lastDrag = dragStartEventData;\n this._viewModel = {\n hasGoingDuration: goingDuration > 0,\n hasComingDuration: comingDuration > 0,\n goingDurationHeight: common.ratio(duration, goingDuration, 100),\n modelDurationHeight: common.ratio(duration, modelDuration, 100),\n comingDurationHeight: common.ratio(duration, comingDuration, 100)\n };\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 gridDiff = dragEventData.nearestGridY - this._lastDrag.nearestGridY,\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()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._model.end = new TZDate(this._model.getEnds()).addMinutes(datetime.minutesFromHours(gridDiff));\n this._lastDrag = dragEventData;\n\n this._refreshGuideElement(top, this._model, this._viewModel);\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(util.extend({model: this._model}, this._viewModel)));\n this._guideLayer.show();\n};\n\nmodule.exports = TimeMoveGuide;\n","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/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=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":24},\"end\":{\"line\":4,\"column\":38}}}) : helper)))\n + \"time-schedule-content \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":60},\"end\":{\"line\":4,\"column\":74}}}) : helper)))\n + \"time-schedule-content-travel-time\\\" style=\\\"border-color:\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \"; border-bottom: 1px dashed \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; height: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"goingDurationHeight\") || (depth0 != null ? lookupProperty(depth0,\"goingDurationHeight\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"goingDurationHeight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":203},\"end\":{\"line\":4,\"column\":226}}}) : helper)))\n + \"%;\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"goingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"goingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"goingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":230},\"end\":{\"line\":4,\"column\":260}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":24},\"end\":{\"line\":10,\"column\":38}}}) : helper)))\n + \"time-schedule-content \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":60},\"end\":{\"line\":10,\"column\":74}}}) : helper)))\n + \"time-schedule-content-travel-time\\\" style=\\\"border-color:\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \"; border-top: 1px dashed \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; height: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"comingDurationHeight\") || (depth0 != null ? lookupProperty(depth0,\"comingDurationHeight\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"comingDurationHeight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":200},\"end\":{\"line\":10,\"column\":224}}}) : helper)))\n + \"%;\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"comingDuration-tmpl\")||(depth0 && lookupProperty(depth0,\"comingDuration-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"comingDuration-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":228},\"end\":{\"line\":10,\"column\":259}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":38},\"end\":{\"line\":13,\"column\":52}}}) : helper)))\n + \"time-resize-handle handle-x\\\"> </div>\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"time-date-schedule-block\\\" data-id=\\\"\"\n + alias4((lookupProperty(helpers,\"stamp\")||(depth0 && lookupProperty(depth0,\"stamp\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"stamp\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":61},\"end\":{\"line\":1,\"column\":76}}}))\n + \"\\\" style=\\\"width: 100%; height: 100%;\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":16},\"end\":{\"line\":2,\"column\":30}}}) : helper)))\n + \"time-schedule \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":44},\"end\":{\"line\":2,\"column\":58}}}) : helper)))\n + \"time-date-schedule-block-focused\\\" style=\\\"color: #ffffff; background-color:\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"dragBgColor\") : stack1), depth0))\n + \";\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasGoingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":8},\"end\":{\"line\":5,\"column\":15}}})) != null ? stack1 : \"\")\n + \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":24},\"end\":{\"line\":6,\"column\":38}}}) : helper)))\n + \"time-schedule-content\\\" style=\\\"height: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"modelDurationHeight\") || (depth0 != null ? lookupProperty(depth0,\"modelDurationHeight\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"modelDurationHeight\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":76},\"end\":{\"line\":6,\"column\":99}}}) : helper)))\n + \"%; border-color:\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\\">\\n \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":16},\"end\":{\"line\":7,\"column\":37}}})) != null ? stack1 : \"\")\n + \"\\n </div>\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hasComingDuration\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":11,\"column\":15}}})) != null ? stack1 : \"\")\n + \" </div>\\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"croppedEnd\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":13,\"column\":104}}})) != null ? stack1 : \"\")\n + \"\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":16},\"end\":{\"line\":14,\"column\":30}}}) : helper)))\n + \"time-date-schedule-block-cover\\\"></div>\\n</div>\\n\";\n},\"useData\":true});","/**\n * @fileoverview Handling resize schedules from drag handler and time grid view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 common = require('../../common/common');\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 ctrl = this.baseController,\n targetModelID,\n getScheduleDataFunc,\n scheduleData;\n\n if (!timeView || !blockElement) {\n return;\n }\n\n targetModelID = domutil.getData(blockElement, 'id');\n getScheduleDataFunc = this._getScheduleDataFunc = this._retriveScheduleData(timeView);\n scheduleData = this._dragStart = getScheduleDataFunc(\n dragStartEventData.originEvent, {\n targetModelID: targetModelID,\n schedule: ctrl.schedules.items[targetModelID]\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 * @property {Schedule} schedule - schedule data\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 var changes;\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()).addMilliseconds(timeDiff);\n\n if (newEnds > dateEnd) {\n newEnds = new TZDate(dateEnd);\n }\n\n if (newEnds.getTime() - schedule.getStarts().getTime() < datetime.millisecondsFrom('minutes', 30)) {\n newEnds = new TZDate(schedule.getStarts()).addMinutes(30);\n }\n\n changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnds}\n );\n\n /**\n * @event TimeResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\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 new TZDate(scheduleData.timeY).addMinutes(30)\n ];\n\n scheduleData.nearestRange = [\n dragStart.nearestGridTimeY,\n scheduleData.nearestGridTimeY.addMinutes(30)\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 * @fileoverview Module for Time.Resize effect while dragging.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 datetime = require('../../common/datetime');\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 /**\n * @type {Schedule}\n */\n this._schedule = null;\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 {number} guideHeight - guide element's style height.\n * @param {number} minTimeHeight - time element's min height\n * @param {number} timeHeight - time element's height.\n */\nTimeResizeGuide.prototype._refreshGuideElement = function(guideHeight, minTimeHeight, timeHeight) {\n var guideElement = this.guideElement;\n var timeElement;\n\n if (!guideElement) {\n return;\n }\n\n timeElement = domutil.find(config.classname('.time-schedule-content-time'), guideElement);\n\n reqAnimFrame.requestAnimFrame(function() {\n guideElement.style.height = guideHeight + 'px';\n guideElement.style.display = 'block';\n\n if (timeElement) {\n timeElement.style.height = timeHeight + 'px';\n timeElement.style.minHeight = minTimeHeight + 'px';\n }\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 schedule = dragStartEventData.schedule,\n guideElement;\n\n if (!util.browser.msie) {\n domutil.addClass(global.document.body, config.classname('resizing'));\n }\n\n if (!originElement || !schedule) {\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 this._schedule = schedule;\n\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 goingDuration = this._schedule.goingDuration,\n modelDuration = this._schedule.duration() / datetime.MILLISECONDS_PER_MINUTES,\n comingDuration = this._schedule.comingDuration,\n minutesLength = hourLength * 60,\n timeHeight,\n timeMinHeight,\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 timeMinHeight = minHeight;\n minHeight += ratio(minutesLength, viewHeight, goingDuration) + ratio(minutesLength, viewHeight, comingDuration);\n // smaller than 24h\n maxHeight = viewHeight - guideTop;\n\n height = Math.max(height, minHeight);\n height = Math.min(height, maxHeight);\n\n timeHeight = ratio(minutesLength, viewHeight, modelDuration) + gridYOffsetPixel;\n\n this._refreshGuideElement(height, timeMinHeight, timeHeight);\n};\n\nmodule.exports = TimeResizeGuide;\n","/**\n * @fileoverview Month view factory module\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 common = require('../common/common'),\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 ScheduleCreationPopup = require('../view/popup/scheduleCreationPopup'),\n ScheduleDetailPopup = require('../view/popup/scheduleDetailPopup'),\n Schedule = require('../model/schedule');\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 * @param {string[]} daynames - daynames to use upside of month more view\n * @returns {object} view model\n */\nfunction getViewModelForMoreLayer(date, target, schedules, daynames) {\n schedules.each(function(schedule) {\n var model = schedule.model;\n schedule.hasMultiDates = datetime.hasMultiDates(model.start, model.end);\n });\n\n return {\n target: target,\n date: datetime.format(date, 'YYYY.MM.DD'),\n dayname: daynames[date.getDay()],\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, createView;\n var clickHandler, creationHandler, resizeHandler, moveHandler, clearSchedulesHandler, onUpdateSchedule;\n var onShowCreationPopup, onSaveNewSchedule, onShowEditPopup;\n var detailView, onShowDetailPopup, onDeleteSchedule, onEditSchedule;\n\n monthViewContainer = domutil.appendHTMLElement(\n 'div', layoutContainer, config.classname('month'));\n\n monthView = new Month(options, monthViewContainer, baseController.Month);\n moreView = new More(options.month, layoutContainer, baseController.theme);\n\n // handlers\n clickHandler = new MonthClick(dragHandler, monthView, baseController);\n if (!options.isReadOnly) {\n creationHandler = new MonthCreation(dragHandler, monthView, baseController, options);\n resizeHandler = new MonthResize(dragHandler, monthView, baseController);\n moveHandler = new MonthMove(dragHandler, monthView, baseController);\n }\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, monthView.options.daynames));\n\n schedules.each(function(scheduleViewModel) {\n if (scheduleViewModel) {\n /**\n * @event More#afterRenderSchedule\n */\n monthView.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n\n monthView.fire('clickMore', {\n date: clickMoreSchedule.date,\n target: moreView.getMoreViewElement()\n });\n }\n });\n\n // binding popup for schedules creation\n if (options.useCreationPopup) {\n createView = new ScheduleCreationPopup(layoutContainer, baseController.calendars, options.usageStatistics);\n\n onSaveNewSchedule = function(scheduleData) {\n creationHandler.fire('beforeCreateSchedule', util.extend(scheduleData, {\n useCreationPopup: true\n }));\n };\n createView.on('beforeCreateSchedule', onSaveNewSchedule);\n }\n\n // binding popup for schedule detail\n if (options.useDetailPopup) {\n detailView = new ScheduleDetailPopup(layoutContainer, baseController.calendars);\n onShowDetailPopup = function(eventData) {\n var scheduleId = eventData.schedule.calendarId;\n eventData.calendar = common.find(baseController.calendars, function(calendar) {\n return calendar.id === scheduleId;\n });\n\n if (options.isReadOnly) {\n eventData.schedule = util.extend({}, eventData.schedule, {isReadOnly: true});\n }\n\n detailView.render(eventData);\n };\n onDeleteSchedule = function(eventData) {\n if (creationHandler) {\n creationHandler.fire('beforeDeleteSchedule', eventData);\n }\n };\n onEditSchedule = function(eventData) {\n moveHandler.fire('beforeUpdateSchedule', eventData);\n };\n\n clickHandler.on('clickSchedule', onShowDetailPopup);\n\n detailView.on('beforeDeleteSchedule', onDeleteSchedule);\n\n if (options.useCreationPopup) {\n onShowEditPopup = function(eventData) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n };\n createView.on('beforeUpdateSchedule', onEditSchedule);\n detailView.on('beforeUpdateSchedule', onShowEditPopup);\n } else {\n detailView.on('beforeUpdateSchedule', onEditSchedule);\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 if (moveHandler) {\n moveHandler.on('monthMoveStart_from_morelayer', function() {\n moreView.hide();\n });\n }\n\n monthView.handler = {\n click: {\n 'default': clickHandler\n }\n };\n\n if (!options.isReadOnly) {\n monthView.handler = util.extend(monthView.handler, {\n creation: {\n 'default': creationHandler\n },\n resize: {\n 'default': resizeHandler\n },\n move: {\n 'default': moveHandler\n }\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 if (options.useCreationPopup && options.useDetailPopup) {\n createView.off('beforeUpdateSchedule', onUpdateSchedule);\n }\n\n if (options.useCreationPopup) {\n if (creationHandler) {\n creationHandler.off('beforeCreateSchedule', onShowCreationPopup);\n }\n createView.off('saveSchedule', onSaveNewSchedule);\n createView.destroy();\n }\n\n if (options.useDetailPopup) {\n clickHandler.off('clickSchedule', onShowDetailPopup);\n detailView.off('beforeUpdateSchedule', onUpdateSchedule);\n detailView.off('beforeDeleteSchedule', onDeleteSchedule);\n detailView.destroy();\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 openCreationPopup: function(schedule) {\n if (createView && creationHandler) {\n creationHandler.invokeCreationClick(Schedule.create(schedule));\n }\n },\n showCreationPopup: function(eventData) {\n if (createView) {\n createView.setCalendars(baseController.calendars);\n createView.render(eventData);\n }\n },\n hideMoreView: function() {\n if (moreView) {\n moreView.hide();\n }\n }\n };\n}\n\nmodule.exports = createMonthView;\n","/**\n * @fileoverview Month view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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('../template/month/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 var theme = controller ? controller.theme : null;\n var monthOption;\n\n options = options || {};\n monthOption = options ? options.month : {};\n\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: parseInt(controller.theme.month.dayname.height, 10) || 42},\n {autoHeight: true}\n ]\n }, container, theme);\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 isAlways6Week: true,\n isReadOnly: options.isReadOnly,\n grid: {\n header: {\n height: 34\n },\n footer: {\n height: 3\n }\n }\n }, monthOption);\n\n this.options.grid.header = util.extend({\n height: 34\n }, util.pick(monthOption, 'grid', 'header'));\n this.options.grid.footer = util.extend({\n height: 3\n }, util.pick(monthOption, '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} renderMonth - month to render YYYY-MM, weeks2/3 to render YYYY-MM-DD\n * @returns {array.<Date[]>} calendar array\n */\nMonth.prototype._getMonthCalendar = function(renderMonth) {\n var date = new TZDate(renderMonth);\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: this.options.isAlways6Week,\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.<Date[]>} calendar - calendar array from datetime#arr2dCalendar\n * @param {Theme} theme - theme instance\n */\nMonth.prototype._renderChildren = function(container, calendar, theme) {\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 var isReadOnly = opt.isReadOnly;\n\n container.innerHTML = '';\n this.children.clear();\n\n util.forEach(calendar, function(weekArr) {\n var start = new TZDate(weekArr[0]),\n end = new TZDate(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: start,\n renderEndDate: end,\n narrowWeekend: narrowWeekend,\n startDayOfWeek: startDayOfWeek,\n visibleWeeksCount: visibleWeeksCount,\n visibleScheduleCount: visibleScheduleCount,\n grid: gridOption,\n scheduleHeight: parseInt(theme.month.schedule.height, 10),\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10),\n isReadOnly: isReadOnly\n }, weekdayViewContainer);\n\n self.addChild(weekdayView);\n });\n};\n\n/**\n * Render month view\n * @override\n */\nMonth.prototype.render = function() {\n var self = this,\n 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 theme = controller ? controller.theme : null,\n styles = this._getStyles(theme),\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 color: this._getDayNameColor(theme, day)\n };\n },\n this\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 styles: styles\n };\n\n vLayout.panels[0].container.innerHTML = tmpl(baseViewModel);\n\n this._renderChildren(vLayout.panels[1].container, calendar, theme);\n\n baseViewModel.panelHeight = vLayout.panels[1].getHeight();\n\n this.children.each(function(childView) {\n var start = datetime.start(childView.options.renderStartDate);\n var end = datetime.start(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 panelHeight: baseViewModel.panelHeight,\n theme: theme\n };\n\n childView.render(viewModel);\n\n self._invokeAfterRenderSchedule(eventsInDateRange);\n });\n};\n\n/**\n * Fire 'afterRenderSchedule' event\n * @param {Array} matrices - schedule matrices from view model\n * @fires Month#afterRenderSchedule\n */\nMonth.prototype._invokeAfterRenderSchedule = function(matrices) {\n var self = this;\n util.forEachArray(matrices, function(matrix) {\n util.forEachArray(matrix, function(column) {\n util.forEachArray(column, function(scheduleViewModel) {\n if (scheduleViewModel && !scheduleViewModel.hidden) {\n /**\n * @event Month#afterRenderSchedule\n */\n self.fire('afterRenderSchedule', {schedule: scheduleViewModel.model});\n }\n });\n });\n });\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMonth.prototype._getStyles = function(theme) {\n var styles = {};\n var dayname;\n\n if (theme) {\n dayname = theme.month.dayname;\n\n styles.borderTop = dayname.borderTop || theme.common.border;\n styles.borderLeft = dayname.borderLeft || theme.common.border;\n styles.height = dayname.height;\n styles.paddingLeft = dayname.paddingLeft;\n styles.paddingRight = dayname.paddingRight;\n styles.fontSize = dayname.fontSize;\n styles.backgroundColor = dayname.backgroundColor;\n styles.fontWeight = dayname.fontWeight;\n styles.textAlign = dayname.textAlign;\n }\n\n return styles;\n};\n\n/**\n * Get a day name color\n * @param {Theme} theme - theme instance\n * @param {number} day - day number\n * @returns {string} style - color style\n */\nMonth.prototype._getDayNameColor = function(theme, day) {\n var color = '';\n\n if (theme) {\n if (day === 0) {\n color = theme.common.holiday.color;\n } else if (day === 6) {\n color = theme.common.saturday.color;\n } else {\n color = theme.common.dayname.color;\n }\n }\n\n return color;\n};\n\nmodule.exports = Month;\n","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/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=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":16},\"end\":{\"line\":4,\"column\":30}}}) : helper)))\n + \"month-dayname-item\\\"\\n style=\\\"position: absolute;\\n width: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"width\") || (depth0 != null ? lookupProperty(depth0,\"width\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"width\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":23},\"end\":{\"line\":6,\"column\":32}}}) : helper)))\n + \"%;\\n left: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"left\") || (depth0 != null ? lookupProperty(depth0,\"left\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"left\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":22},\"end\":{\"line\":7,\"column\":30}}}) : helper)))\n + \"%;\\n padding-left: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"paddingLeft\")), depth0))\n + \";\\n padding-right: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"paddingRight\")), depth0))\n + \";\\n line-height: \"\n + alias4(alias5(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"height\")), depth0))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(data && lookupProperty(data,\"last\")),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":16},\"end\":{\"line\":13,\"column\":27}}})) != null ? stack1 : \"\")\n + \" \\\">\\n <span class=\\\"\"\n + alias4((lookupProperty(helpers,\"holiday\")||(depth0 && lookupProperty(depth0,\"holiday\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"day\") : depth0),{\"name\":\"holiday\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":21},\"end\":{\"line\":15,\"column\":36}}}))\n + \"\\\" style=\\\"color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"color\") || (depth0 != null ? lookupProperty(depth0,\"color\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"color\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":52},\"end\":{\"line\":15,\"column\":61}}}) : helper)))\n + \";\\\">\\n \"\n + ((stack1 = (lookupProperty(helpers,\"monthDayname-tmpl\")||(depth0 && lookupProperty(depth0,\"monthDayname-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"monthDayname-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":12},\"end\":{\"line\":16,\"column\":40}}})) != null ? stack1 : \"\")\n + \"\\n </span>\\n </div>\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderLeft\")), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.escapeExpression, alias3=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"month-dayname\\\"\\n style=\\\"border-top: \"\n + alias2(alias3(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"borderTop\") : stack1), depth0))\n + \"; height: \"\n + alias2(alias3(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"height\") : stack1), depth0))\n + \"; font-size: \"\n + alias2(alias3(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"fontSize\") : stack1), depth0))\n + \"; background-color: \"\n + alias2(alias3(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"backgroundColor\") : stack1), depth0))\n + \"; text-align: \"\n + alias2(alias3(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"textAlign\") : stack1), depth0))\n + \"; font-weight: \"\n + alias2(alias3(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"fontWeight\") : stack1), depth0))\n + \";\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"daynames\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":19,\"column\":9}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"useData\":true});","/**\n * @fileoverview Monthday in month view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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('../template/month/weekdayInMonth.hbs'),\n scheduleTmpl = require('../template/month/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 * @param {number} panelHeight - panel's height for pre-calculation\n * @returns {number} limit index\n */\nWeekdayInMonth.prototype._getRenderLimitIndex = function(panelHeight) {\n var opt = this.options;\n var containerHeight = panelHeight || 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() + 1,\n exceedDate = this.getExceedDate(renderLimitIdx, viewModel.eventsInDateRange, viewModel.range),\n styles = this._getStyles(viewModel.theme);\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,\n isReadOnly: opt.isReadOnly,\n styles: styles\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\n if (!this.options.visibleWeeksCount) {\n setIsOtherMonthFlag(baseViewModel.dates, this.options.renderMonth, viewModel.theme);\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 scheduleContainer.innerHTML = scheduleTmpl(baseViewModel);\n\n common.setAutoEllipsis(\n config.classname('.weekday-schedule-title'),\n container,\n true\n );\n};\n\nWeekdayInMonth.prototype._beforeDestroy = function() {\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nWeekdayInMonth.prototype._getStyles = function(theme) {\n var styles = {};\n\n if (theme) {\n styles.borderTop = theme.common.border;\n styles.borderLeft = theme.common.border;\n styles.fontSize = theme.month.day.fontSize;\n styles.borderRadius = theme.month.schedule.borderRadius;\n styles.marginLeft = theme.month.schedule.marginLeft;\n styles.marginRight = theme.month.schedule.marginRight;\n styles.scheduleBulletTop = this.options.scheduleHeight / 3;\n }\n\n return styles;\n};\n\n/**\n * 현재 달이 아닌 날짜에 대해 isOtherMonth = true 플래그를 추가한다.\n * @param {Array} dates - 날짜정보 배열\n * @param {TZDate} renderMonth - 현재 렌더링중인 월 (YYYYMM)\n * @param {Theme} theme - theme instance\n */\nfunction setIsOtherMonthFlag(dates, renderMonth, theme) {\n var month = renderMonth.getMonth() + 1;\n\n util.forEach(dates, function(dateObj) {\n var isOtherMonth = dateObj.month !== month;\n dateObj.isOtherMonth = isOtherMonth;\n\n if (isOtherMonth) {\n dateObj.color = Weekday.prototype._getDayNameColor(theme, dateObj.day, dateObj.isToday, isOtherMonth);\n }\n });\n}\n\nmodule.exports = WeekdayInMonth;\n","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/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=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":16},\"end\":{\"line\":7,\"column\":30}}}) : helper)))\n + \"weekday-grid-line \"\n + alias4((lookupProperty(helpers,\"holiday\")||(depth0 && lookupProperty(depth0,\"holiday\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"day\") : depth0),{\"name\":\"holiday\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":48},\"end\":{\"line\":7,\"column\":63}}}))\n + ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"date\") : depth0),\"!==\",1,{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":63},\"end\":{\"line\":7,\"column\":119}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isToday\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":119},\"end\":{\"line\":7,\"column\":161}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isOtherMonth\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":161},\"end\":{\"line\":7,\"column\":213}}})) != null ? stack1 : \"\")\n + \"\\\"\\n style=\\\"width:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"width\") || (depth0 != null ? lookupProperty(depth0,\"width\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"width\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":21},\"end\":{\"line\":8,\"column\":30}}}) : helper)))\n + \"%; left:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"left\") || (depth0 != null ? lookupProperty(depth0,\"left\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"left\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":38},\"end\":{\"line\":8,\"column\":46}}}) : helper)))\n + \"%; background-color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"backgroundColor\") || (depth0 != null ? lookupProperty(depth0,\"backgroundColor\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"backgroundColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":67},\"end\":{\"line\":8,\"column\":86}}}) : helper)))\n + \"; font-size: \"\n + alias4(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"fontSize\")), depth0))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(data && lookupProperty(data,\"last\")),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":11,\"column\":19}}})) != null ? stack1 : \"\")\n + \" \\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":20},\"end\":{\"line\":13,\"column\":34}}}) : helper)))\n + \"weekday-grid-header\\\">\\n <span style=\\\"color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"color\") || (depth0 != null ? lookupProperty(depth0,\"color\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"color\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":32},\"end\":{\"line\":14,\"column\":41}}}) : helper)))\n + \";\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"monthGridHeader-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridHeader-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"monthGridHeader-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":44},\"end\":{\"line\":14,\"column\":75}}})) != null ? stack1 : \"\")\n + \"</span>\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":12},\"end\":{\"line\":17,\"column\":19}}})) != null ? stack1 : \"\")\n + \" </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":19,\"column\":20},\"end\":{\"line\":19,\"column\":34}}}) : helper)))\n + \"weekday-grid-footer\\\">\\n <span style=\\\"color: \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"color\") || (depth0 != null ? lookupProperty(depth0,\"color\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"color\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":32},\"end\":{\"line\":20,\"column\":41}}}) : helper)))\n + \";\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"monthGridFooter-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridFooter-tmpl\"))||alias2).call(alias1,depth0,{\"name\":\"monthGridFooter-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":44},\"end\":{\"line\":20,\"column\":75}}})) != null ? stack1 : \"\")\n + \"</span>\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(12, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":21,\"column\":12},\"end\":{\"line\":23,\"column\":19}}})) != null ? stack1 : \"\")\n + \" </div>\\n </div>\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":84},\"end\":{\"line\":7,\"column\":98}}}) : helper)))\n + \"near-month-day\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":135},\"end\":{\"line\":7,\"column\":149}}}) : helper)))\n + \"today\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":182},\"end\":{\"line\":7,\"column\":196}}}) : helper)))\n + \"extra-date\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-right:\"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderLeft\")), depth0))\n + \";\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":29},\"end\":{\"line\":16,\"column\":43}}}) : helper)))\n + \"weekday-exceed-in-month\\\" data-ymd=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"ymd\") || (depth0 != null ? lookupProperty(depth0,\"ymd\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"ymd\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":78},\"end\":{\"line\":16,\"column\":85}}}) : helper)))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"monthGridHeaderExceed-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridHeaderExceed-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"monthGridHeaderExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":87},\"end\":{\"line\":16,\"column\":135}}})) != null ? stack1 : \"\")\n + \"</span>\\n\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":29},\"end\":{\"line\":22,\"column\":43}}}) : helper)))\n + \"weekday-exceed-in-month\\\" data-ymd=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"ymd\") || (depth0 != null ? lookupProperty(depth0,\"ymd\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"ymd\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":78},\"end\":{\"line\":22,\"column\":85}}}) : helper)))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"monthGridFooterExceed-tmpl\")||(depth0 && lookupProperty(depth0,\"monthGridFooterExceed-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"hiddenSchedules\") : depth0),{\"name\":\"monthGridFooterExceed-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":87},\"end\":{\"line\":22,\"column\":135}}})) != null ? stack1 : \"\")\n + \"</span>\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"weekday-border\\\"\\n style=\\\"\\n border-top: \"\n + alias4(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"borderTop\") : stack1), depth0))\n + \";\\n\\\"></div>\\n<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":12},\"end\":{\"line\":5,\"column\":26}}}) : helper)))\n + \"weekday-grid\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"dates\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":0},\"end\":{\"line\":26,\"column\":11}}})) != null ? stack1 : \"\")\n + \"</div>\\n<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":28,\"column\":12},\"end\":{\"line\":28,\"column\":26}}}) : helper)))\n + \"weekday-schedules\\\"></div>\\n\";\n},\"useData\":true});","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":0},\"end\":{\"line\":80,\"column\":11}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"each\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":0},\"end\":{\"line\":79,\"column\":11}}})) != null ? stack1 : \"\");\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":0},\"end\":{\"line\":78,\"column\":9}}})) != null ? stack1 : \"\");\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n\"\n + ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"top\") : depth0),\"<\",((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"renderLimitIdx\")),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":77,\"column\":13}}})) != null ? stack1 : \"\");\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div data-id=\\\"\"\n + alias3((lookupProperty(helpers,\"stamp\")||(depth0 && lookupProperty(depth0,\"stamp\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"stamp\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":18},\"end\":{\"line\":6,\"column\":33}}}))\n + \"\\\"\\n class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias4 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":16},\"end\":{\"line\":7,\"column\":30}}}) : helper)))\n + \"weekday-schedule-block\\n \"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias4 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":16},\"end\":{\"line\":8,\"column\":30}}}) : helper)))\n + \"weekday-schedule-block-\"\n + alias3((lookupProperty(helpers,\"stamp\")||(depth0 && lookupProperty(depth0,\"stamp\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"stamp\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":53},\"end\":{\"line\":8,\"column\":68}}}))\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"exceedLeft\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":12},\"end\":{\"line\":9,\"column\":71}}})) != null ? stack1 : \"\")\n + \"\\n \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"exceedRight\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":12},\"end\":{\"line\":10,\"column\":73}}})) != null ? stack1 : \"\")\n + \"\\\"\\n style=\\\"\"\n + alias3((lookupProperty(helpers,\"month-scheduleBlock\")||(depth0 && lookupProperty(depth0,\"month-scheduleBlock\"))||alias2).call(alias1,depth0,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"dates\")),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleBlockHeight\")),((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"gridHeaderHeight\")),{\"name\":\"month-scheduleBlock\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":11,\"column\":16},\"end\":{\"line\":11,\"column\":105}}}))\n + \";\\n margin-top:\"\n + alias3(container.lambda(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleBlockGutter\")), depth0))\n + \"px\\\">\\n\"\n + ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),\"||\",(depth0 != null ? lookupProperty(depth0,\"hasMultiDates\") : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.program(23, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":8},\"end\":{\"line\":75,\"column\":15}}})) != null ? stack1 : \"\")\n + \" </div>\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":31},\"end\":{\"line\":9,\"column\":45}}}) : helper)))\n + \"weekday-exceed-left\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":32},\"end\":{\"line\":10,\"column\":46}}}) : 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=container.hooks.helperMissing, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div data-schedule-id=\\\"\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"id\") : stack1), depth0))\n + \"\\\" data-calendar-id=\\\"\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"calendarId\") : stack1), depth0))\n + \"\\\" class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":92},\"end\":{\"line\":14,\"column\":106}}}) : helper)))\n + \"weekday-schedule \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias3,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":123},\"end\":{\"line\":14,\"column\":192}}})) != null ? stack1 : \"\")\n + \"\\\"\\n style=\\\"height:\"\n + alias2(alias1(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; line-height:\"\n + alias2(alias1(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; border-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias3,(depth0 != null ? lookupProperty(depth0,\"exceedLeft\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":16},\"end\":{\"line\":18,\"column\":27}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias3,(depth0 != null ? lookupProperty(depth0,\"exceedRight\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":19,\"column\":16},\"end\":{\"line\":21,\"column\":27}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias3,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.program(19, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":22,\"column\":16},\"end\":{\"line\":26,\"column\":23}}})) != null ? stack1 : \"\")\n + \" \"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"customStyle\") : stack1), depth0))\n + \"\\\">\\n <span class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":28,\"column\":25},\"end\":{\"line\":28,\"column\":39}}}) : helper)))\n + \"weekday-schedule-title\\\"\\n data-title=\\\"\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"title\") : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":29,\"column\":47},\"end\":{\"line\":29,\"column\":70}}})) != null ? stack1 : \"\")\n + \"</span>\\n \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias3,(lookupProperty(helpers,\"or\")||(depth0 && lookupProperty(depth0,\"or\"))||alias4).call(alias3,((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"isReadOnly\")),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isReadOnly\") : stack1),{\"name\":\"or\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":22},\"end\":{\"line\":30,\"column\":60}}}),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(21, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":12},\"end\":{\"line\":30,\"column\":194}}})) != null ? stack1 : \"\")\n + \"\\n </div>\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":146},\"end\":{\"line\":14,\"column\":160}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginRight\")), depth0))\n + \";\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"21\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<span class=\\\"\"\n + alias1(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":75},\"end\":{\"line\":30,\"column\":89}}}) : helper)))\n + \"weekday-resize-handle handle-y\\\" style=\\\"line-height: \"\n + alias1(container.lambda(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px;\\\"> </span>\";\n},\"23\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"category\") : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.program(33, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":33,\"column\":12},\"end\":{\"line\":74,\"column\":19}}})) != null ? stack1 : \"\");\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div data-schedule-id=\\\"\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"id\") : stack1), depth0))\n + \"\\\" data-calendar-id=\\\"\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"calendarId\") : stack1), depth0))\n + \"\\\" class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":34,\"column\":100},\"end\":{\"line\":34,\"column\":114}}}) : helper)))\n + \"weekday-schedule \"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":34,\"column\":131},\"end\":{\"line\":34,\"column\":145}}}) : helper)))\n + \"weekday-schedule-time\\\"\\n style=\\\"height:\"\n + alias2(alias1(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; line-height:\"\n + alias2(alias1(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; \"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"customStyle\") : stack1), depth0))\n + \"\\\">\\n <span class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":33},\"end\":{\"line\":36,\"column\":47}}}) : helper)))\n + \"weekday-schedule-bullet\\\"\\n style=\\\"top: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"scheduleBulletTop\")), depth0))\n + \"px;\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias3,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(25, data, 0),\"inverse\":container.program(27, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":38,\"column\":28},\"end\":{\"line\":42,\"column\":35}}})) != null ? stack1 : \"\")\n + \" \\\"\\n ></span>\\n <span class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":45,\"column\":33},\"end\":{\"line\":45,\"column\":47}}}) : helper)))\n + \"weekday-schedule-title\\\"\\n style=\\\"\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias3,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(29, data, 0),\"inverse\":container.program(31, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":28},\"end\":{\"line\":52,\"column\":35}}})) != null ? stack1 : \"\")\n + \" \\\"\\n data-title=\\\"\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"title\") : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":54,\"column\":53},\"end\":{\"line\":54,\"column\":74}}})) != null ? stack1 : \"\")\n + \"</span>\\n </div>\\n\";\n},\"25\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"27\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \"\\n\";\n},\"29\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"\\n\";\n},\"31\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n\";\n},\"33\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.lambda, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div data-schedule-id=\\\"\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"id\") : stack1), depth0))\n + \"\\\" data-calendar-id=\\\"\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"calendarId\") : stack1), depth0))\n + \"\\\" class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":57,\"column\":100},\"end\":{\"line\":57,\"column\":114}}}) : helper)))\n + \"weekday-schedule \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias3,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":57,\"column\":131},\"end\":{\"line\":57,\"column\":200}}})) != null ? stack1 : \"\")\n + \"\\\"\\n style=\\\"height:\"\n + alias2(alias1(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; line-height:\"\n + alias2(alias1(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; border-radius: \"\n + alias2(alias1(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias3,(depth0 != null ? lookupProperty(depth0,\"exceedLeft\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(34, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":59,\"column\":20},\"end\":{\"line\":61,\"column\":31}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias3,(depth0 != null ? lookupProperty(depth0,\"exceedRight\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(36, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":62,\"column\":20},\"end\":{\"line\":64,\"column\":31}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias3,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(38, data, 0),\"inverse\":container.program(40, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":65,\"column\":20},\"end\":{\"line\":69,\"column\":27}}})) != null ? stack1 : \"\")\n + \" \"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"customStyle\") : stack1), depth0))\n + \"\\\">\\n <span class=\\\"\"\n + alias2(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias4),(typeof helper === alias5 ? helper.call(alias3,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":71,\"column\":33},\"end\":{\"line\":71,\"column\":47}}}) : helper)))\n + \"weekday-schedule-title\\\"\\n data-title=\\\"\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"title\") : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"schedule-tmpl\")||(depth0 && lookupProperty(depth0,\"schedule-tmpl\"))||alias4).call(alias3,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":72,\"column\":65},\"end\":{\"line\":72,\"column\":90}}})) != null ? stack1 : \"\")\n + \"</span>\\n </div>\\n\";\n},\"34\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\n\";\n},\"36\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginRight\")), depth0))\n + \";\\n\";\n},\"38\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"40\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = lookupProperty(helpers,\"each\").call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"matrices\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":0},\"end\":{\"line\":81,\"column\":11}}})) != null ? stack1 : \"\");\n},\"useData\":true});","/**\n * @fileoverview Click handler for month view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @fileoverview Creation handler for month view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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 * @param {Options} [options] - calendar Options\n */\nfunction MonthCreation(dragHandler, monthView, baseController, options) {\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 /**\n * @type {boolean}\n */\n this._disableDblClick = options.disableDblClick;\n\n /**\n * @type {boolean}\n */\n this._disableClick = options.disableClick;\n\n dragHandler.on('dragStart', this._onDragStart, this);\n dragHandler.on('click', this._onClick, this);\n\n if (this._disableDblClick) {\n CLICK_DELAY = 0;\n } else {\n domevent.on(monthView.container, 'dblclick', this._onDblClick, this);\n }\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(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(eventData.date);\n cache.isAllDay = true;\n\n times = [\n cache.start,\n cache.end\n ].sort(array.compare.num.asc);\n\n cache.start = new TZDate(times[0]);\n cache.end = datetime.end(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(eventData.date), new TZDate(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) || this._disableClick) {\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(eventData.date), new TZDate(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 * Invoke creation click\n * @param {Schedule} schedule - schedule instance\n */\nMonthCreation.prototype.invokeCreationClick = function(schedule) {\n var eventData = {\n model: schedule\n };\n\n this.fire('monthCreationClick', eventData);\n\n this._createSchedule({\n start: schedule.start,\n end: schedule.end,\n isAllDay: schedule.isAllDay,\n triggerEvent: 'manual'\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 * @fileoverview Creation guide module for month view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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. User calls destroy directly.\n this.guide = null;\n};\n\nmodule.exports = MonthCreationGuide;\n","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.escapeExpression, alias2=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias1(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":16},\"end\":{\"line\":3,\"column\":30}}}) : helper)))\n + \"month-creation-guide\\\" style=\\\"border: \"\n + alias1(alias2(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"border\") : stack1), depth0))\n + \"; background-color: \"\n + alias1(alias2(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"backgroundColor\") : stack1), depth0))\n + \";\\\"></div>\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":16},\"end\":{\"line\":5,\"column\":30}}}) : helper)))\n + \"weekday-schedule\\\"\\n style=\\\"height: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"scheduleHeight\") : stack1), depth0))\n + \"; line-height: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"scheduleHeight\") : stack1), depth0))\n + \"; margin-top: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"scheduleGutter\") : stack1), depth0))\n + \"; border-radius:\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"borderRadius\") : stack1), depth0))\n + \"; margin-left: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"marginLeft\") : stack1), depth0))\n + \"; margin-right: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"marginRight\") : stack1), depth0))\n + \";\\n color:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"color\") || (depth0 != null ? lookupProperty(depth0,\"color\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"color\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":18},\"end\":{\"line\":7,\"column\":27}}}) : helper)))\n + \";border-color:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"borderColor\") || (depth0 != null ? lookupProperty(depth0,\"borderColor\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"borderColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":41},\"end\":{\"line\":7,\"column\":56}}}) : helper)))\n + \";background-color:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"bgColor\") || (depth0 != null ? lookupProperty(depth0,\"bgColor\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"bgColor\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":74},\"end\":{\"line\":7,\"column\":85}}}) : helper)))\n + \"\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":20},\"end\":{\"line\":8,\"column\":34}}}) : helper)))\n + \"weekday-schedule-title\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isAllDay\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.program(6, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":12},\"end\":{\"line\":13,\"column\":19}}})) != null ? stack1 : \"\")\n + \" </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":15,\"column\":20},\"end\":{\"line\":15,\"column\":34}}}) : helper)))\n + \"weekday-resize-handle handle-y\\\" style=\\\"line-height: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"scheduleHeight\") : stack1), depth0))\n + \";\\\"> </div>\\n </div>\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":16},\"end\":{\"line\":10,\"column\":38}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":16},\"end\":{\"line\":12,\"column\":36}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"month-guide-block\\\" style=\\\"top:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"top\") || (depth0 != null ? lookupProperty(depth0,\"top\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"top\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":56},\"end\":{\"line\":1,\"column\":63}}}) : helper)))\n + \";height:\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"height\") || (depth0 != null ? lookupProperty(depth0,\"height\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"height\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":71},\"end\":{\"line\":1,\"column\":81}}}) : helper)))\n + \";display:none\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"isCreationMode\") : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":4},\"end\":{\"line\":17,\"column\":11}}})) != null ? stack1 : \"\")\n + \"</div>\\n\";\n},\"useData\":true});","/**\n * @fileoverview Module for resize schedule in month view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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\nvar common = require('../../common/common');\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 // You can not change the start date of the event. Only the end time can be changed.\n var newEnd = datetime.end(new TZDate(scheduleCache.end)),\n schedule = scheduleCache.schedule;\n var changes = common.getScheduleChanges(\n schedule,\n ['end'],\n {end: newEnd}\n );\n\n /**\n * @event MonthResize#beforeUpdateSchedule\n * @type {object}\n * @property {Schedule} schedule - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - end time to update\n * @property {date} end - end time to update\n */\n this.fire('beforeUpdateSchedule', {\n schedule: schedule,\n changes: changes,\n start: new TZDate(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(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 var scheduleData;\n var start, end;\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 start = new TZDate(cache.schedule.getStarts());\n end = new TZDate(scheduleData.date);\n cache.end = end;\n\n if (start <= cache.end) {\n this._updateSchedule(cache);\n }\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 * @fileoverview Module for modification of guide element in schedule resize\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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.guide.start(dragStartEvent);\n\n this._hideScheduleBlocks(dragStartEvent.model.cid());\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 * @fileoverview Move handler for month view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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();\n var startDateRaw = datetime.raw(schedule.start);\n var dragEndTime = new TZDate(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 - The original schedule instance\n * @property {Date} start - Deprecated: start time to update\n * @property {Date} end - Deprecated: end time to update\n * @property {object} changes - start and end time 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 changes: {\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(duration)\n },\n start: newStartDate,\n end: new TZDate(newStartDate).addMilliseconds(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 = this.baseController.schedules.items[modelID],\n scheduleData;\n\n if (!modelID || !model || model.isReadOnly || model.isPending) {\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(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 * @fileoverview Module for modification of guide element for move in month view\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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\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 ),\n styles: {\n scheduleHeight: weekdayOptions.scheduleHeight,\n scheduleBulletTop: weekdayOptions.scheduleHeight / 3,\n borderRadius: monthView.controller.theme.month.schedule.borderRadius\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","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" border-left:3px solid \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n \";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":17},\"end\":{\"line\":14,\"column\":31}}}) : helper)))\n + \"weekday-schedule-bullet \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":55},\"end\":{\"line\":14,\"column\":69}}}) : helper)))\n + \"weekday-schedule-bullet-focused\\\" style=\\\"top: \"\n + alias4(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"scheduleBulletTop\") : stack1), depth0))\n + \"px;\\\"></span>\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":110},\"end\":{\"line\":16,\"column\":124}}}) : helper)))\n + \"weekday-schedule-title-focused\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":18,\"column\":12},\"end\":{\"line\":18,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" \"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":12},\"end\":{\"line\":20,\"column\":33}}})) != null ? stack1 : \"\")\n + \"\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"month-guide \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":38},\"end\":{\"line\":1,\"column\":52}}}) : helper)))\n + \"month-guide-focused\\\"\\n style=\\\"top: -50%;\\n left: -50%;\\n width: 100%;\\n color: #ffffff;\\n background-color:\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"dragBgColor\") : stack1), depth0))\n + \";\\n height:\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"scheduleHeight\") : stack1), depth0))\n + \"px;\\n line-height:\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"scheduleHeight\") : stack1), depth0))\n + \"px;\\n border-radius: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"borderRadius\") : stack1), depth0))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":12},\"end\":{\"line\":12,\"column\":19}}})) != null ? stack1 : \"\")\n + \"\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":13,\"column\":4},\"end\":{\"line\":15,\"column\":15}}})) != null ? stack1 : \"\")\n + \" <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":16},\"end\":{\"line\":16,\"column\":30}}}) : helper)))\n + \"month-move-guide \"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":47},\"end\":{\"line\":16,\"column\":61}}}) : helper)))\n + \"weekday-schedule-title \"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":16,\"column\":84},\"end\":{\"line\":16,\"column\":165}}})) != null ? stack1 : \"\")\n + \"\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.program(9, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":17,\"column\":8},\"end\":{\"line\":21,\"column\":15}}})) != null ? stack1 : \"\")\n + \" </div>\\n</div>\\n<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":12},\"end\":{\"line\":24,\"column\":26}}}) : helper)))\n + \"month-guide-cover\\\" style=\\\"height:\"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"scheduleHeight\") : stack1), depth0))\n + \"px; border-radius: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"borderRadius\") : stack1), depth0))\n + \";\\\"></div>\\n\";\n},\"useData\":true});","/**\n * @fileoverview Floating layer for displaying schedule in specific date\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\n */\n'use strict';\n\nvar OUT_PADDING = 5;\nvar VIEW_MIN_WIDTH = 280;\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('../template/month/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 * @param {Theme} theme - theme instance\n */\nfunction More(options, container, theme) {\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 scheduleHeight: parseInt(theme.month.schedule.height, 10) || 18,\n scheduleGutter: parseInt(theme.month.schedule.marginTop, 10) || 2,\n scheduleBulletTop: (parseInt(theme.month.schedule.height, 10) || 18) / 3,\n borderRadius: theme.month.schedule.borderRadius\n }, options);\n\n /**\n * @type {Theme}\n */\n this.theme = theme;\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 = domevent.getEventTarget(clickEvent);\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 = domevent.getEventTarget(mouseDownEvent),\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 minHeight = domutil.getSize(weekItem)[1] + (OUT_PADDING * 2);\n var width = target.offsetWidth + (OUT_PADDING * 2);\n var opt = this.options;\n var optMoreLayerSize = opt.moreLayerSize;\n var styles = this._getStyles(this.theme);\n var maxVisibleSchedulesInLayer = 10;\n var height = '';\n var containerSize = domutil.getSize(this.container);\n var calWidth = 0;\n var calHeight = 0;\n var isOverWidth = false;\n var isOverHeight = false;\n var leftPos = pos[0];\n var topPos = pos[1];\n\n this._viewModel = util.extend(viewModel, {\n scheduleGutter: opt.scheduleGutter,\n scheduleHeight: opt.scheduleHeight,\n scheduleBulletTop: opt.scheduleBulletTop,\n borderRadius: opt.borderRadius,\n styles: styles\n });\n\n width = Math.max(width, VIEW_MIN_WIDTH);\n height = parseInt(styles.titleHeight, 10);\n height += parseInt(styles.titleMarginBottom, 10);\n if (viewModel.schedules.length <= maxVisibleSchedulesInLayer) {\n height += (opt.scheduleGutter + opt.scheduleHeight) * viewModel.schedules.length;\n } else {\n height += (opt.scheduleGutter + opt.scheduleHeight) * maxVisibleSchedulesInLayer;\n }\n height += parseInt(styles.paddingBottom, 10);\n height += OUT_PADDING; // for border\n\n if (optMoreLayerSize.width) {\n width = optMoreLayerSize.width;\n }\n\n if (optMoreLayerSize.height) {\n height = optMoreLayerSize.height;\n }\n\n if (isNaN(height) || height < minHeight) {\n height = minHeight;\n }\n\n layer.setContent(tmpl(viewModel));\n\n calWidth = leftPos * containerSize[0] / 100;\n calHeight = topPos * containerSize[1] / 100;\n isOverWidth = calWidth + width >= containerSize[0];\n isOverHeight = calHeight + height >= containerSize[1];\n leftPos = leftPos + '%';\n topPos = topPos + '%';\n\n if (isOverWidth && isOverHeight) {\n layer.setLTRB({\n right: 0,\n bottom: 0\n });\n } else if (!isOverWidth && isOverHeight) {\n layer.setLTRB({\n left: leftPos,\n bottom: 0\n });\n } else if (isOverWidth && !isOverHeight) {\n layer.setLTRB({\n right: 0,\n top: topPos\n });\n } else {\n layer.setPosition(leftPos, topPos);\n }\n\n layer.setSize(width, height);\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\n/**\n * Return more layer root element\n * @returns {HTMLElement} root element\n */\nMore.prototype.getMoreViewElement = function() {\n return domutil.find(config.classname('.month-more'), this.layer.container);\n};\n\n/**\n * Get the styles from theme\n * @param {Theme} theme - theme instance\n * @returns {object} styles - styles object\n */\nMore.prototype._getStyles = function(theme) {\n var styles = {};\n var listHeight = '';\n\n if (theme) {\n styles.border = theme.month.moreView.border || theme.common.border;\n styles.boxShadow = theme.month.moreView.boxShadow;\n styles.backgroundColor = theme.month.moreView.backgroundColor || theme.common.backgroundColor;\n styles.paddingBottom = theme.month.moreView.paddingBottom;\n styles.titleHeight = theme.month.moreViewTitle.height;\n styles.titleMarginBottom = theme.month.moreViewTitle.marginBottom;\n styles.titleBackgroundColor = theme.month.moreViewTitle.backgroundColor;\n styles.titleBorderBottom = theme.month.moreViewTitle.borderBottom;\n styles.titlePadding = theme.month.moreViewTitle.padding;\n styles.listPadding = theme.month.moreViewList.padding;\n listHeight = 'calc(100%';\n\n if (parseInt(styles.titleHeight, 10)) {\n listHeight += ' - ' + styles.titleHeight;\n }\n if (parseInt(styles.titleMarginBottom, 10)) {\n listHeight += ' - ' + styles.titleMarginBottom;\n }\n listHeight += ')';\n\n styles.listHeight = listHeight;\n }\n\n return styles;\n};\n\nmodule.exports = More;\n","var Handlebars = require('/Users/nhn/development/tui.calendar-v1/node_modules/handlebars/runtime.js');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isAllDay\") : stack1),\"||\",(depth0 != null ? lookupProperty(depth0,\"hasMultiDates\") : depth0),{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.program(7, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":9,\"column\":8},\"end\":{\"line\":65,\"column\":15}}})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div data-id=\\\"\"\n + alias3((lookupProperty(helpers,\"stamp\")||(depth0 && lookupProperty(depth0,\"stamp\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"stamp\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":10,\"column\":26},\"end\":{\"line\":10,\"column\":41}}}))\n + \"\\\"\\n data-schedule-id=\\\"\"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"id\") : stack1), depth0))\n + \"\\\" data-calendar-id=\\\"\"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"calendarId\") : stack1), depth0))\n + \"\\\"\\n class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":23},\"end\":{\"line\":12,\"column\":37}}}) : helper)))\n + \"month-more-schedule \"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":57},\"end\":{\"line\":12,\"column\":71}}}) : helper)))\n + \"month-more-allday \"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":12,\"column\":89},\"end\":{\"line\":12,\"column\":103}}}) : helper)))\n + \"weekday-schedule-title\\\"\\n style=\\\"height: \"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; line-height: \"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; margin-top: \"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleGutter\")), depth0))\n + \"px; border-radius: \"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.program(5, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":14,\"column\":20},\"end\":{\"line\":18,\"column\":27}}})) != null ? stack1 : \"\")\n + \" \"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"customStyle\") : stack1), depth0))\n + \"\\\">\\n \"\n + ((stack1 = (lookupProperty(helpers,\"allday-tmpl\")||(depth0 && lookupProperty(depth0,\"allday-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"allday-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":20,\"column\":20},\"end\":{\"line\":20,\"column\":43}}})) != null ? stack1 : \"\")\n + \"\\n </div>\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-left:3px solid \"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return ((stack1 = (lookupProperty(helpers,\"fi\")||(depth0 && lookupProperty(depth0,\"fi\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"category\") : stack1),\"===\",\"time\",{\"name\":\"fi\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.program(17, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":23,\"column\":12},\"end\":{\"line\":64,\"column\":19}}})) != null ? stack1 : \"\");\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" <div data-id=\\\"\"\n + alias3((lookupProperty(helpers,\"stamp\")||(depth0 && lookupProperty(depth0,\"stamp\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"stamp\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":24,\"column\":30},\"end\":{\"line\":24,\"column\":45}}}))\n + \"\\\"\\n data-schedule-id=\\\"\"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"id\") : stack1), depth0))\n + \"\\\" data-calendar-id=\\\"\"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"calendarId\") : stack1), depth0))\n + \"\\\"\\n class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":26,\"column\":27},\"end\":{\"line\":26,\"column\":41}}}) : helper)))\n + \"month-more-schedule \"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":26,\"column\":61},\"end\":{\"line\":26,\"column\":75}}}) : helper)))\n + \"weekday-schedule \"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":26,\"column\":92},\"end\":{\"line\":26,\"column\":106}}}) : helper)))\n + \"weekday-schedule-time\\\"\\n style=\\\"height: \"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; line-height: \"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; margin-top: \"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleGutter\")), depth0))\n + \"px;\"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"customStyle\") : stack1), depth0))\n + \"\\\">\\n <span class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":28,\"column\":33},\"end\":{\"line\":28,\"column\":47}}}) : helper)))\n + \"weekday-schedule-bullet\\\"\\n style=\\\"top: \"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleBulletTop\")), depth0))\n + \"px;\\n\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.program(11, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":30,\"column\":28},\"end\":{\"line\":34,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\\"></span>\\n <span class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":35,\"column\":33},\"end\":{\"line\":35,\"column\":47}}}) : helper)))\n + \"weekday-schedule-title\\\"\\n style=\\\"\"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(13, data, 0),\"inverse\":container.program(15, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":36,\"column\":31},\"end\":{\"line\":41,\"column\":35}}})) != null ? stack1 : \"\")\n + \"\\\"\\n data-title=\\\"\"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"title\") : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"time-tmpl\")||(depth0 && lookupProperty(depth0,\"time-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"time-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":42,\"column\":53},\"end\":{\"line\":42,\"column\":74}}})) != null ? stack1 : \"\")\n + \"</span>\\n </div>\\n\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n return \" background: #ffffff\\n\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" background:\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \"\\n \";\n},\"13\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"\\n color: #ffffff;\\n background-color: \"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n return \" color:#333;\\n \";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, alias5=\"function\", lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div data-id=\\\"\"\n + alias3((lookupProperty(helpers,\"stamp\")||(depth0 && lookupProperty(depth0,\"stamp\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"stamp\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":45,\"column\":30},\"end\":{\"line\":45,\"column\":45}}}))\n + \"\\\"\\n data-schedule-id=\\\"\"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"id\") : stack1), depth0))\n + \"\\\" data-calendar-id=\\\"\"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"calendarId\") : stack1), depth0))\n + \"\\\"\\n class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":27},\"end\":{\"line\":47,\"column\":41}}}) : helper)))\n + \"month-more-schedule \"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":61},\"end\":{\"line\":47,\"column\":75}}}) : helper)))\n + \"weekday-schedule \"\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(18, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":92},\"end\":{\"line\":47,\"column\":161}}})) != null ? stack1 : \"\")\n + \"\\\"\\n style=\\\"height:\"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; line-height:\"\n + alias3(alias4(((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"scheduleHeight\")), depth0))\n + \"px; border-radius: \"\n + alias3(alias4(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"borderRadius\")), depth0))\n + \";\\n\"\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"exceedLeft\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(20, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":49,\"column\":20},\"end\":{\"line\":51,\"column\":31}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"unless\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"exceedRight\") : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(22, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":52,\"column\":20},\"end\":{\"line\":54,\"column\":31}}})) != null ? stack1 : \"\")\n + ((stack1 = lookupProperty(helpers,\"if\").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"isFocused\") : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.program(26, data, 0),\"data\":data,\"loc\":{\"start\":{\"line\":55,\"column\":20},\"end\":{\"line\":59,\"column\":27}}})) != null ? stack1 : \"\")\n + \" \"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"customStyle\") : stack1), depth0))\n + \"\\\">\\n <span class=\\\"\"\n + alias3(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias5 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":61,\"column\":33},\"end\":{\"line\":61,\"column\":47}}}) : helper)))\n + \"weekday-schedule-title\\\"\\n data-title=\\\"\"\n + alias3(alias4(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"title\") : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"schedule-tmpl\")||(depth0 && lookupProperty(depth0,\"schedule-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"model\") : depth0),{\"name\":\"schedule-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":62,\"column\":65},\"end\":{\"line\":62,\"column\":90}}})) != null ? stack1 : \"\")\n + \"</span>\\n </div>\\n\";\n},\"18\":function(container,depth0,helpers,partials,data) {\n var helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return container.escapeExpression(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":47,\"column\":115},\"end\":{\"line\":47,\"column\":129}}}) : helper)))\n + \"weekday-schedule-focused \";\n},\"20\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-left: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginLeft\")), depth0))\n + \";\\n\";\n},\"22\":function(container,depth0,helpers,partials,data) {\n var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" margin-right: \"\n + container.escapeExpression(container.lambda(((stack1 = ((stack1 = (data && lookupProperty(data,\"root\"))) && lookupProperty(stack1,\"styles\"))) && lookupProperty(stack1,\"marginRight\")), depth0))\n + \";\\n\";\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color: #ffffff; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \";\\n\";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.lambda, alias2=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \" color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"color\") : stack1), depth0))\n + \"; background-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"bgColor\") : stack1), depth0))\n + \"; border-color:\"\n + alias2(alias1(((stack1 = (depth0 != null ? lookupProperty(depth0,\"model\") : depth0)) != null ? lookupProperty(stack1,\"borderColor\") : stack1), depth0))\n + \";\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=\"function\", alias4=container.escapeExpression, alias5=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n };\n\n return \"<div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":1,\"column\":12},\"end\":{\"line\":1,\"column\":26}}}) : helper)))\n + \"month-more\\\" style=\\\"padding-bottom: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"paddingBottom\") : stack1), depth0))\n + \"; border: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"border\") : stack1), depth0))\n + \"; box-shadow: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"boxShadow\") : stack1), depth0))\n + \"; background-color: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"backgroundColor\") : stack1), depth0))\n + \";\\\">\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":16},\"end\":{\"line\":2,\"column\":30}}}) : helper)))\n + \"month-more-title\\\"\\n style=\\\"height: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"titleHeight\") : stack1), depth0))\n + \"; margin-bottom: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"titleMarginBottom\") : stack1), depth0))\n + \"; background-color: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"titleBackgroundColor\") : stack1), depth0))\n + \"; border-bottom: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"titleBorderBottom\") : stack1), depth0))\n + \"; padding: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"titlePadding\") : stack1), depth0))\n + \";\\\">\\n <span class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":21},\"end\":{\"line\":4,\"column\":35}}}) : helper)))\n + \"month-more-title-date\\\">\"\n + ((stack1 = (lookupProperty(helpers,\"monthMoreTitleDate-tmpl\")||(depth0 && lookupProperty(depth0,\"monthMoreTitleDate-tmpl\"))||alias2).call(alias1,(depth0 != null ? lookupProperty(depth0,\"date\") : depth0),(depth0 != null ? lookupProperty(depth0,\"dayname\") : depth0),{\"name\":\"monthMoreTitleDate-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":58},\"end\":{\"line\":4,\"column\":100}}})) != null ? stack1 : \"\")\n + \"</span>\\n <button type=\\\"button\\\" class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":37},\"end\":{\"line\":5,\"column\":51}}}) : helper)))\n + \"month-more-close\\\">\"\n + ((stack1 = ((helper = (helper = lookupProperty(helpers,\"monthMoreClose-tmpl\") || (depth0 != null ? lookupProperty(depth0,\"monthMoreClose-tmpl\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"monthMoreClose-tmpl\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":69},\"end\":{\"line\":5,\"column\":94}}}) : helper))) != null ? stack1 : \"\")\n + \"</button>\\n </div>\\n <div class=\\\"\"\n + alias4(((helper = (helper = lookupProperty(helpers,\"CSS_PREFIX\") || (depth0 != null ? lookupProperty(depth0,\"CSS_PREFIX\") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{\"name\":\"CSS_PREFIX\",\"hash\":{},\"data\":data,\"loc\":{\"start\":{\"line\":7,\"column\":16},\"end\":{\"line\":7,\"column\":30}}}) : helper)))\n + \"month-more-list\\\" style=\\\"padding: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"listPadding\") : stack1), depth0))\n + \"; height: \"\n + alias4(alias5(((stack1 = (depth0 != null ? lookupProperty(depth0,\"styles\") : depth0)) != null ? lookupProperty(stack1,\"listHeight\") : stack1), depth0))\n + \";\\\">\\n\"\n + ((stack1 = lookupProperty(helpers,\"each\").call(alias1,(depth0 != null ? lookupProperty(depth0,\"schedules\") : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data,\"loc\":{\"start\":{\"line\":8,\"column\":8},\"end\":{\"line\":66,\"column\":17}}})) != null ? stack1 : \"\")\n + \" </div>\\n</div>\\n\";\n},\"useData\":true});","/* eslint complexity: 0 */\n/**\n * @fileoverview Helpers for handlebar templates.\n * @author NHN FE Development Lab <dl_javascript@nhn.com>\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');\nvar mmax = Math.max;\nvar SIXTY_MINUTES = 60;\nvar helpers = {\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 * AND\n * @param {*} a - a\n * @param {*} b - b\n * @returns {boolean} or\n */\n 'and': 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 'getRight': function(a, b) {\n return mmax(0, 100 - (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 'reverse': function(array) {\n return array.slice().reverse();\n },\n\n /**********\n * Default schedule template\n **********/\n\n 'milestone-tmpl': function(model) {\n var icon = config.classname('icon');\n var iconName = config.classname('ic-milestone');\n\n return '<span class=\"' + icon + ' ' + iconName + '\"></span><span style=\"background-color: ' + model.bgColor + '\">' + common.stripTags(model.title) + '</span>';\n },\n\n 'milestoneTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return '<span class=\"' + className + '\">Milestone</span>';\n },\n\n 'task-tmpl': function(model) {\n return '#' + model.title;\n },\n\n 'taskTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return '<span class=\"' + className + '\">Task</span>';\n },\n\n 'alldayTitle-tmpl': function() {\n var className = config.classname('left-content');\n\n return '<span class=\"' + className + '\">All Day</span>';\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 'goingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'GoingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'comingDuration-tmpl': function(model) {\n var goingDuration = model.goingDuration;\n var hour = parseInt(goingDuration / SIXTY_MINUTES, 10);\n var minutes = goingDuration % SIXTY_MINUTES;\n\n return 'ComingTime ' + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n },\n\n 'monthMoreTitleDate-tmpl': function(date, dayname) {\n var classDay = config.classname('month-more-title-day');\n var classDayLabel = config.classname('month-more-title-day-label');\n var day = util.pick(date.split('.'), 2);\n\n return '<span class=\"' + classDay + '\">' + day + '</span> <span class=\"' + classDayLabel + '\">' + dayname + '</span>';\n },\n\n 'monthMoreClose-tmpl': function() {\n return '';\n },\n\n 'monthGridHeader-tmpl': function(model) {\n var date = parseInt(model.date.split('-')[2], 10);\n var classNames = [];\n\n classNames.push(config.classname('weekday-grid-date'));\n if (model.isToday) {\n classNames.push(config.classname('weekday-grid-date-decorator'));\n }\n\n return '<span class=\"' + classNames.join(' ') + '\">' + date + '</span>';\n },\n\n 'monthGridHeaderExceed-tmpl': function(hiddenSchedules) {\n var className = config.classname('weekday-grid-more-schedules');\n\n return '<span class=\"' + className + '\">' + hiddenSchedules + ' more</span>';\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 'monthDayname-tmpl': function(model) {\n return model.label;\n },\n\n 'weekDayname-tmpl': function(model) {\n var classDate = config.classname('dayname-date');\n var className = config.classname('dayname-name');\n\n return '<span class=\"' + classDate + '\">' + model.date + '</span> <span class=\"' + className + '\">' + model.dayName + '</span>';\n },\n\n 'weekGridFooterExceed-tmpl': function(hiddenSchedules) {\n return '+' + hiddenSchedules;\n },\n\n 'dayGridTitle-tmpl': function(viewName) {\n var tmpl = Handlebars.helpers[viewName + 'Title-tmpl'];\n if (tmpl) {\n return tmpl(viewName);\n }\n\n return viewName;\n },\n\n 'schedule-tmpl': function(model) {\n var tmpl = Handlebars.helpers[model.category + '-tmpl'];\n if (tmpl) {\n return tmpl(model);\n }\n\n return '';\n },\n\n 'collapseBtnTitle-tmpl': function() {\n var iconName = config.classname('icon');\n var closeIconName = config.classname('ic-arrow-solid-top');\n\n return '<span class=\"' + iconName + ' ' + closeIconName + '\"></span>';\n },\n\n 'timezoneDisplayLabel-tmpl': function(timezoneOffset, displayLabel) {\n var gmt, hour, minutes;\n\n if (util.isUndefined(displayLabel)) {\n gmt = timezoneOffset < 0 ? '-' : '+';\n hour = Math.abs(parseInt(timezoneOffset / SIXTY_MINUTES, 10));\n minutes = Math.abs(timezoneOffset % SIXTY_MINUTES);\n displayLabel = gmt + datetime.leadingZero(hour, 2) + ':' + datetime.leadingZero(minutes, 2);\n }\n\n return displayLabel;\n },\n\n 'timegridDisplayPrimayTime-tmpl': function(time) {\n /* TODO: 삭제 필요 (will be deprecated) */\n return Handlebars.helpers['timegridDisplayPrimaryTime-tmpl'](time);\n },\n\n 'timegridDisplayPrimaryTime-tmpl': function(time) {\n var hour = time.hour;\n var meridiem = hour >= 12 ? 'pm' : 'am';\n\n if (hour > 12) {\n hour = hour - 12;\n }\n\n return hour + ' ' + meridiem;\n },\n\n 'timegridDisplayTime-tmpl': function(time) {\n return datetime.leadingZero(time.hour, 2) + ':' + datetime.leadingZero(time.minutes, 2);\n },\n\n 'timegridCurrentTime-tmpl': function(timezone) {\n var templates = [];\n\n if (timezone.dateDifference) {\n templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']<br>');\n }\n\n templates.push(datetime.format(timezone.hourmarker, 'HH:mm'));\n\n return templates.join('');\n },\n\n 'popupIsAllDay-tmpl': function() {\n return 'All day';\n },\n\n 'popupStateFree-tmpl': function() {\n return 'Free';\n },\n\n 'popupStateBusy-tmpl': function() {\n return 'Busy';\n },\n\n 'titlePlaceholder-tmpl': function() {\n return 'Subject';\n },\n\n 'locationPlaceholder-tmpl': function() {\n return 'Location';\n },\n\n 'startDatePlaceholder-tmpl': function() {\n return 'Start date';\n },\n\n 'endDatePlaceholder-tmpl': function() {\n return 'End date';\n },\n 'popupSave-tmpl': function() {\n return 'Save';\n },\n 'popupUpdate-tmpl': function() {\n return 'Update';\n },\n 'popupDetailDate-tmpl': function(isAllDay, start, end) {\n var isSameDate = datetime.isSameDate(start, end);\n var endFormat = (isSameDate ? '' : 'YYYY.MM.DD ') + 'hh:mm tt';\n\n if (isAllDay) {\n return datetime.format(start, 'YYYY.MM.DD') + (isSameDate ? '' : ' - ' + datetime.format(end, 'YYYY.MM.DD'));\n }\n\n return (datetime.format(start, 'YYYY.MM.DD hh:mm tt') + ' - ' + datetime.format(end, endFormat));\n },\n 'popupDetailLocation-tmpl': function(schedule) {\n return schedule.location;\n },\n 'popupDetailUser-tmpl': function(schedule) {\n return (schedule.attendees || []).join(', ');\n },\n 'popupDetailState-tmpl': function(schedule) {\n return schedule.state || 'Busy';\n },\n 'popupDetailRepeat-tmpl': function(schedule) {\n return schedule.recurrenceRule;\n },\n 'popupDetailBody-tmpl': function(schedule) {\n return schedule.body;\n },\n 'popupEdit-tmpl': function() {\n return 'Edit';\n },\n 'popupDelete-tmpl': function() {\n return 'Delete';\n }\n};\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(helpers);\n"],"sourceRoot":""}
|