AlkantarClanX12

Your IP : 3.145.103.100


Current Path : /home/thanudqk/thepball.com/wp-content/plugins/wp-smushit/app/assets/js/
Upload File :
Current File : /home/thanudqk/thepball.com/wp-content/plugins/wp-smushit/app/assets/js/smush-sui.min.js.map

{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./_src/js/shared-ui.js","webpack:///./node_modules/@wpmudev/shared-ui/dist/js/_src/code-snippet.js","webpack:///./node_modules/@wpmudev/shared-ui/dist/js/_src/modal-dialog.js","webpack:///./node_modules/@wpmudev/shared-ui/dist/js/_src/notifications.js","webpack:///./node_modules/@wpmudev/shared-ui/dist/js/_src/scores.js","webpack:///./node_modules/@wpmudev/shared-ui/dist/js/_src/select.js","webpack:///./node_modules/@wpmudev/shared-ui/dist/js/_src/tabs.js","webpack:///./node_modules/@wpmudev/shared-ui/dist/js/_src/upload.js","webpack:///./node_modules/@wpmudev/shared-ui/dist/js/_src/reviews.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","require","_typeof","obj","iterator","constructor","$","ClipboardJS","window","document","undefined","defaults","copyText","copiedText","SUICodeSnippet","element","options","this","$element","settings","extend","_defaults","_name","_clipboardJs","_clipboardId","init","self","button","parent","length","wrap","generateUniqueId","attr","after","on","e","clearSelection","showTooltip","trigger","removeClass","removeAttr","getClipboardJs","msg","addClass","Math","random","toString","substr","destroy","unwrap","remove","fn","each","data","jQuery","SUI","suiCodeSnippet","ready","aria","KeyCode","BACKSPACE","TAB","RETURN","ESC","SPACE","PAGE_UP","PAGE_DOWN","END","HOME","LEFT","UP","RIGHT","DOWN","DELETE","Utils","item","parentNode","removeChild","isFocusable","tabIndex","getAttribute","disabled","nodeName","href","rel","type","simulateClick","evt","MouseEvent","bubbles","cancelable","view","dispatchEvent","IgnoreUtilFocusChanges","dialogOpenClass","focusFirstDescendant","childNodes","child","attemptFocus","focusLastDescendant","focus","activeElement","OpenDialogList","Array","getCurrentDialog","closeCurrentDialog","currentDialog","close","handleEscape","event","which","keyCode","stopPropagation","Dialog","dialogId","focusAfterClosed","focusFirst","hasOverlayMask","isCloseOnEsc","arguments","dialogNode","getElementById","Error","validRoles","isDialog","trim","split","some","token","role","openEvent","Event","backdropClass","classList","contains","backdropNode","createElement","className","setAttribute","insertBefore","dialogNodev","appendChild","add","body","preDiv","preNode","onclick","postDiv","postNode","nextSibling","removeListeners","addListeners","push","lastFocus","afterOpenEvent","closeEvent","pop","setTimeout","slides","querySelectorAll","hasAttribute","newDialogSize","newDialogLabel","getDialogLabel","newDialogDesc","getDialogDesc","removeAttribute","afterCloseEvent","replace","newDialogId","newFocusAfterClosed","newFocusFirst","slide","newSlideId","newSlideFocus","newSlideEntrance","animation","getAllSlides","getNewSlide","addEventListener","trapFocus","removeEventListener","target","openModal","dialogOverlay","closeModal","replaceModal","topDialog","slideModal","modalDialog","buttonOpen","buttonClose","buttonReplace","buttonSlide","overlayMask","modalId","slideId","closeFocus","newFocus","preventDefault","_defineProperty","configurable","writable","_this","openNotice","noticeId","noticeMessage","noticeOptions","noticeNode","nodeWrapper","utils","allowedNotices","isObject","isPlainObject","deepMerge","_len","sources","_key","source","shift","assign","apply","concat","setProperties","incomingOptions","icon","dismiss","show","label","tooltip","autoclose","timeout","buildDismiss","html","innerHTML","hasClass","buildIcon","buildMessage","prepend","buildNotice","append","showNotice","slideDown","find","closeNotice","parseInt","fadeIn","slideUp","fadeOut","hide","hideNotice","empty","notice","Open","is","paragraph","Close","closest","btnOpen","btnClose","loadCircleScore","el","score","svg","PI","css","suiSelect","handle","list","items","selectID","jq","prependTo","appendTo","populateList","not","ev","opt","selectItem","handleValue","stateToggle","stateOpen","click","stateClose","children","optGroupItem","$label","optgroup","prop","text","val","match","location","isInit","optColor","suiTabs","config","indexGroup","indexItem","types","groups","activeGroups","activeChildren","activeItems","memory","onClick","groupIndex","itemIndex","setNodes","callback","tab","pane","putActiveClass","setOption","tabItems","setDefaults","tabGroup","paneGroup","hash","id","tabsOverflow","$el","tabs","leftButton","rightButton","overflowing","scrollWidth","width","scrollLeft","reachedEnd","offset","newScrollLeft","outerWidth","animate","resize","scroll","tabgroup","tablist","keys","direction","37","38","39","40","clickEventListener","keydown","index","determineOrientation","keydownEventListener","keyup","activateTab","keyupEventListener","panels","controls","panel","deactivateTabs","proceed","pressed","switchTabOnArrowPress","currentTab","setCallback","upload","file","files","message","review","stars","round","stats","average_rating","starsBlock","total_reviews"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,O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AEI,WAAaJ,EAAQM,OAAO+C,OAC9B/C,OAAO+C,IAAM,IAGfA,IAAIkT,OAAS,WACXnW,EAAE,oDAAoD4B,GAAG,UAAU,SAAUC,GAC3E,IAAIuU,EAAOpW,EAAEW,MAAM,GAAG0V,MAAM,GACxBC,EAAUtW,EAAEW,MAAMkO,KAAK,yBAEvBuH,GACFE,EAAQ3E,KAAKyE,EAAKlY,UAKxB+E,IAAIkT,SAnBN,CAoBGnT,S,cCtBH,IAAWhD,KAkBRgD,QAfC,4BAA4BF,MAAK,WACjC,IAAIyT,EAASvW,EAAEW,MACfX,EAAExB,IAJW,gEAIG,SAAUuE,GACxB,IAEIpF,EAFA6Y,EAAQlU,KAAKmU,MAAM1T,EAAK2T,MAAMC,gBAC9BC,EAAaL,EAAO1H,KAAK,uBAAuB,GAGpD,IAAKlR,EAAI,EAAGA,EAAI6Y,EAAO7Y,IACrBiZ,EAAWxI,WAAa,oDAG1BmI,EAAO1H,KAAK,uBAAuB,GAAGT,UAAYrL,EAAK2T,MAAMC,eAC7DJ,EAAO1H,KAAK,+BAA+B,GAAGT,UAAYrL,EAAK2T,MAAMG","file":"smush-sui.min.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 = 4);\n","/**\n * Shared UI JS libraries. Use only what we need to keep the vendor file size smaller.\n *\n * @package\n */\nrequire( '@wpmudev/shared-ui/dist/js/_src/code-snippet' );\nrequire( '@wpmudev/shared-ui/dist/js/_src/modal-dialog' );\nrequire( '@wpmudev/shared-ui/dist/js/_src/notifications' );\nrequire( '@wpmudev/shared-ui/dist/js/_src/scores' );\nrequire( '@wpmudev/shared-ui/dist/js/_src/select' );\nrequire( '@wpmudev/shared-ui/dist/js/_src/tabs' );\nrequire( '@wpmudev/shared-ui/dist/js/_src/upload' ); // Used on lazy load page (since 3.2.2).\nrequire( '@wpmudev/shared-ui/dist/js/_src/reviews' );\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n// the semi-colon before function invocation is a safety net against concatenated\n// scripts and/or other plugins which may not be closed properly.\n;\n\n(function ($, ClipboardJS, window, document, undefined) {\n  'use strict'; // undefined is used here as the undefined global variable in ECMAScript 3 is\n  // mutable (ie. it can be changed by someone else). undefined isn't really being\n  // passed in so we can ensure the value of it is truly undefined. In ES5, undefined\n  // can no longer be modified.\n  // window and document are passed through as local variables rather than global\n  // as this (slightly) quickens the resolution process and can be more efficiently\n  // minified (especially when both are regularly referenced in your plugin).\n  // Create the defaults once\n\n  var pluginName = 'SUICodeSnippet',\n      defaults = {\n    copyText: 'Copy',\n    copiedText: 'Copied!'\n  }; // The actual plugin constructor\n\n  function SUICodeSnippet(element, options) {\n    this.element = element;\n    this.$element = $(this.element); // jQuery has an extend method which merges the contents of two or\n    // more objects, storing the result in the first object. The first object\n    // is generally empty as we don't want to alter the default options for\n    // future instances of the plugin\n\n    this.settings = $.extend({}, defaults, options);\n    this._defaults = defaults;\n    this._name = pluginName;\n    this._clipboardJs = null;\n    this._clipboardId = '';\n    this.init();\n  } // Avoid Plugin.prototype conflicts\n\n\n  $.extend(SUICodeSnippet.prototype, {\n    init: function init() {\n      var self = this,\n          button = ''; // check if its already wrapped\n\n      if (0 === this.$element.parent('sui-code-snippet-wrapper').length) {\n        // build markup\n        this.$element.wrap('<div class=\"sui-code-snippet-wrapper\"></div>');\n        this._clipboardId = this.generateUniqueId();\n        button = '<button class=\"sui-button\" id=\"sui-code-snippet-button-' + this._clipboardId + '\" data-clipboard-target=\"#sui-code-snippet-' + this._clipboardId + '\">' + this.settings.copyText + '</button>';\n        this.$element.attr('id', 'sui-code-snippet-' + this._clipboardId).after(button);\n        this._clipboardJs = new ClipboardJS('#sui-code-snippet-button-' + this._clipboardId); // attach events\n\n        this._clipboardJs.on('success', function (e) {\n          e.clearSelection();\n          self.showTooltip(e.trigger, self.settings.copiedText);\n        });\n\n        $('#sui-code-snippet-button-' + this._clipboardId).on('mouseleave.SUICodeSnippet', function () {\n          $(this).removeClass('sui-tooltip');\n          $(this).removeAttr('aria-label');\n          $(this).removeAttr('data-tooltip');\n        });\n      }\n    },\n    getClipboardJs: function getClipboardJs() {\n      return this._clipboardJs;\n    },\n    showTooltip: function showTooltip(e, msg) {\n      $(e).addClass('sui-tooltip');\n      $(e).attr('aria-label', msg);\n      $(e).attr('data-tooltip', msg);\n    },\n    generateUniqueId: function generateUniqueId() {\n      // Math.random should be unique because of its seeding algorithm.\n      // Convert it to base 36 (numbers + letters), and grab the first 9 characters\n      // after the decimal.\n      return '_' + Math.random().toString(36).substr(2, 9);\n    },\n    destroy: function destroy() {\n      if (null !== this._clipboardJs) {\n        this._clipboardJs.destroy();\n\n        this.$element.attr('id', '');\n        this.$element.unwrap('.sui-code-snippet-wrapper');\n        $('#sui-code-snippet-button-' + this._clipboardId).remove();\n      }\n    }\n  }); // A really lightweight plugin wrapper around the constructor,\n  // preventing against multiple instantiations\n\n  $.fn[pluginName] = function (options) {\n    return this.each(function () {\n      // instance of SUICodeSnippet can be called with $(element).data('SUICodeSnippet')\n      if (!$.data(this, pluginName)) {\n        $.data(this, pluginName, new SUICodeSnippet(this, options));\n      }\n    });\n  };\n})(jQuery, ClipboardJS, window, document);\n\n(function ($) {\n  // Enable strict mode.\n  'use strict'; // Define global SUI object if it doesn't exist.\n\n  if ('object' !== _typeof(window.SUI)) {\n    window.SUI = {};\n  }\n\n  SUI.suiCodeSnippet = function () {\n    // Convert all code snippet.\n    $('.sui-2-10-1 .sui-code-snippet:not(.sui-no-copy)').each(function () {\n      // backward compat of instantiate new accordion\n      $(this).SUICodeSnippet({});\n    });\n  }; // wait document ready first\n\n\n  $(document).ready(function () {\n    SUI.suiCodeSnippet();\n  });\n})(jQuery);","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function () {\n  // Enable strict mode.\n  'use strict';\n\n  if ('object' !== _typeof(window.SUI)) {\n    window.SUI = {};\n  }\n  /**\n   * @namespace aria\n   */\n\n\n  var aria = aria || {}; // REF: Key codes.\n\n  aria.KeyCode = {\n    BACKSPACE: 8,\n    TAB: 9,\n    RETURN: 13,\n    ESC: 27,\n    SPACE: 32,\n    PAGE_UP: 33,\n    PAGE_DOWN: 34,\n    END: 35,\n    HOME: 36,\n    LEFT: 37,\n    UP: 38,\n    RIGHT: 39,\n    DOWN: 40,\n    DELETE: 46\n  };\n  aria.Utils = aria.Utils || {}; // UTILS: Remove function.\n\n  aria.Utils.remove = function (item) {\n    if (item.remove && 'function' === typeof item.remove) {\n      return item.remove();\n    }\n\n    if (item.parentNode && item.parentNode.removeChild && 'function' === typeof item.parentNode.removeChild) {\n      return item.parentNode.removeChild(item);\n    }\n\n    return false;\n  }; // UTILS: Verify if element can be focused.\n\n\n  aria.Utils.isFocusable = function (element) {\n    if (0 < element.tabIndex || 0 === element.tabIndex && null !== element.getAttribute('tabIndex')) {\n      return true;\n    }\n\n    if (element.disabled) {\n      return false;\n    }\n\n    switch (element.nodeName) {\n      case 'A':\n        return !!element.href && 'ignore' != element.rel;\n\n      case 'INPUT':\n        return 'hidden' != element.type && 'file' != element.type;\n\n      case 'BUTTON':\n      case 'SELECT':\n      case 'TEXTAREA':\n        return true;\n\n      default:\n        return false;\n    }\n  };\n  /**\n   * Simulate a click event.\n   * @public\n   * @param {Element} element the element to simulate a click on\n   */\n\n\n  aria.Utils.simulateClick = function (element) {\n    // Create our event (with options)\n    var evt = new MouseEvent('click', {\n      bubbles: true,\n      cancelable: true,\n      view: window\n    }); // If cancelled, don't dispatch our event\n\n    var canceled = !element.dispatchEvent(evt);\n  }; // When util functions move focus around, set this true so\n  // the focus listener can ignore the events.\n\n\n  aria.Utils.IgnoreUtilFocusChanges = false;\n  aria.Utils.dialogOpenClass = 'sui-has-modal';\n  /**\n   * @desc Set focus on descendant nodes until the first\n   * focusable element is found.\n   *\n   * @param element\n   * DOM node for which to find the first focusable descendant.\n   *\n   * @returns\n   * true if a focusable element is found and focus is set.\n   */\n\n  aria.Utils.focusFirstDescendant = function (element) {\n    for (var i = 0; i < element.childNodes.length; i++) {\n      var child = element.childNodes[i];\n\n      if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) {\n        return true;\n      }\n    }\n\n    return false;\n  }; // end focusFirstDescendant\n\n  /**\n   * @desc Find the last descendant node that is focusable.\n   *\n   * @param element\n   * DOM node for which to find the last focusable descendant.\n   *\n   * @returns\n   * true if a focusable element is found and focus is set.\n   */\n\n\n  aria.Utils.focusLastDescendant = function (element) {\n    for (var i = element.childNodes.length - 1; 0 <= i; i--) {\n      var child = element.childNodes[i];\n\n      if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) {\n        return true;\n      }\n    }\n\n    return false;\n  }; // end focusLastDescendant\n\n  /**\n   * @desc Set Attempt to set focus on the current node.\n   *\n   * @param element\n   * The node to attempt to focus on.\n   *\n   * @returns\n   * true if element is focused.\n   */\n\n\n  aria.Utils.attemptFocus = function (element) {\n    if (!aria.Utils.isFocusable(element)) {\n      return false;\n    }\n\n    aria.Utils.IgnoreUtilFocusChanges = true;\n\n    try {\n      element.focus();\n    } catch (e) {// Done.\n    }\n\n    aria.Utils.IgnoreUtilFocusChanges = false;\n    return document.activeElement === element;\n  }; // end attemptFocus\n  // Modals can open modals. Keep track of them with this array.\n\n\n  aria.OpenDialogList = aria.OpenDialogList || new Array(0);\n  /**\n   * @returns the last opened dialog (the current dialog)\n   */\n\n  aria.getCurrentDialog = function () {\n    if (aria.OpenDialogList && aria.OpenDialogList.length) {\n      return aria.OpenDialogList[aria.OpenDialogList.length - 1];\n    }\n  };\n\n  aria.closeCurrentDialog = function () {\n    var currentDialog = aria.getCurrentDialog();\n\n    if (currentDialog) {\n      currentDialog.close();\n      return true;\n    }\n\n    return false;\n  };\n\n  aria.handleEscape = function (event) {\n    var key = event.which || event.keyCode;\n\n    if (key === aria.KeyCode.ESC && aria.closeCurrentDialog()) {\n      event.stopPropagation();\n    }\n  };\n  /**\n   * @constructor\n   * @desc Dialog object providing modal focus management.\n   *\n   * Assumptions: The element serving as the dialog container is present in the\n   * DOM and hidden. The dialog container has role='dialog'.\n   *\n   * @param dialogId\n   * The ID of the element serving as the dialog container.\n   *\n   * @param focusAfterClosed\n   * Either the DOM node or the ID of the DOM node to focus when the\n   * dialog closes.\n   *\n   * @param focusFirst\n   * Optional parameter containing either the DOM node or the ID of the\n   * DOM node to focus when the dialog opens. If not specified, the\n   * first focusable element in the dialog will receive focus.\n   *\n   * @param hasOverlayMask\n   * Optional boolean parameter that when is set to \"true\" will enable\n   * a clickable overlay mask. This mask will fire close modal function\n   * when you click on it.\n   *\n   * @param isCloseOnEsc\n   * Default: true\n   * Optional boolean parameter that when it's set to \"true\", it will enable closing the\n   * dialog with the Esc key.\n   */\n\n\n  aria.Dialog = function (dialogId, focusAfterClosed, focusFirst, hasOverlayMask) {\n    var isCloseOnEsc = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n    this.dialogNode = document.getElementById(dialogId);\n\n    if (null === this.dialogNode) {\n      throw new Error('No element found with id=\"' + dialogId + '\".');\n    }\n\n    var validRoles = ['dialog', 'alertdialog'];\n    var isDialog = (this.dialogNode.getAttribute('role') || '').trim().split(/\\s+/g).some(function (token) {\n      return validRoles.some(function (role) {\n        return token === role;\n      });\n    });\n\n    if (!isDialog) {\n      throw new Error('Dialog() requires a DOM element with ARIA role of dialog or alertdialog.');\n    }\n\n    this.isCloseOnEsc = isCloseOnEsc; // Trigger the 'open' event at the beginning of the opening process.\n    // After validating the modal's attributes.\n\n    var openEvent = new Event('open');\n    this.dialogNode.dispatchEvent(openEvent); // Wrap in an individual backdrop element if one doesn't exist\n    // Native <dialog> elements use the ::backdrop pseudo-element, which\n    // works similarly.\n\n    var backdropClass = 'sui-modal';\n\n    if (this.dialogNode.parentNode.classList.contains(backdropClass)) {\n      this.backdropNode = this.dialogNode.parentNode;\n    } else {\n      this.backdropNode = document.createElement('div');\n      this.backdropNode.className = backdropClass;\n      this.backdropNode.setAttribute('data-markup', 'new');\n      this.dialogNode.parentNode.insertBefore(this.backdropNode, this.dialogNodev);\n      this.backdropNode.appendChild(this.dialogNode);\n    }\n\n    this.backdropNode.classList.add('sui-active'); // Disable scroll on the body element\n\n    document.body.parentNode.classList.add(aria.Utils.dialogOpenClass);\n\n    if ('string' === typeof focusAfterClosed) {\n      this.focusAfterClosed = document.getElementById(focusAfterClosed);\n    } else if ('object' === _typeof(focusAfterClosed)) {\n      this.focusAfterClosed = focusAfterClosed;\n    } else {\n      throw new Error('the focusAfterClosed parameter is required for the aria.Dialog constructor.');\n    }\n\n    if ('string' === typeof focusFirst) {\n      this.focusFirst = document.getElementById(focusFirst);\n    } else if ('object' === _typeof(focusFirst)) {\n      this.focusFirst = focusFirst;\n    } else {\n      this.focusFirst = null;\n    } // Bracket the dialog node with two invisible, focusable nodes.\n    // While this dialog is open, we use these to make sure that focus never\n    // leaves the document even if dialogNode is the first or last node.\n\n\n    var preDiv = document.createElement('div');\n    this.preNode = this.dialogNode.parentNode.insertBefore(preDiv, this.dialogNode);\n    this.preNode.tabIndex = 0;\n\n    if ('boolean' === typeof hasOverlayMask && true === hasOverlayMask) {\n      this.preNode.classList.add('sui-modal-overlay');\n\n      this.preNode.onclick = function () {\n        aria.getCurrentDialog().close();\n      };\n    }\n\n    var postDiv = document.createElement('div');\n    this.postNode = this.dialogNode.parentNode.insertBefore(postDiv, this.dialogNode.nextSibling);\n    this.postNode.tabIndex = 0; // If this modal is opening on top of one that is already open,\n    // get rid of the document focus listener of the open dialog.\n\n    if (0 < aria.OpenDialogList.length) {\n      aria.getCurrentDialog().removeListeners();\n    }\n\n    this.addListeners();\n    aria.OpenDialogList.push(this);\n    this.dialogNode.classList.add('sui-content-fade-in'); // make visible\n\n    this.dialogNode.classList.remove('sui-content-fade-out');\n\n    if (this.focusFirst) {\n      this.focusFirst.focus();\n    } else {\n      aria.Utils.focusFirstDescendant(this.dialogNode);\n    }\n\n    this.lastFocus = document.activeElement; // Trigger the 'afteropen' event at the end of the opening process.\n\n    var afterOpenEvent = new Event('afterOpen');\n    this.dialogNode.dispatchEvent(afterOpenEvent);\n  }; // end Dialog constructor.\n\n  /**\n   * @desc Hides the current top dialog, removes listeners of the top dialog,\n   * restore listeners of a parent dialog if one was open under the one that\n   * just closed, and sets focus on the element specified for focusAfterClosed.\n   */\n\n\n  aria.Dialog.prototype.close = function () {\n    var self = this; // Trigger the 'close' event at the beginning of the closing process.\n\n    var closeEvent = new Event('close');\n    this.dialogNode.dispatchEvent(closeEvent);\n    aria.OpenDialogList.pop();\n    this.removeListeners();\n    this.preNode.parentNode.removeChild(this.preNode);\n    this.postNode.parentNode.removeChild(this.postNode);\n    this.dialogNode.classList.add('sui-content-fade-out');\n    this.dialogNode.classList.remove('sui-content-fade-in');\n    this.focusAfterClosed.focus();\n    setTimeout(function () {\n      self.backdropNode.classList.remove('sui-active');\n    }, 300);\n    setTimeout(function () {\n      var slides = self.dialogNode.querySelectorAll('.sui-modal-slide');\n\n      if (0 < slides.length) {\n        // Hide all slides.\n        for (var i = 0; i < slides.length; i++) {\n          slides[i].setAttribute('disabled', true);\n          slides[i].classList.remove('sui-loaded');\n          slides[i].classList.remove('sui-active');\n          slides[i].setAttribute('tabindex', '-1');\n          slides[i].setAttribute('aria-hidden', true);\n        } // Change modal size.\n\n\n        if (slides[0].hasAttribute('data-modal-size')) {\n          var newDialogSize = slides[0].getAttribute('data-modal-size');\n\n          switch (newDialogSize) {\n            case 'sm':\n            case 'small':\n              newDialogSize = 'sm';\n              break;\n\n            case 'md':\n            case 'med':\n            case 'medium':\n              newDialogSize = 'md';\n              break;\n\n            case 'lg':\n            case 'large':\n              newDialogSize = 'lg';\n              break;\n\n            case 'xl':\n            case 'extralarge':\n            case 'extraLarge':\n            case 'extra-large':\n              newDialogSize = 'xl';\n              break;\n\n            default:\n              newDialogSize = undefined;\n          }\n\n          if (undefined !== newDialogSize) {\n            // Remove others sizes from dialog to prevent any conflicts with styles.\n            self.dialogNode.parentNode.classList.remove('sui-modal-sm');\n            self.dialogNode.parentNode.classList.remove('sui-modal-md');\n            self.dialogNode.parentNode.classList.remove('sui-modal-lg');\n            self.dialogNode.parentNode.classList.remove('sui-modal-xl'); // Apply the new size to dialog.\n\n            self.dialogNode.parentNode.classList.add('sui-modal-' + newDialogSize);\n          }\n        } // Show first slide.\n\n\n        slides[0].classList.add('sui-active');\n        slides[0].classList.add('sui-loaded');\n        slides[0].removeAttribute('disabled');\n        slides[0].removeAttribute('tabindex');\n        slides[0].removeAttribute('aria-hidden'); // Change modal label.\n\n        if (slides[0].hasAttribute('data-modal-labelledby')) {\n          var newDialogLabel, getDialogLabel;\n          newDialogLabel = '';\n          getDialogLabel = slides[0].getAttribute('data-modal-labelledby');\n\n          if ('' !== getDialogLabel || undefined !== getDialogLabel) {\n            newDialogLabel = getDialogLabel;\n          }\n\n          self.dialogNode.setAttribute('aria-labelledby', newDialogLabel);\n        } // Change modal description.\n\n\n        if (slides[0].hasAttribute('data-modal-describedby')) {\n          var newDialogDesc, getDialogDesc;\n          newDialogDesc = '';\n          getDialogDesc = slides[0].getAttribute('data-modal-describedby');\n\n          if ('' !== getDialogDesc || undefined !== getDialogDesc) {\n            newDialogDesc = getDialogDesc;\n          }\n\n          self.dialogNode.setAttribute('aria-describedby', newDialogDesc);\n        }\n      }\n    }, 350); // If a dialog was open underneath this one, restore its listeners.\n\n    if (0 < aria.OpenDialogList.length) {\n      aria.getCurrentDialog().addListeners();\n    } else {\n      document.body.parentNode.classList.remove(aria.Utils.dialogOpenClass);\n    } // Trigger the 'afterclose' event at the end of the closing process.\n\n\n    var afterCloseEvent = new Event('afterClose');\n    this.dialogNode.dispatchEvent(afterCloseEvent);\n  }; // end close.\n\n  /**\n   * @desc Hides the current dialog and replaces it with another.\n   *\n   * @param newDialogId\n   * ID of the dialog that will replace the currently open top dialog.\n   *\n   * @param newFocusAfterClosed\n   * Optional ID or DOM node specifying where to place focus when the new dialog closes.\n   * If not specified, focus will be placed on the element specified by the dialog being replaced.\n   *\n   * @param newFocusFirst\n   * Optional ID or DOM node specifying where to place focus in the new dialog when it opens.\n   * If not specified, the first focusable element will receive focus.\n   *\n   * @param hasOverlayMask\n   * Optional boolean parameter that when is set to \"true\" will enable a clickable overlay\n   * mask to the new opened dialog. This mask will fire close dialog function when you click it.\n   *\n   * @param isCloseOnEsc\n   * Default: true\n   * Optional boolean parameter that when it's set to \"true\", it will enable closing the\n   * dialog with the Esc key.\n   */\n\n\n  aria.Dialog.prototype.replace = function (newDialogId, newFocusAfterClosed, newFocusFirst, hasOverlayMask) {\n    var isCloseOnEsc = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n    var self = this;\n    aria.OpenDialogList.pop();\n    this.removeListeners();\n    aria.Utils.remove(this.preNode);\n    aria.Utils.remove(this.postNode);\n    this.dialogNode.classList.remove('sui-content-fade-in');\n    this.backdropNode.classList.remove('sui-active');\n    setTimeout(function () {\n      var slides = self.dialogNode.querySelectorAll('.sui-modal-slide');\n\n      if (0 < slides.length) {\n        // Hide all slides.\n        for (var i = 0; i < slides.length; i++) {\n          slides[i].setAttribute('disabled', true);\n          slides[i].classList.remove('sui-loaded');\n          slides[i].classList.remove('sui-active');\n          slides[i].setAttribute('tabindex', '-1');\n          slides[i].setAttribute('aria-hidden', true);\n        } // Change modal size.\n\n\n        if (slides[0].hasAttribute('data-modal-size')) {\n          var newDialogSize = slides[0].getAttribute('data-modal-size');\n\n          switch (newDialogSize) {\n            case 'sm':\n            case 'small':\n              newDialogSize = 'sm';\n              break;\n\n            case 'md':\n            case 'med':\n            case 'medium':\n              newDialogSize = 'md';\n              break;\n\n            case 'lg':\n            case 'large':\n              newDialogSize = 'lg';\n              break;\n\n            case 'xl':\n            case 'extralarge':\n            case 'extraLarge':\n            case 'extra-large':\n              newDialogSize = 'xl';\n              break;\n\n            default:\n              newDialogSize = undefined;\n          }\n\n          if (undefined !== newDialogSize) {\n            // Remove others sizes from dialog to prevent any conflicts with styles.\n            self.dialogNode.parentNode.classList.remove('sui-modal-sm');\n            self.dialogNode.parentNode.classList.remove('sui-modal-md');\n            self.dialogNode.parentNode.classList.remove('sui-modal-lg');\n            self.dialogNode.parentNode.classList.remove('sui-modal-xl'); // Apply the new size to dialog.\n\n            self.dialogNode.parentNode.classList.add('sui-modal-' + newDialogSize);\n          }\n        } // Show first slide.\n\n\n        slides[0].classList.add('sui-active');\n        slides[0].classList.add('sui-loaded');\n        slides[0].removeAttribute('disabled');\n        slides[0].removeAttribute('tabindex');\n        slides[0].removeAttribute('aria-hidden'); // Change modal label.\n\n        if (slides[0].hasAttribute('data-modal-labelledby')) {\n          var newDialogLabel, getDialogLabel;\n          newDialogLabel = '';\n          getDialogLabel = slides[0].getAttribute('data-modal-labelledby');\n\n          if ('' !== getDialogLabel || undefined !== getDialogLabel) {\n            newDialogLabel = getDialogLabel;\n          }\n\n          self.dialogNode.setAttribute('aria-labelledby', newDialogLabel);\n        } // Change modal description.\n\n\n        if (slides[0].hasAttribute('data-modal-describedby')) {\n          var newDialogDesc, getDialogDesc;\n          newDialogDesc = '';\n          getDialogDesc = slides[0].getAttribute('data-modal-describedby');\n\n          if ('' !== getDialogDesc || undefined !== getDialogDesc) {\n            newDialogDesc = getDialogDesc;\n          }\n\n          self.dialogNode.setAttribute('aria-describedby', newDialogDesc);\n        }\n      }\n    }, 350);\n    var focusAfterClosed = newFocusAfterClosed || this.focusAfterClosed;\n    var dialog = new aria.Dialog(newDialogId, focusAfterClosed, newFocusFirst, hasOverlayMask, isCloseOnEsc);\n  }; // end replace\n\n  /**\n   * @desc Uses the same dialog to display different content that will slide to show.\n   *\n   * @param newSlideId\n   * ID of the slide that will replace the currently active slide content.\n   *\n   * @param newSlideFocus\n   * Optional ID or DOM node specifying where to place focus in the new slide when it shows.\n   * If not specified, the first focusable element will receive focus.\n   *\n   * @param newSlideEntrance\n   * Determine if the new slide will show up from \"left\" or \"right\" of the screen.\n   * If not specified, the slide entrance animation will be \"fade in\".\n   */\n\n\n  aria.Dialog.prototype.slide = function (newSlideId, newSlideFocus, newSlideEntrance) {\n    var animation = 'sui-fadein',\n        currentDialog = aria.getCurrentDialog(),\n        getAllSlides = this.dialogNode.querySelectorAll('.sui-modal-slide'),\n        getNewSlide = document.getElementById(newSlideId);\n\n    switch (newSlideEntrance) {\n      case 'back':\n      case 'left':\n        animation = 'sui-fadein-left';\n        break;\n\n      case 'next':\n      case 'right':\n        animation = 'sui-fadein-right';\n        break;\n\n      default:\n        animation = 'sui-fadein';\n        break;\n    } // Hide all slides.\n\n\n    for (var i = 0; i < getAllSlides.length; i++) {\n      getAllSlides[i].setAttribute('disabled', true);\n      getAllSlides[i].classList.remove('sui-loaded');\n      getAllSlides[i].classList.remove('sui-active');\n      getAllSlides[i].setAttribute('tabindex', '-1');\n      getAllSlides[i].setAttribute('aria-hidden', true);\n    } // Change modal size.\n\n\n    if (getNewSlide.hasAttribute('data-modal-size')) {\n      var newDialogSize = getNewSlide.getAttribute('data-modal-size');\n\n      switch (newDialogSize) {\n        case 'sm':\n        case 'small':\n          newDialogSize = 'sm';\n          break;\n\n        case 'md':\n        case 'med':\n        case 'medium':\n          newDialogSize = 'md';\n          break;\n\n        case 'lg':\n        case 'large':\n          newDialogSize = 'lg';\n          break;\n\n        case 'xl':\n        case 'extralarge':\n        case 'extraLarge':\n        case 'extra-large':\n          newDialogSize = 'xl';\n          break;\n\n        default:\n          newDialogSize = undefined;\n      }\n\n      if (undefined !== newDialogSize) {\n        // Remove others sizes from dialog to prevent any conflicts with styles.\n        this.dialogNode.parentNode.classList.remove('sui-modal-sm');\n        this.dialogNode.parentNode.classList.remove('sui-modal-md');\n        this.dialogNode.parentNode.classList.remove('sui-modal-lg');\n        this.dialogNode.parentNode.classList.remove('sui-modal-xl'); // Apply the new size to dialog.\n\n        this.dialogNode.parentNode.classList.add('sui-modal-' + newDialogSize);\n      }\n    } // Change modal label.\n\n\n    if (getNewSlide.hasAttribute('data-modal-labelledby')) {\n      var newDialogLabel, getDialogLabel;\n      newDialogLabel = '';\n      getDialogLabel = getNewSlide.getAttribute('data-modal-labelledby');\n\n      if ('' !== getDialogLabel || undefined !== getDialogLabel) {\n        newDialogLabel = getDialogLabel;\n      }\n\n      this.dialogNode.setAttribute('aria-labelledby', newDialogLabel);\n    } // Change modal description.\n\n\n    if (getNewSlide.hasAttribute('data-modal-describedby')) {\n      var newDialogDesc, getDialogDesc;\n      newDialogDesc = '';\n      getDialogDesc = getNewSlide.getAttribute('data-modal-describedby');\n\n      if ('' !== getDialogDesc || undefined !== getDialogDesc) {\n        newDialogDesc = getDialogDesc;\n      }\n\n      this.dialogNode.setAttribute('aria-describedby', newDialogDesc);\n    } // Show new slide.\n\n\n    getNewSlide.classList.add('sui-active');\n    getNewSlide.classList.add(animation);\n    getNewSlide.removeAttribute('tabindex');\n    getNewSlide.removeAttribute('aria-hidden');\n    setTimeout(function () {\n      getNewSlide.classList.add('sui-loaded');\n      getNewSlide.classList.remove(animation);\n      getNewSlide.removeAttribute('disabled');\n    }, 600);\n\n    if ('string' === typeof newSlideFocus) {\n      this.newSlideFocus = document.getElementById(newSlideFocus);\n    } else if ('object' === _typeof(newSlideFocus)) {\n      this.newSlideFocus = newSlideFocus;\n    } else {\n      this.newSlideFocus = null;\n    }\n\n    if (this.newSlideFocus) {\n      this.newSlideFocus.focus();\n    } else {\n      aria.Utils.focusFirstDescendant(this.dialogNode);\n    }\n  }; // end slide.\n\n\n  aria.Dialog.prototype.addListeners = function () {\n    document.addEventListener('focus', this.trapFocus, true);\n\n    if (this.isCloseOnEsc) {\n      this.dialogNode.addEventListener('keyup', aria.handleEscape);\n    }\n  }; // end addListeners.\n\n\n  aria.Dialog.prototype.removeListeners = function () {\n    document.removeEventListener('focus', this.trapFocus, true);\n  }; // end removeListeners.\n\n\n  aria.Dialog.prototype.trapFocus = function (event) {\n    if (aria.Utils.IgnoreUtilFocusChanges) {\n      return;\n    }\n\n    var currentDialog = aria.getCurrentDialog();\n\n    if (currentDialog.dialogNode.contains(event.target)) {\n      currentDialog.lastFocus = event.target;\n    } else {\n      aria.Utils.focusFirstDescendant(currentDialog.dialogNode);\n\n      if (currentDialog.lastFocus == document.activeElement) {\n        aria.Utils.focusLastDescendant(currentDialog.dialogNode);\n      }\n\n      currentDialog.lastFocus = document.activeElement;\n    }\n  }; // end trapFocus.\n\n\n  SUI.openModal = function (dialogId, focusAfterClosed, focusFirst, dialogOverlay) {\n    var isCloseOnEsc = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n    var dialog = new aria.Dialog(dialogId, focusAfterClosed, focusFirst, dialogOverlay, isCloseOnEsc);\n  }; // end openModal.\n\n\n  SUI.closeModal = function () {\n    var topDialog = aria.getCurrentDialog();\n    topDialog.close();\n  }; // end closeDialog.\n\n\n  SUI.replaceModal = function (newDialogId, newFocusAfterClosed, newFocusFirst, hasOverlayMask) {\n    var isCloseOnEsc = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;\n    var topDialog = aria.getCurrentDialog();\n    /**\n     * BUG #1:\n     * When validating document.activeElement it always returns \"false\" but\n     * even when \"false\" on Chrome function is fired correctly while on Firefox\n     * and Safari this validation prevents function to be fired on click.\n     *\n     * if ( topDialog.dialogNode.contains( document.activeElement ) ) { ... }\n     */\n\n    topDialog.replace(newDialogId, newFocusAfterClosed, newFocusFirst, hasOverlayMask, isCloseOnEsc);\n  }; // end replaceModal.\n\n\n  SUI.slideModal = function (newSlideId, newSlideFocus, newSlideEntrance) {\n    var topDialog = aria.getCurrentDialog();\n    topDialog.slide(newSlideId, newSlideFocus, newSlideEntrance);\n  }; // end slideModal.\n\n})();\n\n(function ($) {\n  // Enable strict mode.\n  'use strict';\n\n  if ('object' !== _typeof(window.SUI)) {\n    window.SUI = {};\n  }\n\n  SUI.modalDialog = function () {\n    function init() {\n      var button, buttonOpen, buttonClose, buttonReplace, buttonSlide, overlayMask, modalId, slideId, closeFocus, newFocus, animation;\n      buttonOpen = $('[data-modal-open]');\n      buttonClose = $('[data-modal-close]');\n      buttonReplace = $('[data-modal-replace]');\n      buttonSlide = $('[data-modal-slide]');\n      overlayMask = $('.sui-modal-overlay');\n      buttonOpen.on('click', function (e) {\n        button = $(this);\n        modalId = button.attr('data-modal-open');\n        closeFocus = button.attr('data-modal-close-focus');\n        newFocus = button.attr('data-modal-open-focus');\n        overlayMask = button.attr('data-modal-mask');\n        var isCloseOnEsc = 'false' === button.attr('data-esc-close') ? false : true;\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) === _typeof(closeFocus) || false === closeFocus || '' === closeFocus) {\n          closeFocus = this;\n        }\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) === _typeof(newFocus) || false === newFocus || '' === newFocus) {\n          newFocus = undefined;\n        }\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) !== _typeof(overlayMask) && false !== overlayMask && 'true' === overlayMask) {\n          overlayMask = true;\n        } else {\n          overlayMask = false;\n        }\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) !== _typeof(modalId) && false !== modalId && '' !== modalId) {\n          SUI.openModal(modalId, closeFocus, newFocus, overlayMask, isCloseOnEsc);\n        }\n\n        e.preventDefault();\n      });\n      buttonReplace.on('click', function (e) {\n        button = $(this);\n        modalId = button.attr('data-modal-replace');\n        closeFocus = button.attr('data-modal-close-focus');\n        newFocus = button.attr('data-modal-open-focus');\n        overlayMask = button.attr('data-modal-replace-mask');\n        var isCloseOnEsc = 'false' === button.attr('data-esc-close') ? false : true;\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) === _typeof(closeFocus) || false === closeFocus || '' === closeFocus) {\n          closeFocus = undefined;\n        }\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) === _typeof(newFocus) || false === newFocus || '' === newFocus) {\n          newFocus = undefined;\n        }\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) !== _typeof(overlayMask) && false !== overlayMask && 'true' === overlayMask) {\n          overlayMask = true;\n        } else {\n          overlayMask = false;\n        }\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) !== _typeof(modalId) && false !== modalId && '' !== modalId) {\n          SUI.replaceModal(modalId, closeFocus, newFocus, overlayMask, isCloseOnEsc);\n        }\n\n        e.preventDefault();\n      });\n      buttonSlide.on('click', function (e) {\n        button = $(this);\n        slideId = button.attr('data-modal-slide');\n        newFocus = button.attr('data-modal-slide-focus');\n        animation = button.attr('data-modal-slide-intro');\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) === _typeof(newFocus) || false === newFocus || '' === newFocus) {\n          newFocus = undefined;\n        }\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) === _typeof(animation) || false === animation || '' === animation) {\n          animation = '';\n        }\n\n        if ((typeof undefined === \"undefined\" ? \"undefined\" : _typeof(undefined)) !== _typeof(slideId) && false !== slideId && '' !== slideId) {\n          SUI.slideModal(slideId, newFocus, animation);\n        }\n\n        e.preventDefault();\n      });\n      buttonClose.on('click', function (e) {\n        SUI.closeModal();\n        e.preventDefault();\n      });\n    }\n\n    init();\n    return this;\n  };\n\n  SUI.modalDialog();\n})(jQuery);","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function ($) {\n  // Enable strict mode.\n  'use strict'; // Define global SUI object if it does not exist.\n\n  var _this = this;\n\n  if ('object' !== _typeof(window.SUI)) {\n    window.SUI = {};\n  }\n  /**\n   * @desc Notifications function to show when alert.\n   *\n   * Assumptions: The element serving as the alert container is present in the\n   * DOM and hidden. The alert container has role='alert'.\n   *\n   * @param noticeId\n   * The ID of the element serving as the alert container.\n   *\n   * @param noticeMessage\n   * The content to be printed when the alert shows up. It accepts HTML.\n   *\n   * @param noticeOptions\n   * An object with different paramethers to modify the alert appearance.\n   */\n\n\n  SUI.openNotice = function (noticeId, noticeMessage, noticeOptions) {\n    // Get notification node by ID.\n    var noticeNode = $('#' + noticeId);\n    var nodeWrapper = noticeNode.parent(); // Check if element ID exists.\n\n    if (null === typeof noticeNode || 'undefined' === typeof noticeNode) {\n      throw new Error('No element found with id=\"' + noticeId + '\".');\n    } // Check if element has correct attribute.\n\n\n    if ('alert' !== noticeNode.attr('role')) {\n      throw new Error('Notice requires a DOM element with ARIA role of alert.');\n    } // Check if notice message is empty.\n\n\n    if (null === typeof noticeMessage || 'undefined' === typeof noticeMessage || '' === noticeMessage) {\n      throw new Error('Notice requires a message to print.');\n    }\n\n    var utils = utils || {};\n    /**\n     * @desc Allowed types for notification.\n     */\n\n    utils.allowedNotices = ['info', 'blue', 'green', 'success', 'yellow', 'warning', 'red', 'error', 'purple', 'upsell'];\n    /**\n     * @desc Verify if property is an array.\n     */\n\n    utils.isObject = function (obj) {\n      if ((null !== obj || 'undefined' !== obj) && $.isPlainObject(obj)) {\n        return true;\n      }\n\n      return false;\n    };\n    /**\n     * @desc Deep merge two objects.\n     * Watch out for infinite recursion on circular references.\n     */\n\n\n    utils.deepMerge = function (target) {\n      for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n        sources[_key - 1] = arguments[_key];\n      }\n\n      if (!sources.length) {\n        return target;\n      }\n\n      var source = sources.shift();\n\n      if (utils.isObject(target) && utils.isObject(source)) {\n        for (var key in source) {\n          if (utils.isObject(source[key])) {\n            if (!target[key]) {\n              Object.assign(target, _defineProperty({}, key, {}));\n            }\n\n            utils.deepMerge(target[key], source[key]);\n          } else {\n            Object.assign(target, _defineProperty({}, key, source[key]));\n          }\n        }\n      }\n\n      return utils.deepMerge.apply(utils, [target].concat(sources));\n    };\n    /**\n     * @desc Declare default styling options for notifications.\n     */\n\n\n    utils.setProperties = function () {\n      var incomingOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n      utils.options = [];\n      var defaults = {\n        type: 'default',\n        icon: 'info',\n        dismiss: {\n          show: false,\n          label: 'Close this notice',\n          tooltip: ''\n        },\n        autoclose: {\n          show: true,\n          timeout: 3000\n        }\n      };\n      utils.options[0] = utils.deepMerge(defaults, incomingOptions);\n    };\n\n    utils.setProperties(noticeOptions);\n    /**\n     * @desc Build notice dismiss.\n     */\n\n    utils.buildDismiss = function () {\n      var html = '';\n      var dismiss = utils.options[0].dismiss;\n\n      if (true === dismiss.show) {\n        html = document.createElement('div');\n        html.className = 'sui-notice-actions';\n        var innerHTML = '';\n\n        if ('' !== dismiss.tooltip) {\n          if (nodeWrapper.hasClass('sui-floating-notices')) {\n            innerHTML += '<div class=\"sui-tooltip sui-tooltip-bottom\" data-tooltip=\"' + dismiss.tooltip + '\">';\n          } else {\n            innerHTML += '<div class=\"sui-tooltip\" data-tooltip=\"' + dismiss.tooltip + '\">';\n          }\n        }\n\n        innerHTML += '<button class=\"sui-button-icon\">';\n        innerHTML += '<i class=\"sui-icon-check\" aria-hidden=\"true\"></i>';\n\n        if ('' !== dismiss.label) {\n          innerHTML += '<span class=\"sui-screen-reader-text\">' + dismiss.label + '</span>';\n        }\n\n        innerHTML += '</button>';\n\n        if ('' !== dismiss.tooltip) {\n          innerHTML += '</div>';\n        }\n\n        html.innerHTML = innerHTML;\n      }\n\n      return html;\n    };\n    /**\n     * @desc Build notice icon.\n     */\n\n\n    utils.buildIcon = function () {\n      var html = '';\n      var icon = utils.options[0].icon;\n\n      if ('' !== icon || 'undefined' !== typeof icon || null !== typeof icon) {\n        html = document.createElement('span');\n        html.className += 'sui-notice-icon sui-icon-' + icon + ' sui-md';\n        html.setAttribute('aria-hidden', true);\n\n        if ('loader' === icon) {\n          html.classList.add('sui-loading');\n        }\n      }\n\n      return html;\n    };\n    /**\n     * @desc Build notice message.\n     */\n\n\n    utils.buildMessage = function () {\n      var html = document.createElement('div');\n      html.className = 'sui-notice-message';\n      html.innerHTML = noticeMessage;\n      html.prepend(utils.buildIcon());\n      return html;\n    };\n    /**\n     * @desc Build notice markup.\n     */\n\n\n    utils.buildNotice = function () {\n      var html = document.createElement('div');\n      html.className = 'sui-notice-content';\n      html.append(utils.buildMessage(), utils.buildDismiss());\n      return html;\n    };\n    /**\n     * @desc Show notification message.\n     */\n\n\n    utils.showNotice = function (animation) {\n      var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;\n      var type = utils.options[0].type;\n      var dismiss = utils.options[0].dismiss;\n      var autoclose = utils.options[0].autoclose; // Add active class.\n\n      noticeNode.addClass('sui-active'); // Check for allowed notification types.\n\n      $.each(utils.allowedNotices, function (key, value) {\n        if (value === type) {\n          noticeNode.addClass('sui-notice-' + value);\n        }\n      }); // Remove tabindex.\n\n      noticeNode.removeAttr('tabindex'); // Print notification message.\n\n      noticeNode.html(utils.buildNotice()); // Show animation.\n\n      if ('slide' === animation) {\n        noticeNode.slideDown(timeout, function () {\n          // Check if dismiss button enabled.\n          if (true === dismiss.show) {\n            // Focus dismiss button.\n            noticeNode.find('.sui-notice-actions button').focus(); // Dismiss button.\n\n            noticeNode.find('.sui-notice-actions button').on('click', function () {\n              SUI.closeNotice(noticeId);\n            });\n          } else {\n            // Check if notice auto-closes.\n            if (true === autoclose.show) {\n              setTimeout(function () {\n                return SUI.closeNotice(noticeId);\n              }, parseInt(autoclose.timeout));\n            }\n          }\n        });\n      } else if ('fade' === animation) {\n        noticeNode.fadeIn(timeout, function () {\n          // Check if dismiss button enabled.\n          if (true === dismiss.show) {\n            // Focus dismiss button.\n            noticeNode.find('.sui-notice-actions button').focus(); // Dismiss button.\n\n            noticeNode.find('.sui-notice-actions button').on('click', function () {\n              SUI.closeNotice(noticeId);\n            });\n          } else {\n            // Check if notice auto-closes.\n            if (true === autoclose.show) {\n              setTimeout(function () {\n                return SUI.closeNotice(noticeId);\n              }, parseInt(autoclose.timeout));\n            }\n          }\n        });\n      } else {\n        noticeNode.show(timeout, function () {\n          // Check if dismiss button enabled.\n          if (true === dismiss.show) {\n            // Focus dismiss button.\n            noticeNode.find('.sui-notice-actions button').focus(); // Dismiss button.\n\n            noticeNode.find('.sui-notice-actions button').on('click', function () {\n              SUI.closeNotice(noticeId);\n            });\n          } else {\n            // Check if notice auto-closes.\n            if (true === autoclose.show) {\n              setTimeout(function () {\n                return SUI.closeNotice(noticeId);\n              }, parseInt(autoclose.timeout));\n            }\n          }\n        });\n      }\n    };\n    /**\n     * @desc Open notification message.\n     */\n\n\n    utils.openNotice = function (animation) {\n      var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;\n\n      if (noticeNode.hasClass('sui-active')) {\n        if ('slide' === animation) {\n          noticeNode.slideUp(timeout, function () {\n            utils.showNotice('slide', timeout);\n          });\n        } else if ('fade' === animation) {\n          noticeNode.fadeOut(timeout, function () {\n            utils.showNotice('fade', timeout);\n          });\n        } else {\n          noticeNode.hide(timeout, function () {\n            utils.showNotice(null, timeout);\n          });\n        }\n      } else {\n        // Show notice.\n        utils.showNotice(animation, timeout);\n      }\n    };\n    /**\n     * @desc Initialize function.\n     */\n\n\n    var init = function init() {\n      /**\n       * When notice should float, it needs to be wrapped inside:\n       * <div class=\"sui-floating-notices\"></div>\n       *\n       * IMPORTANT: This wrapper goes before \"sui-wrap\" closing tag\n       * and after modals markup.\n       */\n      if (nodeWrapper.hasClass('sui-floating-notices')) {\n        utils.openNotice('slide');\n      } else {\n        utils.openNotice('fade');\n      }\n    };\n\n    init();\n    return _this;\n  };\n  /**\n   * @desc Close and clear the alert.\n   *\n   * Assumptions: The element that will trigger this function is part of alert content.\n   *\n   * @param noticeId\n   * The ID of the element serving as the alert container.\n   *\n   */\n\n\n  SUI.closeNotice = function (noticeId) {\n    // Get notification node by ID.\n    var noticeNode = $('#' + noticeId);\n    var nodeWrapper = noticeNode.parent(); // Check if element ID exists.\n\n    if (null === typeof noticeNode || 'undefined' === typeof noticeNode) {\n      throw new Error('No element found with id=\"' + noticeId + '\".');\n    }\n\n    var utils = utils || {};\n    /**\n     * @desc Allowed types for notification.\n     */\n\n    utils.allowedNotices = ['info', 'blue', 'green', 'success', 'yellow', 'warning', 'red', 'error', 'purple', 'upsell'];\n    /**\n     * @desc Destroy notification.\n     */\n\n    utils.hideNotice = function () {\n      // Remove active class.\n      noticeNode.removeClass('sui-active'); // Remove styling classes.\n\n      $.each(utils.allowedNotices, function (key, value) {\n        noticeNode.removeClass('sui-notice-' + value);\n      }); // Prevent TAB key from accessing the element.\n\n      noticeNode.attr('tabindex', '-1'); // Remove all content from notification.\n\n      noticeNode.empty();\n    };\n    /**\n     * @desc Close notification message.\n     */\n\n\n    utils.closeNotice = function (animation) {\n      var timeout = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;\n\n      // Close animation.\n      if ('slide' === animation) {\n        noticeNode.slideUp(timeout, function () {\n          return utils.hideNotice();\n        });\n      } else if ('fade' === animation) {\n        noticeNode.fadeOut(timeout, function () {\n          return utils.hideNotice();\n        });\n      } else {\n        noticeNode.hide(timeout, function () {\n          return utils.hideNotice();\n        });\n      }\n    };\n    /**\n     * @desc Initialize function.\n     */\n\n\n    var init = function init() {\n      /**\n       * When notice should float, it needs to be wrapped inside:\n       * <div class=\"sui-floating-notices\"></div>\n       *\n       * IMPORTANT: This wrapper goes before \"sui-wrap\" closing tag\n       * and after modals markup.\n       */\n      if (nodeWrapper.hasClass('sui-floating-notices')) {\n        utils.closeNotice('slide');\n      } else {\n        utils.closeNotice('fade');\n      }\n    };\n\n    init();\n    return _this;\n  };\n  /**\n   * @desc Trigger open and close alert notification functions through element attributes.\n   *\n   * Assumptions: Elements in charge of triggering the actions will be a button or a non-hyperlink element.\n   *\n   */\n\n\n  SUI.notice = function () {\n    var notice = notice || {};\n    notice.Utils = notice.Utils || {};\n    /**\n     * @desc Click an element to open a notification.\n     */\n\n    notice.Utils.Open = function (element) {\n      element.on('click', function () {\n        self = $(this); // Define main variables for open function.\n\n        var noticeId = self.attr('data-notice-open');\n        var noticeMessage = '';\n        var noticeOptions = {}; // Define index to use on for loops.\n\n        var i; // Define maximum number of paragraphs.\n\n        var numbLines = 4; // Check if `data-notice-message` exists.\n\n        if (self.is('[data-notice-message]') && '' !== self.attr('data-notice-message')) {\n          noticeMessage += self.attr('data-notice-message'); // If `data-notice-message` doesn't exists, look for `data-notice-paragraph-[i]` attributes.\n        } else {\n          for (i = 0; i < numbLines; i++) {\n            var index = i + 1;\n            var paragraph = 'data-notice-paragraph-' + index;\n\n            if (self.is('[' + paragraph + ']') && '' !== self.attr(paragraph)) {\n              noticeMessage += '<p>' + self.attr(paragraph) + '</p>';\n            }\n          }\n        } // Check if `data-notice-type` exists.\n\n\n        if (self.is('[data-notice-type]') && '' !== self.attr('data-notice-dismiss-type')) {\n          noticeOptions.type = self.attr('data-notice-type');\n        } // Check if `data-notice-icon` exists.\n\n\n        if (self.is('[data-notice-icon]')) {\n          noticeOptions.icon = self.attr('data-notice-icon');\n        } // Check if `data-notice-dismiss` exists.\n\n\n        if (self.is('[data-notice-dismiss]')) {\n          noticeOptions.dismiss = {};\n\n          if ('true' === self.attr('data-notice-dismiss')) {\n            noticeOptions.dismiss.show = true;\n          } else if ('false' === self.attr('data-notice-dismiss')) {\n            noticeOptions.dismiss.show = false;\n          }\n        } // Check if `data-notice-dismiss-label` exists.\n\n\n        if (self.is('[data-notice-dismiss-label]') && '' !== self.attr('data-notice-dismiss-label')) {\n          noticeOptions.dismiss.label = self.attr('data-notice-dismiss-label');\n        } // Check if `data-notice-dismiss-label` exists.\n\n\n        if (self.is('[data-notice-dismiss-tooltip]') && '' !== self.attr('data-notice-dismiss-tooltip')) {\n          noticeOptions.dismiss.tooltip = self.attr('data-notice-dismiss-tooltip');\n        } // Check if `data-notice-autoclose` exists.\n\n\n        if (self.is('[data-notice-autoclose]')) {\n          noticeOptions.autoclose = {};\n\n          if ('true' === self.attr('data-notice-autoclose')) {\n            noticeOptions.autoclose.show = true;\n          } else if ('false' === self.attr('data-notice-autoclose')) {\n            noticeOptions.autoclose.show = false;\n          }\n        } // Check if `data-notice-autoclose-timeout` exists.\n\n\n        if (self.is('[data-notice-autoclose-timeout]')) {\n          noticeOptions.autoclose = noticeOptions.autoclose || {};\n          noticeOptions.autoclose.timeout = parseInt(self.attr('data-notice-autoclose-timeout'));\n        }\n\n        SUI.openNotice(noticeId, noticeMessage, noticeOptions);\n      });\n    };\n    /**\n     * @desc Close a notification.\n     */\n\n\n    notice.Utils.Close = function (element) {\n      element.on('click', function () {\n        self = $(this);\n        var noticeId;\n\n        if (self.is('[data-notice-close]')) {\n          noticeId = self.closest('.sui-notice').attr('id');\n\n          if ('' !== self.attr('[data-notice-close]')) {\n            noticeId = self.attr('data-notice-close');\n          }\n\n          SUI.closeNotice(noticeId);\n        }\n      });\n    };\n\n    var init = function init() {\n      // Open a notification.\n      var btnOpen = $('[data-notice-open]');\n      notice.Utils.Open(btnOpen); // Close a notification.\n\n      var btnClose = $('[data-notice-close]');\n      notice.Utils.Close(btnClose);\n    };\n\n    init();\n    return _this;\n  };\n\n  SUI.notice();\n})(jQuery);","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function ($) {\n  // Enable strict mode.\n  'use strict'; // Define global SUI object if it doesn't exist.\n\n  if ('object' !== _typeof(window.SUI)) {\n    window.SUI = {};\n  }\n\n  SUI.loadCircleScore = function (el) {\n    var dial = $(el).find('svg circle:last-child'),\n        score = $(el).data('score'),\n        radius = 42,\n        circumference = 2 * Math.PI * radius,\n        dashLength = circumference / 100 * score,\n        gapLength = dashLength * 100 - score,\n        svg = '<svg viewbox=\"0 0 100 100\" xmlns=\"http://www.w3.org/2000/svg\">\\n' + '<circle stroke-width=\"16\" cx=\"50\" cy=\"50\" r=\"42\" />\\n' + '<circle stroke-width=\"16\" cx=\"50\" cy=\"50\" r=\"42\" stroke-dasharray=\"0,' + gapLength + '\" />\\n' + '</svg>\\n' + '<span class=\"sui-circle-score-label\">' + score + '</span>\\n'; // Add svg to score element, add loaded class, & change stroke-dasharray to represent target score/percentage.\n\n    $(el).prepend(svg).addClass('loaded').find('circle:last-child').css('animation', 'sui' + score + ' 3s forwards');\n  };\n\n  $('.sui-2-10-1 .sui-circle-score').each(function () {\n    SUI.loadCircleScore(this);\n  });\n})(jQuery);","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function ($) {\n  // Enable strict mode.\n  'use strict'; // Define global SUI object if it doesn't exist.\n\n  if ('object' !== _typeof(window.SUI)) {\n    window.SUI = {};\n  }\n\n  SUI.suiSelect = function (el) {\n    var jq = $(el),\n        wrap,\n        handle,\n        list,\n        value,\n        items;\n\n    if (!jq.is('select')) {\n      return;\n    }\n\n    if (jq.closest('.select-container').length || jq.data('select2') || jq.is('.sui-select') || jq.is('.sui-search') || jq.is('.sui-variables') || jq.is('.none-sui')) {\n      return;\n    } // Add the DOM elements to style the select list.\n\n\n    function setupElement() {\n      // Wrap select\n      jq.wrap('<div class=\"select-container\">'); // Hide select\n\n      jq.attr('aria-hidden', true);\n      jq.attr('hidden', true);\n      jq.hide();\n      wrap = jq.parent();\n      handle = $('<span class=\"dropdown-handle\" aria-hidden=\"true\"><i class=\"sui-icon-chevron-down\"></i></span>').prependTo(wrap);\n      list = $('<div class=\"select-list-container\"></div>').appendTo(wrap);\n      value = $('<button type=\"button\" class=\"list-value\" aria-haspopup=\"listbox\">&nbsp;</button>').appendTo(list);\n      items = $('<ul tabindex=\"-1\" role=\"listbox\" class=\"list-results\"></ul>').appendTo(list);\n      wrap.addClass(jq.attr('class'));\n      value.attr('id', jq.attr('id') + '-button');\n      value.attr('aria-labelledby', jq.attr('aria-labelledby') + ' ' + value.attr('id'));\n      items.attr('id', jq.attr('id') + '-list');\n      items.attr('aria-labelledby', jq.attr('aria-labelledby'));\n    } // When changing selection using JS, you need to trigger a 'sui:change' event\n    // eg: $('select').val('4').trigger('sui:change')\n\n\n    function handleSelectionChange() {\n      jq.on('sui:change', function () {\n        // We need to re-populateList to handle dynamic select options added via JS/ajax.\n        populateList();\n        items.find('li').not('.optgroup-label').on('click', function onItemClick(ev) {\n          var opt = $(ev.target);\n          selectItem(opt, false, opt.data('color'));\n          handleValue();\n        });\n      });\n    } // Add all the options to the new DOM elements.\n\n\n    function populateList() {\n      var children = jq.children();\n      items.empty();\n      children.each(function () {\n        var opt = $(this),\n            item,\n            optgroup = $(this),\n            optGroupItem,\n            $label;\n\n        if ('OPTION' == $(this).prop('tagName')) {\n          item = $('<li></li>').appendTo(items);\n          item.attr('role', 'option');\n\n          if (opt.data('content')) {\n            item.addClass('sui-element-flex');\n            item.html('<span>' + opt.text() + '</span><span>' + opt.data('content') + '</span>');\n          } else if (opt.data('icon')) {\n            item.html('<i class=\"sui-icon-' + opt.data('icon') + '\" aria-hidden=\"true\"></i> ' + opt.text());\n          } else if (opt.data('color')) {\n            item.html('<span style=\"background-color: ' + opt.data('color') + '\" data-color=\"' + opt.data('color') + '\" aria-hidden=\"true\"></span>' + opt.text());\n          } else {\n            item.text(opt.text());\n          }\n\n          if (opt.is(':disabled')) {\n            item.addClass('sui-disabled');\n          }\n\n          items.attr('aria-activedescendant', jq.attr('id') + '-option-' + opt.val());\n          item.attr('id', jq.attr('id') + '-option-' + opt.val());\n          item.data('value', opt.val());\n          item.data('color', opt.data('color'));\n\n          if (opt.val() == jq.val()) {\n            selectItem(item, true, opt.data('color'));\n          }\n        } else {\n          optGroupItem = $('<ul></ul>').appendTo(items);\n          $label = $('<li class=\"optgroup-label\"></li>').text(optgroup.prop('label'));\n          optGroupItem.html($label);\n          optGroupItem.addClass('optgroup');\n          optgroup.find('option').each(function onPopulateLoop() {\n            var opt = $(this),\n                item;\n            item = $('<li></li>').appendTo(optGroupItem);\n            item.text(opt.text());\n            item.data('value', opt.val());\n\n            if (opt.val() == jq.val()) {\n              selectItem(item);\n            }\n          });\n        }\n      });\n    } // Checks the option value for a link.\n\n\n    function handleValue() {\n      var val = jq[0].value; // If option is link, navigate to it.\n\n      if (val.match('^https?:\\/\\/|#')) {\n        window.location.href = val;\n      }\n    } // Toggle the dropdown state between open/closed.\n\n\n    function stateToggle() {\n      if (wrap.find('select').is(':disabled')) {\n        return;\n      }\n\n      if (!wrap.hasClass('active')) {\n        stateOpen();\n      } else {\n        stateClose();\n      }\n    } // Close the dropdown list.\n\n\n    function stateClose(item) {\n      if (!item) {\n        item = wrap;\n      }\n\n      item.removeClass('active');\n      item.closest('tr').removeClass('select-open');\n      item.find('.list-value').removeAttr('aria-expanded');\n    } // Open the dropdown list.\n\n\n    function stateOpen() {\n      $('.select-container.active').each(function () {\n        stateClose($(this));\n      });\n      wrap.addClass('active');\n      wrap.closest('tr').addClass('select-open');\n      wrap.find('.list-value').attr('aria-expanded', true);\n    } // Visually mark the specified option as \"selected\".\n\n\n    function selectItem(opt, isInit, optColor) {\n      isInit = 'undefined' === typeof isInit ? false : isInit;\n\n      if (undefined !== optColor && '' !== optColor) {\n        value.html('<span style=\"background-color: ' + optColor + '\" data-color=\"' + optColor + '\"></span>' + opt.text());\n      } else {\n        value.text(opt.text());\n      }\n\n      $('.current', items).removeAttr('aria-selected');\n      $('.current', items).removeClass('current');\n      opt.addClass('current');\n      opt.attr('aria-selected', true);\n      items.attr('aria-activedescendant', opt.attr('id'));\n      stateClose(); // Also update the select list value.\n\n      jq.val(opt.data('value'));\n\n      if (!isInit) {\n        jq.trigger('change');\n      }\n    } // Element constructor.\n\n\n    function init() {\n      var selectID;\n      setupElement();\n      populateList();\n      handleSelectionChange();\n      items.find('li').not('.optgroup-label').on('click', function onItemClick(ev) {\n        var opt = $(ev.target);\n        selectItem(opt, false, opt.data('color'));\n        handleValue();\n      });\n      handle.on('click', stateToggle);\n      value.on('click', stateToggle);\n      jq.on('focus', stateOpen);\n      $(document).click(function onOutsideClick(ev) {\n        var jq = $(ev.target),\n            selectID;\n\n        if (jq.closest('.select-container').length) {\n          return;\n        }\n\n        if (jq.is('label') && jq.attr('for')) {\n          selectID = jq.attr('for');\n\n          if ($('select#' + selectID).length) {\n            return;\n          }\n        }\n\n        stateClose();\n      });\n      selectID = jq.attr('id');\n\n      if (selectID) {\n        $('label[for=' + selectID + ']').on('click', stateOpen);\n      }\n\n      jq.addClass('sui-styled');\n    }\n\n    init();\n    return this;\n  }; // Convert all select lists to fancy sui Select lists.\n\n\n  $('.sui-2-10-0 select:not([multiple])').each(function () {\n    SUI.suiSelect(this);\n  });\n})(jQuery);","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function ($) {\n  // Enable strict mode.\n  'use strict'; // Define global SUI object if it doesn't exist.\n\n  if ('object' !== _typeof(window.SUI)) {\n    window.SUI = {};\n  }\n\n  SUI.suiTabs = function (config) {\n    var data;\n    var types = ['tab', 'pane'];\n    var type;\n    var groups = [];\n    var activeGroups = [];\n    var activeChildren = [];\n    var activeItems = [];\n    var indexGroup;\n    var indexItem;\n    var memory = [];\n\n    function init(options) {\n      var groupIndex;\n      var tabItems;\n      var itemIndex;\n      var hashId;\n      data = options;\n      setDefaults();\n      groups.tab = document.querySelectorAll(data.tabGroup);\n      groups.pane = document.querySelectorAll(data.paneGroup);\n\n      for (groupIndex = 0; groupIndex < groups.tab.length; groupIndex++) {\n        tabItems = groups.tab[groupIndex].children;\n\n        for (itemIndex = 0; itemIndex < tabItems.length; itemIndex++) {\n          tabItems[itemIndex].addEventListener('click', onClick.bind(this, groupIndex, itemIndex), false);\n          indexGroup = groupIndex;\n          indexItem = itemIndex;\n\n          if (window.location.hash) {\n            hashId = window.location.hash.replace(/[^\\w-_]/g, '');\n\n            if (hashId === tabItems[itemIndex].id) {\n              setNodes(groupIndex, itemIndex);\n            }\n          }\n        }\n      }\n    }\n\n    function onClick(groupIndex, itemIndex) {\n      setNodes(groupIndex, itemIndex);\n      setCallback(indexGroup, indexItem);\n    }\n\n    function setNodes(groupIndex, itemIndex) {\n      var i;\n      indexGroup = groupIndex;\n      indexItem = itemIndex;\n\n      for (i = 0; i < types.length; i++) {\n        type = types[i];\n        setActiveGroup();\n        setActiveChildren();\n        setActiveItems();\n        putActiveClass();\n      }\n\n      memory[groupIndex] = [];\n      memory[groupIndex][itemIndex] = true;\n    }\n\n    function putActiveClass() {\n      var i;\n\n      for (i = 0; i < activeChildren[type].length; i++) {\n        activeChildren[type][i].classList.remove(data[type + 'Active']);\n      }\n\n      activeItems[type].classList.add(data[type + 'Active']);\n    }\n\n    function setDefaults() {\n      var i;\n\n      for (i = 0; i < types.length; i++) {\n        type = types[i];\n        setOption(type + 'Group', '[data-' + type + 's]');\n        setOption(type + 'Active', 'active');\n      }\n    }\n\n    function setOption(key, value) {\n      data = data || [];\n      data[key] = data[key] || value;\n    }\n\n    function setActiveGroup() {\n      activeGroups[type] = groups[type][indexGroup];\n    }\n\n    function setActiveChildren() {\n      activeChildren[type] = activeGroups[type].children;\n    }\n\n    function setActiveItems() {\n      activeItems[type] = activeChildren[type][indexItem];\n    }\n\n    function setCallback() {\n      if ('function' === typeof data.callback) {\n        data.callback(activeItems.tab, activeItems.pane);\n      }\n    }\n\n    return init(config);\n  };\n\n  SUI.tabsOverflow = function ($el) {\n    var tabs = $el.closest('.sui-tabs').find('[data-tabs], [role=\"tablist\"]'),\n        leftButton = $el.find('.sui-tabs-navigation--left'),\n        rightButton = $el.find('.sui-tabs-navigation--right');\n\n    function overflowing() {\n      if (tabs[0].scrollWidth > tabs.width()) {\n        if (0 === tabs.scrollLeft()) {\n          leftButton.addClass('sui-tabs-navigation--hidden');\n        } else {\n          leftButton.removeClass('sui-tabs-navigation--hidden');\n        }\n\n        reachedEnd(0);\n        return true;\n      } else {\n        leftButton.addClass('sui-tabs-navigation--hidden');\n        rightButton.addClass('sui-tabs-navigation--hidden');\n        return false;\n      }\n    }\n\n    overflowing();\n\n    function reachedEnd(offset) {\n      var newScrollLeft, width, scrollWidth;\n      newScrollLeft = tabs.scrollLeft() + offset;\n      width = tabs.outerWidth();\n      scrollWidth = tabs.get(0).scrollWidth;\n\n      if (scrollWidth - newScrollLeft <= width) {\n        rightButton.addClass('sui-tabs-navigation--hidden');\n      } else {\n        rightButton.removeClass('sui-tabs-navigation--hidden');\n      }\n    }\n\n    leftButton.click(function () {\n      rightButton.removeClass('sui-tabs-navigation--hidden');\n\n      if (0 >= tabs.scrollLeft() - 150) {\n        leftButton.addClass('sui-tabs-navigation--hidden');\n      }\n\n      tabs.animate({\n        scrollLeft: '-=150'\n      }, 400, function () {});\n      return false;\n    });\n    rightButton.click(function () {\n      leftButton.removeClass('sui-tabs-navigation--hidden');\n      reachedEnd(150);\n      tabs.animate({\n        scrollLeft: '+=150'\n      }, 400, function () {});\n      return false;\n    });\n    $(window).resize(function () {\n      overflowing();\n    });\n    tabs.scroll(function () {\n      overflowing();\n    });\n  };\n\n  SUI.tabs = function (config) {\n    var tablist = $('.sui-tabs > div[role=\"tablist\"]');\n    var data = config; // For easy reference.\n\n    var keys = {\n      end: 35,\n      home: 36,\n      left: 37,\n      up: 38,\n      right: 39,\n      down: 40,\n      \"delete\": 46,\n      enter: 13,\n      space: 32\n    }; // Add or substract depending on key pressed.\n\n    var direction = {\n      37: -1,\n      38: -1,\n      39: 1,\n      40: 1\n    }; // Prevent function from running if tablist does not exist.\n\n    if (!tablist.length) {\n      return;\n    } // Deactivate all tabs and tab panels.\n\n\n    function deactivateTabs(tabs, panels) {\n      tabs.removeClass('active');\n      tabs.attr('tabindex', '-1');\n      tabs.attr('aria-selected', false);\n      panels.removeClass('active');\n      panels.attr('hidden', true);\n    } // Activate current tab panel.\n\n\n    function activateTab(tab) {\n      var tabs = $(tab).closest('[role=\"tablist\"]').find('[role=\"tab\"]'),\n          panels = $(tab).closest('.sui-tabs').find('> .sui-tabs-content > [role=\"tabpanel\"]'),\n          controls = $(tab).attr('aria-controls'),\n          panel = $('#' + controls);\n      deactivateTabs(tabs, panels);\n      $(tab).addClass('active');\n      $(tab).removeAttr('tabindex');\n      $(tab).attr('aria-selected', true);\n      panel.addClass('active');\n      panel.attr('hidden', false);\n      panel.removeAttr('hidden');\n    } // When a \"tablist\" aria-orientation is set to vertical,\n    // only up and down arrow should function.\n    // In all other cases only left and right should function.\n\n\n    function determineOrientation(event, index, tablist) {\n      var key = event.keyCode || event.which,\n          vertical = 'vertical' === $(tablist).attr('aria-orientation'),\n          proceed = false; // Check if aria orientation is set to vertical.\n\n      if (vertical) {\n        if (keys.up === key || keys.down === key) {\n          event.preventDefault();\n          proceed = true;\n        }\n      } else {\n        if (keys.left === key || keys.right === key) {\n          proceed = true;\n        }\n      }\n\n      if (true === proceed) {\n        switchTabOnArrowPress(event, index);\n      }\n    } // Either focus the next, previous, first, or last tab\n    // depending on key pressed.\n\n\n    function switchTabOnArrowPress(event, index) {\n      var pressed, target, tabs;\n      pressed = event.keyCode || event.which;\n\n      if (direction[pressed]) {\n        target = event.target;\n        tabs = $(target).closest('[role=\"tablist\"]').find('> [role=\"tab\"]');\n\n        if (undefined !== index) {\n          if (tabs[index + direction[pressed]]) {\n            tabs[index + direction[pressed]].focus();\n          } else if (keys.left === pressed || keys.up === pressed) {\n            tabs[tabs.length - 1].focus();\n          } else if (keys.right === pressed || keys.down === pressed) {\n            tabs[0].focus();\n          }\n        }\n      }\n    } // Callback function.\n\n\n    function setCallback(currentTab) {\n      var tab = $(currentTab),\n          controls = tab.attr('aria-controls'),\n          panel = $('#' + controls);\n\n      if ('function' === typeof data.callback) {\n        data.callback(tab, panel);\n      }\n    } // When a tab is clicked, activateTab is fired to activate it.\n\n\n    function clickEventListener(event) {\n      var tab = event.target;\n      activateTab(tab);\n\n      if (undefined !== data && 'undefined' !== data) {\n        setCallback(tab);\n      }\n\n      event.preventDefault();\n      event.stopPropagation();\n    }\n\n    function keydownEventListener(event, index, tablist) {\n      var key = event.keyCode || event.which;\n\n      switch (key) {\n        case keys.end:\n          event.preventDefault(); // Actiavte last tab.\n          // focusLastTab();\n\n          break;\n\n        case keys.home:\n          event.preventDefault(); // Activate first tab.\n          // focusFirstTab();\n\n          break;\n        // Up and down are in keydown\n        // because we need to prevent page scroll.\n\n        case keys.up:\n        case keys.down:\n          determineOrientation(event, index, tablist);\n          break;\n      }\n    }\n\n    function keyupEventListener(event, index, tablist) {\n      var key = event.keyCode || event.which;\n\n      switch (key) {\n        case keys.left:\n        case keys.right:\n          determineOrientation(event, index, tablist);\n          break;\n\n        case keys.enter:\n        case keys.space:\n          activateTab(event);\n          break;\n      }\n    }\n\n    function init() {\n      var tabgroup = tablist.closest('.sui-tabs'); // Run the function for each group of tabs to prevent conflicts\n      // when having child tabs.\n\n      tabgroup.each(function () {\n        var tabs, index;\n        tabgroup = $(this);\n        tablist = tabgroup.find('> [role=\"tablist\"]');\n        tabs = tablist.find('> [role=\"tab\"]'); // Trigger events on click.\n\n        tabs.on('click', function (e) {\n          clickEventListener(e); // Trigger events when pressing key.\n        }).keydown(function (e) {\n          index = $(this).index();\n          keydownEventListener(e, index, tablist); // Trigger events when releasing key.\n        }).keyup(function (e) {\n          index = $(this).index();\n          keyupEventListener(e, index, tablist);\n        });\n      });\n    }\n\n    init();\n    return this;\n  };\n\n  if (0 !== $('.sui-2-10-1 .sui-tabs').length) {\n    // Support tabs new markup.\n    SUI.tabs(); // Support legacy tabs.\n\n    SUI.suiTabs();\n    $('.sui-2-10-1 .sui-tabs-navigation').each(function () {\n      SUI.tabsOverflow($(this));\n    });\n  }\n})(jQuery);","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function ($) {\n  // Enable strict mode.\n  'use strict'; // Define global SUI object if it doesn't exist.\n\n  if ('object' !== _typeof(window.SUI)) {\n    window.SUI = {};\n  }\n\n  SUI.upload = function () {\n    $('.sui-2-10-1 .sui-upload-group input[type=\"file\"]').on('change', function (e) {\n      var file = $(this)[0].files[0],\n          message = $(this).find('~ .sui-upload-message');\n\n      if (file) {\n        message.text(file.name);\n      }\n    });\n  };\n\n  SUI.upload();\n})(jQuery);","(function ($) {\n  var endpoint = 'https://api.reviews.co.uk/merchant/reviews?store=wpmudev-org'; // Update the reviews with the live stats.\n\n  $('.sui-2-10-1 .sui-reviews').each(function () {\n    var review = $(this);\n    $.get(endpoint, function (data) {\n      var stars = Math.round(data.stats.average_rating);\n      var starsBlock = review.find('.sui-reviews__stars')[0];\n      var i;\n\n      for (i = 0; i < stars; i++) {\n        starsBlock.innerHTML += '<i class=\"sui-icon-star\" aria-hidden=\"true\"></i> ';\n      }\n\n      review.find('.sui-reviews-rating')[0].innerHTML = data.stats.average_rating;\n      review.find('.sui-reviews-customer-count')[0].innerHTML = data.stats.total_reviews;\n    });\n  });\n})(jQuery);"],"sourceRoot":""}