!function(){var e={65190:function(e,n,t){"use strict";function r(e,n){var t=$("#"+e),r=t.attr("class").split(/\s+/),o="mw-font-m";$.each(r,(function(e,n){if(n.toLowerCase().startsWith("mw-font-"))return o=n,!1})),t.removeClass(o).addClass("mw-font-"+n)}t.d(n,{sv:function(){return r}})},65606:function(e){var n,t,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{t="function"==typeof clearTimeout?clearTimeout:i}catch(e){t=i}}();var u,s=[],f=!1,a=-1;function l(){f&&u&&(f=!1,u.length?s=u.concat(s):a=-1,s.length&&p())}function p(){if(!f){var e=c(l);f=!0;for(var n=s.length;n;){for(u=s,s=[];++a<n;)u&&u[a].run();a=-1,n=s.length}u=null,f=!1,function(e){if(t===clearTimeout)return clearTimeout(e);if((t===i||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(e);try{return t(e)}catch(n){try{return t.call(null,e)}catch(n){return t.call(this,e)}}}(e)}}function m(e,n){this.fun=e,this.array=n}function d(){}r.nextTick=function(e){var n=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)n[t-1]=arguments[t];s.push(new m(e,n)),1!==s.length||f||c(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=d,r.addListener=d,r.once=d,r.off=d,r.removeListener=d,r.removeAllListeners=d,r.emit=d,r.prependListener=d,r.prependOnceListener=d,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){"use strict";var e=t(65190);t(65606).config,Office.onReady((function(){var n={fontSize:"s"};if(window.location.search){var t=function(e,n){n||(n=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var t=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(n);return t?t[2]?decodeURIComponent(t[2].replace(/\+/g," ")):"":null}("fs");t&&(n.fontSize=t,(0,e.sv)("choicefieldgroup",t))}$('input[name="mw-in-fs"][value="'+n.fontSize+'"]').prop("checked",!0),$(document).on("msChoicefield",(function(t){var r=$(t.target||t.srcElement).siblings("input[type=radio]");n.fontSize=r.val(),(0,e.sv)("choicefieldgroup",n.fontSize),console.log("Selected value:",n.fontSize),$("#mw-btn-apply").prop("disabled",n.fontSize==fontSize)})),$('input[name="mw-in-fs"]').on("click",(function(){n.fontSize=$('input[name="mw-in-fs"]:checked').val(),$("#mw-btn-apply").prop("disabled",n.fontSize==fontSize)})),$("#mw-btn-apply").on("click",(function(){sessionStorage&&sessionStorage.setItem("fontSize",n.fontSize),sendMessage(JSON.stringify(n))})),$("#mw-btn-cancel").on("click",(function(){sendMessage("close")}))}))}()}();
//# sourceMappingURL=settings.js.map