{"version":3,"sources":["webpack:///webpack/bootstrap 33e41b6f8db735736bfa","webpack:///./node_modules/regenerator-runtime/runtime.js","webpack:///./resources/js/global-fn.js","webpack:///./node_modules/babel-runtime/regenerator/index.js","webpack:///./node_modules/regenerator-runtime/runtime-module.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","global","undefined","Op","hasOwn","$Symbol","Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","inModule","runtime","regeneratorRuntime","wrap","GenStateSuspendedStart","GenStateSuspendedYield","GenStateExecuting","GenStateCompleted","ContinueSentinel","IteratorPrototype","this","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","GeneratorFunctionPrototype","Generator","create","GeneratorFunction","constructor","displayName","isGeneratorFunction","genFun","ctor","mark","setPrototypeOf","__proto__","awrap","arg","__await","defineIteratorMethods","AsyncIterator","async","innerFn","outerFn","self","tryLocsList","iter","next","then","result","done","value","toString","keys","key","push","reverse","length","pop","Context","reset","skipTempReset","prev","sent","_sent","delegate","method","tryEntries","forEach","resetTryEntry","charAt","isNaN","slice","stop","rootRecord","completion","type","rval","dispatchException","exception","context","handle","loc","caught","record","entry","tryLoc","hasCatch","hasFinally","catchLoc","finallyLoc","Error","abrupt","finallyEntry","complete","afterLoc","finish","catch","thrown","delegateYield","iterable","resultName","nextLoc","protoGenerator","generator","_invoke","state","doneResult","delegateResult","maybeInvokeDelegate","tryCatch","makeInvokeMethod","fn","obj","err","previousPromise","callInvokeWithMethodAndArg","Promise","resolve","reject","invoke","unwrapped","return","TypeError","info","pushTryEntry","locs","iteratorMethod","Function","_ref2","$","ajaxSetup","headers","X-CSRF-TOKEN","attr","btnStatus","makeDisable","showLoading","arguments","iconClass","showIconAfter","$this","$icon","find","parent","remove","addClass","css","removeClass","after","append","ajaxErrors","jqXHR","_this","$thisForm","responseJSON","message","statusText","status","errors","each","k","v","replace","siblings","text","closest","$dropdown","hasClass","$select2","dependency","data","swal","title","html","showCancelButton","ignoreForceDelete","confirmButtonText","confirmButtonColor","cancelButtonText","cancelButtonColor","showCloseButton","allowOutsideClick","width","onBeforeOpen","buttonForceDelete","inputForceDelete","val","click","setTimeout","location","reload","$generalMessageHTML","Toast","fire","btnAjax","_asyncToGenerator","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_regenerator___default","a","_callee","$errorMessages","$errorInputs","instance","formData","model_id","model","htmlRender","$btnCancel","table","$modal","CKEDITOR","showToast","files","_context","instances","updateElement","FormData","blob","filename","hide","ajax","url","cache","contentType","processData","success","response","hasUploadFiles","$videoFile","hasVideoFile","jQuery","map","item","swalData","window","redirectTo","newTab","open","close","modal","error","r","t0","console","log","btnAjaxDelete","_callee3","route","requestSent","_this2","_context3","_ref3","_callee2","_context2","post","media_id","timer","$fileDiv","$inputTextByID","_x12","apply","_x10","_x11","initCkeditor","wordCountConf","showParagraphs","showWordCount","showCharCount","countSpacesAsChars","countHTML","maxWordCount","maxCharCount","wordcount","filebrowserImageBrowseUrl","filebrowserBrowseUrl","extraPlugins","$newsletterPopup","maxClonable","$mainClonable","maxBlocks","localStorage","getItem","newsletterPopup","input","inputAttributes","placeholder","required","setItem","newsletterResponse","subs_email","fail","always","getUrlVars","paramName","vars","hash","hashes","indexOf","split","clanableRemove","$thisBtn","slideUp","animate","opacity","queue","duration","clanableAdd","isHuman","$clonableSourceLast","scroll","$clonableSource","slideDown","$lastSwitch","mainParent","prop","bootstrapSwitch","onSwitchChange","event","currentTarget","document","on","empty","handleButton","isDisabled","g","hadRuntime","getOwnPropertyNames","oldRuntime","e"],"mappings":"aACA,IAAAA,KAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,IACAG,EAAAH,EACAI,GAAA,EACAH,YAUA,OANAI,EAAAL,GAAAM,KAAAJ,E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hH,MAAM8H,SAASD,KAAK,eAAeK,YAAY,gBAGrDlB,EAAElB,GAAGkN,aAAe,SAAUC,GAC1B,IAAIvB,EAAW1K,EAAEhH,MACjB0R,EAAStK,KAAK,WAAY6L,GACvBA,EACCvB,EAAS1J,SAAS,YAElB0J,EAASxJ,YAAY,mCChjB7BhL,EAAAD,QAAiBF,EAAQ,8BCSzB,IAAAmW,EAAA,WAAqB,OAAAlT,KAArB,IAAmC8G,SAAA,cAAAA,GAInCqM,EAAAD,EAAA1T,oBACA3B,OAAAuV,oBAAAF,GAAA3B,QAAA,yBAGA8B,EAAAF,GAAAD,EAAA1T,mBAOA,GAJA0T,EAAA1T,wBAAAb,EAEAzB,EAAAD,QAAiBF,EAAQ,QAEzBoW,EAEAD,EAAA1T,mBAAA6T,OAGA,WACAH,EAAA1T,mBACG,MAAA8T,GACHJ,EAAA1T,wBAAAb","file":"/js/global-fn.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, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\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 \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 33e41b6f8db735736bfa","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n!(function(global) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n var inModule = typeof module === \"object\";\n var runtime = global.regeneratorRuntime;\n if (runtime) {\n if (inModule) {\n // If regeneratorRuntime is defined globally and we're in a module,\n // make the exports object identical to regeneratorRuntime.\n module.exports = runtime;\n }\n // Don't bother evaluating the rest of this file if the runtime was\n // already defined globally.\n return;\n }\n\n // Define the runtime globally (as expected by generated code) as either\n // module.exports (if we're in a module) or a new, empty object.\n runtime = global.regeneratorRuntime = inModule ? module.exports : {};\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n runtime.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n runtime.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n runtime.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n runtime.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration. If the Promise is rejected, however, the\n // result for this iteration will be rejected with the same\n // reason. Note that rejections of yielded Promises are not\n // thrown back into the generator function, as is the case\n // when an awaited Promise is rejected. This difference in\n // behavior between yield and await is important, because it\n // allows the consumer to decide what to do with the yielded\n // rejection (swallow it and continue, manually .throw it back\n // into the generator, abandon iteration, whatever). With\n // await, by contrast, there is no opportunity to examine the\n // rejection reason outside the generator function, so the\n // only option is to throw it from the await expression, and\n // let the generator function handle the exception.\n result.value = unwrapped;\n resolve(result);\n }, reject);\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n runtime.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n runtime.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return runtime.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n if (delegate.iterator.return) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n runtime.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n runtime.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n})(\n // In sloppy mode, unbound `this` refers to the global object, fallback to\n // Function constructor if we're in global strict mode. That is sadly a form\n // of indirect eval which violates Content Security Policy.\n (function() { return this })() || Function(\"return this\")()\n);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/regenerator-runtime/runtime.js\n// module id = SldL\n// module chunks = 3 4 5 6 7","\n$.ajaxSetup({ // Make sure that every Ajax request sends the CSRF token\n headers: {\n 'X-CSRF-TOKEN': $('meta[name=\"csrf-token\"]').attr('content')\n }\n});\n\n/**\n * @param makeDisable Disable/Enable the button\n * @param showLoading Show/Hide the loading icon\n * @param iconClass\n * @param showIconAfter\n */\n$.fn.btnStatus = function(makeDisable, showLoading = false, iconClass = ' fa-spinner fa-spin', showIconAfter = true){\n\n let $this = $(this);\n let $icon = $this.find('i.fas');\n if(!$icon.length){\n $icon = $this.parent().find('i.fas');\n }\n if($icon.length){\n $icon.remove();\n }\n if(makeDisable){\n $(this).addClass(\"disabled\").attr('disabled', true).css('cursor', 'not-allowed');\n }else{\n $(this).removeClass(\"disabled\").attr('disabled', false).css('cursor', 'pointer');\n }\n if(showLoading){\n if(showIconAfter){\n $(this).after('')\n }else{\n $(this).append('')\n }\n }\n}\n\n$.fn.ajaxErrors = function(jqXHR) {\n let $thisForm = $(this);\n let responseJSON = jqXHR.responseJSON;\n\n let message = 'Unknown error';\n if(jqXHR.statusText){\n message = (jqXHR.status ? \"Error code: \" + jqXHR.status + \" - \" : \"\") + jqXHR.statusText;\n }\n\n if (responseJSON) {\n if(responseJSON.errors){\n $.each(responseJSON.errors, function (k, v) {\n let $this = $(\"#\" + k.toString().replace(/\\./g, '_'));\n $this = $this.length ? $this : $('[name=\"' + k + '\"]');\n if ($this.length) {\n if($this.siblings(\"span.text-danger\").length){\n $this.siblings(\"span.text-danger\").text(v[0]);\n }else if($this.closest(\".col\").length){\n $this.closest(\".col\").find(\"span.text-danger\").text(v[0]);\n }\n\n let $dropdown = $this.closest(\"div.dropdown\");\n if($dropdown.length){\n if(!$dropdown.hasClass(\"is-invalid\")){\n $dropdown.addClass(\"is-invalid\");\n }\n return;\n }\n\n let $select2 = $this.next(\"span.select2\").find('.select2-selection');\n if($select2.length){\n if(!$select2.hasClass(\"is-invalid\")){\n $select2.addClass(\"is-invalid\");\n }\n return;\n }\n $this.addClass(\"is-invalid\");\n }\n });\n }\n\n if(jqXHR.status === 424 && responseJSON.dependency){\n let data = responseJSON.dependency;\n\n swal({\n title: data.title,\n html: data.html,\n showCancelButton: data.ignoreForceDelete ? false : true,\n confirmButtonText: data.confirmButtonText,\n confirmButtonColor: data.confirmButtonColor ? data.confirmButtonColor : '#f8bb86',\n cancelButtonText: 'Close',\n cancelButtonColor: '#4dbd74',\n showCloseButton: false,\n type: data.type,\n allowOutsideClick: false,\n width: '800px'\n }).then((result) => {\n if (result.value) {\n if(data.ignoreForceDelete){\n\n }else{\n swal({\n title: 'Deleting data in progress !!!',\n html: 'Please Wait ...',\n allowOutsideClick: false,\n onBeforeOpen: () => {\n swal.showLoading()\n },\n });\n let buttonForceDelete = $(data.buttonForceDelete);\n let inputForceDelete = $(this).find('[name=\"force_delete\"]');\n if(buttonForceDelete.length && inputForceDelete.length){ // perform force delete\n inputForceDelete.val(1);\n buttonForceDelete.click();\n }\n }\n } else {\n swal({ // reload the page\n title: '',\n html: 'Please Wait ...',\n allowOutsideClick: false,\n onBeforeOpen: () => {\n swal.showLoading()\n },\n });\n setTimeout(function(){location.reload()}, 2000);\n }\n });\n return;\n }\n if (responseJSON.message) {\n message = responseJSON.message;\n if(jqXHR.status === 419){\n swal({ // reload the page\n title: message,\n html: 'Reloading page, please wait ...',\n allowOutsideClick: false,\n onBeforeOpen: () => {\n swal.showLoading()\n },\n });\n setTimeout(function(){location.reload()}, 2000);\n return;\n }\n }\n }\n\n let $generalMessageHTML = $thisForm.find(\"span.error-general.text-danger\");\n if($generalMessageHTML.length){\n $generalMessageHTML.text(message);\n }else{\n Toast.fire({\n type: 'error',\n title: message\n });\n }\n};\n\n$.fn.btnAjax = async function(table = false, $modal = null, CKEDITOR = null, showToast = true, files = null, $thisForm = null) {\n let $this = $(this);\n\n $this.btnStatus(true, true, ' fa-spinner fa-spin', false);\n $thisForm = $thisForm ? $thisForm : $this.closest(\"form\");\n\n let $errorMessages = $thisForm.find(\"span.text-danger\");\n if($errorMessages.length){\n $errorMessages.text('');\n }\n let $errorInputs = $thisForm.find(\".is-invalid\");\n if($errorInputs.length){\n $errorInputs.removeClass('is-invalid');\n }\n\n if(CKEDITOR){\n for (let instance in CKEDITOR.instances ) {\n CKEDITOR.instances[instance].updateElement();\n }\n }\n\n let formData = new FormData($thisForm[0]);\n if(files && Object.keys(files).length){\n $.each(Object.keys(files), function(k, name){\n formData.append(name,files[name].blob, files[name].filename);\n });\n }\n let status = 0;\n let model_id = null;\n let model = null;\n let htmlRender = null;\n\n try{\n\n let $btnCancel = $('.btn-cancel');\n if($btnCancel.length){\n $btnCancel.hide('slow');\n }\n await $.ajax({\n url : $thisForm.attr('action'),\n type : $thisForm.attr('method'),\n data: formData,\n async: true,\n cache: false,\n contentType: false,\n processData: false,\n success : function(response) {\n\n if(response.htmlRender){\n htmlRender = response.htmlRender;\n }\n let hasUploadFiles = false;\n let $videoFile = $(\"input#video_file\");\n let hasVideoFile = $videoFile.length && $videoFile[0].files.length > 0;\n if(!hasVideoFile){\n jQuery.map($thisForm.find('[type=\"file\"]'), function(item) {\n if(!hasUploadFiles){\n hasUploadFiles = $(item)[0].files.length > 0;\n }\n })\n }\n let message = response.message ? response.message : 'Success';\n if(response.swal){\n let swalData = response.swal;\n swal(swalData).then((response) => {\n swal({\n title: 'Please Wait !',\n html: 'The page will refresh now ...',\n allowOutsideClick: false,\n onBeforeOpen: () => {\n swal.showLoading()\n },\n });\n setTimeout(function(){\n window.location.reload();\n }, 1500);\n });\n return;\n }\n if(response.redirectTo && !hasVideoFile){\n swal({\n title: 'Please Wait ...',\n html: message,\n allowOutsideClick: false,\n onBeforeOpen: () => {\n swal.showLoading()\n },\n });\n\n setTimeout(function(){\n if(response.newTab){\n window.open(response.redirectTo, '_blank');\n swal.close()\n }else{\n window.location.replace(response.redirectTo);\n }\n }, 2000);\n if(!response.reload)\n return;\n }\n if(response.reload || hasUploadFiles){\n swal({\n title: 'Refreshing the page, please wait ...',\n html: message,\n allowOutsideClick: false,\n onBeforeOpen: () => {\n swal.showLoading()\n },\n });\n setTimeout(function(){\n window.location.reload();\n }, 2000);\n return;\n }\n if(table){\n table.ajax.reload();\n }\n if($modal){\n $modal.modal('hide');\n }\n if(showToast){\n Toast.fire({\n type: 'success',\n title: message\n });\n }\n if(response.model_id){ model_id = response.model_id; }\n if(response.model){ model = response.model; }\n\n let inputForceDelete = $thisForm.find('[name=\"force_delete\"]');\n if(inputForceDelete.length){\n inputForceDelete.val(\"0\");\n }\n },\n error: function (jqXHR) {\n $thisForm.ajaxErrors(jqXHR);\n },\n complete: function(r){\n $this.btnStatus(false, false);\n status = r.status;\n }\n });\n }catch (e) {\n console.log(e);\n }\n\n return {status: status, model: model, model_id: model_id, htmlRender: htmlRender};\n}\n\n$.fn.btnAjaxDelete = async function(route, title) {\n let $this = $(this);\n let requestSent = false;\n await swal({\n title: title,\n text: \"\",\n showCancelButton: true,\n confirmButtonText: 'Yes, delete it!',\n showCloseButton: true,\n type: \"info\",\n allowOutsideClick: true\n }\n ).then(async (response) => {\n if (response.value) {\n swal({\n title: 'Please Wait !',\n html: 'Sending the request ...',\n allowOutsideClick: false,\n onBeforeOpen: () => {\n swal.showLoading()\n },\n });\n await $.post(route, {media_id: $this.data('media-id')}, function (data, status) {\n\n if (data.success) {\n requestSent = true;\n swal({\n title: \"Deleted!\",\n text: \"Your media has been deleted.\",\n type: \"success\",\n timer: 3000\n });\n let $fileDiv = $this.closest('p.form-group');\n $fileDiv = $fileDiv.length ? $fileDiv : $this.closest('.media-video');\n $fileDiv = $fileDiv.length ? $fileDiv : $this.closest('div.col');\n if($fileDiv.length){\n $fileDiv.remove();\n }\n let $inputTextByID = $($this.data(\"clear-by-id\"));\n if($inputTextByID.length){\n $($inputTextByID).val('');\n }\n } else {\n swal({\n title: 'Something Went Wrong',\n allowOutsideClick: true,\n type: \"error\",\n showCloseButton: true,\n });\n }\n });\n }\n });\n return requestSent;\n}\n\n$.fn.initCkeditor = function() {\n $(this).each(function () {\n let $this = $(this);\n let wordCountConf = {};\n\n if($this.data(\"max\")){\n wordCountConf = {\n showParagraphs: false,\n showWordCount: true,\n showCharCount: true,\n countSpacesAsChars: true,\n countHTML: true,\n maxWordCount: -1,\n maxCharCount: $this.data(\"max\")};\n }\n\n CKEDITOR.replace($this.attr(\"id\"), {\n wordcount: wordCountConf,\n filebrowserImageBrowseUrl: '/laravel-filemanager?type=Images',\n filebrowserBrowseUrl: '/laravel-filemanager?type=Files',\n extraPlugins: 'smiley,lineutils,widget,codesnippet,prism,flash,wordcount,notification',\n });\n });\n}\n\nlet $newsletterPopup = $('#newsletter_popup');\nif($newsletterPopup.length && $newsletterPopup.data('status') && window.localStorage.getItem('newsletterPopup') === null){\n setTimeout(function(){\n let newsletterPopup = function() {\n swal({\n title: '',\n html: \"Subscribe to our Newsletter for all Course Updates, News and Insights\",\n input: 'email',\n inputAttributes: {\n placeholder: 'Enter your email',\n required: true\n },\n showCancelButton: false,\n confirmButtonText: 'Subscribe',\n showCloseButton: true,\n allowOutsideClick: false,\n }\n ).then((response) => {\n window.localStorage.setItem('newsletterPopup', 'set'); // store the name so it will not show again on this browser\n newsletterResponse(response);\n });\n }\n\n newsletterPopup();\n\n let newsletterResponse = function (response){\n if (response.value) {\n swal({\n title: 'Please Wait !',\n html: 'Sending the request ...',\n allowOutsideClick: false,\n onBeforeOpen: () => {\n swal.showLoading()\n },\n });\n\n $.post('/newsletter/subscribe', {subs_email: response.value})\n .done(function(response) {\n swal({\n title: 'Please check you email and confirm subscription',\n text: '',\n showCancelButton: false,\n confirmButtonText: 'OK',\n type: 'success',\n allowOutsideClick: false,\n timer: 8000\n });\n })\n .fail(function(response) {\n let message = response.responseJSON\n ? response.responseJSON.exception\n ? false\n : response.responseJSON.message\n ? response.responseJSON.message\n : false\n : false\n swal({\n type: 'error',\n title: message ? message : 'Subscribe to Newsletter Failed',\n text: '',\n showCancelButton: false,\n confirmButtonText: 'Try Again',\n showCloseButton: true,\n allowOutsideClick: false,\n }).then((response) => {\n newsletterPopup();\n });\n })\n .always(function(response) {\n });\n }\n }\n\n }, isNaN($newsletterPopup.data('timeout')) ? 120000 : $newsletterPopup.data('timeout')*1000);\n}\n\n\n// Read a page's GET URL variables and return them as an associative array.\n$.fn.getUrlVars = function (paramName) {\n let vars = [], hash, url = $(this).attr('href');\n let hashes = url.slice(url.indexOf('?') + 1).split('&');\n for(let i = 0; i < hashes.length; i++) {\n hash = hashes[i].split('=');\n vars.push(hash[0]);\n vars[hash[0]] = hash[1];\n }\n if(paramName){\n return vars[paramName];\n }\n return vars;\n}\n\n\nfunction maxClonable($mainClonable) {\n let maxBlocks = 4; // the max quiz options can be added - default to 4\n if ($mainClonable.data('max-block')) {\n maxBlocks = $mainClonable.data('max-block'); // getting the max quiz options from the element\n }\n return maxBlocks;\n}\n\n$.fn.clanableRemove = function () {\n let $thisBtn = $(this);\n\n let $mainClonable = $thisBtn.closest('[data-toggle=\"cloner\"]');\n let maxBlocks = maxClonable($mainClonable);\n\n $thisBtn.closest('div.clonable')\n .css('opacity', 1)\n .slideUp('slow', function () { //slide up\n $(this).remove(); //then remove from the DOM\n $('.clonable-button-add').btnStatus($mainClonable.length >= maxBlocks);\n })\n .animate(\n {opacity: 0},\n {queue: false, duration: 'slow'}\n );\n}\n\n$.fn.clanableAdd = function (isHuman) {\n let $thisBtn = $(this);\n let $mainClonable = $thisBtn.closest('[data-toggle=\"cloner\"]');\n let $clonableSourceLast = $mainClonable.find('div.clonable:last');\n if (isHuman) {\n $thisBtn.btnStatus(true, true, ' fa-spinner fa-spin', false);\n $clonableSourceLast.find('input, textarea').each(function(k, v){\n $(v).val('');\n $(v).html('');\n });\n }else{\n scroll(0,0);\n }\n let maxBlocks = maxClonable($mainClonable);\n\n let $clonableSource = $mainClonable.find('div.clonable');\n\n\n $clonableSourceLast.find(\"span.text-danger\").text('');\n $clonableSourceLast.find('.is-invalid').removeClass(\"is-invalid\");\n\n $clonableSourceLast.css('display', isHuman ? 'none' : 'block')\n .css('opacity', 0)\n .slideDown('slow', function () { //slide up\n $thisBtn.btnStatus($clonableSource.length >= maxBlocks);\n })\n .animate(\n {opacity: 1},\n {queue: false, duration: 'slow'}\n ).find('.clonable-button-remove').css('display', 'block');\n\n\n let $lastSwitch = $clonableSourceLast.find('[data-toggle=\"switch\"]');\n if($lastSwitch.length){\n let mainParent = $lastSwitch.closest('div.form-group');\n mainParent.find('.bootstrap-switch').remove();\n mainParent.find('label.clonable-increment-for').after($lastSwitch.prop('checked', false));\n mainParent.find('[data-toggle=\"switch\"]').bootstrapSwitch({\n onSwitchChange: function (event, state) {\n $(event.currentTarget).val(state ? 1 : 0);\n }\n });\n }\n}\n\n$(document).on('focus', '.clean-text-danger', function(){\n $(this).parent().find('span.text-danger').empty();\n $(this).parent().find('.is-invalid').removeClass('is-invalid');\n})\n\n$.fn.handleButton = function (isDisabled) {\n let $thisBtn = $(this);\n $thisBtn.attr(\"disabled\", isDisabled);\n if(isDisabled){\n $thisBtn.addClass(\"disabled\");\n }else{\n $thisBtn.removeClass(\"disabled\");\n }\n}\n\n\n// WEBPACK FOOTER //\n// ./resources/js/global-fn.js","module.exports = require(\"regenerator-runtime\");\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/regenerator/index.js\n// module id = Xxa5\n// module chunks = 3 4 5 6 7","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n// This method of obtaining a reference to the global object needs to be\n// kept identical to the way it is obtained in runtime.js\nvar g = (function() { return this })() || Function(\"return this\")();\n\n// Use `getOwnPropertyNames` because not all browsers support calling\n// `hasOwnProperty` on the global `self` object in a worker. See #183.\nvar hadRuntime = g.regeneratorRuntime &&\n Object.getOwnPropertyNames(g).indexOf(\"regeneratorRuntime\") >= 0;\n\n// Save the old regeneratorRuntime in case it needs to be restored later.\nvar oldRuntime = hadRuntime && g.regeneratorRuntime;\n\n// Force reevalutation of runtime.js.\ng.regeneratorRuntime = undefined;\n\nmodule.exports = require(\"./runtime\");\n\nif (hadRuntime) {\n // Restore the original runtime.\n g.regeneratorRuntime = oldRuntime;\n} else {\n // Remove the global property added by runtime.js.\n try {\n delete g.regeneratorRuntime;\n } catch(e) {\n g.regeneratorRuntime = undefined;\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/regenerator-runtime/runtime-module.js\n// module id = jyFz\n// module chunks = 3 4 5 6 7"],"sourceRoot":""}