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/www/wp-content/plugins/ws-form-pro/admin/js/ws-form-block.min.js
!function(t,e,o,s,r){const i=s.createElement,{registerBlockType:a}=e,{InspectorControls:l}=o,{Fragment:n,RawHTML:d}=s,{Button:_,Panel:f,PanelBody:m,PanelRow:c,Placeholder:w,SelectControl:b,TextControl:g}=r,u=i("svg",{width:20,height:20},i("path",{fill:"#002E5D",d:"M0 0v20h20V0zm8.785 13.555h-.829l-1.11-4.966c-.01-.036-.018-.075-.026-.115l-.233-1.297h-.014l-.104.574-.17.838-1.147 4.966h-.836L2.57 6.224h.703l.999 4.27.466 2.23h.044q.133-.966.43-2.243l.998-4.257h.74l1.006 4.27q.119.48.422 2.23h.044q.022-.223.219-1.121t1.254-5.379h.695zm5.645-.389a2.105 2.105 0 0 1-1.54.524 3.26 3.26 0 0 1-.961-.129 2.463 2.463 0 0 1-.644-.283l.309-.534a1.274 1.274 0 0 0 .416.186 2.78 2.78 0 0 0 .925.152 1.287 1.287 0 0 0 .977-.372 1.377 1.377 0 0 0 .355-.993 1.313 1.313 0 0 0-.255-.821 3.509 3.509 0 0 0-.973-.76 6.51 6.51 0 0 1-1.121-.757 2.121 2.121 0 0 1-.466-.635 1.94 1.94 0 0 1-.167-.838A1.67 1.67 0 0 1 11.87 6.6a2.161 2.161 0 0 1 1.487-.517 2.76 2.76 0 0 1 1.567.446l-.31.534a2.425 2.425 0 0 0-1.287-.372 1.422 1.422 0 0 0-.991.334 1.132 1.132 0 0 0-.37.882 1.298 1.298 0 0 0 .252.814 3.792 3.792 0 0 0 1.065.794 6.594 6.594 0 0 1 1.095.767 1.896 1.896 0 0 1 .44.635 2.076 2.076 0 0 1 .144.8 1.94 1.94 0 0 1-.532 1.45zm2.375.598a.671.671 0 1 1 .672-.671.671.671 0 0 1-.672.67zm0-3.242a.671.671 0 1 1 .672-.671.671.671 0 0 1-.672.67zm0-3.284a.671.671 0 1 1 .672-.672.671.671 0 0 1-.672.672z"}));a("wsf-block/form-add",{title:wsf_settings_block.form_add.label,icon:u,category:wsf_settings_block.form_add.category,keywords:wsf_settings_block.form_add.keywords,description:wsf_settings_block.form_add.description,supports:{html:!1},attributes:{form_id:{type:"string"},form_element_id:{type:"string"},preview:{type:"boolean"}},example:{attributes:{preview:!0}},edit:function(e){var o=e.attributes.form_id,s=e.attributes.form_element_id?e.attributes.form_element_id:"",r=[];r.push({value:0,label:wsf_settings_block.form_add.form_id_options_select});var a=!1,d=0;for(var c in wsf_settings_block.forms)if(wsf_settings_block.forms.hasOwnProperty(c)){var h=wsf_settings_block.forms[c];h.id==o&&(a=!0),r.push({value:h.id,label:h.label+" ("+wsf_settings_block.form_add.id+": "+h.id+")"}),d++}return a||(o=0,s="",e.setAttributes({form_id:o,form_element_id:s})),i(n,{},i(l,{},i(f,{title:"test"},i(m,{title:wsf_settings_block.form_add.label,initialOpen:!0},i(b,{label:wsf_settings_block.form_add.form_id_options_label,value:o,options:r,onChange:t=>{e.setAttributes({form_id:t})}}),i(g,{label:wsf_settings_block.form_add.form_element_id_label,value:s,placeholder:"e.g. my-form",onChange:t=>{e.setAttributes({form_element_id:t})}}),i(_,{isSecondary:!0,href:wsf_settings_block.form_add.url_add},wsf_settings_block.form_add.add)))),0==d?i(w,{icon:u,label:wsf_settings_block.form_add.label,instructions:wsf_settings_block.form_add.no_forms},i(_,{isSecondary:!0,href:wsf_settings_block.form_add.url_add},wsf_settings_block.form_add.add)):parseInt(o,10)?i("div",null,i("form",{action:wsf_settings_block.form_add.form_action,className:"wsf-form wsf-form-canvas",method:"POST"},function e(o){var s=t('iframe[name="editor-canvas"]'),r=s.length?s.contents():t(document),i=t("#block-"+o.clientId,r);if(i.length&&t("form.wsf-form",i).length){t("[data-wsf-message]",i).remove();var a=o.attributes.form_id,l=o.attributes.form_element_id,n=t("form.wsf-form",i);n.off().html("").attr("data-id",a).removeAttr("data-instance-id"),l?n.attr("id",l).attr("data-wsf-custom-id",""):n.removeAttr("data-wsf-custom-id"),wsf_form_init(!0,!1,n.parent())}else setTimeout(function(){e(o)},50,o)}(e))):i(w,{icon:u,label:wsf_settings_block.form_add.label,instructions:wsf_settings_block.form_add.form_not_selected}))},save:function(){}})}(jQuery,window.wp.blocks,window.wp.blockEditor,window.wp.element,window.wp.components);