var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(g,k,l){if(g==Array.prototype||g==Object.prototype)return g;g[k]=l.value;return g};
$jscomp.getGlobal=function(g){g=["object"==typeof globalThis&&globalThis,g,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var k=0;k<g.length;++k){var l=g[k];if(l&&l.Math==Math)return l}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(g,k,l){if(!l||null!=g){l=$jscomp.propertyToPolyfillSymbol[k];if(null==l)return g[k];l=g[l];return void 0!==l?l:g[k]}};$jscomp.polyfill=function(g,k,l,n){k&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(g,k,l,n):$jscomp.polyfillUnisolated(g,k,l,n))};
$jscomp.polyfillUnisolated=function(g,k,l,n){l=$jscomp.global;g=g.split(".");for(n=0;n<g.length-1;n++){var q=g[n];if(!(q in l))return;l=l[q]}g=g[g.length-1];n=l[g];k=k(n);k!=n&&null!=k&&$jscomp.defineProperty(l,g,{configurable:!0,writable:!0,value:k})};
$jscomp.polyfillIsolated=function(g,k,l,n){var q=g.split(".");g=1===q.length;n=q[0];n=!g&&n in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var w=0;w<q.length-1;w++){var z=q[w];if(!(z in n))return;n=n[z]}q=q[q.length-1];l=$jscomp.IS_SYMBOL_NATIVE&&"es6"===l?n[q]:null;k=k(l);null!=k&&(g?$jscomp.defineProperty($jscomp.polyfills,q,{configurable:!0,writable:!0,value:k}):k!==l&&(void 0===$jscomp.propertyToPolyfillSymbol[q]&&(l=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[q]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(q):$jscomp.POLYFILL_PREFIX+l+"$"+q),$jscomp.defineProperty(n,$jscomp.propertyToPolyfillSymbol[q],{configurable:!0,writable:!0,value:k})))};$jscomp.arrayIteratorImpl=function(g){var k=0;return function(){return k<g.length?{done:!1,value:g[k++]}:{done:!0}}};$jscomp.arrayIterator=function(g){return{next:$jscomp.arrayIteratorImpl(g)}};
$jscomp.makeIterator=function(g){var k="undefined"!=typeof Symbol&&Symbol.iterator&&g[Symbol.iterator];if(k)return k.call(g);if("number"==typeof g.length)return $jscomp.arrayIterator(g);throw Error(String(g)+" is not an iterable or ArrayLike");};$jscomp.polyfill("Promise.prototype.finally",function(g){return g?g:function(k){return this.then(function(l){return Promise.resolve(k()).then(function(){return l})},function(l){return Promise.resolve(k()).then(function(){throw l;})})}},"es9","es3");
$jscomp.polyfill("Array.prototype.includes",function(g){return g?g:function(k,l){var n=this;n instanceof String&&(n=String(n));var q=n.length;l=l||0;for(0>l&&(l=Math.max(l+q,0));l<q;l++){var w=n[l];if(w===k||Object.is(w,k))return!0}return!1}},"es7","es3");
function _typeof(g){_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"===typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k};return _typeof(g)}window.seraph_accel||(window.seraph_accel={});
(function(){function g(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:!1,e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null;null===b&&(b="");null===e&&(e={});if(e.noTagsIfNoContent&&!b)return b;c=k(a,c,d);if(d)return c;t(b)?b[0]=c+b[0]:b=c+b;c=l(a);t(b)?b[b.length-1]+=c:b+=c;return b}function k(a){var b=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
!1;if(!a)return"";var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,d="";if(t(c))for(var e in c){var f=c[e];if(void 0!==f){if("style"==e)(f=t(f)?D(f):B(f,!1,'"'))||(f=void 0);else if(t(f)){for(var h="",p=!0,m=0;m<f.length;m++)p||(h+=" "),h+=f[m],p=!1;f=h}else f=B(f,!1,'"');void 0!==f&&(d+=" "+e+'="'+f+'"')}}else"string"===typeof c&&(d+=" "+c);return"<"+a+d+(b?" /":"")+">"}function l(a){return a?"</"+a+">":""}function n(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
!1,d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:!1,e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null,f=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,h=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null;t(h)||(h={});b&&(h.id=b);return q("checkbox",a,h,null,c,d,e,f)}function q(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:!1,f=5<arguments.length&&void 0!==arguments[5]?arguments[5]:
!1,h=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null,p=7<arguments.length&&void 0!==arguments[7]?arguments[7]:null,m="";t(c)||(c={});p&&(t(h)||(h={}),c.title=h.title=p);p="";if(t(b)){var r=b;b="";for(var x in r)if(t(x)){r="";var y=null;isset(x[2])&&(y=x[2]);var u=x[0];b+='<a href="#" id="'+u+'_view" onclick="var ctl = document.getElementById( \''+u+"' ); var iNew = ctl.selectedIndex + 1; if( iNew >= ctl.options.length ) iNew = 0; if( ctl.selectedIndex != iNew ) { ctl.selectedIndex = iNew; ctl.onchange(); } return false;\">";
for(var v in x[1])isset(v[2])&&v[2]&&(y=v[0]),r+='<option value="'+v[0]+'"',y==v[0]&&(b+=v[1],r+=" selected"),r+=">"+v[1]+"</option>";b+="</a>";p+='<select id="'+u+'"'+(f?' name="'+u+'"':"")+' style="display: none;"';p+=" onchange=\"var text = this.selectedIndex >= 0 ? this.options[ this.selectedIndex ].text : ''; document.getElementById( '"+u+"_view' ).text = text;\">";p+=r;p+="</select>"}else b+=x}m+=k("label",h);h=c.id;c.type=a;f&&h&&(c.name=h);d&&(c.value=d);e&&(c.checked="checked");m+=g("input",
null,c,!0);return m+=b+p+l("label")}function w(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"oninit";seraph_accel.Gen.EvalInCtx(jQuery(a).data(b),a);jQuery(a).find("[data-"+b+"]").each(function(){seraph_accel.Gen.EvalInCtx(jQuery(this).data(b),this)})}function z(a){var b=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;if(!a||!a.length)return"";var c=""+k("ul",1<arguments.length&&void 0!==arguments[1]?arguments[1]:null);for(var d=0;d<a.length;d++){var e=a[d];c+=k("li");
c+=n(e.name,e.id,!1,b,null,null,{onchange:"seraph_accel.Ui._cb.CheckBoxTree_OnChange(this)"});e.items&&(c+=z(e.items,null,b));c+=l("li")}return c+=l("ul")}function E(a,b,c){return seraph_accel.Gen.EvalInCtx("var isExpanding="+(c?"true":"false")+";"+b,a)}function F(a){a=jQuery("#seraph_accel_popup_"+a);1==a.attr("data-attr-modal")&&jQuery(".seraph_accel.popup_modal_overlay").hide();a.hide()}function B(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,c=2<arguments.length&&void 0!==
arguments[2]?arguments[2]:null;if("string"!==typeof a)return a;a=seraph_accel.Gen.StrReplaceAll(a,"&","&amp;");'"'===c&&(a=seraph_accel.Gen.StrReplaceAll(a,'"',"&quot;"));"'"===c&&(a=seraph_accel.Gen.StrReplaceAll(a,"'","&#039;"));a=seraph_accel.Gen.StrReplaceAll(a,"<","&lt;");a=seraph_accel.Gen.StrReplaceAll(a,">","&gt;");b&&(a=seraph_accel.Gen.StrReplaceAll(a," ","&nbsp;"));return a}function D(a){var b="",c;for(c in a){var d=a[c];void 0!==d&&null!==d&&(b&&(b+=";"),b+=c+":"+d)}return b}function t(a){return a&&
"object"===_typeof(a)}function G(a,b,c){var d=!1;void 0===b?(b=a.height(),a.css("opacity",0),a.css("height","0px")):d=!0;setTimeout(function(){d||a.addClass("smoothop");a.css("height",""+b+"px");setTimeout(function(){a.css("height","");a.css("opacity","");setTimeout(function(){a.removeClass("smoothop");c&&c(a)},200)},300)},d?50:0)}function H(a,b){var c=a.height();a.addClass("smoothop");a.css("opacity",0);setTimeout(function(){a.css("height",""+c+"px");setTimeout(function(){a.css("height","0px");setTimeout(function(){b&&
b(a,c)},300)},50)},200)}function I(a,b){var c=!b.children().length;a.find(".items-list-empty-content").first().toggle(c);b.toggle(!c)}function C(a){for(var b="",c=0;c<a.length;c++)b&&(b+=","),b+=a.charCodeAt(c).toString(10);return b}function A(a){a=a.split(",");for(var b=0;b<a.length;b++)a[b]=String.fromCharCode(parseInt(a[b],10));return a.join("")}function J(a,b,c){c||(c=b);jQuery(a).append(seraph_accel.Ui.Tag("span",seraph_accel.Ui.Tag("a","",{href:"","class":"dashicons dashicons-dismiss",onclick:"seraph_accel.Ui._cb.TokensList_DelItem(this);return false;"})+
seraph_accel.Ui.Tag("span",B(c)),{"data-id":b}))}function K(a,b,c){var d=jQuery(a),e=d.find('input[type="hidden"]');d=d.attr("masked");if(b)for(b=e.val(),d&&(b=A(b)),b=seraph_accel.Gen.JsonParse(decodeURIComponent(b))||[],e=0;e<b.length;e++)d=b[e],J(a,d,c?c(d):void 0);else a.innerHTML=e[0].outerHTML}function L(a){var b=parseInt(a,10);return b==a?b:a}function M(a){var b=jQuery(a).prop("checked"),c=jQuery(a).attr("data-id");jQuery(a.parentNode.parentNode.parentNode).find('[data-idParent="'+c+'"]').each(function(){jQuery(this).prop("checked",
b);M(this)})}function N(a){var b=jQuery(a).find('input[type="checkbox"]');if(b.length){var c=[];b.each(function(){var d=jQuery(this);d.is(":checked")&&c.push(L(d.attr("data-id")))});jQuery(a).find('input[type="hidden"]').attr("value",encodeURIComponent(JSON.stringify(c)))}}seraph_accel.Ui={EscHtml:B,HtmlToPlainText:function(a){var b=document.createElement("div");b.innerHTML=a;return b.textContent||b.innerText||""},Text:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,c=2<
arguments.length&&void 0!==arguments[2]?arguments[2]:!1,d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:!1;if("string"!==typeof a)return"";a=seraph_accel.Gen.StrReplaceAll(a,"&","&amp;");c&&(a=seraph_accel.Gen.StrReplaceAll(a,'"',"&quot;"),a=seraph_accel.Gen.StrReplaceAll(a,"'","&#39;"));a=seraph_accel.Gen.StrReplaceAll(a,"<","&lt;");a=seraph_accel.Gen.StrReplaceAll(a,">","&gt;");b&&(a=seraph_accel.Gen.StrReplaceAll(a," ","string"===typeof b?b:1==b?"&nbsp;":"&#32;"));if(d)for(b=0,c=a.length;b<
c;b++)d=a.charCodeAt(b),255>=d||(a=a.substr(0,b)+"&#"+d+";"+a.substr(b+1),b+=a.length-c,c=a.length);return a},Comment:function(a){"string"!==typeof a&&(a="");return"\x3c!-- "+a+" --\x3e"},Tag:g,TagOpen:k,TagClose:l,GetTagStyleAttrs:D,ParseTagStyleAttrs:function(a){"string"!==typeof a&&(a="");var b={};a=a.split(";");for(var c in a){var d=a[c],e=d.indexOf(":");if(-1!==e){var f=d.substr(0,e).trim();d=d.substr(e+1).trim();b[f]=d}}return b},Link:function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?
arguments[2]:!1,d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null;null===e&&(e={});null===d&&(d={});if(b){var f="",h=d.linkPreContent;h&&(f+=h);e.href=b;c&&0!==b.indexOf("mailto:")&&(e.target="_blank");f+=k("a",e);t(a)?a[0]=f+a[0]:a=f+a}else if(d.noTextIfNoHref){if(!t(a))return"";a[0]="";a[a.length-1]="";3==a.length&&(a[1]="");return a}b&&(f=l("a"),(c=d.linkAfterContent)&&(f+=c),t(a)?a[a.length-1]+=f:a+=f);return a},Button:function(a){var b=
1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"submit",f=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,h="button"==e&&-1!==a.indexOf("<");f||(f={});c&&(f.name=c);h||(f.type=e,f.value=a,a=null);Array.isArray(f.class)||(f.class=[]);f.class.push("button");b&&f.class.push("button-primary");d&&(Array.isArray(d)?
f.class=f.class.concat(d):f.class.push(d));return g(h?"button":"input",a,f)},CheckBox:n,RadioBox:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:!1,e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null,f=5<arguments.length&&void 0!==arguments[5]?arguments[5]:null,h=6<arguments.length&&void 0!==arguments[6]?arguments[6]:null;t(h)||(h={});b&&(h.name=b);return q("radio",a,h,c,d,e,f)},CheckBoxTree:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
null,c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;t(b)||(b={});b.class=["seraph_accel_CheckBoxTree"];return z(a,b,c)},ComboShowDependedItems:function(a,b){function c(m){m=jQuery(m);var r=m.data(d);r||(r=m.val());return r}var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"ns",e=void 0!==a.selectedIndex,f="";e?0<=a.selectedIndex&&(f=c(a.options[a.selectedIndex])):f=c(jQuery(a).find('input[type="radio"]:checked,.nav-tab.nav-tab-active').get(0));var h=[];if(e)for(e=0;e<a.options.length;e++)h[c(a.options[e])]=
!0;else jQuery(a).find('input[type="radio"],.nav-tab').each(function(){h[c(this)]=!0});e=jQuery(b?b:a.parentNode);for(var p in h)p!=f&&e.find("."+d+"-"+seraph_accel.Gen.StrReplaceAll(p,[":","@"],["\\:","\\@"])).each(function(){var m=jQuery(this),r=m.attr("name");r&&(m.attr("name-i",r),m.removeAttr("name"));m.hide();m.removeClass("ctlInitVisibleBlock")});e.find("."+d+"-"+seraph_accel.Gen.StrReplaceAll(f,[":","@"],["\\:","\\@"])).each(function(){var m=jQuery(this),r=m.attr("name-i");r&&(m.attr("name",
r),m.removeAttr("name-i"));m.removeClass("ctlInitHidden");m.show()})},Spinner:function(a,b){b||(b={});seraph_accel.Gen.SetObjField(b,"class.+","seraph_accel_spinner"+(a?" big":""));return g("span",null,b)},LogItem:function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!0;if("string"===typeof b){var d="dashicons-info",e="clrWpNone";switch(a){case "info":d="dashicons-info";e="clrWpInfo";break;case "normal":d="dashicons-info";e="clrWpNormal";break;case "success":d="dashicons-info";
e="clrWpSucc";break;case "warning":d="dashicons-warning";e="clrWpWarn";break;case "error":d="dashicons-warning",e="clrWpErr"}c&&(c=b.slice(-1),"."!=c&&"?"!=c&&(b+="."));return g("div",g("div",null,{"class":"icon dashicons "+d+" "+e})+g("div",b,{"class":"text"}),{"class":"logItem"})}},Init:w,Apply:function(a){var b=!0;jQuery(a).find("[data-onapply]").each(function(){!1===seraph_accel.Gen.EvalInCtx(jQuery(this).data("onapply"),this)&&(b=!1)});return b},PopupShow:function(a){var b=jQuery("#seraph_accel_popup_"+
a),c=1==b.attr("data-attr-modal"),d=b.attr("data-attr-body");d&&(b.removeAttr("data-attr-body"),b.html(decodeURIComponent(d)));c&&(jQuery(".seraph_accel.popup_modal_overlay").show(),jQuery(document).bind("keyup",function(e){if("Escape"===e.key)return F(a),!1}));b.show()},PopupClose:F,BannerMsgClose:function(a){a.find(".notice-dismiss").click()},ScriptLoad:function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:!0;if(a)return new Promise(function(e,
f){var h=c?a.getElementById(c):null;h?!0===d?e(!1):(a.head.removeChild(h),e(!0)):!0!==d?e(!1):(h=a.createElement("script"),h.type="text/javascript",h.src=b,c&&(h.id=c),h.onload=function(){e(!0)},h.onerror=function(p){(p=seraph_accel.Gen.GetObjField(p,"target.src"))||(p=b);f("Can't load script: "+p)},a.head.appendChild(h))})},_MaskEncode:C,TokensList:{GetVal:function(a){var b=jQuery(a);a=b.find('input[type="hidden"]');b=b.attr("masked");a=a.val();b&&(a=A(a));(a=seraph_accel.Gen.JsonParse(decodeURIComponent(a)))||
(a=[]);return a},AddItem:function(a,b,c){var d=jQuery(a),e=d.find('input[type="hidden"]');d=d.attr("masked");var f=e.val();d&&(f=A(f));(f=seraph_accel.Gen.JsonParse(decodeURIComponent(f)))||(f=[]);f.includes(b)||(f.push(b),f=encodeURIComponent(JSON.stringify(f)),e.val(d?C(f):f),J(a,b,c))},DelAllItems:function(a){var b=jQuery(a),c=b.attr("masked");a.innerHTML=b.find('input[type="hidden"]')[0].outerHTML;a=encodeURIComponent(JSON.stringify([]));b.find('input[type="hidden"]').val(c?C(a):a)},CopyAllItems:function(a){var b=
jQuery(a);a=b.find('input[type="hidden"]');b=b.attr("masked");a=a.val();b&&(a=A(a));(a=seraph_accel.Gen.JsonParse(decodeURIComponent(a)))||(a=[]);b="";for(var c=0;c<a.length;c++)b+=a[c]+"\n";navigator.clipboard.writeText(b)},InitItems:K,AreItemsInited:function(a){return a.children&&1<a.children.length},ShowProgress:function(a,b){b?jQuery(a).append(seraph_accel.Ui.Spinner(!0)):K(a,!1)}},TokensMetaTree:{Expand:function(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:void 0;if(c){var e=
JSON.parse(decodeURIComponent(jQuery(a).find('input[type="hidden"]').val()));a.innerHTML+=function r(h,p,m){var x=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,y="";for(u in h){var u=L(u);var v=h[u];v.parent===m&&(y+=seraph_accel.Ui.Tag("div",seraph_accel.Ui.CheckBox(v.name,void 0,p.includes(u),!1,{style:{"margin-bottom":"0!important",display:v.displayHidden?"none":null}},null,{"data-id":u,"data-idParent":m,onchange:"seraph_accel.Ui.TokensMetaTree._OnChangeItem(this)"}),{style:{"padding-left":""+
1.5*x+"em"}}),y+=r(h,p,u,x+1))}return y}(b,e,d)}else N(a),a.innerHTML=jQuery(a).find('input[type="hidden"]')[0].outerHTML},Apply:N,_OnChangeItem:M},ItemsList:{_Init:function(a,b,c,d,e,f,h){a=jQuery(a.parentNode).closest(b).first().find("ul.items-list").first();a.length&&(a[0]._ItemsListCtx={level:h,onItemDel:c,nextItemId:d,contentNewItem:seraph_accel.Gen.StrReplaceAll(e,"scrapt>","script>")},f&&(a.sortable({placeholder:"ui-sortable-placeholder",forcePlaceholderSize:!0}),a.disableSelection(),a.sortable("option",
"cancel",a.sortable("option","cancel")+",.rs")))},AddItem:function(a,b){a=jQuery(b.parentNode).closest(a).first();b=a.find("ul.items-list").first();if(b.length){var c=b[0]._ItemsListCtx;b.append(seraph_accel.Gen.StrReplaceAll(c.contentNewItem,"{{"+c.level+"itemId}}",c.nextItemId));c.nextItemId++;a.find(".items-list-empty-content").first().hide();b.show();a=b.children().last();w(a.get(0));w(a.get(0),"oninitnew");G(a)}},MoveItem:function(a,b,c){if(jQuery(b.parentNode).closest(a).first().find("ul.items-list").first().length){a=
jQuery(b).closest("li.item").first();var d=0<c?a.next():0>c?a.prev():void 0;d&&d.length&&H(a,function(e,f){0<c?e.insertAfter(d):e.insertBefore(d);G(e,f)})}},DelItem:function(a,b){var c=jQuery(b.parentNode).closest(a).first(),d=c.find("ul.items-list").first();d.length&&H(jQuery(b).closest("li.item").first(),function(e,f){(f=d[0]._ItemsListCtx.onItemDel)&&f(c,d,e);e.remove();I(c,d)})},DelAllItems:function(a,b){var c=jQuery(b.parentNode).closest(a).first(),d=c.find("ul.items-list").first();if(d.length){var e=
d.children();e.addClass("smoothop");e.css("opacity",0);setTimeout(function(){e.each(function(){var f=jQuery(this),h=d[0]._ItemsListCtx.onItemDel;h&&h(c,d,f);f.remove()});I(c,d)},200)}}},_cb:{CheckBoxTree_OnChange:function(a){function b(d){var e=d.parent().parent(),f=!0;d.siblings().each(function(){return f=jQuery(this).children("label").find('input[type="checkbox"]').prop("checked")===c});f&&c?(e.children("label").find('input[type="checkbox"]').prop({indeterminate:!1,checked:c}),b(e)):f&&!c?(e.children("label").find('input[type="checkbox"]').prop("checked",
c),e.children("label").find('input[type="checkbox"]').prop("indeterminate",0<e.find('input[type="checkbox"]:checked').length),b(e)):d.parents("li").children("label").find('input[type="checkbox"]').prop({indeterminate:!0,checked:!1})}var c=jQuery(a).prop("checked");a=jQuery(a).parent().parent();a.find('input[type="checkbox"]').prop({indeterminate:!1,checked:c});b(a)},ToggleButton_OnClick:function(a,b){function c(){f.find("[data-onexpand]").each(function(){E(this,jQuery(this).data("onexpand"),h)});
f.toggle();d.find(".dashicons").removeClass(h?"dashicons-arrow-down":"dashicons-arrow-up").addClass(h?"dashicons-arrow-up":"dashicons-arrow-down")}var d=jQuery(b),e=jQuery(b.parentNode),f=(-1!=a.indexOf("#")?jQuery(b.ownerDocument):jQuery(b.parentNode.parentNode)).find(a).first(),h="none"==f.css("display");a=f.data("onexpand");var p;a&&(p=E(f.get(0),a,h));if(p){var m=e.find(".seraph_accel_spinner");d.attr("disabled","");m.show();p.finally(function(){c();m.hide();d.removeAttr("disabled")})}else c()},
TokensList_DelItem:function(a){var b=jQuery(a.parentNode),c=jQuery(b[0].parentNode);a=c.find('input[type="hidden"]');var d=b.attr("data-id");c=c.attr("masked");b.remove();b=a.val();c&&(b=A(b));(b=seraph_accel.Gen.JsonParse(decodeURIComponent(b)))&&b.length&&(d=b.indexOf("string"==typeof b[0]?""+d:d),-1!=d&&(b.splice(d,1),b=encodeURIComponent(JSON.stringify(b)),a.val(c?C(b):b)))},NavTabs_OnClickItem:function(a){var b=jQuery(a.parentNode);a=jQuery(a);b.find(".nav-tab").each(function(){jQuery(this).attr("value")==
a.attr("value")?this.classList.add("nav-tab-active"):this.classList.remove("nav-tab-active")});b.change()}}}})();
