/* * # Fomantic UI - 2.9.3 * https://github.com/fomantic/Fomantic-UI * https://fomantic-ui.com/ * * Copyright 2023 Contributors * Released under the MIT license * https://opensource.org/licenses/MIT * */ !function(Q,W,U){"use strict";function X(e){return"function"==typeof e&&"number"!=typeof e.nodeType}W=void 0!==W&&W.Math===Math?W:globalThis,Q.fn.flyout=function(O){var D,e=Q(this),N=Q(W),L=Q(U),B=(Q("html"),Q("head")),z=Q("body"),I=Date.now(),j=[],R=O,q="string"==typeof R,K=[].slice.call(arguments,1),V=function(e,t){var n;return 0<=[W,U].indexOf(e)?n=z:0===(n=Q(t.document).find(e)).length&&(n=t.frameElement?V(e,t.parent):z),n};return e.each(function(){var n,e,o,s,t,i,r,l=Q.isPlainObject(O)?Q.extend(!0,{},Q.fn.flyout.settings,O):Q.extend({},Q.fn.flyout.settings),c=l.selector,a=l.className,u=l.namespace,d=l.fields,f=l.regExp,h=l.error,g="."+u,p="module-"+u,v=Q(this),b=V(l.context,W),m=v.find(c.close),y=v.children(c.flyout),k=b.children(c.pusher),x=v.hasClass("flyout"),S=this,A=x?v.data(p):void 0,C=!1,w=b[0]===z[0],T="",F="",E=!1,H=!1,M=!1,P={initialize:function(){var s;P.debug("Initializing flyout",O),P.create.id(),x||(P.create.flyout(),X(l.onHidden)||(l.onHidden=function(){P.destroy(),v.remove()}),l.autoShow||(l.autoShow=!0)),v.addClass(l.class),""!==l.title&&v.find(c.header).html(P.helpers.escape(l.title,l.preserveHTML)).addClass(l.classTitle),""!==l.content&&v.find(c.content).html(P.helpers.escape(l.content,l.preserveHTML)).addClass(l.classContent),P.has.configActions()&&(0===(s=v.find(c.actions).addClass(l.classActions)).length?s=Q("
",{class:a.actions+" "+(l.classActions||"")}).appendTo(v):s.empty(),l.actions.forEach(function(e){var t=e[d.icon]?"':"",n=P.helpers.escape(e[d.text]||"",l.preserveHTML),i=P.helpers.deQuote(e[d.class]||""),o=e[d.click]&&X(e[d.click])?e[d.click]:function(){};s.append(Q("