/* * # Fomantic UI - 2.7.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * * Copyright 2014 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ !function(N,P,R,W){"use strict";N.isFunction=N.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},P=void 0!==P&&P.Math==Math?P:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),N.fn.modal=function(F){var x,e=N(this),D=N(P),A=N(R),H=N("body"),O=e.selector||"",T=(new Date).getTime(),E=[],z=F,j="string"==typeof z,q=[].slice.call(arguments,1),L=P.requestAnimationFrame||P.mozRequestAnimationFrame||P.webkitRequestAnimationFrame||P.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var o,r,e,t,n,s,a,i,c,l,d,u=N.isPlainObject(F)?N.extend(!0,{},N.fn.modal.settings,F):N.extend({},N.fn.modal.settings),m=u.selector,f=u.className,g=u.namespace,h=u.error,v="."+g,b="module-"+g,p=N(this),y=N(u.context),w=p.find(m.close),C=this,k=p.data(b),S=!1,M="";d={initialize:function(){d.verbose("Initializing dimmer",y),d.create.id(),d.create.dimmer(),u.allowMultiple&&d.create.innerDimmer(),u.centered||p.addClass("top aligned"),d.refreshModals(),d.bind.events(),u.observeChanges&&d.observeChanges(),d.instantiate()},instantiate:function(){d.verbose("Storing instance of modal"),k=d,p.data(b,k)},create:{dimmer:function(){var e={debug:u.debug,dimmerName:"modals"},i=N.extend(!0,e,u.dimmerSettings);N.fn.dimmer!==W?(d.debug("Creating dimmer"),t=y.dimmer(i),u.detachable?(d.verbose("Modal is detachable, moving content into dimmer"),t.dimmer("add content",p)):d.set.undetached(),n=t.dimmer("get dimmer")):d.error(h.dimmer)},id:function(){c=(Math.random().toString(16)+"000000000").substr(2,8),i="."+c,d.verbose("Creating unique id for element",c)},innerDimmer:function(){0==p.find(m.dimmer).length&&p.prepend('
')}},destroy:function(){l&&l.disconnect(),d.verbose("Destroying previous modal"),p.removeData(b).off(v),D.off(i),n.off(i),w.off(v),y.dimmer("destroy")},observeChanges:function(){"MutationObserver"in P&&((l=new MutationObserver(function(e){d.debug("DOM tree modified, refreshing"),d.refresh()})).observe(C,{childList:!0,subtree:!0}),d.debug("Setting up mutation observer",l))},refresh:function(){d.remove.scrolling(),d.cacheSizes(),d.can.useFlex()||d.set.modalOffset(),d.set.screenHeight(),d.set.type()},refreshModals:function(){r=p.siblings(m.modal),o=r.add(p)},attachEvents:function(e,i){var n=N(e);i=N.isFunction(d[i])?d[i]:d.toggle,0 .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal",dimmer:"> .ui.dimmer",bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached",front:"front"}}}(jQuery,window,document);