/*! BitPress license information bitforms-shortcode-block.js.LICENSE.txt */ "use strict";!function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports._bitforms=t():e._bitforms=t()}(self,(function(){return(self.webpackChunk_bitforms=self.webpackChunk_bitforms||[]).push([[7730],{53805:(e,t,r)=>{r.r(t);var n=r(4637),o=wp.i18n.__,u=wp.blocks.registerBlockType,a=wp.components,i=a.SelectControl,c=a.Icon,f=a.PanelBody,s=(wp.blockEditor||wp.editor).InspectorControls;u("bitforms/form-shortcode",{title:o("Bit Form - Contact Form Builder Plugin for WordPress","bit-form"),icon:function(){return(0,n.jsx)(c,{icon:(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 163 163",children:[(0,n.jsx)("defs",{}),(0,n.jsx)("path",{fill:"#13233c",d:"M106 0H57A57 57 0 000 57v49a57 57 0 0057 57h49a57 57 0 0057-57V57a57 57 0 00-57-57zM51 60v3l-1 59v12c0 5-3 8-8 6-2-1-3-4-3-6v-21-55a29 29 0 011-4 5 5 0 015-4h33a4 4 0 004-2c2-3 8-2 10-1a9 9 0 015 9 9 9 0 01-7 8c-3 1-6 0-9-3a3 3 0 00-1-1H51zm73 74c-6 5-12 6-20 6H72a8 8 0 01-4-1 5 5 0 01-2-6 5 5 0 015-3h35c11-1 20-10 21-20 0-11-8-20-18-23a6 6 0 00-1 0H78h-1v14l1 2h18a4 4 0 003-1c4-4 8-3 11-1 4 2 5 7 3 12-2 4-9 6-13 2a6 6 0 00-5-1H71c-3 0-5-2-5-6V82c0-4 1-5 5-6h17a21 21 0 0021-24c-1-9-8-16-16-18a25 25 0 00-6 0H46c-4 0-7-3-7-6s3-5 7-5h42a33 33 0 0132 23c2 11 0 20-6 29l-1 2 5 2c11 4 17 12 19 23 3 12-2 24-13 32z"})]})})},category:"widgets",keywords:["Form","Contact Form","Bitform"],attributes:{formID:{type:"Integer",default:0},formName:{type:"string",default:""}},example:{attributes:{formName:o("Contact Form"),preview:!0}},edit:function(e){var t=[{value:0,label:o("Select a Form","bitform"),disabled:!0}];bitformsBlock.forms.map((function(e){t.push({label:e.id+". "+e.form_name,value:e.id})}));var r=e.attributes,u=e.setAttributes,a=e.className,c=function(e){u({formID:e})};return[(0,n.jsxs)("div",{style:{border:"2px solid gray",borderRadius:8,padding:10,textAlign:"center"},className:a,children:[(0,n.jsxs)("svg",{height:"100",width:"100",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 163 163",children:[(0,n.jsx)("defs",{}),(0,n.jsx)("path",{fill:"#13233c",d:"M106 0H57A57 57 0 000 57v49a57 57 0 0057 57h49a57 57 0 0057-57V57a57 57 0 00-57-57zM51 60v3l-1 59v12c0 5-3 8-8 6-2-1-3-4-3-6v-21-55a29 29 0 011-4 5 5 0 015-4h33a4 4 0 004-2c2-3 8-2 10-1a9 9 0 015 9 9 9 0 01-7 8c-3 1-6 0-9-3a3 3 0 00-1-1H51zm73 74c-6 5-12 6-20 6H72a8 8 0 01-4-1 5 5 0 01-2-6 5 5 0 015-3h35c11-1 20-10 21-20 0-11-8-20-18-23a6 6 0 00-1 0H78h-1v14l1 2h18a4 4 0 003-1c4-4 8-3 11-1 4 2 5 7 3 12-2 4-9 6-13 2a6 6 0 00-5-1H71c-3 0-5-2-5-6V82c0-4 1-5 5-6h17a21 21 0 0021-24c-1-9-8-16-16-18a25 25 0 00-6 0H46c-4 0-7-3-7-6s3-5 7-5h42a33 33 0 0132 23c2 11 0 20-6 29l-1 2 5 2c11 4 17 12 19 23 3 12-2 24-13 32z"})]}),(0,n.jsx)("h3",{style:{fontFamily:"sans-serif",margin:"0.65em 0"},children:"Bit Form"}),(0,n.jsx)(i,{value:r.formID,options:t,onChange:c})]}),(0,n.jsx)(s,{children:(0,n.jsx)(f,{title:o("Form settings","bitform"),children:(0,n.jsx)(i,{value:r.formID,options:t,onChange:c})})},o("Bitform block settings","bitform"))]},save:function(e){return"[bitform id='"+parseInt(e.attributes.formID,10)+"']"}})},22767:e=>{var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var u,a,i=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c{r(22767);var n=r(59496),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var u=Symbol.for;o=u("react.element"),t.Fragment=u("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function f(e,t,r){var n,u={},f=null,s=null;for(n in void 0!==r&&(f=""+r),void 0!==t.key&&(f=""+t.key),void 0!==t.ref&&(s=t.ref),t)i.call(t,n)&&!c.hasOwnProperty(n)&&(u[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===u[n]&&(u[n]=t[n]);return{$$typeof:o,type:e,key:f,ref:s,props:u,_owner:a.current}}t.jsx=f,t.jsxs=f},51288:(e,t,r)=>{var n=r(22767),o=60103,u=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,i=60110,c=60112;t.Suspense=60113;var f=60115,s=60116;if("function"===typeof Symbol&&Symbol.for){var l=Symbol.for;o=l("react.element"),u=l("react.portal"),t.Fragment=l("react.fragment"),t.StrictMode=l("react.strict_mode"),t.Profiler=l("react.profiler"),a=l("react.provider"),i=l("react.context"),c=l("react.forward_ref"),t.Suspense=l("react.suspense"),f=l("react.memo"),s=l("react.lazy")}var p="function"===typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r{e.exports=r(51288)},4637:(e,t,r)=>{e.exports=r(82945)}},e=>{var t;return t=53805,e(e.s=t)}])}));