Your IP : 216.73.216.63


Current Path : /home/theafprt/fnf.group/wp-content/plugins/wp-smush-pro/app/assets/js/
Upload File :
Current File : //home/theafprt/fnf.group/wp-content/plugins/wp-smush-pro/app/assets/js/smush-sui.min.js

!function(e){var t={};function a(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=t,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(i,o,function(t){return e[t]}.bind(null,o));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=4)}([,,,,function(e,t,a){a(5),a(6),a(7),a(8),a(9),a(10),a(11)},function(e,t,a){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){"use strict";"object"!==i(window.SUI)&&(window.SUI={});var e=e||{};e.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},e.Utils=e.Utils||{},e.Utils.remove=function(e){return e.remove&&"function"==typeof e.remove?e.remove():!(!e.parentNode||!e.parentNode.removeChild||"function"!=typeof e.parentNode.removeChild)&&e.parentNode.removeChild(e)},e.Utils.isFocusable=function(e){if(0<e.tabIndex||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!=e.rel;case"INPUT":return"hidden"!=e.type&&"file"!=e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},e.Utils.simulateClick=function(e){var t=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});e.dispatchEvent(t)},e.Utils.IgnoreUtilFocusChanges=!1,e.Utils.dialogOpenClass="sui-has-modal",e.Utils.focusFirstDescendant=function(t){for(var a=0;a<t.childNodes.length;a++){var i=t.childNodes[a];if(e.Utils.attemptFocus(i)||e.Utils.focusFirstDescendant(i))return!0}return!1},e.Utils.focusLastDescendant=function(t){for(var a=t.childNodes.length-1;a>=0;a--){var i=t.childNodes[a];if(e.Utils.attemptFocus(i)||e.Utils.focusLastDescendant(i))return!0}return!1},e.Utils.attemptFocus=function(t){if(!e.Utils.isFocusable(t))return!1;e.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(e){}return e.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},e.OpenDialogList=e.OpenDialogList||new Array(0),e.getCurrentDialog=function(){if(e.OpenDialogList&&e.OpenDialogList.length)return e.OpenDialogList[e.OpenDialogList.length-1]},e.closeCurrentDialog=function(){var t=e.getCurrentDialog();return!!t&&(t.close(),!0)},e.handleEscape=function(t){(t.which||t.keyCode)===e.Utils.ESC&&e.closeCurrentDialog()&&t.stopPropagation()},document.addEventListener("keyup",e.handleEscape),e.Dialog=function(t,a,o,s){if(this.dialogNode=document.getElementById(t),null===this.dialogNode)throw new Error('No element found with id="'+t+'".');var n=["dialog","alertdialog"];if(!(this.dialogNode.getAttribute("role")||"").trim().split(/\s+/g).some((function(e){return n.some((function(t){return e===t}))})))throw new Error("Dialog() requires a DOM element with ARIA role of dialog or alertdialog.");if(this.dialogNode.parentNode.classList.contains("sui-modal")?this.backdropNode=this.dialogNode.parentNode:(this.backdropNode=document.createElement("div"),this.backdropNode.className="sui-modal",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(e.Utils.dialogOpenClass),"string"==typeof a)this.focusAfterClosed=document.getElementById(a);else{if("object"!==i(a))throw new Error("the focusAfterClosed parameter is required for the aria.Dialog constructor.");this.focusAfterClosed=a}"string"==typeof o?this.focusFirst=document.getElementById(o):"object"===i(o)?this.focusFirst=o:this.focusFirst=null;var r=document.createElement("div");this.preNode=this.dialogNode.parentNode.insertBefore(r,this.dialogNode),this.preNode.tabIndex=0,"boolean"==typeof s&&!0===s&&(this.preNode.classList.add("sui-modal-overlay"),this.preNode.onclick=function(){e.getCurrentDialog().close()});var d=document.createElement("div");this.postNode=this.dialogNode.parentNode.insertBefore(d,this.dialogNode.nextSibling),this.postNode.tabIndex=0,0<e.OpenDialogList.length&&e.getCurrentDialog().removeListeners(),this.addListeners(),e.OpenDialogList.push(this),this.dialogNode.classList.add("sui-content-fade-in"),this.dialogNode.classList.remove("sui-content-fade-out"),this.focusFirst?this.focusFirst.focus():e.Utils.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement},e.Dialog.prototype.close=function(){var t=this;e.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(){t.backdropNode.classList.remove("sui-active")}),300),setTimeout((function(){var e=t.dialogNode.querySelectorAll(".sui-modal-slide");if(0<e.length){for(var a=0;a<e.length;a++)e[a].setAttribute("disabled",!0),e[a].classList.remove("sui-loaded"),e[a].classList.remove("sui-active"),e[a].setAttribute("tabindex","-1"),e[a].setAttribute("aria-hidden",!0);if(e[0].hasAttribute("data-modal-size")){var i=e[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&&(t.dialogNode.parentNode.classList.remove("sui-modal-sm"),t.dialogNode.parentNode.classList.remove("sui-modal-md"),t.dialogNode.parentNode.classList.remove("sui-modal-lg"),t.dialogNode.parentNode.classList.remove("sui-modal-xl"),t.dialogNode.parentNode.classList.add("sui-modal-"+i))}var o,s,n,r;if(e[0].classList.add("sui-active"),e[0].classList.add("sui-loaded"),e[0].removeAttribute("disabled"),e[0].removeAttribute("tabindex"),e[0].removeAttribute("aria-hidden"),e[0].hasAttribute("data-modal-labelledby"))o="",""===(s=e[0].getAttribute("data-modal-labelledby"))&&void 0===s||(o=s),t.dialogNode.setAttribute("aria-labelledby",o);if(e[0].hasAttribute("data-modal-describedby"))n="",""===(r=e[0].getAttribute("data-modal-describedby"))&&void 0===r||(n=r),t.dialogNode.setAttribute("aria-describedby",n)}}),350),0<e.OpenDialogList.length?e.getCurrentDialog().addListeners():document.body.parentNode.classList.remove(e.Utils.dialogOpenClass)},e.Dialog.prototype.replace=function(t,a,i,o){var s=this;e.OpenDialogList.pop(),this.removeListeners(),e.Utils.remove(this.preNode),e.Utils.remove(this.postNode),this.dialogNode.classList.remove("sui-content-fade-in"),this.backdropNode.classList.remove("sui-active"),setTimeout((function(){var e=s.dialogNode.querySelectorAll(".sui-modal-slide");if(0<e.length){for(var t=0;t<e.length;t++)e[t].setAttribute("disabled",!0),e[t].classList.remove("sui-loaded"),e[t].classList.remove("sui-active"),e[t].setAttribute("tabindex","-1"),e[t].setAttribute("aria-hidden",!0);if(e[0].hasAttribute("data-modal-size")){var a=e[0].getAttribute("data-modal-size");switch(a){case"sm":case"small":a="sm";break;case"md":case"med":case"medium":a="md";break;case"lg":case"large":a="lg";break;case"xl":case"extralarge":case"extraLarge":case"extra-large":a="xl";break;default:a=void 0}void 0!==a&&(s.dialogNode.parentNode.classList.remove("sui-modal-sm"),s.dialogNode.parentNode.classList.remove("sui-modal-md"),s.dialogNode.parentNode.classList.remove("sui-modal-lg"),s.dialogNode.parentNode.classList.remove("sui-modal-xl"),s.dialogNode.parentNode.classList.add("sui-modal-"+a))}var i,o,n,r;if(e[0].classList.add("sui-active"),e[0].classList.add("sui-loaded"),e[0].removeAttribute("disabled"),e[0].removeAttribute("tabindex"),e[0].removeAttribute("aria-hidden"),e[0].hasAttribute("data-modal-labelledby"))i="",""===(o=e[0].getAttribute("data-modal-labelledby"))&&void 0===o||(i=o),s.dialogNode.setAttribute("aria-labelledby",i);if(e[0].hasAttribute("data-modal-describedby"))n="",""===(r=e[0].getAttribute("data-modal-describedby"))&&void 0===r||(n=r),s.dialogNode.setAttribute("aria-describedby",n)}}),350);var n=a||this.focusAfterClosed;new e.Dialog(t,n,i,o)},e.Dialog.prototype.slide=function(t,a,o){var s,n,r,d,l="sui-fadein",c=(e.getCurrentDialog(),this.dialogNode.querySelectorAll(".sui-modal-slide")),u=document.getElementById(t);switch(o){case"back":case"left":l="sui-fadein-left";break;case"next":case"right":l="sui-fadein-right";break;default:l="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 b=u.getAttribute("data-modal-size");switch(b){case"sm":case"small":b="sm";break;case"md":case"med":case"medium":b="md";break;case"lg":case"large":b="lg";break;case"xl":case"extralarge":case"extraLarge":case"extra-large":b="xl";break;default:b=void 0}void 0!==b&&(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-"+b))}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="",""===(d=u.getAttribute("data-modal-describedby"))&&void 0===d||(r=d),this.dialogNode.setAttribute("aria-describedby",r));u.classList.add("sui-active"),u.classList.add(l),u.removeAttribute("tabindex"),u.removeAttribute("aria-hidden"),setTimeout((function(){u.classList.add("sui-loaded"),u.classList.remove(l),u.removeAttribute("disabled")}),600),"string"==typeof a?this.newSlideFocus=document.getElementById(a):"object"===i(a)?this.newSlideFocus=a:this.newSlideFocus=null,this.newSlideFocus?this.newSlideFocus.focus():e.Utils.focusFirstDescendant(this.dialogNode)},e.Dialog.prototype.addListeners=function(){document.addEventListener("focus",this.trapFocus,!0)},e.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",this.trapFocus,!0)},e.Dialog.prototype.trapFocus=function(t){if(!e.Utils.IgnoreUtilFocusChanges){var a=e.getCurrentDialog();a.dialogNode.contains(t.target)?a.lastFocus=t.target:(e.Utils.focusFirstDescendant(a.dialogNode),a.lastFocus==document.activeElement&&e.Utils.focusLastDescendant(a.dialogNode),a.lastFocus=document.activeElement)}},SUI.openModal=function(t,a,i,o){new e.Dialog(t,a,i,o)},SUI.closeModal=function(){e.getCurrentDialog().close()},SUI.replaceModal=function(t,a,i,o){e.getCurrentDialog().replace(t,a,i,o)},SUI.slideModal=function(t,a,i){e.getCurrentDialog().slide(t,a,i)}}(),function(e){"use strict";"object"!==i(window.SUI)&&(window.SUI={}),SUI.modalDialog=function(){var t,a,o,s,n,r,d,l,c,u,f;return a=e("[data-modal-open]"),o=e("[data-modal-close]"),s=e("[data-modal-replace]"),n=e("[data-modal-slide]"),r=e(".sui-modal-overlay"),a.on("click",(function(a){t=e(this),d=t.attr("data-modal-open"),c=t.attr("data-modal-close-focus"),u=t.attr("data-modal-open-focus"),r=t.attr("data-modal-mask"),"undefined"!==i(c)&&!1!==c&&""!==c||(c=this),"undefined"!==i(u)&&!1!==u&&""!==u||(u=void 0),r="undefined"!==i(r)&&!1!==r&&"true"===r,"undefined"!==i(d)&&!1!==d&&""!==d&&SUI.openModal(d,c,u,r),a.preventDefault()})),s.on("click",(function(a){t=e(this),d=t.attr("data-modal-replace"),c=t.attr("data-modal-close-focus"),u=t.attr("data-modal-open-focus"),r=t.attr("data-modal-replace-mask"),"undefined"!==i(c)&&!1!==c&&""!==c||(c=void 0),"undefined"!==i(u)&&!1!==u&&""!==u||(u=void 0),r="undefined"!==i(r)&&!1!==r&&"true"===r,"undefined"!==i(d)&&!1!==d&&""!==d&&SUI.replaceModal(d,c,u,r),a.preventDefault()})),n.on("click",(function(a){t=e(this),l=t.attr("data-modal-slide"),u=t.attr("data-modal-slide-focus"),f=t.attr("data-modal-slide-intro"),"undefined"!==i(u)&&!1!==u&&""!==u||(u=void 0),"undefined"!==i(f)&&!1!==f&&""!==f||(f=""),"undefined"!==i(l)&&!1!==l&&""!==l&&SUI.slideModal(l,u,f),a.preventDefault()})),o.on("click",(function(e){SUI.closeModal(),e.preventDefault()})),this},SUI.modalDialog()}(jQuery)},function(e,t){var a;(a=jQuery)(".sui-2-6-0 .sui-notice-top:not(.sui-can-dismiss, .sui-cant-dismiss)").delay(3e3).slideUp("slow"),a(".sui-2-6-0 .sui-notice-dismiss").click((function(e){return e.preventDefault(),a(this).parent().stop().slideUp("slow"),!1}))},function(e,t){function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){"use strict";"object"!==a(window.SUI)&&(window.SUI={}),SUI.loadCircleScore=function(t){e(t).find("svg circle:last-child");var a=e(t).data("score"),i='<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*a)-a)+'" />\n</svg>\n<span class="sui-circle-score-label">'+a+"</span>\n";e(t).prepend(i).addClass("loaded").find("circle:last-child").css("animation","sui"+a+" 3s forwards")},e(".sui-2-6-0 .sui-circle-score").each((function(){SUI.loadCircleScore(this)}))}(jQuery)},function(e,t){function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){"use strict";"object"!==a(window.SUI)&&(window.SUI={}),SUI.suiSelect=function(t){var a,i,o,s,n,r,d=e(t);if(d.is("select")&&!(d.closest(".select-container").length||d.data("select2")||d.is(".sui-select")||d.is(".sui-search")||d.is(".sui-variables")||d.is(".none-sui")))return d.wrap('<div class="select-container">'),d.attr("aria-hidden",!0),d.attr("hidden",!0),d.hide(),a=d.parent(),i=e('<span class="dropdown-handle" aria-hidden="true"><i class="sui-icon-chevron-down"></i></span>').prependTo(a),o=e('<div class="select-list-container"></div>').appendTo(a),s=e('<button type="button" class="list-value" aria-haspopup="listbox">&nbsp;</button>').appendTo(o),n=e('<ul tabindex="-1" role="listbox" class="list-results"></ul>').appendTo(o),a.addClass(d.attr("class")),s.attr("id",d.attr("id")+"-button"),s.attr("aria-labelledby",d.attr("aria-labelledby")+" "+s.attr("id")),n.attr("id",d.attr("id")+"-list"),n.attr("aria-labelledby",d.attr("aria-labelledby")),l(),d.on("sui:change",(function(){l(),n.find("li").not(".optgroup-label").on("click",(function(t){var a=e(t.target);m(a,!1,a.data("color")),c()}))})),n.find("li").not(".optgroup-label").on("click",(function(t){var a=e(t.target);m(a,!1,a.data("color")),c()})),i.on("click",u),s.on("click",u),d.on("focus",b),e(document).click((function(t){var a,i=e(t.target);i.closest(".select-container").length||i.is("label")&&i.attr("for")&&(a=i.attr("for"),e("select#"+a).length)||f()})),(r=d.attr("id"))&&e("label[for="+r+"]").on("click",b),d.addClass("sui-styled"),this;function l(){var t=d.children();n.empty(),t.each((function(){var t,a,i,o=e(this),s=e(this);"OPTION"==e(this).prop("tagName")?((t=e("<li></li>").appendTo(n)).attr("role","option"),o.data("content")?(t.addClass("sui-element-flex"),t.html("<span>"+o.text()+"</span><span>"+o.data("content")+"</span>")):o.data("icon")?t.html('<i class="sui-icon-'+o.data("icon")+'" aria-hidden="true"></i> '+o.text()):o.data("color")?t.html('<span style="background-color: '+o.data("color")+'" data-color="'+o.data("color")+'" aria-hidden="true"></span>'+o.text()):t.text(o.text()),o.is(":disabled")&&t.addClass("sui-disabled"),n.attr("aria-activedescendant",d.attr("id")+"-option-"+o.val()),t.attr("id",d.attr("id")+"-option-"+o.val()),t.data("value",o.val()),t.data("color",o.data("color")),o.val()==d.val()&&m(t,!0,o.data("color"))):(a=e("<ul></ul>").appendTo(n),i=e('<li class="optgroup-label"></li>').text(s.prop("label")),a.html(i),a.addClass("optgroup"),s.find("option").each((function(){var t,i=e(this);(t=e("<li></li>").appendTo(a)).text(i.text()),t.data("value",i.val()),i.val()==d.val()&&m(t)})))}))}function c(){var e=d[0].value;e.match("^https?://|#")&&(window.location.href=e)}function u(){a.find("select").is(":disabled")||(a.hasClass("active")?f():b())}function f(e){e||(e=a),e.removeClass("active"),e.closest("tr").removeClass("select-open"),e.find(".list-value").removeAttr("aria-expanded")}function b(){e(".select-container.active").each((function(){f(e(this))})),a.addClass("active"),a.closest("tr").addClass("select-open"),a.find(".list-value").attr("aria-expanded",!0)}function m(t,a,i){a=void 0!==a&&a,void 0!==i&&""!==i?s.html('<span style="background-color: '+i+'" data-color="'+i+'"></span>'+t.text()):s.text(t.text()),e(".current",n).removeAttr("aria-selected"),e(".current",n).removeClass("current"),t.addClass("current"),t.attr("aria-selected",!0),n.attr("aria-activedescendant",t.attr("id")),f(),d.val(t.data("value")),a||d.trigger("change")}},e(".sui-2-6-0 select:not([multiple])").each((function(){SUI.suiSelect(this)}))}(jQuery)},function(e,t){function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){"use strict";"object"!==a(window.SUI)&&(window.SUI={}),SUI.suiTabs=function(e){var t,a,i,o,s=["tab","pane"],n=[],r=[],d=[],l=[],c=[];function u(e,a){f(e,a),"function"==typeof t.callback&&t.callback(l.tab,l.pane)}function f(e,t){var u;for(i=e,o=t,u=0;u<s.length;u++)r[a=s[u]]=n[a][i],d[a]=r[a].children,l[a]=d[a][o],b();c[e]=[],c[e][t]=!0}function b(){var e;for(e=0;e<d[a].length;e++)d[a][e].classList.remove(t[a+"Active"]);l[a].classList.add(t[a+"Active"])}function m(e,a){(t=t||[])[e]=t[e]||a}return function(e){var r,d,l;for(t=e,function(){var e;for(e=0;e<s.length;e++)m((a=s[e])+"Group","[data-"+a+"s]"),m(a+"Active","active")}(),n.tab=document.querySelectorAll(t.tabGroup),n.pane=document.querySelectorAll(t.paneGroup),r=0;r<n.tab.length;r++)for(d=n.tab[r].children,l=0;l<d.length;l++)d[l].addEventListener("click",u.bind(this,r,l),!1),i=r,o=l,window.location.hash&&window.location.hash.replace(/[^\w-_]/g,"")===d[l].id&&f(r,l)}(e)},SUI.tabsOverflow=function(t){var a=t.closest(".sui-tabs").find('[data-tabs], [role="tablist"]'),i=t.find(".sui-tabs-navigation--left"),o=t.find(".sui-tabs-navigation--right");function s(){return a[0].scrollWidth>a.width()?(0===a.scrollLeft()?i.addClass("sui-tabs-navigation--hidden"):i.removeClass("sui-tabs-navigation--hidden"),n(0),!0):(i.addClass("sui-tabs-navigation--hidden"),o.addClass("sui-tabs-navigation--hidden"),!1)}function n(e){var t,i;t=a.scrollLeft()+e,i=a.outerWidth(),a.get(0).scrollWidth-t<=i?o.addClass("sui-tabs-navigation--hidden"):o.removeClass("sui-tabs-navigation--hidden")}s(),i.click((function(){return o.removeClass("sui-tabs-navigation--hidden"),0>=a.scrollLeft()-150&&i.addClass("sui-tabs-navigation--hidden"),a.animate({scrollLeft:"-=150"},400,(function(){})),!1})),o.click((function(){return i.removeClass("sui-tabs-navigation--hidden"),n(150),a.animate({scrollLeft:"+=150"},400,(function(){})),!1})),e(window).resize((function(){s()})),a.scroll((function(){s()}))},SUI.tabs=function(t){var a,i=e('.sui-tabs > div[role="tablist"]'),o=t,s=35,n=36,r=37,d=38,l=39,c=40,u=13,f=32,b={37:-1,38:-1,39:1,40:1};if(i.length)return(a=i.closest(".sui-tabs")).each((function(){a=e(this),(i=a.find('> [role="tablist"]')).find('> [role="tab"]').on("click",(function(e){v(e)})).keydown((function(t){!function(e,t,a){switch(e.keyCode||e.which){case s:case n:e.preventDefault();break;case d:case c:p(e,t,a)}}(t,e(this).index(),i)})).keyup((function(t){!function(e,t,a){switch(e.keyCode||e.which){case r:case l:p(e,t,a);break;case u:case f:m(e)}}(t,e(this).index(),i)}))})),this;function m(t){var a=e(t).closest('[role="tablist"]').find('[role="tab"]'),i=e(t).closest(".sui-tabs").find('> .sui-tabs-content > [role="tabpanel"]'),o=e(t).attr("aria-controls"),s=e("#"+o);!function(e,t){e.removeClass("active"),e.attr("tabindex","-1"),e.attr("aria-selected",!1),t.removeClass("active"),t.attr("hidden",!0)}(a,i),e(t).addClass("active"),e(t).removeAttr("tabindex"),e(t).attr("aria-selected",!0),s.addClass("active"),s.attr("hidden",!1),s.removeAttr("hidden")}function p(t,a,i){var o=t.keyCode||t.which,s=!1;"vertical"===e(i).attr("aria-orientation")?d!==o&&c!==o||(t.preventDefault(),s=!0):r!==o&&l!==o||(s=!0),!0===s&&function(t,a){var i,o,s;i=t.keyCode||t.which,b[i]&&(o=t.target,s=e(o).closest('[role="tablist"]').find('> [role="tab"]'),void 0!==a&&(s[a+b[i]]?s[a+b[i]].focus():r===i||d===i?s[s.length-1].focus():l!==i&&c!==i||s[0].focus()))}(t,a)}function v(t){var a=t.target;m(a),void 0!==o&&"undefined"!==o&&function(t){var a=e(t),i=a.attr("aria-controls"),s=e("#"+i);"function"==typeof o.callback&&o.callback(a,s)}(a),t.preventDefault(),t.stopPropagation()}},0!==e(".sui-2-6-0 .sui-tabs").length&&(SUI.tabs(),SUI.suiTabs(),e(".sui-2-6-0 .sui-tabs-navigation").each((function(){SUI.tabsOverflow(e(this))})))}(jQuery)},function(e,t){function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){"use strict";"object"!==a(window.SUI)&&(window.SUI={}),SUI.upload=function(){e('.sui-2-6-0 .sui-upload-group input[type="file"]').on("change",(function(t){var a=e(this)[0].files[0],i=e(this).find("~ .sui-upload-message");a&&i.text(a.name)}))},SUI.upload()}(jQuery)},function(e,t){var a;(a=jQuery)(".sui-2-6-0 .sui-reviews").each((function(){var e=a(this);a.get("https://api.reviews.co.uk/merchant/reviews?store=wpmudev-org",(function(t){var a,i=Math.round(t.stats.average_rating),o=e.find(".sui-reviews__stars")[0];for(a=0;a<i;a++)o.innerHTML+='<i class="sui-icon-star" aria-hidden="true"></i> ';e.find(".sui-reviews-rating")[0].innerHTML=t.stats.average_rating,e.find(".sui-reviews-customer-count")[0].innerHTML=t.stats.total_reviews}))}))}]);
//# sourceMappingURL=smush-sui.min.js.map