AlkantarClanX12
Current Path : /home/thanudqk/thepball.com/wp-content/plugins/wp-smushit/app/assets/js/ |
Current File : /home/thanudqk/thepball.com/wp-content/plugins/wp-smushit/app/assets/js/smush-sui.min.js |
!function(t){var e={};function i(o){if(e[o])return e[o].exports;var a=e[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(o,a,function(e){return t[e]}.bind(null,a));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=4)}([,,,,function(t,e,i){i(5),i(6),i(7),i(8),i(9),i(10),i(11),i(12)},function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e,i,o,a){"use strict";var s={copyText:"Copy",copiedText:"Copied!"};function n(e,i){this.element=e,this.$element=t(this.element),this.settings=t.extend({},s,i),this._defaults=s,this._name="SUICodeSnippet",this._clipboardJs=null,this._clipboardId="",this.init()}t.extend(n.prototype,{init:function(){var i=this,o="";0===this.$element.parent("sui-code-snippet-wrapper").length&&(this.$element.wrap('<div class="sui-code-snippet-wrapper"></div>'),this._clipboardId=this.generateUniqueId(),o='<button class="sui-button" id="sui-code-snippet-button-'+this._clipboardId+'" data-clipboard-target="#sui-code-snippet-'+this._clipboardId+'">'+this.settings.copyText+"</button>",this.$element.attr("id","sui-code-snippet-"+this._clipboardId).after(o),this._clipboardJs=new e("#sui-code-snippet-button-"+this._clipboardId),this._clipboardJs.on("success",(function(t){t.clearSelection(),i.showTooltip(t.trigger,i.settings.copiedText)})),t("#sui-code-snippet-button-"+this._clipboardId).on("mouseleave.SUICodeSnippet",(function(){t(this).removeClass("sui-tooltip"),t(this).removeAttr("aria-label"),t(this).removeAttr("data-tooltip")})))},getClipboardJs:function(){return this._clipboardJs},showTooltip:function(e,i){t(e).addClass("sui-tooltip"),t(e).attr("aria-label",i),t(e).attr("data-tooltip",i)},generateUniqueId:function(){return"_"+Math.random().toString(36).substr(2,9)},destroy:function(){null!==this._clipboardJs&&(this._clipboardJs.destroy(),this.$element.attr("id",""),this.$element.unwrap(".sui-code-snippet-wrapper"),t("#sui-code-snippet-button-"+this._clipboardId).remove())}}),t.fn.SUICodeSnippet=function(e){return this.each((function(){t.data(this,"SUICodeSnippet")||t.data(this,"SUICodeSnippet",new n(this,e))}))}}(jQuery,ClipboardJS,window,document),function(t){"use strict";"object"!==i(window.SUI)&&(window.SUI={}),SUI.suiCodeSnippet=function(){t(".sui-2-10-1 .sui-code-snippet:not(.sui-no-copy)").each((function(){t(this).SUICodeSnippet({})}))},t(document).ready((function(){SUI.suiCodeSnippet()}))}(jQuery)},function(t,e,i){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){"use strict";"object"!==o(window.SUI)&&(window.SUI={});var t=t||{};t.KeyCode={BACKSPACE:8,TAB:9,RETURN:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},t.Utils=t.Utils||{},t.Utils.remove=function(t){return t.remove&&"function"==typeof t.remove?t.remove():!(!t.parentNode||!t.parentNode.removeChild||"function"!=typeof t.parentNode.removeChild)&&t.parentNode.removeChild(t)},t.Utils.isFocusable=function(t){if(0<t.tabIndex||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!=t.rel;case"INPUT":return"hidden"!=t.type&&"file"!=t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},t.Utils.simulateClick=function(t){var e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(e)},t.Utils.IgnoreUtilFocusChanges=!1,t.Utils.dialogOpenClass="sui-has-modal",t.Utils.focusFirstDescendant=function(e){for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes[i];if(t.Utils.attemptFocus(o)||t.Utils.focusFirstDescendant(o))return!0}return!1},t.Utils.focusLastDescendant=function(e){for(var i=e.childNodes.length-1;0<=i;i--){var o=e.childNodes[i];if(t.Utils.attemptFocus(o)||t.Utils.focusLastDescendant(o))return!0}return!1},t.Utils.attemptFocus=function(e){if(!t.Utils.isFocusable(e))return!1;t.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return t.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},t.OpenDialogList=t.OpenDialogList||new Array(0),t.getCurrentDialog=function(){if(t.OpenDialogList&&t.OpenDialogList.length)return t.OpenDialogList[t.OpenDialogList.length-1]},t.closeCurrentDialog=function(){var e=t.getCurrentDialog();return!!e&&(e.close(),!0)},t.handleEscape=function(e){(e.which||e.keyCode)===t.KeyCode.ESC&&t.closeCurrentDialog()&&e.stopPropagation()},t.Dialog=function(e,i,a,s){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this.dialogNode=document.getElementById(e),null===this.dialogNode)throw new Error('No element found with id="'+e+'".');var r=["dialog","alertdialog"],l=(this.dialogNode.getAttribute("role")||"").trim().split(/\s+/g).some((function(t){return r.some((function(e){return t===e}))}));if(!l)throw new Error("Dialog() requires a DOM element with ARIA role of dialog or alertdialog.");this.isCloseOnEsc=n;var d=new Event("open");this.dialogNode.dispatchEvent(d);var c="sui-modal";if(this.dialogNode.parentNode.classList.contains(c)?this.backdropNode=this.dialogNode.parentNode:(this.backdropNode=document.createElement("div"),this.backdropNode.className=c,this.backdropNode.setAttribute("data-markup","new"),this.dialogNode.parentNode.insertBefore(this.backdropNode,this.dialogNodev),this.backdropNode.appendChild(this.dialogNode)),this.backdropNode.classList.add("sui-active"),document.body.parentNode.classList.add(t.Utils.dialogOpenClass),"string"==typeof i)this.focusAfterClosed=document.getElementById(i);else{if("object"!==o(i))throw new Error("the focusAfterClosed parameter is required for the aria.Dialog constructor.");this.focusAfterClosed=i}"string"==typeof a?this.focusFirst=document.getElementById(a):"object"===o(a)?this.focusFirst=a:this.focusFirst=null;var u=document.createElement("div");this.preNode=this.dialogNode.parentNode.insertBefore(u,this.dialogNode),this.preNode.tabIndex=0,"boolean"==typeof s&&!0===s&&(this.preNode.classList.add("sui-modal-overlay"),this.preNode.onclick=function(){t.getCurrentDialog().close()});var f=document.createElement("div");this.postNode=this.dialogNode.parentNode.insertBefore(f,this.dialogNode.nextSibling),this.postNode.tabIndex=0,0<t.OpenDialogList.length&&t.getCurrentDialog().removeListeners(),this.addListeners(),t.OpenDialogList.push(this),this.dialogNode.classList.add("sui-content-fade-in"),this.dialogNode.classList.remove("sui-content-fade-out"),this.focusFirst?this.focusFirst.focus():t.Utils.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement;var p=new Event("afterOpen");this.dialogNode.dispatchEvent(p)},t.Dialog.prototype.close=function(){var e=this,i=new Event("close");this.dialogNode.dispatchEvent(i),t.OpenDialogList.pop(),this.removeListeners(),this.preNode.parentNode.removeChild(this.preNode),this.postNode.parentNode.removeChild(this.postNode),this.dialogNode.classList.add("sui-content-fade-out"),this.dialogNode.classList.remove("sui-content-fade-in"),this.focusAfterClosed.focus(),setTimeout((function(){e.backdropNode.classList.remove("sui-active")}),300),setTimeout((function(){var t=e.dialogNode.querySelectorAll(".sui-modal-slide");if(0<t.length){for(var i=0;i<t.length;i++)t[i].setAttribute("disabled",!0),t[i].classList.remove("sui-loaded"),t[i].classList.remove("sui-active"),t[i].setAttribute("tabindex","-1"),t[i].setAttribute("aria-hidden",!0);if(t[0].hasAttribute("data-modal-size")){var o=t[0].getAttribute("data-modal-size");switch(o){case"sm":case"small":o="sm";break;case"md":case"med":case"medium":o="md";break;case"lg":case"large":o="lg";break;case"xl":case"extralarge":case"extraLarge":case"extra-large":o="xl";break;default:o=void 0}void 0!==o&&(e.dialogNode.parentNode.classList.remove("sui-modal-sm"),e.dialogNode.parentNode.classList.remove("sui-modal-md"),e.dialogNode.parentNode.classList.remove("sui-modal-lg"),e.dialogNode.parentNode.classList.remove("sui-modal-xl"),e.dialogNode.parentNode.classList.add("sui-modal-"+o))}var a,s,n,r;if(t[0].classList.add("sui-active"),t[0].classList.add("sui-loaded"),t[0].removeAttribute("disabled"),t[0].removeAttribute("tabindex"),t[0].removeAttribute("aria-hidden"),t[0].hasAttribute("data-modal-labelledby"))a="",""===(s=t[0].getAttribute("data-modal-labelledby"))&&void 0===s||(a=s),e.dialogNode.setAttribute("aria-labelledby",a);if(t[0].hasAttribute("data-modal-describedby"))n="",""===(r=t[0].getAttribute("data-modal-describedby"))&&void 0===r||(n=r),e.dialogNode.setAttribute("aria-describedby",n)}}),350),0<t.OpenDialogList.length?t.getCurrentDialog().addListeners():document.body.parentNode.classList.remove(t.Utils.dialogOpenClass);var o=new Event("afterClose");this.dialogNode.dispatchEvent(o)},t.Dialog.prototype.replace=function(e,i,o,a){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=this;t.OpenDialogList.pop(),this.removeListeners(),t.Utils.remove(this.preNode),t.Utils.remove(this.postNode),this.dialogNode.classList.remove("sui-content-fade-in"),this.backdropNode.classList.remove("sui-active"),setTimeout((function(){var t=n.dialogNode.querySelectorAll(".sui-modal-slide");if(0<t.length){for(var e=0;e<t.length;e++)t[e].setAttribute("disabled",!0),t[e].classList.remove("sui-loaded"),t[e].classList.remove("sui-active"),t[e].setAttribute("tabindex","-1"),t[e].setAttribute("aria-hidden",!0);if(t[0].hasAttribute("data-modal-size")){var i=t[0].getAttribute("data-modal-size");switch(i){case"sm":case"small":i="sm";break;case"md":case"med":case"medium":i="md";break;case"lg":case"large":i="lg";break;case"xl":case"extralarge":case"extraLarge":case"extra-large":i="xl";break;default:i=void 0}void 0!==i&&(n.dialogNode.parentNode.classList.remove("sui-modal-sm"),n.dialogNode.parentNode.classList.remove("sui-modal-md"),n.dialogNode.parentNode.classList.remove("sui-modal-lg"),n.dialogNode.parentNode.classList.remove("sui-modal-xl"),n.dialogNode.parentNode.classList.add("sui-modal-"+i))}var o,a,s,r;if(t[0].classList.add("sui-active"),t[0].classList.add("sui-loaded"),t[0].removeAttribute("disabled"),t[0].removeAttribute("tabindex"),t[0].removeAttribute("aria-hidden"),t[0].hasAttribute("data-modal-labelledby"))o="",""===(a=t[0].getAttribute("data-modal-labelledby"))&&void 0===a||(o=a),n.dialogNode.setAttribute("aria-labelledby",o);if(t[0].hasAttribute("data-modal-describedby"))s="",""===(r=t[0].getAttribute("data-modal-describedby"))&&void 0===r||(s=r),n.dialogNode.setAttribute("aria-describedby",s)}}),350);var r=i||this.focusAfterClosed;new t.Dialog(e,r,o,a,s)},t.Dialog.prototype.slide=function(e,i,a){var s,n,r,l,d="sui-fadein",c=(t.getCurrentDialog(),this.dialogNode.querySelectorAll(".sui-modal-slide")),u=document.getElementById(e);switch(a){case"back":case"left":d="sui-fadein-left";break;case"next":case"right":d="sui-fadein-right";break;default:d="sui-fadein"}for(var f=0;f<c.length;f++)c[f].setAttribute("disabled",!0),c[f].classList.remove("sui-loaded"),c[f].classList.remove("sui-active"),c[f].setAttribute("tabindex","-1"),c[f].setAttribute("aria-hidden",!0);if(u.hasAttribute("data-modal-size")){var p=u.getAttribute("data-modal-size");switch(p){case"sm":case"small":p="sm";break;case"md":case"med":case"medium":p="md";break;case"lg":case"large":p="lg";break;case"xl":case"extralarge":case"extraLarge":case"extra-large":p="xl";break;default:p=void 0}void 0!==p&&(this.dialogNode.parentNode.classList.remove("sui-modal-sm"),this.dialogNode.parentNode.classList.remove("sui-modal-md"),this.dialogNode.parentNode.classList.remove("sui-modal-lg"),this.dialogNode.parentNode.classList.remove("sui-modal-xl"),this.dialogNode.parentNode.classList.add("sui-modal-"+p))}u.hasAttribute("data-modal-labelledby")&&(s="",""===(n=u.getAttribute("data-modal-labelledby"))&&void 0===n||(s=n),this.dialogNode.setAttribute("aria-labelledby",s));u.hasAttribute("data-modal-describedby")&&(r="",""===(l=u.getAttribute("data-modal-describedby"))&&void 0===l||(r=l),this.dialogNode.setAttribute("aria-describedby",r));u.classList.add("sui-active"),u.classList.add(d),u.removeAttribute("tabindex"),u.removeAttribute("aria-hidden"),setTimeout((function(){u.classList.add("sui-loaded"),u.classList.remove(d),u.removeAttribute("disabled")}),600),"string"==typeof i?this.newSlideFocus=document.getElementById(i):"object"===o(i)?this.newSlideFocus=i:this.newSlideFocus=null,this.newSlideFocus?this.newSlideFocus.focus():t.Utils.focusFirstDescendant(this.dialogNode)},t.Dialog.prototype.addListeners=function(){document.addEventListener("focus",this.trapFocus,!0),this.isCloseOnEsc&&this.dialogNode.addEventListener("keyup",t.handleEscape)},t.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",this.trapFocus,!0)},t.Dialog.prototype.trapFocus=function(e){if(!t.Utils.IgnoreUtilFocusChanges){var i=t.getCurrentDialog();i.dialogNode.contains(e.target)?i.lastFocus=e.target:(t.Utils.focusFirstDescendant(i.dialogNode),i.lastFocus==document.activeElement&&t.Utils.focusLastDescendant(i.dialogNode),i.lastFocus=document.activeElement)}},SUI.openModal=function(e,i,o,a){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];new t.Dialog(e,i,o,a,s)},SUI.closeModal=function(){t.getCurrentDialog().close()},SUI.replaceModal=function(e,i,o,a){var s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=t.getCurrentDialog();n.replace(e,i,o,a,s)},SUI.slideModal=function(e,i,o){t.getCurrentDialog().slide(e,i,o)}}(),function(t){"use strict";"object"!==o(window.SUI)&&(window.SUI={}),SUI.modalDialog=function(){var e,i,a,s,n,r,l,d,c,u,f;return i=t("[data-modal-open]"),a=t("[data-modal-close]"),s=t("[data-modal-replace]"),n=t("[data-modal-slide]"),r=t(".sui-modal-overlay"),i.on("click",(function(i){e=t(this),l=e.attr("data-modal-open"),c=e.attr("data-modal-close-focus"),u=e.attr("data-modal-open-focus"),r=e.attr("data-modal-mask");var a="false"!==e.attr("data-esc-close");"undefined"!==o(c)&&!1!==c&&""!==c||(c=this),"undefined"!==o(u)&&!1!==u&&""!==u||(u=void 0),r="undefined"!==o(r)&&!1!==r&&"true"===r,"undefined"!==o(l)&&!1!==l&&""!==l&&SUI.openModal(l,c,u,r,a),i.preventDefault()})),s.on("click",(function(i){e=t(this),l=e.attr("data-modal-replace"),c=e.attr("data-modal-close-focus"),u=e.attr("data-modal-open-focus"),r=e.attr("data-modal-replace-mask");var a="false"!==e.attr("data-esc-close");"undefined"!==o(c)&&!1!==c&&""!==c||(c=void 0),"undefined"!==o(u)&&!1!==u&&""!==u||(u=void 0),r="undefined"!==o(r)&&!1!==r&&"true"===r,"undefined"!==o(l)&&!1!==l&&""!==l&&SUI.replaceModal(l,c,u,r,a),i.preventDefault()})),n.on("click",(function(i){e=t(this),d=e.attr("data-modal-slide"),u=e.attr("data-modal-slide-focus"),f=e.attr("data-modal-slide-intro"),"undefined"!==o(u)&&!1!==u&&""!==u||(u=void 0),"undefined"!==o(f)&&!1!==f&&""!==f||(f=""),"undefined"!==o(d)&&!1!==d&&""!==d&&SUI.slideModal(d,u,f),i.preventDefault()})),a.on("click",(function(t){SUI.closeModal(),t.preventDefault()})),this},SUI.modalDialog()}(jQuery)},function(t,e){function i(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"use strict";var e=this;"object"!==o(window.SUI)&&(window.SUI={}),SUI.openNotice=function(o,a,s){var n=t("#"+o),r=n.parent();if(null===typeof n||void 0===n)throw new Error('No element found with id="'+o+'".');if("alert"!==n.attr("role"))throw new Error("Notice requires a DOM element with ARIA role of alert.");if(null===typeof a||void 0===a||""===a)throw new Error("Notice requires a message to print.");var l=l||{};l.allowedNotices=["info","blue","green","success","yellow","warning","red","error","purple","upsell"],l.isObject=function(e){return!(null===e&&"undefined"===e||!t.isPlainObject(e))},l.deepMerge=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];if(!o.length)return t;var s=o.shift();if(l.isObject(t)&&l.isObject(s))for(var n in s)l.isObject(s[n])?(t[n]||Object.assign(t,i({},n,{})),l.deepMerge(t[n],s[n])):Object.assign(t,i({},n,s[n]));return l.deepMerge.apply(l,[t].concat(o))},l.setProperties=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l.options=[];var e={type:"default",icon:"info",dismiss:{show:!1,label:"Close this notice",tooltip:""},autoclose:{show:!0,timeout:3e3}};l.options[0]=l.deepMerge(e,t)},l.setProperties(s),l.buildDismiss=function(){var t="",e=l.options[0].dismiss;if(!0===e.show){(t=document.createElement("div")).className="sui-notice-actions";var i="";""!==e.tooltip&&(r.hasClass("sui-floating-notices")?i+='<div class="sui-tooltip sui-tooltip-bottom" data-tooltip="'+e.tooltip+'">':i+='<div class="sui-tooltip" data-tooltip="'+e.tooltip+'">'),i+='<button class="sui-button-icon">',i+='<i class="sui-icon-check" aria-hidden="true"></i>',""!==e.label&&(i+='<span class="sui-screen-reader-text">'+e.label+"</span>"),i+="</button>",""!==e.tooltip&&(i+="</div>"),t.innerHTML=i}return t},l.buildIcon=function(){var t="",e=l.options[0].icon;return""===e&&void 0===e&&null===typeof e||((t=document.createElement("span")).className+="sui-notice-icon sui-icon-"+e+" sui-md",t.setAttribute("aria-hidden",!0),"loader"===e&&t.classList.add("sui-loading")),t},l.buildMessage=function(){var t=document.createElement("div");return t.className="sui-notice-message",t.innerHTML=a,t.prepend(l.buildIcon()),t},l.buildNotice=function(){var t=document.createElement("div");return t.className="sui-notice-content",t.append(l.buildMessage(),l.buildDismiss()),t},l.showNotice=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,a=l.options[0].type,s=l.options[0].dismiss,r=l.options[0].autoclose;n.addClass("sui-active"),t.each(l.allowedNotices,(function(t,e){e===a&&n.addClass("sui-notice-"+e)})),n.removeAttr("tabindex"),n.html(l.buildNotice()),"slide"===e?n.slideDown(i,(function(){!0===s.show?(n.find(".sui-notice-actions button").focus(),n.find(".sui-notice-actions button").on("click",(function(){SUI.closeNotice(o)}))):!0===r.show&&setTimeout((function(){return SUI.closeNotice(o)}),parseInt(r.timeout))})):"fade"===e?n.fadeIn(i,(function(){!0===s.show?(n.find(".sui-notice-actions button").focus(),n.find(".sui-notice-actions button").on("click",(function(){SUI.closeNotice(o)}))):!0===r.show&&setTimeout((function(){return SUI.closeNotice(o)}),parseInt(r.timeout))})):n.show(i,(function(){!0===s.show?(n.find(".sui-notice-actions button").focus(),n.find(".sui-notice-actions button").on("click",(function(){SUI.closeNotice(o)}))):!0===r.show&&setTimeout((function(){return SUI.closeNotice(o)}),parseInt(r.timeout))}))},l.openNotice=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;n.hasClass("sui-active")?"slide"===t?n.slideUp(e,(function(){l.showNotice("slide",e)})):"fade"===t?n.fadeOut(e,(function(){l.showNotice("fade",e)})):n.hide(e,(function(){l.showNotice(null,e)})):l.showNotice(t,e)};return r.hasClass("sui-floating-notices")?l.openNotice("slide"):l.openNotice("fade"),e},SUI.closeNotice=function(i){var o=t("#"+i),a=o.parent();if(null===typeof o||void 0===o)throw new Error('No element found with id="'+i+'".');var s=s||{};s.allowedNotices=["info","blue","green","success","yellow","warning","red","error","purple","upsell"],s.hideNotice=function(){o.removeClass("sui-active"),t.each(s.allowedNotices,(function(t,e){o.removeClass("sui-notice-"+e)})),o.attr("tabindex","-1"),o.empty()},s.closeNotice=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;"slide"===t?o.slideUp(e,(function(){return s.hideNotice()})):"fade"===t?o.fadeOut(e,(function(){return s.hideNotice()})):o.hide(e,(function(){return s.hideNotice()}))};return a.hasClass("sui-floating-notices")?s.closeNotice("slide"):s.closeNotice("fade"),e},SUI.notice=function(){var i=i||{};i.Utils=i.Utils||{},i.Utils.Open=function(e){e.on("click",(function(){self=t(this);var e,i=self.attr("data-notice-open"),o="",a={};if(self.is("[data-notice-message]")&&""!==self.attr("data-notice-message"))o+=self.attr("data-notice-message");else for(e=0;e<4;e++){var s="data-notice-paragraph-"+(e+1);self.is("["+s+"]")&&""!==self.attr(s)&&(o+="<p>"+self.attr(s)+"</p>")}self.is("[data-notice-type]")&&""!==self.attr("data-notice-dismiss-type")&&(a.type=self.attr("data-notice-type")),self.is("[data-notice-icon]")&&(a.icon=self.attr("data-notice-icon")),self.is("[data-notice-dismiss]")&&(a.dismiss={},"true"===self.attr("data-notice-dismiss")?a.dismiss.show=!0:"false"===self.attr("data-notice-dismiss")&&(a.dismiss.show=!1)),self.is("[data-notice-dismiss-label]")&&""!==self.attr("data-notice-dismiss-label")&&(a.dismiss.label=self.attr("data-notice-dismiss-label")),self.is("[data-notice-dismiss-tooltip]")&&""!==self.attr("data-notice-dismiss-tooltip")&&(a.dismiss.tooltip=self.attr("data-notice-dismiss-tooltip")),self.is("[data-notice-autoclose]")&&(a.autoclose={},"true"===self.attr("data-notice-autoclose")?a.autoclose.show=!0:"false"===self.attr("data-notice-autoclose")&&(a.autoclose.show=!1)),self.is("[data-notice-autoclose-timeout]")&&(a.autoclose=a.autoclose||{},a.autoclose.timeout=parseInt(self.attr("data-notice-autoclose-timeout"))),SUI.openNotice(i,o,a)}))},i.Utils.Close=function(e){e.on("click",(function(){var e;self=t(this),self.is("[data-notice-close]")&&(e=self.closest(".sui-notice").attr("id"),""!==self.attr("[data-notice-close]")&&(e=self.attr("data-notice-close")),SUI.closeNotice(e))}))};return function(){var e=t("[data-notice-open]");i.Utils.Open(e);var o=t("[data-notice-close]");i.Utils.Close(o)}(),e},SUI.notice()}(jQuery)},function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"use strict";"object"!==i(window.SUI)&&(window.SUI={}),SUI.loadCircleScore=function(e){t(e).find("svg circle:last-child");var i=t(e).data("score"),o='<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,'+(100*(2*Math.PI*42/100*i)-i)+'" />\n</svg>\n<span class="sui-circle-score-label">'+i+"</span>\n";t(e).prepend(o).addClass("loaded").find("circle:last-child").css("animation","sui"+i+" 3s forwards")},t(".sui-2-10-1 .sui-circle-score").each((function(){SUI.loadCircleScore(this)}))}(jQuery)},function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"use strict";"object"!==i(window.SUI)&&(window.SUI={}),SUI.suiSelect=function(e){var i,o,a,s,n,r,l=t(e);if(l.is("select")&&!(l.closest(".select-container").length||l.data("select2")||l.is(".sui-select")||l.is(".sui-search")||l.is(".sui-variables")||l.is(".none-sui")))return l.wrap('<div class="select-container">'),l.attr("aria-hidden",!0),l.attr("hidden",!0),l.hide(),i=l.parent(),o=t('<span class="dropdown-handle" aria-hidden="true"><i class="sui-icon-chevron-down"></i></span>').prependTo(i),a=t('<div class="select-list-container"></div>').appendTo(i),s=t('<button type="button" class="list-value" aria-haspopup="listbox"> </button>').appendTo(a),n=t('<ul tabindex="-1" role="listbox" class="list-results"></ul>').appendTo(a),i.addClass(l.attr("class")),s.attr("id",l.attr("id")+"-button"),s.attr("aria-labelledby",l.attr("aria-labelledby")+" "+s.attr("id")),n.attr("id",l.attr("id")+"-list"),n.attr("aria-labelledby",l.attr("aria-labelledby")),d(),l.on("sui:change",(function(){d(),n.find("li").not(".optgroup-label").on("click",(function(e){var i=t(e.target);h(i,!1,i.data("color")),c()}))})),n.find("li").not(".optgroup-label").on("click",(function(e){var i=t(e.target);h(i,!1,i.data("color")),c()})),o.on("click",u),s.on("click",u),l.on("focus",p),t(document).click((function(e){var i,o=t(e.target);o.closest(".select-container").length||o.is("label")&&o.attr("for")&&(i=o.attr("for"),t("select#"+i).length)||f()})),(r=l.attr("id"))&&t("label[for="+r+"]").on("click",p),l.addClass("sui-styled"),this;function d(){var e=l.children();n.empty(),e.each((function(){var e,i,o,a=t(this),s=t(this);"OPTION"==t(this).prop("tagName")?((e=t("<li></li>").appendTo(n)).attr("role","option"),a.data("content")?(e.addClass("sui-element-flex"),e.html("<span>"+a.text()+"</span><span>"+a.data("content")+"</span>")):a.data("icon")?e.html('<i class="sui-icon-'+a.data("icon")+'" aria-hidden="true"></i> '+a.text()):a.data("color")?e.html('<span style="background-color: '+a.data("color")+'" data-color="'+a.data("color")+'" aria-hidden="true"></span>'+a.text()):e.text(a.text()),a.is(":disabled")&&e.addClass("sui-disabled"),n.attr("aria-activedescendant",l.attr("id")+"-option-"+a.val()),e.attr("id",l.attr("id")+"-option-"+a.val()),e.data("value",a.val()),e.data("color",a.data("color")),a.val()==l.val()&&h(e,!0,a.data("color"))):(i=t("<ul></ul>").appendTo(n),o=t('<li class="optgroup-label"></li>').text(s.prop("label")),i.html(o),i.addClass("optgroup"),s.find("option").each((function(){var e,o=t(this);(e=t("<li></li>").appendTo(i)).text(o.text()),e.data("value",o.val()),o.val()==l.val()&&h(e)})))}))}function c(){var t=l[0].value;t.match("^https?://|#")&&(window.location.href=t)}function u(){i.find("select").is(":disabled")||(i.hasClass("active")?f():p())}function f(t){t||(t=i),t.removeClass("active"),t.closest("tr").removeClass("select-open"),t.find(".list-value").removeAttr("aria-expanded")}function p(){t(".select-container.active").each((function(){f(t(this))})),i.addClass("active"),i.closest("tr").addClass("select-open"),i.find(".list-value").attr("aria-expanded",!0)}function h(e,i,o){i=void 0!==i&&i,void 0!==o&&""!==o?s.html('<span style="background-color: '+o+'" data-color="'+o+'"></span>'+e.text()):s.text(e.text()),t(".current",n).removeAttr("aria-selected"),t(".current",n).removeClass("current"),e.addClass("current"),e.attr("aria-selected",!0),n.attr("aria-activedescendant",e.attr("id")),f(),l.val(e.data("value")),i||l.trigger("change")}},t(".sui-2-10-0 select:not([multiple])").each((function(){SUI.suiSelect(this)}))}(jQuery)},function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"use strict";"object"!==i(window.SUI)&&(window.SUI={}),SUI.suiTabs=function(t){var e,i,o,a,s=["tab","pane"],n=[],r=[],l=[],d=[],c=[];function u(t,i){f(t,i),"function"==typeof e.callback&&e.callback(d.tab,d.pane)}function f(t,e){var u;for(o=t,a=e,u=0;u<s.length;u++)r[i=s[u]]=n[i][o],l[i]=r[i].children,d[i]=l[i][a],p();c[t]=[],c[t][e]=!0}function p(){var t;for(t=0;t<l[i].length;t++)l[i][t].classList.remove(e[i+"Active"]);d[i].classList.add(e[i+"Active"])}function h(t,i){(e=e||[])[t]=e[t]||i}return function(t){var r,l,d;for(e=t,function(){var t;for(t=0;t<s.length;t++)h((i=s[t])+"Group","[data-"+i+"s]"),h(i+"Active","active")}(),n.tab=document.querySelectorAll(e.tabGroup),n.pane=document.querySelectorAll(e.paneGroup),r=0;r<n.tab.length;r++)for(l=n.tab[r].children,d=0;d<l.length;d++)l[d].addEventListener("click",u.bind(this,r,d),!1),o=r,a=d,window.location.hash&&window.location.hash.replace(/[^\w-_]/g,"")===l[d].id&&f(r,d)}(t)},SUI.tabsOverflow=function(e){var i=e.closest(".sui-tabs").find('[data-tabs], [role="tablist"]'),o=e.find(".sui-tabs-navigation--left"),a=e.find(".sui-tabs-navigation--right");function s(){return i[0].scrollWidth>i.width()?(0===i.scrollLeft()?o.addClass("sui-tabs-navigation--hidden"):o.removeClass("sui-tabs-navigation--hidden"),n(0),!0):(o.addClass("sui-tabs-navigation--hidden"),a.addClass("sui-tabs-navigation--hidden"),!1)}function n(t){var e,o;e=i.scrollLeft()+t,o=i.outerWidth(),i.get(0).scrollWidth-e<=o?a.addClass("sui-tabs-navigation--hidden"):a.removeClass("sui-tabs-navigation--hidden")}s(),o.click((function(){return a.removeClass("sui-tabs-navigation--hidden"),0>=i.scrollLeft()-150&&o.addClass("sui-tabs-navigation--hidden"),i.animate({scrollLeft:"-=150"},400,(function(){})),!1})),a.click((function(){return o.removeClass("sui-tabs-navigation--hidden"),n(150),i.animate({scrollLeft:"+=150"},400,(function(){})),!1})),t(window).resize((function(){s()})),i.scroll((function(){s()}))},SUI.tabs=function(e){var i,o=t('.sui-tabs > div[role="tablist"]'),a=e,s=35,n=36,r=37,l=38,d=39,c=40,u=13,f=32,p={37:-1,38:-1,39:1,40:1};if(o.length)return(i=o.closest(".sui-tabs")).each((function(){i=t(this),(o=i.find('> [role="tablist"]')).find('> [role="tab"]').on("click",(function(t){m(t)})).keydown((function(e){!function(t,e,i){switch(t.keyCode||t.which){case s:case n:t.preventDefault();break;case l:case c:b(t,e,i)}}(e,t(this).index(),o)})).keyup((function(e){!function(t,e,i){switch(t.keyCode||t.which){case r:case d:b(t,e,i);break;case u:case f:h(t)}}(e,t(this).index(),o)}))})),this;function h(e){var i=t(e).closest('[role="tablist"]').find('[role="tab"]'),o=t(e).closest(".sui-tabs").find('> .sui-tabs-content > [role="tabpanel"]'),a=t(e).attr("aria-controls"),s=t("#"+a);!function(t,e){t.removeClass("active"),t.attr("tabindex","-1"),t.attr("aria-selected",!1),e.removeClass("active"),e.attr("hidden",!0)}(i,o),t(e).addClass("active"),t(e).removeAttr("tabindex"),t(e).attr("aria-selected",!0),s.addClass("active"),s.attr("hidden",!1),s.removeAttr("hidden")}function b(e,i,o){var a=e.keyCode||e.which,s=!1;"vertical"===t(o).attr("aria-orientation")?l!==a&&c!==a||(e.preventDefault(),s=!0):r!==a&&d!==a||(s=!0),!0===s&&function(e,i){var o,a,s;o=e.keyCode||e.which,p[o]&&(a=e.target,s=t(a).closest('[role="tablist"]').find('> [role="tab"]'),void 0!==i&&(s[i+p[o]]?s[i+p[o]].focus():r===o||l===o?s[s.length-1].focus():d!==o&&c!==o||s[0].focus()))}(e,i)}function m(e){var i=e.target;h(i),void 0!==a&&"undefined"!==a&&function(e){var i=t(e),o=i.attr("aria-controls"),s=t("#"+o);"function"==typeof a.callback&&a.callback(i,s)}(i),e.preventDefault(),e.stopPropagation()}},0!==t(".sui-2-10-1 .sui-tabs").length&&(SUI.tabs(),SUI.suiTabs(),t(".sui-2-10-1 .sui-tabs-navigation").each((function(){SUI.tabsOverflow(t(this))})))}(jQuery)},function(t,e){function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){"use strict";"object"!==i(window.SUI)&&(window.SUI={}),SUI.upload=function(){t('.sui-2-10-1 .sui-upload-group input[type="file"]').on("change",(function(e){var i=t(this)[0].files[0],o=t(this).find("~ .sui-upload-message");i&&o.text(i.name)}))},SUI.upload()}(jQuery)},function(t,e){var i;(i=jQuery)(".sui-2-10-1 .sui-reviews").each((function(){var t=i(this);i.get("https://api.reviews.co.uk/merchant/reviews?store=wpmudev-org",(function(e){var i,o=Math.round(e.stats.average_rating),a=t.find(".sui-reviews__stars")[0];for(i=0;i<o;i++)a.innerHTML+='<i class="sui-icon-star" aria-hidden="true"></i> ';t.find(".sui-reviews-rating")[0].innerHTML=e.stats.average_rating,t.find(".sui-reviews-customer-count")[0].innerHTML=e.stats.total_reviews}))}))}]); //# sourceMappingURL=smush-sui.min.js.map