{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///../demo7/src/js/pages/features/calendar/external-events.js"],"names":[],"mappings":";QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;AClFa;;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;AACA;;AAEA;AACA;;AAEA;AACA,+BAA+B,sBAAsB;AACrD,+BAA+B,qBAAqB;AACpD,8BAA8B;AAC9B,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;;AAEb;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,SAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,CAAC","file":"js/pages/features/calendar/external-events.js","sourcesContent":[" \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 = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"../demo7/src/js/pages/features/calendar/external-events.js\");\n","\"use strict\";\r\n\r\nvar KTCalendarExternalEvents = function() {\r\n\r\n var initExternalEvents = function() {\r\n $('#kt_calendar_external_events .fc-draggable-handle').each(function() {\r\n // store data so the calendar knows to render an event upon drop\r\n $(this).data('event', {\r\n title: $.trim($(this).text()), // use the element's text as the event title\r\n stick: true, // maintain when user navigates (see docs on the renderEvent method)\r\n classNames: [$(this).data('color')],\r\n description: 'Lorem ipsum dolor eius mod tempor labore'\r\n });\r\n });\r\n }\r\n\r\n var initCalendar = function() {\r\n var todayDate = moment().startOf('day');\r\n var YM = todayDate.format('YYYY-MM');\r\n var YESTERDAY = todayDate.clone().subtract(1, 'day').format('YYYY-MM-DD');\r\n var TODAY = todayDate.format('YYYY-MM-DD');\r\n var TOMORROW = todayDate.clone().add(1, 'day').format('YYYY-MM-DD');\r\n\r\n var calendarEl = document.getElementById('kt_calendar');\r\n var containerEl = document.getElementById('kt_calendar_external_events');\r\n\r\n var Draggable = FullCalendarInteraction.Draggable;\r\n\r\n new Draggable(containerEl, {\r\n itemSelector: '.fc-draggable-handle',\r\n eventData: function(eventEl) {\r\n return $(eventEl).data('event');\r\n }\r\n });\r\n\r\n var calendar = new FullCalendar.Calendar(calendarEl, {\r\n plugins: [ 'interaction', 'dayGrid', 'timeGrid', 'list' ],\r\n\r\n isRTL: KTUtil.isRTL(),\r\n header: {\r\n left: 'prev,next today',\r\n center: 'title',\r\n right: 'dayGridMonth,timeGridWeek,timeGridDay'\r\n },\r\n\r\n height: 800,\r\n contentHeight: 780,\r\n aspectRatio: 3, // see: https://fullcalendar.io/docs/aspectRatio\r\n\r\n nowIndicator: true,\r\n now: TODAY + 'T09:25:00', // just for demo\r\n\r\n views: {\r\n dayGridMonth: { buttonText: 'month' },\r\n timeGridWeek: { buttonText: 'week' },\r\n timeGridDay: { buttonText: 'day' }\r\n },\r\n\r\n defaultView: 'dayGridMonth',\r\n defaultDate: TODAY,\r\n\r\n droppable: true, // this allows things to be dropped onto the calendar\r\n editable: true,\r\n eventLimit: true, // allow \"more\" link when too many events\r\n navLinks: true,\r\n events: [\r\n {\r\n title: 'All Day Event',\r\n start: YM + '-01',\r\n description: 'Toto lorem ipsum dolor sit incid idunt ut',\r\n className: \"fc-event-danger fc-event-solid-warning\"\r\n },\r\n {\r\n title: 'Reporting',\r\n start: YM + '-14T13:30:00',\r\n description: 'Lorem ipsum dolor incid idunt ut labore',\r\n end: YM + '-14',\r\n className: \"fc-event-success\"\r\n },\r\n {\r\n title: 'Company Trip',\r\n start: YM + '-02',\r\n description: 'Lorem ipsum dolor sit tempor incid',\r\n end: YM + '-03',\r\n className: \"fc-event-primary\"\r\n },\r\n {\r\n title: 'ICT Expo 2017 - Product Release',\r\n start: YM + '-03',\r\n description: 'Lorem ipsum dolor sit tempor inci',\r\n end: YM + '-05',\r\n className: \"fc-event-light fc-event-solid-primary\"\r\n },\r\n {\r\n title: 'Dinner',\r\n start: YM + '-12',\r\n description: 'Lorem ipsum dolor sit amet, conse ctetur',\r\n end: YM + '-10'\r\n },\r\n {\r\n id: 999,\r\n title: 'Repeating Event',\r\n start: YM + '-09T16:00:00',\r\n description: 'Lorem ipsum dolor sit ncididunt ut labore',\r\n className: \"fc-event-danger\"\r\n },\r\n {\r\n id: 1000,\r\n title: 'Repeating Event',\r\n description: 'Lorem ipsum dolor sit amet, labore',\r\n start: YM + '-16T16:00:00'\r\n },\r\n {\r\n title: 'Conference',\r\n start: YESTERDAY,\r\n end: TOMORROW,\r\n description: 'Lorem ipsum dolor eius mod tempor labore',\r\n className: \"fc-event-primary\"\r\n },\r\n {\r\n title: 'Meeting',\r\n start: TODAY + 'T10:30:00',\r\n end: TODAY + 'T12:30:00',\r\n description: 'Lorem ipsum dolor eiu idunt ut labore'\r\n },\r\n {\r\n title: 'Lunch',\r\n start: TODAY + 'T12:00:00',\r\n className: \"fc-event-info\",\r\n description: 'Lorem ipsum dolor sit amet, ut labore'\r\n },\r\n {\r\n title: 'Meeting',\r\n start: TODAY + 'T14:30:00',\r\n className: \"fc-event-warning\",\r\n description: 'Lorem ipsum conse ctetur adipi scing'\r\n },\r\n {\r\n title: 'Happy Hour',\r\n start: TODAY + 'T17:30:00',\r\n className: \"fc-event-info\",\r\n description: 'Lorem ipsum dolor sit amet, conse ctetur'\r\n },\r\n {\r\n title: 'Dinner',\r\n start: TOMORROW + 'T05:00:00',\r\n className: \"fc-event-solid-danger fc-event-light\",\r\n description: 'Lorem ipsum dolor sit ctetur adipi scing'\r\n },\r\n {\r\n title: 'Birthday Party',\r\n start: TOMORROW + 'T07:00:00',\r\n className: \"fc-event-primary\",\r\n description: 'Lorem ipsum dolor sit amet, scing'\r\n },\r\n {\r\n title: 'Click for Google',\r\n url: 'http://google.com/',\r\n start: YM + '-28',\r\n className: \"fc-event-solid-info fc-event-light\",\r\n description: 'Lorem ipsum dolor sit amet, labore'\r\n }\r\n ],\r\n\r\n drop: function(arg) {\r\n // is the \"remove after drop\" checkbox checked?\r\n if ($('#kt_calendar_external_events_remove').is(':checked')) {\r\n // if so, remove the element from the \"Draggable Events\" list\r\n $(arg.draggedEl).remove();\r\n }\r\n },\r\n\r\n eventRender: function(info) {\r\n var element = $(info.el);\r\n\r\n if (info.event.extendedProps && info.event.extendedProps.description) {\r\n if (element.hasClass('fc-day-grid-event')) {\r\n element.data('content', info.event.extendedProps.description);\r\n element.data('placement', 'top');\r\n KTApp.initPopover(element);\r\n } else if (element.hasClass('fc-time-grid-event')) {\r\n element.find('.fc-title').append('