HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/dfwparty/mattymcfun.com/wp-content/plugins/ws-form-pro/public/js/ws-form-public-styler.min.js
!function(t){"use strict";t.WS_Form.prototype.styler=function(){if(!t.WS_Form.styler_rendered){var e=parseInt(this.get_object_meta_value(this.form,this.conversational?"style_id_conv":"style_id",0),10);if(e>0)parseInt(this.get_query_var(this.conversational?"wsf_preview_conversational_form_id":"wsf_preview_form_id"),10)==this.form.id&&this.styler_init(e),void 0===this.form_obj.attr("data-wsf-style-id")&&this.form_obj.attr("data-wsf-style-id",e)}},t.WS_Form.prototype.styler_init=function(e){var s=this;if(!ws_form_settings.styler_visible_public)return!1;this.styler_style_id=e,this.styler_style={},this.styler_rule=!1,this.styler_undos=[],this.styler_style_element=!1,this.styler_panel_pos=ws_form_settings.rtl?"right":"left",this.styler_panel_pin=!0,this.styler_panel_drag=!1,this.styler_panel_offset_x=0,this.styler_panel_offset_y=0,this.styler_panel_x=0,this.styler_panel_y=0,this.styler_panel_lock_threshold=2,this.styler_changes_made=!1,this.styler_coloris_swatches=[],this.styler_obj_value_last=!1,t.WS_Form.styler_rendered||(this.styler_set_pin_offset(),this.styler_set_coloris_swatches(),this.styler_get_rule(),this.styler_add(),this.styler_panel_position(),this.styler_panel_dragging(),this.styler_loader_show(),this.styler_style_element,this.styler_api_call("style/"+s.styler_style_id+"/","GET",!1,function(e){var l=t("#wsf-styler");s.styler_style=e,s.styler_label_update(),t(".wsf-styler-style-id",l).html(s.language("styler_id")+": "+s.esc_html(s.styler_style.id));var r=s.styler_ui_html();r+=s.styler_datalists(),t(".wsf-styler-panel-main",l).append(r);r=s.styler_settings_html();t(".wsf-styler-panel-setting",l).append(r),s.styler_events(),s.styler_search(),s.styler_loader_hide()}),t.WS_Form.styler_rendered=!0)},t.WS_Form.prototype.styler_set_coloris_swatches=function(){var t=window.wsf_form_json_config.styler.palette;if(t){var e=/var\((--[\w-]+)\)/;for(var s in t)if(t.hasOwnProperty(s)){var l=t[s];if(l.color){var r=l.color.match(e);if(r){var a=r[1],i=getComputedStyle(document.documentElement);i&&this.styler_coloris_swatches.push(i.getPropertyValue(a).trim())}else this.styler_coloris_swatches.push(l.color)}}}},t.WS_Form.prototype.styler_set_pin_offset=function(){var e=(parseInt(t("html").css("padding-left"),10)||0)+(parseInt(t("html").css("padding-right"),10)||0)+(parseInt(t("body").css("padding-left"),10)||0)+(parseInt(t("body").css("padding-right"),10)||0);t("body").css("--wsf-styler-body-padding",e+"px")},t.WS_Form.prototype.styler_panel_dragging=function(){var e=this,s=t("#wsf-styler"),l=t(".wsf-styler-panel-wrapper",s),r=t(".wsf-styler-panel header",s);r.on("mousedown",function(t){e.styler_panel_offset_x=t.clientX-l[0].offsetLeft,e.styler_panel_offset_y=t.clientY-l[0].offsetTop,r.css("cursor","grabbing"),e.styler_pos="float",e.styler_pin=!1,e.styler_panel_position(),e.styler_panel_drag=!0}),t(document).on("mousemove",function(s){if(e.styler_panel_drag){e.styler_panel_x=s.clientX-e.styler_panel_offset_x,e.styler_panel_y=s.clientY-e.styler_panel_offset_y;var r=e.styler_panel_lock_threshold,a=t(window).width()-l.outerWidth()-e.styler_panel_lock_threshold,i=e.styler_panel_pos;e.styler_panel_x<r?e.styler_panel_pos="left":e.styler_panel_x>a?e.styler_panel_pos="right":e.styler_panel_pos="float","float"==e.styler_panel_pos?(l.css("left",e.styler_panel_x+"px"),l.css("top",e.styler_panel_y+"px")):(l.css("left",""),l.css("top","")),i!=e.styler_panel_pos&&e.styler_panel_position()}}),t(document).on("mouseup",function(t){e.styler_panel_drag&&(r.css("cursor","grab"),e.styler_panel_drag=!1)})},t.WS_Form.prototype.styler_panel_position=function(){var e=t("#wsf-styler"),s=t(".wsf-styler-panel-wrapper",e);switch(this.styler_panel_pos){case"left":s.addClass("wsf-styler-panel-left").removeClass("wsf-styler-panel-right");break;case"right":s.addClass("wsf-styler-panel-right").removeClass("wsf-styler-panel-left");break;default:s.removeClass("wsf-styler-panel-right").removeClass("wsf-styler-panel-left")}if(this.styler_panel_pin)switch(this.styler_panel_pos){case"left":t("body").addClass("wsf-styler-panel-left-pin").removeClass("wsf-styler-panel-right-pin");break;case"right":t("body").addClass("wsf-styler-panel-right-pin").removeClass("wsf-styler-panel-left-pin");break;default:t("body").removeClass("wsf-styler-panel-left-pin").removeClass("wsf-styler-panel-right-pin")}},t.WS_Form.prototype.styler_add=function(){ws_form_settings.rtl&&t("body").addClass("wsf-styler-rtl");var e='<div id="wsf-styler" data-wsf-style-id="'+this.styler_style_id+'">';e+=this.styler_panel_html(),e+="</div>",t("body").append(e)},t.WS_Form.prototype.styler_panel_html=function(){var t='<div class="wsf-styler-panel-wrapper">';return t+=this.styler_loader_html(),t+='<div class="wsf-styler-panel">',t+=this.styler_header_html(),t+='<div class="wsf-styler-panel-setting"></div>',t+='<div class="wsf-styler-panel-main">',t+=this.styler_label_html(),t+=this.styler_search_html(),t+=this.styler_scheme_html(),t+="</div>",t+="</div>",t+="</div>"},t.WS_Form.prototype.styler_loader_html=function(){return'<div class="wsf-styler-loader"></div>'},t.WS_Form.prototype.styler_loader_show=function(){t("#wsf-styler .wsf-styler-loader").addClass("wsf-styler-loader-on")},t.WS_Form.prototype.styler_loader_hide=function(){t("#wsf-styler .wsf-styler-loader").removeClass("wsf-styler-loader-on")},t.WS_Form.prototype.styler_header_html=function(){var t="<header>";return t+='<svg class="wsf-styler-logo" x="0" y="0" viewBox="0 0 1500 428"><path fill="#002D5D" d="m215.2 422.9-44.3-198.4c-.4-1.4-.7-3-1-4.6-.3-1.6-3.4-18.9-9.3-51.8h-.6l-4.1 22.9-6.8 33.5-45.8 198.4H69.7L0 130.1h28.1L68 300.7l18.6 89.1h1.8c3.5-25.7 9.3-55.6 17.1-89.6l39.9-170H175l40.2 170.6c3.1 12.8 8.8 42.5 16.8 89.1h1.8c.6-5.9 3.5-20.9 8.7-44.8 5.2-23.9 21.9-95.5 50.1-214.8h27.8l-72.1 292.8h-33.1zM495 349.5c0 24.7-7.1 44-21.3 57.9-14.2 13.9-34.7 20.9-61.5 20.9-14.6 0-27.4-1.7-38.4-5.1-11-3.4-19.6-7.2-25.7-11.3l12.3-21.3c8.3 5.1 5.9 3.6 16.6 7.4 12 4.2 24.3 6.1 36.9 6.1 16.5 0 29.6-4.9 39-14.8 9.5-9.9 14.2-23.1 14.2-39.7 0-13-3.4-23.9-10.2-32.8-6.8-8.9-19.8-19-38.9-30.4-21.9-12.6-36.8-22.7-44.8-30.2-8-7.6-14.2-16-18.6-25.4-4.4-9.4-6.6-20.5-6.6-33.5 0-21.1 7.8-38.5 23.3-52.2 15.6-13.8 35.4-20.6 59.4-20.6 25.8 0 45.2 6.7 62.6 17.8L481 163.6c-16.2-9.9-33.3-14.8-51.4-14.8-16.6 0-29.8 4.5-39.6 13.4-9.9 8.9-14.8 20.6-14.8 35.2 0 13 3.3 23.8 10 32.5s20.9 19.3 42.6 31.7c21.3 12.8 35.9 23 43.7 30.6 7.9 7.6 13.7 16.1 17.6 25.4 4 9.2 5.9 19.9 5.9 31.9z"/><path fill="#ACA199" d="M643.8 152.8h-50.2V423h-27.8V152.8H525l.2-22.3h40.3l.3-25.5c0-37.2 3.6-60.9 13.4-77.2C589.5 10.7 606.6 0 630.5 0h28.9v23.6c-6.4 0-18.9.2-27.3.4-13.9.2-20.1 4.5-25.1 9.7-4.9 5.2-7.5 11.5-9.9 23.2-2.4 11.7-3.5 27.9-3.5 48.6v24.6h50.2v22.7zM857.1 275.8c0 49.3-8.5 87-25.6 113.2-17 26.2-41.4 39.3-73.1 39.3-31.3 0-55.3-13.1-72-39.3-16.7-26.2-25-63.9-25-113.2 0-100.9 32.7-151.4 98.1-151.4 30.7 0 54.7 13.2 71.8 39.7 17.2 26.4 25.8 63.7 25.8 111.7zm-166.4 0c0 42.3 5.5 74.2 16.6 95.8 11 21.6 28.3 32.4 51.7 32.4 45.9 0 68.9-42.7 68.9-128.2 0-84.7-23-127.1-68.9-127.1-24 0-41.4 10.6-52.2 31.8-10.7 21.3-16.1 53.1-16.1 95.3zM901.8 196.5c0-35.5 42.9-71.7 88.5-72 30.9-.3 42 8.6 53.2 13.7l-13.9 21.6c-9.7-5.1-18.8-9.2-39.9-9.9-13.3-.4-24.1 1.4-35.9 9.3-9.7 6.4-20.4 12.9-23.6 40.8-2.2 19-.8 45.9-.8 67.8V423h-28.1M1047.6 191.4c5.6-48.2 49.8-67.2 80.6-67.2 17.7 0 39.6 6.4 50.2 14.5 9.5 7.2 14.7 13.4 20.3 32.2 7.7-18 13.9-23.4 25.1-31.3 11.2-7.9 25.8-14.9 43.7-14.9 24.2 0 48.4 7.5 62.9 28.5 11.6 16.7 16.8 41 16.8 78.4V423h-27.8V223.5c.7-56.9-14.3-75.2-52-75.2-18.7 0-32.2 4.7-42.2 21.9-9.8 17-14.3 47.9-14.3 81.3v171.4h-27.8V223.5c0-24.8-3.8-43.3-11.5-55.5s-26.7-18.6-42.8-18.6c-21.3 0-35.6 10.4-45.3 28-9.7 17.6-8.6 45.1-8.6 84.6v160.9h-28.1"/><circle fill="#ACA199" cx="1412.6" cy="149.4" r="25.3"/><circle fill="#ACA199" cx="1412.6" cy="273" r="25.3"/><circle fill="#ACA199" cx="1412.6" cy="395" r="25.3"/><path fill="#ACA199" d="M1449.5 85.4c0-2.2.3-4.3.9-6.4.6-2 1.4-3.9 2.4-5.7 1-1.8 2.3-3.4 3.7-4.8 1.5-1.4 3.1-2.7 4.8-3.7 1.8-1 3.7-1.9 5.7-2.4 2-.6 4.1-.9 6.3-.9s4.3.3 6.4.9c2 .6 3.9 1.4 5.7 2.4 1.8 1 3.4 2.3 4.8 3.7 1.5 1.5 2.7 3.1 3.7 4.8 1 1.8 1.8 3.7 2.4 5.7.6 2 .8 4.2.8 6.4s-.3 4.3-.8 6.3c-.6 2-1.4 3.9-2.4 5.7-1 1.8-2.3 3.4-3.7 4.8-1.5 1.5-3.1 2.7-4.8 3.7-1.8 1-3.7 1.9-5.7 2.4-2 .6-4.2.9-6.4.9s-4.3-.3-6.3-.9c-2-.6-3.9-1.4-5.7-2.4-1.8-1-3.4-2.3-4.8-3.7-1.5-1.4-2.7-3.1-3.7-4.8-1-1.8-1.8-3.7-2.4-5.7s-.9-4.1-.9-6.3zm3.2 0c0 1.9.2 3.8.7 5.6.5 1.8 1.2 3.5 2.1 5 .9 1.6 2 3 3.2 4.2 1.2 1.3 2.6 2.3 4.2 3.3 1.5.9 3.2 1.6 4.9 2.1 1.8.5 3.6.7 5.5.7 2.9 0 5.6-.5 8.1-1.6s4.7-2.6 6.6-4.5c1.9-1.9 3.3-4.1 4.4-6.6 1.1-2.5 1.6-5.3 1.6-8.2 0-1.9-.2-3.8-.7-5.6-.5-1.8-1.2-3.5-2.1-5.1-.9-1.6-2-3-3.2-4.3-1.3-1.3-2.6-2.4-4.2-3.3-1.5-.9-3.2-1.6-5-2.1-1.8-.5-3.6-.8-5.5-.8-2.9 0-5.6.6-8.1 1.7s-4.7 2.6-6.5 4.5c-1.9 1.9-3.3 4.1-4.4 6.7-1 2.6-1.6 5.3-1.6 8.3zm17.3 2.5v7.9h-3.5V75.9h6.4c2.6 0 4.4.5 5.7 1.4 1.2.9 1.8 2.3 1.8 4.1 0 1.4-.4 2.6-1.2 3.6-.8 1-2 1.7-3.6 2 .3.1.5.3.7.6.2.2.4.5.5.8l5.1 7.4h-3.3c-.5 0-.9-.2-1.1-.6l-4.5-6.7c-.1-.2-.3-.3-.5-.4-.2-.1-.5-.2-.9-.2h-1.6zm0-2.6h2.6c.8 0 1.5-.1 2.1-.2.6-.2 1-.4 1.4-.7.3-.3.6-.7.8-1.1.2-.4.2-.9.2-1.5 0-.5-.1-1-.2-1.4-.1-.4-.4-.8-.7-1-.3-.3-.7-.5-1.3-.6-.5-.1-1.2-.2-1.9-.2h-2.9v6.7z"/></svg>',t+="<ul>",t+='<li data-wsf-styler-action="undo" title="'+this.language("styler_undo")+'"><svg height="16" width="16" viewBox="0 0 16 16"><path fill="#444" d="M8 0c-3 0-5.6 1.6-6.9 4.1l-1.1-1.1v4h4l-1.5-1.5c1-2 3.1-3.5 5.5-3.5 3.3 0 6 2.7 6 6s-2.7 6-6 6c-1.8 0-3.4-0.8-4.5-2.1l-1.5 1.3c1.4 1.7 3.6 2.8 6 2.8 4.4 0 8-3.6 8-8s-3.6-8-8-8z"></path></svg></li>',t+='<li data-wsf-styler-action="settings" title="'+this.language("styler_settings")+'"><svg height="16" width="16" viewBox="0 0 16 16"><<path d="M16 9v-2l-1.7-0.6c-0.2-0.6-0.4-1.2-0.7-1.8l0.8-1.6-1.4-1.4-1.6 0.8c-0.5-0.3-1.1-0.6-1.8-0.7l-0.6-1.7h-2l-0.6 1.7c-0.6 0.2-1.2 0.4-1.7 0.7l-1.6-0.8-1.5 1.5 0.8 1.6c-0.3 0.5-0.5 1.1-0.7 1.7l-1.7 0.6v2l1.7 0.6c0.2 0.6 0.4 1.2 0.7 1.8l-0.8 1.6 1.4 1.4 1.6-0.8c0.5 0.3 1.1 0.6 1.8 0.7l0.6 1.7h2l0.6-1.7c0.6-0.2 1.2-0.4 1.8-0.7l1.6 0.8 1.4-1.4-0.8-1.6c0.3-0.5 0.6-1.1 0.7-1.8l1.7-0.6zM8 12c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"/><path d="M10.6 7.9c0 1.381-1.119 2.5-2.5 2.5s-2.5-1.119-2.5-2.5c0-1.381 1.119-2.5 2.5-2.5s2.5 1.119 2.5 2.5z"/></svg></li>',t+='<li data-wsf-styler-action="save" title="'+this.language("styler_save")+'"><svg height="16" width="16" viewBox="0 0 16 16"><path d="M15.791849,4.41655721 C15.6529844,4.08336982 15.4862083,3.8193958 15.2916665,3.625 L12.3749634,0.708260362 C12.1806771,0.513974022 11.916703,0.347234384 11.5833697,0.208260362 C11.2502188,0.0694322825 10.9445781,0 10.666849,0 L1.00003637,0 C0.722343724,0 0.486171803,0.0971614127 0.291703035,0.291630181 C0.0972342664,0.485989492 0.000109339408,0.722124927 0.000109339408,0.999963514 L0.000109339408,15.0002189 C0.000109339408,15.2781305 0.0972342664,15.5142659 0.291703035,15.7086617 C0.486171803,15.902948 0.722343724,16.0002189 1.00003637,16.0002189 L15.0002553,16.0002189 C15.2782033,16.0002189 15.5143023,15.902948 15.7086981,15.7086617 C15.9029844,15.5142659 16.0001093,15.2781305 16.0001093,15.0002189 L16.0001093,5.3334063 C16.0001093,5.05553123 15.9307135,4.75 15.791849,4.41655721 Z M6.66684898,1.66655721 C6.66684898,1.57629159 6.69986853,1.49832166 6.76587116,1.43220957 C6.83180082,1.36638938 6.90995318,1.3334063 7.0002188,1.3334063 L9.00032825,1.3334063 C9.09037496,1.3334063 9.16849083,1.3663164 9.23445698,1.43220957 C9.30060554,1.49832166 9.33358862,1.57629159 9.33358862,1.66655721 L9.33358862,4.99996351 C9.33358862,5.09037507 9.30038663,5.16845447 9.23445698,5.23445709 C9.16849083,5.30024081 9.09037496,5.33326036 9.00032825,5.33326036 L7.0002188,5.33326036 C6.90995318,5.33326036 6.83176433,5.30035026 6.76587116,5.23445709 C6.69986853,5.16834501 6.66684898,5.09037507 6.66684898,4.99996351 L6.66684898,1.66655721 Z M12.0003647,14.6669221 L4.00003637,14.6669221 L4.00003637,10.6667761 L12.0003647,10.6667761 L12.0003647,14.6669221 Z M14.6672503,14.6669221 L13.3336251,14.6669221 L13.3333697,14.6669221 L13.3333697,10.3334063 C13.3333697,10.0554947 13.2362083,9.81950525 13.0418125,9.62496351 C12.8474167,9.43056772 12.6112813,9.33329685 12.3336251,9.33329685 L3.66673952,9.33329685 C3.38893742,9.33329685 3.1527655,9.43056772 2.95829673,9.62496351 C2.76393742,9.81935931 2.66670303,10.0554947 2.66670303,10.3334063 L2.66670303,14.6669221 L1.33333322,14.6669221 L1.33333322,1.33326036 L2.66666655,1.33326036 L2.66666655,5.66670315 C2.66666655,5.94454174 2.76379148,6.18056772 2.95826024,6.37503649 C3.15272901,6.5693958 3.38890093,6.66666667 3.66670303,6.66666667 L9.66699492,6.66666667 C9.94465108,6.66666667 10.1810419,6.5693958 10.3751823,6.37503649 C10.5694687,6.18067717 10.666849,5.94454174 10.666849,5.66670315 L10.666849,1.33326036 C10.7709792,1.33326036 10.9063046,1.36792177 11.0731537,1.43735406 C11.2399663,1.50674985 11.3579611,1.57618214 11.4273933,1.64561442 L14.3547138,4.57286194 C14.4241096,4.64229422 14.4935784,4.76222271 14.5629742,4.93228255 C14.6326254,5.10248832 14.6672138,5.23620841 14.6672138,5.3334063 L14.6672138,14.6669221 L14.6672503,14.6669221 Z" fill="#444"></path></svg></li>',t+='<li title="'+this.language("styler_support")+'"><a href="https://wsform.com/knowledgebase/styler/?utm_source=ws_form_pro&utm_medium=styler" target="_blank" class="wsf-styler-logo" title="'+this.language("styler_logo")+'"><svg height="16" width="16" viewBox="0 0 16 16"><path d="M9 11h-3c0-3 1.6-4 2.7-4.6 0.4-0.2 0.7-0.4 0.9-0.6 0.5-0.5 0.3-1.2 0.2-1.4-0.3-0.7-1-1.4-2.3-1.4-2.1 0-2.5 1.9-2.5 2.3l-3-0.4c0.2-1.7 1.7-4.9 5.5-4.9 2.3 0 4.3 1.3 5.1 3.2 0.7 1.7 0.4 3.5-0.8 4.7-0.5 0.5-1.1 0.8-1.6 1.1-0.9 0.5-1.2 1-1.2 2z"></path><path d="M9.5 14c0 1.105-0.895 2-2 2s-2-0.895-2-2c0-1.105 0.895-2 2-2s2 0.895 2 2z"></path></svg></a></li>',t+="</ul>",t+="</header>"},t.WS_Form.prototype.styler_settings_html=function(){var t='<fieldset class="wsf-styler-settings">',e=window.wsf_form_json_config.styler.meta.setting;for(var s in t+='<div class="wsf-styler-settings-legend"><legend>'+this.esc_html(e.label)+'</legend><div class="wsf-styler-style-id">'+this.language("styler_id")+": "+this.styler_style_id+"</div></div>",t+='<div class="wsf-styler-setting-wrapper">',t+='<label for="wsf-styler-setting-label">'+this.language("styler_label")+"</label>",t+='<input id="wsf-styler-setting-label" type="text" placeholder="'+this.language("styler_label_placeholder")+'" value="'+this.esc_attr(this.styler_style.label)+'" />',t+="</div>",e.meta)if(e.meta.hasOwnProperty(s)){var l=e.meta[s],r=this.get_object_meta_value(this.styler_style,s,"");t+='<div class="wsf-styler-setting-wrapper">';var a="wsf-styler-setting-meta-"+s;switch(l.type){case"checkbox":t+='<input class="wsf-styler-setting-meta" type="checkbox" id="'+this.esc_attr(a)+'" name="'+this.esc_attr(s)+'" data-wsf-styler-setting-type="'+l.type+'"'+("on"==r?" checked":"")+" />",t+='<label for="'+this.esc_attr(a)+'">'+this.esc_html(l.label)+"</label>";break;default:t+='<label for="'+this.esc_attr(a)+'">'+this.esc_html(l.label)+"</label>",t+='<input class="wsf-styler-setting-meta" type="text" id="'+this.esc_attr(a)+'" name="'+this.esc_attr(s)+'" data-wsf-styler-setting-type="'+l.type+'" value="'+this.esc_attr(r)+'" />'}t+="</div>"}return t+='<button class="wsf-styler-settings-close" data-wsf-styler-action="settings-close">'+this.language("styler_close")+"</button<",t+="</fieldset>"},t.WS_Form.prototype.styler_label_html=function(){var t='<div class="wsf-styler-label">';return t+="<legend>"+this.language("styler_loading")+"</legend>",t+='<div class="wsf-styler-style-id">'+this.language("styler_id")+": "+this.styler_style_id+"</div>",t+="</div>"},t.WS_Form.prototype.styler_search_html=function(){var t='<div class="wsf-styler-search">';return t+='<input type="search" id="styler_search_input" placeholder="'+this.language("styler_search_placeholder")+'" />',t+="</div>"},t.WS_Form.prototype.styler_scheme_html=function(){var t='<fieldset class="wsf-styler-scheme">';return t+="<legend>"+this.language("styler_scheme")+"</legend>",t+='<input type="radio" name="wsf-styler-scheme" id="wsf-styler-scheme-base" value="base" checked><label for="wsf-styler-scheme-base">'+this.language("styler_scheme_base")+"</label>",t+='<input type="radio" name="wsf-styler-scheme" id="wsf-styler-scheme-alt" value="alt"><label for="wsf-styler-scheme-alt">'+this.language("styler_scheme_alt")+"</label>",t+='<input type="radio" name="wsf-styler-scheme" id="wsf-styler-scheme-both" value="both"><label for="wsf-styler-scheme-both">'+this.language("styler_scheme_both")+"</label>",t+="</fieldset>"},t.WS_Form.prototype.styler_ui_html=function(){var t='<div class="wsf-styler-ui">';return t+=this.styler_children_html(window.wsf_form_json_config.styler.meta),t+="</div>"},t.WS_Form.prototype.styler_children_html=function(t,e,s){e||(e=0);var l="";for(var r in t)if("setting"!=r&&t.hasOwnProperty(r)){var a=t[r],i="";void 0!==a.group_focus_selector&&(s=a.group_focus_selector),a.children&&(i+=this.styler_children_html(a.children,e+1,s)),a.meta&&(i+=this.styler_child_meta_html(a.meta,s)),i&&(l+='<div class="wsf-styler-child">',l+='<div class="wsf-styler-child-label"><p>'+this.esc_html(a.label)+"<i></i></p></div>",l+='<div class="wsf-styler-child-content">'+i+"</div>",l+="</div>")}return l?'<div class="wsf-styler-children wsf-styler-children-'+e+'">'+l+"</div>":""},t.WS_Form.prototype.styler_child_meta_html=function(t,e){var s="";for(var l in t)if(t.hasOwnProperty(l)){var r=t[l];if("calc"!=r.type&&(r.meta_key=l,r.label&&r.default)){var a="color"==r.type;s+='<div class="wsf-styler-var-wrapper" data-wsf-styler-var="'+this.esc_attr(r.var)+'">',s+='<div class="wsf-styler-var-columns'+(a?" wsf-styler-var-columns-has-alt":"")+'">',s+=this.styler_var_column_html(r,!1,e),a&&(s+=this.styler_var_column_html(r,!0,e)),s+="</div>",s+="</div>"}}return s?'<div class="wsf-styler-meta">'+s+"</div>":""},t.WS_Form.prototype.styler_var_column_html=function(t,e,s){var l=t.meta_key+(e?"_alt":""),r="wsf-styler-meta-key-"+this.replace_all(l,"_","-"),a=t.var+(e?"-alt":""),i=this.get_object_meta_value(this.styler_style,l,t.default),o=t.type,n=t.datalist?' list="'+this.esc_attr(t.datalist)+'"':"",_='<div class="wsf-styler-var-column'+(e?" wsf-styler-var-column-alt":"")+'" data-wsf-styler-type="'+o+'" data-wsf-styler-var="'+this.esc_attr(a)+'">';switch(_+='<div class="wsf-styler-var-top">',_+=e?'<div class="wsf-styler-var-label"><label for="'+this.esc_attr(r)+'" class="wsf-styler-var-label-both">'+this.language("styler_alt")+'</label><label class="wsf-styler-var-label-alt">'+this.esc_html(t.label)+"</label></div>":'<div class="wsf-styler-var-label"><label for="'+this.esc_attr(r)+'">'+this.esc_html(t.label)+"</label></div>",e&&(_+='<div class="wsf-styler-var-top-icon" data-wsf-styler-var-action="alt" title="'+this.language("styler_alt_title")+'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M12.52.55l-5,5h0L.55,12.51l3,3,12-12Zm-4,6,4-4,1,1-4,4.05ZM2.77,3.18A3.85,3.85,0,0,1,5.32,5.73h0A3.85,3.85,0,0,1,7.87,3.18h0A3.82,3.82,0,0,1,5.32.64h0A3.82,3.82,0,0,1,2.77,3.18ZM8.5,2.55h0A2,2,0,0,1,9.78,1.27h0A1.92,1.92,0,0,1,8.5,0h0A1.88,1.88,0,0,1,7.23,1.27h0A1.92,1.92,0,0,1,8.5,2.55Zm-6.36,0h0A1.92,1.92,0,0,1,3.41,1.27h0A1.88,1.88,0,0,1,2.14,0h0A1.92,1.92,0,0,1,.86,1.27h0A2,2,0,0,1,2.14,2.55ZM14.73,6.22h0a1.94,1.94,0,0,1-1.28,1.27h0a1.94,1.94,0,0,1,1.28,1.27h0A1.9,1.9,0,0,1,16,7.49h0A1.9,1.9,0,0,1,14.73,6.22Z"/></div>'),_+='<div class="wsf-styler-var-top-icon" data-wsf-styler-var-copy="'+this.esc_attr(a)+'" title="'+this.language("styler_copy")+" "+this.esc_attr(a)+'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="wsf-styler-svg-copy-unchecked" d="M14.5 0h-10A1.5 1.5 0 003 1.5V3H1.5A1.5 1.5 0 000 4.5v10A1.5 1.5 0 001.5 16h10a1.5 1.5 0 001.5-1.5V13h1.5a1.5 1.5 0 001.5-1.5v-10A1.5 1.5 0 0014.5 0zm-3.188 14.5H1.688a.187.187 0 01-.188-.188V4.688c0-.104.084-.188.188-.188H3v7A1.5 1.5 0 004.5 13h7v1.313a.187.187 0 01-.188.187zm3-3H4.688a.187.187 0 01-.188-.188V1.688c0-.104.084-.188.188-.188h9.625c.103 0 .187.084.187.188v9.624a.187.187 0 01-.188.188z" transform="matrix(1 0 0 -1 0 16)"/><path class="wsf-styler-svg-copy-checked" d="M7.3 14.2l-7.1-5.2 1.7-2.4 4.8 3.5 6.6-8.5 2.3 1.8z"/></svg></div>',_+='<div class="wsf-styler-var-top-icon" data-wsf-styler-var-action="undo" title="'+this.language("styler_undo")+'" data-wsf-styler-var-undo="'+this.esc_attr(i)+'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#444" d="M8 0c-3 0-5.6 1.6-6.9 4.1l-1.1-1.1v4h4l-1.5-1.5c1-2 3.1-3.5 5.5-3.5 3.3 0 6 2.7 6 6s-2.7 6-6 6c-1.8 0-3.4-0.8-4.5-2.1l-1.5 1.3c1.4 1.7 3.6 2.8 6 2.8 4.4 0 8-3.6 8-8s-3.6-8-8-8z"></path></svg></div>',this.styler_undos.push({meta_key:l,meta_value:i}),_+="</div>",_+='<div class="wsf-styler-var-bottom">',o){case"color":_+='<input type="text" id="'+this.esc_attr(r)+'-coloris" class="wsf-styler-var-input-hidden" value="'+this.esc_attr(i)+'" data-coloris'+(e?" data-coloris-alt":"")+">",_+='<input type="text" id="'+this.esc_attr(r)+'" class="wsf-styler-var-input wsf-styler-var-input-color" value="'+this.esc_attr(i)+'" data-wsf-styler-var="'+this.esc_attr(a)+'" data-wsf-styler-meta-key="'+this.esc_attr(l)+'"'+(s?' data-wsf-styler-group-focus-selector="'+this.esc_attr(s)+'"':"")+">",_+='<div class="wsf-styler-var-color-preview" style="color:var('+a+')"><button aria-label="'+this.language("styler_pick_color")+'">"'+this.language("styler_pick_color")+'"</button></div>';break;case"size":_+='<input type="text" id="'+this.esc_attr(r)+'-input" class="wsf-styler-var-input-hidden" value="'+this.esc_attr(i)+'" data-wsf-styler-var="'+this.esc_attr(a)+'" data-wsf-styler-meta-key="'+this.esc_attr(l)+'">',_+='<div class="wsf-styler-var-size-wrapper">',_+='<input type="text" id="'+this.esc_attr(r)+'" class="wsf-styler-var-input wsf-styler-var-size-value"'+(s?' data-wsf-styler-group-focus-selector="'+this.esc_attr(s)+'"':"")+">",_+='<select id="'+this.esc_attr(r)+'-select" class="wsf-styler-var-size-unit">',_+='<option value="">-</option>';var c=this.styler_units();for(var y in c)if(c.hasOwnProperty(y)){var h=c[y];_+='<option value="'+h+'">'+h+"</option>"}_+="</select>",_+="</div>";var f=[];void 0!==t.px_min&&f.push('data-wsf-styler-px-min="'+t.px_min+'"'),void 0!==t.px_max&&f.push('data-wsf-styler-px-max="'+t.px_max+'"'),void 0!==t.px_step&&f.push('data-wsf-styler-px-step="'+t.px_step+'"'),_+='<input type="range" id="'+this.esc_attr(r)+'-range" class="wsf-styler-var-size-range"'+(f?" "+f.join(" "):"")+">";break;case"checkbox":_+='<input type="text" id="'+this.esc_attr(r)+'-input" class="wsf-styler-var-input-hidden" value="'+this.esc_attr(i)+'" data-wsf-styler-var="'+this.esc_attr(a)+'" data-wsf-styler-meta-key="'+this.esc_attr(l)+'">',_+='<input type="checkbox" id="'+this.esc_attr(r)+'" class="wsf-styler-var-input wsf-styler-var-input-checkbox" data-checkbox'+(s?' data-wsf-styler-group-focus-selector="'+this.esc_attr(s)+'"':"")+">";break;case"select":if(_+='<select id="'+this.esc_attr(r)+'" class="wsf-styler-var-input wsf-styler-var-input-select" data-select'+(s?' data-wsf-styler-group-focus-selector="'+this.esc_attr(s)+'"':"")+' data-wsf-styler-var="'+this.esc_attr(a)+'" data-wsf-styler-meta-key="'+this.esc_attr(l)+'">',t.options)for(var d in t.options)if(t.options.hasOwnProperty(d)){var u=t.options[d],p=i==u.value;_+='<option value="'+this.esc_attr(u.value)+'"'+(p?" selected":"")+">"+this.esc_html(u.text)+"</option>"}_+="</select>";break;default:_+='<input type="text" id="'+this.esc_attr(r)+'" class="wsf-styler-var-input" value="'+this.esc_attr(i)+'" data-wsf-styler-var="'+this.esc_attr(a)+'" data-wsf-styler-meta-key="'+this.esc_attr(l)+'"'+(s?' data-wsf-styler-group-focus-selector="'+this.esc_attr(s)+'"':"")+n+">"}return _+="</div>",_+="</div>"},t.WS_Form.prototype.styler_units=function(){return["em","px","rem","%"]},t.WS_Form.prototype.styler_events=function(){var e=this,s=t("#wsf-styler"),l=this.styler_units();t("input,select:not(.wsf-styler-var-size-unit)",s).on("focus",function(){!1!==e.styler_obj_value_last&&e.styler_obj_value_last[0]!=t(this)[0]&&(e.styler_obj_value_last=!1)}),t('[name="wsf-styler-scheme"]',s).on("change",function(){e.styler_scheme_process(!0)}),this.styler_scheme_visible(!1),t('[id="wsf-styler-setting-meta-alt"]',s).on("change",function(){e.styler_scheme_visible(!0)}),t('[data-wsf-styler-action="undo"]',s).on("click",function(){confirm(e.language("styler_undo_confirm"))&&e.styler_undo()}),t("[data-wsf-styler-group-focus-selector]",s).on("focus",function(){e.styler_group_focus_selector(t(this))}),t('[data-wsf-styler-action="settings"]',s).on("click",function(){var e=t(".wsf-styler-panel-setting",s),l=t(".wsf-styler-panel-main",s);t(this).hasClass("wsf-styler-editing")?(t(this).removeClass("wsf-styler-editing"),e.hide(),l.show()):(t(this).addClass("wsf-styler-editing"),e.show(),l.hide())}),t('[data-wsf-styler-action="settings-close"]',s).on("click",function(){t('[data-wsf-styler-action="settings"]',s).removeClass("wsf-styler-editing"),t(".wsf-styler-panel-setting",s).hide(),t(".wsf-styler-panel-main",s).show()}),t('[data-wsf-styler-action="save"]',s).on("click",function(){e.styler_loader_show();var t={style:e.styler_style};e.styler_api_call("style/"+e.styler_style_id+"/put/","POST",t,function(){e.styler_loader_hide(),e.styler_change_made_reset()},function(){e.styler_loader_hide(),e.styler_change_made_reset()})}),t("input#wsf-styler-setting-label",s).on("change input",function(){e.styler_style.label=t(this).val(),e.styler_label_update(),e.styler_change_made()}),t("input.wsf-styler-setting-meta",s).on("change input",function(){var s=t(this).attr("name");switch(t(this).attr("data-wsf-styler-setting-type")){case"checkbox":var l=t(this).is(":checked")?"on":"";break;default:l=t(this).val()}e.styler_style.meta[s]=l,e.styler_change_made()}),t(".wsf-styler-child-label",s).on("click",function(e){e.preventDefault(),e.stopPropagation();var s=t(this).closest(".wsf-styler-child");s.hasClass("wsf-styler-child-active")?(s.removeClass("wsf-styler-child-active"),t(".wsf-styler-child.wsf-styler-child-active",s).removeClass("wsf-styler-child-active")):s.addClass("wsf-styler-child-active")});var r={alpha:!0,format:"mixed",formatToggle:!0,swatches:!1,theme:"default",themeMode:"auto",rtl:!!ws_form_settings.rtl,wrap:!1};t(".wsf-styler-var-column",s).each(function(){switch(e.styler_event_copy(t(this)),e.styler_event_undo(t(this)),e.styler_get_type(t(this))){case"color":t("input[data-coloris]",t(this)).each(function(){Coloris.setInstance("#"+t(this).attr("id"),r),t(this).on("change input",function(){var s=t(this).val();e.styler_get_input(t(this)).val(s).trigger("change")})}),t(".wsf-styler-var-color-preview",t(this)).on("click",function(){var s=e.styler_get_input_hidden(t(this)),l=e.styler_get_input(t(this));e.styler_coloris_set(l),e.styler_group_focus_selector(l),r.swatches=e.styler_args_coloris_swatches(s),Coloris.setInstance("#"+s.attr("id"),r),s[0].dispatchEvent(new Event("click",{bubbles:!0}))}),t('[data-wsf-styler-var-action="alt"]',t(this)).on("click",function(){var s=t(this).closest(".wsf-styler-var-columns"),l=t(".wsf-styler-var-column:not(.wsf-styler-var-column-alt)",s),r=e.styler_get_input(l).val(),a=e.color_to_color_alt(r);e.styler_get_input(t(this)).val(a).trigger("change")}),t("input[data-wsf-styler-var]",t(this)).each(function(){e.styler_coloris_set(t(this)),t(this).on("change input",function(){e.styler_coloris_set(t(this)),e.styler_var_set(t(this))})});break;case"size":var s=t(".wsf-styler-var-size-value",t(this)),a=t(".wsf-styler-var-size-unit",t(this));e.styler_event_size_init(t(this),l);var i=e.styler_get_column(t(this));t(".wsf-styler-var-size-value, .wsf-styler-var-size-unit",t(this)).on("change input",function(){e.styler_event_size_change(i,l)}),s.on("input",function(){e.styler_obj_value_last=t(this)}),a.on("change",function(){e.styler_event_size_unit_change(t(this))}),t("input[data-wsf-styler-var]",t(this)).on("change input",function(){e.styler_var_set(t(this))}),t(".wsf-styler-var-size-range",t(this)).on("input",function(){var e=t(this).val();t(".wsf-styler-var-size-value",i).val(e);var s=isNaN(e)?"":t(".wsf-styler-var-size-unit",i).val();t(".wsf-styler-var-input-hidden",i).val(e+s).trigger("change")});break;case"checkbox":i=e.styler_get_column(t(this));var o=e.styler_get_input_hidden(t(this)),n=t("[data-checkbox]",i);n.prop("checked","1"==o.val()),n.on("change",function(){o.val(n.is(":checked")?"1":"0").trigger("change")}),o.on("change",function(){n.prop("checked","1"==t(this).val()),e.styler_var_set(t(this))});break;case"select":e.styler_get_select(t(this)).on("change",function(){e.styler_var_set(t(this))});break;default:t("input[data-wsf-styler-var]",t(this)).on("change input",function(){e.styler_var_set(t(this))})}})},t.WS_Form.prototype.styler_args_coloris_swatches=function(e){if(void 0===e.attr("data-coloris-alt"))return this.styler_coloris_swatches;var s=e.attr("id").replace("-alt","");return this.color_alt_coloris_swatches(t("#"+s).val())},t.WS_Form.prototype.styler_get_form_obj=function(){return t("form.wsf-form-canvas[data-preview]")},t.WS_Form.prototype.styler_group_focus_selector=function(e){var s=this.styler_get_form_obj();if(s.length&&t(".wsf-group-tabs",s).length){var l=e.attr("data-wsf-styler-group-focus-selector"),r=t(this.esc_attr(l),s);if(r.length&&!r.find(":visible").length){var a=this.get_group(r.first());if(a.length){var i=t('a[href="#'+a.attr("id")+'"]',s);i.length&&i.trigger("click")}}}},t.WS_Form.prototype.styler_event_copy=function(e){t("[data-wsf-styler-var-copy]",e).on("click",function(e){t(this).addClass("wsf-styler-svg-copy-check");var s=t("<input>");t("body").append(s),s.val(t(this).attr("data-wsf-styler-var-copy")).trigger("select"),document.execCommand("copy"),s.remove();var l=t(this);setTimeout(function(){l.removeClass("wsf-styler-svg-copy-check")},2e3)})},t.WS_Form.prototype.styler_event_undo=function(e){var s=this;t('[data-wsf-styler-var-action="undo"]',e).on("click",function(){var e=t(this).attr("data-wsf-styler-var-undo");if(""!=e)switch(s.styler_get_type(t(this))){case"checkbox":s.styler_get_input(t(this)).prop("checked","1"==e).trigger("change");break;case"select":s.styler_get_select(t(this)).val(e).trigger("change");break;default:s.styler_get_input(t(this)).val(e).trigger("change")}})},t.WS_Form.prototype.styler_label_update=function(){t(".wsf-styler-label legend",t("#wsf-styler")).html(this.esc_html(this.styler_style.label))},t.WS_Form.prototype.styler_undo=function(){var e=t("#wsf-styler");for(var s in this.styler_undos)if(this.styler_undos.hasOwnProperty(s)){var l=this.styler_undos[s],r=l.meta_key,a=l.meta_value;t('[data-wsf-styler-meta-key="'+r+'"]',e).val(a).trigger("change")}},t.WS_Form.prototype.styler_scheme_visible=function(e){var s=t("#wsf-styler"),l=t("fieldset.wsf-styler-scheme",s);switch(t('[id="wsf-styler-setting-meta-alt"]',s).is(":checked")?(s.addClass("wsf-styler-has-alt"),l.css("display","flex"),this.form.meta.style_alt=!0,this.form.meta.style_conv_alt=!0,this.form_obj.attr("data-wsf-style-has-alt","")):(s.removeClass("wsf-styler-has-alt"),l.hide(),this.form.meta.style_alt=!1,this.form.meta.style_conv_alt=!1,this.form_obj.removeAttr("data-wsf-style-has-alt"),e&&"function"==typeof this.styler_scheme_alt_disable&&(this.styler_scheme_mutation_process=!1,this.styler_scheme_alt_disable()),localStorage.setItem("wsf_styler_scheme","base")),localStorage.getItem("wsf_styler_scheme")){case"alt":t("#wsf-styler-scheme-alt").prop("checked",!0).trigger("change");break;case"both":t("#wsf-styler-scheme-both").prop("checked",!0).trigger("change");break;default:t("#wsf-styler-scheme-base").prop("checked",!0).trigger("change")}},t.WS_Form.prototype.styler_scheme_process=function(e){var s=t("#wsf-styler");switch(t("fieldset.wsf-styler-scheme input:checked",s).val()){case"alt":t(".wsf-styler-ui").removeClass("wsf-styler-ui-base").addClass("wsf-styler-ui-alt"),e&&"function"==typeof this.styler_scheme_alt_enable&&(this.styler_scheme_mutation_process=!1,this.styler_scheme_alt_enable()),localStorage.setItem("wsf_styler_scheme","alt");break;case"both":t(".wsf-styler-ui").addClass("wsf-styler-ui-base").addClass("wsf-styler-ui-alt"),localStorage.setItem("wsf_styler_scheme","both");break;default:t(".wsf-styler-ui").addClass("wsf-styler-ui-base").removeClass("wsf-styler-ui-alt"),e&&"function"==typeof this.styler_scheme_alt_disable&&(this.styler_scheme_mutation_process=!1,this.styler_scheme_alt_disable()),localStorage.setItem("wsf_styler_scheme","base")}},t.WS_Form.prototype.styler_scheme_base=function(){t("body").removeClass("wsf-styler-scheme-alt")},t.WS_Form.prototype.styler_scheme_alt=function(){t("body").addClass("wsf-styler-scheme-alt")},t.WS_Form.prototype.styler_get_value_unit=function(t,e){if(!(t=t.trim()))return{value:"",unit:""};var s="",l=t.match(/^([-.\d]+(?:\.\d+)?)(.*)$/);if(l)t=l[1]?l[1].trim():t,s=l[2]?l[2].trim().toLowerCase():"";return{value:t,unit:isNaN(t)&&"-"!=t[0]?"":s}},t.WS_Form.prototype.styler_coloris_set=function(t){var e=this.color_parse(t.val(),this.styler_style_id);this.styler_get_input_hidden(t).val(e)},t.WS_Form.prototype.styler_event_size_init=function(e,s){var l=this.styler_get_input_hidden(e).val(),r=this.styler_get_value_unit(l,s);l=r.value;var a=r.unit;t(".wsf-styler-var-size-value",e).val(l),t(".wsf-styler-var-size-unit",e).val(a).attr("data-wsf-styler-var-size-unit-old",a),this.styler_event_range_attributes(e),this.styler_event_size_render(e)},t.WS_Form.prototype.styler_event_size_change=function(e,s){var l=t(".wsf-styler-var-size-value",e),r=t(".wsf-styler-var-size-unit",e),a=l.val();if(isNaN(a)&&"-"!=a[0])var i="";else i=r.val();var o=this.styler_get_value_unit(a,s);if(o.unit){for(var n in s)if(s.hasOwnProperty(n)){var _=s[n];if(o.unit[0]==_[0]){i=_,r.val(i).attr("data-wsf-styler-var-size-unit-old",i),this.styler_obj_value_last=!1,this.styler_event_range_attributes(e);break}}a=o.value,l.val(a)}"-"==a&&(a="");var c=a+(""!=a?i:"");t(".wsf-styler-var-input-hidden",e).val(c).trigger("change"),this.styler_event_size_render(e)},t.WS_Form.prototype.styler_event_size_unit_change=function(e){var s=this.styler_get_column(e),l=t(".wsf-styler-var-size-value",s),r=t(".wsf-styler-var-size-unit",s),a=r.attr("data-wsf-styler-var-size-unit-old"),i=r.val();if(e.attr("data-wsf-styler-var-size-unit-old",i),!1===this.styler_obj_value_last||this.styler_obj_value_last[0]!=l[0]){var o=l.val(),n=o;["px",""].includes(a)&&("rem"==i?(o/=this.styler_get_root_font_size(),o=parseFloat(o.toFixed(4))):"em"==i?o=1:"%"==i&&(o=100)),"rem"==a&&(["px",""].includes(i)?(o*=this.styler_get_root_font_size(),o=parseFloat(o.toFixed(4))):"em"==i?o=1:"%"==i&&(o=100)),"em"==a&&(["px",""].includes(i)?o=16:"rem"==i?o=1:"%"==i&&(o=100)),"%"==a&&(["px",""].includes(i)?o=16:["rem","em"].includes(i)&&(o=1)),o!==n&&(l.val(o).trigger("change"),this.styler_event_range_attributes(s),t(".wsf-styler-var-size-range",s).val(parseFloat(o)))}else this.styler_obj_value_last=!1},t.WS_Form.prototype.styler_get_root_font_size=function(){var t=parseFloat(getComputedStyle(document.documentElement).fontSize);return t||16},t.WS_Form.prototype.styler_event_size_render=function(e,s){var l=t(".wsf-styler-var-size-value",e).val();isNaN(l)&&"-"!=l[0]?t(".wsf-styler-var-size-unit, .wsf-styler-var-size-range",e).hide():(t(".wsf-styler-var-size-unit, .wsf-styler-var-size-range",e).show(),parseFloat(t(".wsf-styler-var-size-range",e).val())!=parseFloat(l)&&t(".wsf-styler-var-size-range",e).val(parseFloat(l)))},t.WS_Form.prototype.styler_event_range_attributes=function(e){var s=t(".wsf-styler-var-size-unit",e).val(),l=t(".wsf-styler-var-size-range",e);switch(s){case"px":var r=parseInt(l.attr("data-wsf-styler-px-min")||0,10),a=parseInt(l.attr("data-wsf-styler-px-max")||100,10),i=parseInt(l.attr("data-wsf-styler-px-step")||.5,10);break;case"%":r=0,a=100,i=.5;break;default:r=0,a=10,i=.1}l.attr("min",r).attr("max",a).attr("step",i)},t.WS_Form.prototype.styler_var_set=function(e){var s=e.val(),l=e.attr("data-wsf-styler-var"),r=e.attr("data-wsf-styler-meta-key");switch(this.styler_style.meta[r]=s,this.styler_rule?this.styler_rule.style.setProperty(l,s):t('[data-wsf-style-id="'+this.styler_style_id+'"]').each(function(){t(this)[0].style.setProperty(l,s)}),r){case"field_label_inside_mode":switch(s){case"hide":this.form_obj.addClass("wsf-label-position-inside-hide");break;default:this.form_obj.removeClass("wsf-label-position-inside-hide")}break;case"field_border_placement":switch(s){case"bottom":this.form_obj.addClass("wsf-field-border-placement-bottom");break;default:this.form_obj.removeClass("wsf-field-border-placement-bottom")}}this.styler_change_made()},t.WS_Form.prototype.styler_change_made=function(){this.styler_changes_made||(t(window).on("beforeunload",function(t){return t.preventDefault(),""}),this.styler.styler_changes_made=!0)},t.WS_Form.prototype.styler_change_made_reset=function(){t(window).off("beforeunload")},t.WS_Form.prototype.styler_get_column=function(t){return t.hasClass("wsf-styler-var-column")?t:t.closest(".wsf-styler-var-column")},t.WS_Form.prototype.styler_get_var=function(t){return this.styler_get_column(t).attr("data-wsf-styler-var")},t.WS_Form.prototype.styler_get_type=function(t){return this.styler_get_column(t).attr("data-wsf-styler-type")},t.WS_Form.prototype.styler_get_input=function(e){var s=this.styler_get_column(e);return t("input.wsf-styler-var-input",s)},t.WS_Form.prototype.styler_get_select=function(e){var s=this.styler_get_column(e);return t("select.wsf-styler-var-input",s)},t.WS_Form.prototype.styler_get_input_hidden=function(e){var s=this.styler_get_column(e);return t("input.wsf-styler-var-input-hidden",s)},t.WS_Form.prototype.styler_get_rule=function(){Array.from(document.styleSheets).forEach(t=>{if(this.styler_rule)return!1;try{if(t.href&&new URL(t.href).origin!==window.location.origin)return;Array.from(t.cssRules||t.rules).forEach(t=>{if(this.styler_rule)return!1;t.selectorText===':where([data-wsf-style-id="'+this.styler_style_id+'"])'&&(this.styler_rule=t)})}catch(t){console.error("Unable to access the stylesheet for style ID: "+this.styler_style_id+" ("+t.message+")")}})},t.WS_Form.prototype.styler_datalists=function(t,e){var s=this.styler_datalist_border_style();return s+=this.styler_datalist_font_family(),s+=this.styler_datalist_font_style(),s+=this.styler_datalist_font_weight(),s+=this.styler_datalist_text_decoration(),s+=this.styler_datalist_text_transform(),s+=this.styler_datalist_transition_timing_function()},t.WS_Form.prototype.styler_datalist=function(t,e){var s=this;return'<datalist id="wsf-styler-datalist-'+this.esc_attr(t)+'">'+e.map(t=>'<option value="'+s.esc_attr(t.value)+'">'+s.esc_html(t.label)+"</option>").join("")+"</datalist>"},t.WS_Form.prototype.styler_datalist_font_family=function(){return this.styler_datalist("font-family",[{value:"inherit",label:"inherit"},{value:"Arial, sans-serif",label:"Arial"},{value:'"Comic Sans MS", cursive, sans-serif',label:"Comic Sans MS"},{value:'"Courier New", Courier, monospace',label:"Courier New"},{value:'"Gill Sans", "Gill Sans MT", Calibri, sans-serif',label:"Gill Sans"},{value:'"Helvetica Neue", Helvetica, sans-serif',label:"Helvetica"},{value:'"Impact", Charcoal, sans-serif',label:"Impact"},{value:'"Lucida Sans Unicode", "Lucida Grande", sans-serif',label:"Lucida Sans"},{value:"Georgia, serif",label:"Georgia"},{value:"Monaco, monospace",label:"Monaco"},{value:'"Palatino Linotype", "Book Antiqua", Palatino, serif',label:"Palatino"},{value:'"Segoe UI", Tahoma, Geneva, sans-serif',label:"Segoe UI"},{value:"Tahoma, sans-serif",label:"Tahoma"},{value:'"Times New Roman", Times, serif',label:"Times New Roman"},{value:'"Trebuchet MS", sans-serif',label:"Trebuchet MS"},{value:"Verdana, sans-serif",label:"Verdana"}])},t.WS_Form.prototype.styler_datalist_font_style=function(){return this.styler_datalist("font-style",[{value:"normal",label:"Normal"},{value:"italic",label:"Italic"},{value:"oblique",label:"Oblique"},{value:"inherit",label:"Inherit"},{value:"initial",label:"Initial"},{value:"unset",label:"Unset"}])},t.WS_Form.prototype.styler_datalist_font_weight=function(){return this.styler_datalist("font-weight",[{value:"inherit",label:"inherit"},{value:"100",label:"Thin"},{value:"200",label:"Extra Light"},{value:"300",label:"Light"},{value:"400",label:"Normal"},{value:"500",label:"Medium"},{value:"600",label:"Semi Bold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}])},t.WS_Form.prototype.styler_datalist_transition_timing_function=function(){return this.styler_datalist("transition-timing-function",[{value:"linear",label:"Linear"},{value:"ease",label:"Ease"},{value:"ease-in",label:"Ease-In"},{value:"ease-out",label:"Ease-Out"},{value:"ease-in-out",label:"Ease-In-Out"},{value:"step-start",label:"Step Start"},{value:"step-end",label:"Step End"}])},t.WS_Form.prototype.styler_datalist_border_style=function(){return this.styler_datalist("border-style",[{value:"none",label:"None"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"},{value:"double",label:"Double"},{value:"groove",label:"Groove"},{value:"inset",label:"Inset"},{value:"outset",label:"Outset"},{value:"ridge",label:"Ridge"},{value:"solid",label:"Solid"}])},t.WS_Form.prototype.styler_datalist_text_decoration=function(){return this.styler_datalist("text-decoration",[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"overline",label:"Overline"},{value:"line-through",label:"Line Through"},{value:"inherit",label:"Inherit"},{value:"initial",label:"Initial"},{value:"unset",label:"Unset"}])},t.WS_Form.prototype.styler_datalist_text_transform=function(){return this.styler_datalist("text-transform",[{value:"none",label:"None"},{value:"capitalize",label:"Capitalize"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"},{value:"full-width",label:"Full Width"},{value:"inherit",label:"Inherit"},{value:"initial",label:"Initial"},{value:"unset",label:"Unset"}])},t.WS_Form.prototype.styler_search=function(){var e=this,s=this.styler_search_walker(window.wsf_form_json_config.styler.meta);t(".wsf-styler-search input").on("change input",function(){var l=t(this).val();if((l=l.toLowerCase().trim()).length<=2)return t("#wsf-styler .wsf-styler-child").show().removeClass("wsf-styler-child-active"),t("#wsf-styler .wsf-styler-var-wrapper").show(),void t("#wsf-styler .wsf-styler-var").show();var r=l.split(" "),a=r.length,i=[];for(var o in r)if(r.hasOwnProperty(o)){var n=r[o];for(var _ in n=n.trim(),s)if(s.hasOwnProperty(_)){var c=s[_],y=0;c.keyword.indexOf(n)>=0&&(y+=1),y>0&&(void 0===i[c.css_var]?i[c.css_var]=y:i[c.css_var]+=y)}}i=Object.fromEntries(Object.entries(i).sort(([,t],[,e])=>e-t));for(var h in t("#wsf-styler .wsf-styler-child").hide().addClass("wsf-styler-child-active"),t("#wsf-styler .wsf-styler-var-wrapper").hide(),i)if(i.hasOwnProperty(h)){if(i[h]<a)break;t('#wsf-styler .wsf-styler-var-wrapper[data-wsf-styler-var="'+e.esc_selector(h)+'"]').show().parents(".wsf-styler-child").show()}})},t.WS_Form.prototype.styler_search_walker=function(t,e,s){e||(e=0),s||(s="");var l=[];for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(a.children&&(l=l.concat(this.styler_search_walker(a.children,e+1,(""!=s?s+" ":s)+a.label))),a.meta)for(var i in a.meta)if(a.meta.hasOwnProperty(i)){var o=a.meta[i];if(!o.setting){var n=[];s&&n.push(this.styler_keyword_tidy(s)),n.push(this.styler_keyword_tidy(a.label)),n.push(this.styler_keyword_tidy(o.label)),o.var&&n.push(o.var),void 0!==o.keyword&&n.push(this.styler_keyword_tidy(o.keyword));var _=(n=n.filter(function(t,e,s){return s.indexOf(t)===e})).join(" ");l.push({keyword:_,css_var:o.var})}}}return l},t.WS_Form.prototype.styler_keyword_tidy=function(t){return t.toLowerCase().replace(" -","").replace("(","").replace(")","").trim()},t.WS_Form.prototype.styler_api_call=function(e,s,l,r,a){void 0===s&&(s="POST"),l||(l={});var i=this,o=ws_form_settings.url_ajax+e,n={};void 0!==n.get&&null!==n.get(ws_form_settings.wsf_nonce_field_name)||!ws_form_settings.wsf_nonce||(n[ws_form_settings.wsf_nonce_field_name]=ws_form_settings.wsf_nonce),n.data=JSON.stringify(l);var _={method:s,url:o,beforeSend:function(t){ws_form_settings.x_wp_nonce&&t.setRequestHeader("X-WP-Nonce",ws_form_settings.x_wp_nonce)},statusCode:{200:function(t){"function"!=typeof r||r(t)},400:function(t){i.api_call_error_handler(t,400,o,a)},401:function(t){i.api_call_error_handler(t,401,o,a)},403:function(t){i.api_call_error_handler(t,403,o,a)},404:function(t){i.api_call_error_handler(t,404,o,a)},500:function(t){i.api_call_error_handler(t,500,o,a)}}};return!1!==n&&(_.data=n),t.ajax(_)}}(jQuery);