/* * # Fomantic UI - 2.8.8 * https://github.com/fomantic/Fomantic-UI * http://fomantic-ui.com/ * * Copyright 2022 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ !function(B,R,P,W){"use strict";B.isFunction=B.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},R=void 0!==R&&R.Math==Math?R:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),B.fn.modal=function(T){var A,e=B(this),H=B(R),D=B(P),O=B("body"),E=e.selector||"",L=(new Date).getTime(),N=[],z=T,j="string"==typeof z,q=[].slice.call(arguments,1),I=R.requestAnimationFrame||R.mozRequestAnimationFrame||R.webkitRequestAnimationFrame||R.msRequestAnimationFrame||function(e){setTimeout(e,0)};return e.each(function(){var s,o,n,i,t,m,f,e,h,g,a=B.isPlainObject(T)?B.extend(!0,{},B.fn.modal.settings,T):B.extend({},B.fn.modal.settings),c=a.selector,r=a.className,p=a.namespace,v=a.fields,b=a.error,y="."+p,x="module-"+p,l=B(this),k=B(a.context),w=l.find(c.close),d=this,C=l.hasClass("modal")?l.data(x):W,S=!1,F="",M="",u={initialize:function(){var s;l.hasClass("modal")||(u.create.modal(),B.isFunction(a.onHidden)||(a.onHidden=function(){u.destroy(),l.remove()})),l.addClass(a.class),""!==a.title&&l.find(c.title).html(u.helpers.escape(a.title,a.preserveHTML)).addClass(a.classTitle),""!==a.content&&l.find(c.content).html(u.helpers.escape(a.content,a.preserveHTML)).addClass(a.classContent),u.has.configActions()&&(0===(s=l.find(c.actions).addClass(a.classActions)).length?s=B("
",{class:r.actions+" "+(a.classActions||"")}).appendTo(l):s.empty(),a.actions.forEach(function(e){var t=e[v.icon]?'':"",n=u.helpers.escape(e[v.text]||"",a.preserveHTML),i=u.helpers.deQuote(e[v.class]||""),o=e[v.click]&&B.isFunction(e[v.click])?e[v.click]:function(){};s.append(B("