D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
vblioqus
/
www
/
wp-content
/
plugins
/
gutena-forms
/
build
/
Filename :
index.js
back
Copy
(()=>{"use strict";var e,t=[,(e,t,l)=>{const a=window.wp.element,n=window.wp.i18n,r=window.wp.blocks,o=window.wp.domReady;var i=l.n(o);const s=window.wp.components;window.React;const m="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik04IDE2QzMuNTgxNiAxNiAwIDEyLjQxODQgMCA4QzAgMy41ODE2IDMuNTgxNiAwIDggMEMxMi40MTg0IDAgMTYgMy41ODE2IDE2IDhDMTYgMTIuNDE4NCAxMi40MTg0IDE2IDggMTZaTTggMTQuNEM5LjY5NzM5IDE0LjQgMTEuMzI1MyAxMy43MjU3IDEyLjUyNTUgMTIuNTI1NUMxMy43MjU3IDExLjMyNTMgMTQuNCA5LjY5NzM5IDE0LjQgOEMxNC40IDYuMzAyNjEgMTMuNzI1NyA0LjY3NDc1IDEyLjUyNTUgMy40NzQ1MkMxMS4zMjUzIDIuMjc0MjggOS42OTczOSAxLjYgOCAxLjZDNi4zMDI2MSAxLjYgNC42NzQ3NSAyLjI3NDI4IDMuNDc0NTIgMy40NzQ1MkMyLjI3NDI4IDQuNjc0NzUgMS42IDYuMzAyNjEgMS42IDhDMS42IDkuNjk3MzkgMi4yNzQyOCAxMS4zMjUzIDMuNDc0NTIgMTIuNTI1NUM0LjY3NDc1IDEzLjcyNTcgNi4zMDI2MSAxNC40IDggMTQuNFpNNy4yMDI0IDExLjJMMy44MDggNy44MDU2TDQuOTM5MiA2LjY3NDRMNy4yMDI0IDguOTM3NkwxMS43MjcyIDQuNDEyTDEyLjg1OTIgNS41NDMyTDcuMjAyNCAxMS4yWiIgZmlsbD0iIzQ2ODQxRSIvPg0KPC9zdmc+DQo=",c="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik04IDE2QzMuNTgxNiAxNiAwIDEyLjQxODQgMCA4QzAgMy41ODE2IDMuNTgxNiAwIDggMEMxMi40MTg0IDAgMTYgMy41ODE2IDE2IDhDMTYgMTIuNDE4NCAxMi40MTg0IDE2IDggMTZaTTggMTQuNEM5LjY5NzM5IDE0LjQgMTEuMzI1MyAxMy43MjU3IDEyLjUyNTUgMTIuNTI1NUMxMy43MjU3IDExLjMyNTMgMTQuNCA5LjY5NzM5IDE0LjQgOEMxNC40IDYuMzAyNjEgMTMuNzI1NyA0LjY3NDc1IDEyLjUyNTUgMy40NzQ1MkMxMS4zMjUzIDIuMjc0MjggOS42OTczOSAxLjYgOCAxLjZDNi4zMDI2MSAxLjYgNC42NzQ3NSAyLjI3NDI4IDMuNDc0NTIgMy40NzQ1MkMyLjI3NDI4IDQuNjc0NzUgMS42IDYuMzAyNjEgMS42IDhDMS42IDkuNjk3MzkgMi4yNzQyOCAxMS4zMjUzIDMuNDc0NTIgMTIuNTI1NUM0LjY3NDc1IDEzLjcyNTcgNi4zMDI2MSAxNC40IDggMTQuNFpNNy4yIDEwLjRIOC44VjEySDcuMlYxMC40Wk03LjIgNEg4LjhWOC44SDcuMlY0WiIgZmlsbD0iI0M1MTkxOSIvPg0KPC9zdmc+DQo=",u=[];u.push({name:"one-column-basic",title:(0,n.__)("One column basic","gutena-forms"),description:(0,n.__)("One column basic","gutena-forms"),attributes:{style:{spacing:{blockGap:"2rem",padding:{top:"2rem",bottom:"5rem"}}}},icon:(0,a.createElement)(()=>(0,a.createElement)(s.Icon,{icon:()=>(0,a.createElement)("svg",{className:"gutena-forms__variation-icons",width:"242",height:"186",viewBox:"0 0 242 186",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("rect",{x:"0.5",y:"0.5",width:"241",height:"185",rx:"4.5",fill:"white"}),(0,a.createElement)("rect",{x:"0.5",y:"0.5",width:"241",height:"185",rx:"4.5",stroke:"#D6EAE5"}),(0,a.createElement)("rect",{x:"25.5",y:"29.5",width:"191",height:"23",fill:"white"}),(0,a.createElement)("rect",{x:"25.5",y:"29.5",width:"191",height:"23",stroke:"#8CD0BE"}),(0,a.createElement)("rect",{x:"39",y:"39",width:"40",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{x:"25.5",y:"65.5",width:"191",height:"23",fill:"white"}),(0,a.createElement)("rect",{x:"25.5",y:"65.5",width:"191",height:"23",stroke:"#8CD0BE"}),(0,a.createElement)("rect",{x:"39",y:"75",width:"40",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{x:"25.5",y:"101.5",width:"191",height:"23",fill:"white"}),(0,a.createElement)("rect",{x:"25.5",y:"101.5",width:"191",height:"23",stroke:"#8CD0BE"}),(0,a.createElement)("rect",{x:"39",y:"111",width:"40",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{width:"64",height:"24",transform:"translate(25 137)",fill:"#8CD0BE"}))}),null),innerBlocks:[["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("First name","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Enter your first name","gutena-forms")}],["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Last name","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Enter your last name","gutena-forms")}],["gutena/email-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:"Email",fieldType:"email",placeholder:(0,n.__)("example@gmail.com","gutena-forms")}],["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Subject","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Subject","gutena-forms")}],["gutena/textarea-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Message","gutena-forms"),fieldType:"textarea",textAreaRows:5,placeholder:(0,n.__)("Type here","gutena-forms")}],["core/buttons",{className:"gutena-forms-submit-buttons"},[["core/button",{text:(0,n.__)("Submit","gutena-forms"),className:"gutena-forms-submit-button",placeholder:(0,n.__)("Submit","gutena-forms")}]]],["gutena/form-confirm-msg",{},[["core/group",{style:{spacing:{blockGap:"8px",padding:{bottom:"12px",right:"12px",left:"12px",top:"12px"}},color:{background:"#d8eacc"},border:{radius:"5px"}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"left"}},[["core/image",{id:3811,sizeSlug:"large",linkDestination:"none",className:"form-message-icon",url:m,alt:(0,n.__)("Success","gutena-forms")}],["core/paragraph",{style:{typography:{lineHeight:"1.2",fontStyle:"normal",fontWeight:"500",fontSize:"12px"}},textColor:"black",fontSize:"tiny",content:(0,n.__)("Your form submitted successfully!","gutena-forms")}]]]]],["gutena/form-error-msg",{},[["core/group",{style:{spacing:{blockGap:"8px",padding:{bottom:"12px",right:"12px",left:"12px",top:"12px"}},color:{background:"#ffd3d3"},border:{radius:"5px"}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"left"}},[["core/image",{id:3811,sizeSlug:"large",linkDestination:"none",className:"form-message-icon",url:c,alt:(0,n.__)("Error","gutena-forms")}],["core/paragraph",{style:{typography:{lineHeight:"1.2",fontStyle:"normal",fontWeight:"500",fontSize:"12px"}},textColor:"black",className:"gutena-forms-error-text",content:(0,n.__)("Sorry! your form was not submitted properly, Please check the errors above.","gutena-forms")}]]]]]],scope:["block"],isDefault:!0}),u.push({name:"one-column-modern",title:(0,n.__)("One column modern","gutena-forms"),description:(0,n.__)("One column modern","gutena-forms"),attributes:{inputBottomBorderOnly:!0,style:{spacing:{blockGap:"2rem",padding:{top:"2rem",bottom:"5rem"}}}},icon:(0,a.createElement)(()=>(0,a.createElement)(s.Icon,{icon:()=>(0,a.createElement)("svg",{className:"gutena-forms__variation-icons",width:"242",height:"186",viewBox:"0 0 242 186",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("rect",{x:"0.5",y:"0.5",width:"241",height:"185",rx:"4.5",fill:"white"}),(0,a.createElement)("rect",{x:"0.5",y:"0.5",width:"241",height:"185",rx:"4.5",stroke:"#D6EAE5"}),(0,a.createElement)("mask",{id:"path-2-inside-1_381_1541",fill:"white"},(0,a.createElement)("path",{d:"M25 29H217V53H25V29Z"})),(0,a.createElement)("path",{d:"M25 29H217V53H25V29Z",fill:"white"}),(0,a.createElement)("path",{d:"M217 53V52H25V53V54H217V53Z",fill:"#8CD0BE",mask:"url(#path-2-inside-1_381_1541)"}),(0,a.createElement)("rect",{x:"39",y:"39",width:"40",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("mask",{id:"path-5-inside-2_381_1541",fill:"white"},(0,a.createElement)("path",{d:"M25 65H217V89H25V65Z"})),(0,a.createElement)("path",{d:"M25 65H217V89H25V65Z",fill:"white"}),(0,a.createElement)("path",{d:"M217 89V88H25V89V90H217V89Z",fill:"#8CD0BE",mask:"url(#path-5-inside-2_381_1541)"}),(0,a.createElement)("rect",{x:"39",y:"75",width:"40",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("mask",{id:"path-8-inside-3_381_1541",fill:"white"},(0,a.createElement)("path",{d:"M25 101H217V125H25V101Z"})),(0,a.createElement)("path",{d:"M25 101H217V125H25V101Z",fill:"white"}),(0,a.createElement)("path",{d:"M217 125V124H25V125V126H217V125Z",fill:"#8CD0BE",mask:"url(#path-8-inside-3_381_1541)"}),(0,a.createElement)("rect",{x:"39",y:"111",width:"40",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{x:"25.5",y:"137.5",width:"63",height:"23",fill:"#8CD0BE"}),(0,a.createElement)("rect",{x:"25.5",y:"137.5",width:"63",height:"23",stroke:"#8CD0BE"}))}),null),innerBlocks:[["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("First name","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Enter your first name","gutena-forms")}],["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Last name","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Enter your last name","gutena-forms")}],["gutena/email-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:"Email",fieldType:"email",placeholder:(0,n.__)("example@gmail.com","gutena-forms")}],["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Subject","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Subject","gutena-forms")}],["gutena/textarea-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Message","gutena-forms"),fieldType:"textarea",textAreaRows:5,placeholder:(0,n.__)("Type here","gutena-forms")}],["core/buttons",{className:"gutena-forms-submit-buttons"},[["core/button",{text:(0,n.__)("Submit","gutena-forms"),className:"gutena-forms-submit-button",placeholder:(0,n.__)("Submit","gutena-forms")}]]],["gutena/form-confirm-msg",{},[["core/group",{style:{spacing:{blockGap:"8px",padding:{bottom:"12px",right:"12px",left:"12px",top:"12px"}},color:{background:"#d8eacc"},border:{radius:"5px"}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"left"}},[["core/image",{id:3811,sizeSlug:"large",linkDestination:"none",className:"form-message-icon",url:m,alt:(0,n.__)("Success","gutena-forms")}],["core/paragraph",{style:{typography:{lineHeight:"1.2",fontStyle:"normal",fontWeight:"500",fontSize:"12px"}},textColor:"black",fontSize:"tiny",content:(0,n.__)("Your form submitted successfully!","gutena-forms")}]]]]],["gutena/form-error-msg",{},[["core/group",{style:{spacing:{blockGap:"8px",padding:{bottom:"12px",right:"12px",left:"12px",top:"12px"}},color:{background:"#ffd3d3"},border:{radius:"5px"}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"left"}},[["core/image",{id:3811,sizeSlug:"large",linkDestination:"none",className:"form-message-icon",url:c,alt:(0,n.__)("Error","gutena-forms")}],["core/paragraph",{style:{typography:{lineHeight:"1.2",fontStyle:"normal",fontWeight:"500",fontSize:"12px"}},textColor:"black",className:"gutena-forms-error-text",content:(0,n.__)("Sorry! your form was not submitted properly, Please check the errors above.","gutena-forms")}]]]]]],scope:["block"]}),u.push({name:"two-column-basic",title:(0,n.__)("Two column basic","gutena-forms"),description:(0,n.__)("Two column basic","gutena-forms"),attributes:{style:{spacing:{blockGap:"2rem",padding:{top:"2rem",bottom:"5rem",right:"1.25rem",left:"1.25rem"}}}},icon:(0,a.createElement)(()=>(0,a.createElement)(s.Icon,{icon:()=>(0,a.createElement)("svg",{className:"gutena-forms__variation-icons",width:"242",height:"186",viewBox:"0 0 242 186",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("rect",{x:"0.5",y:"0.5",width:"241",height:"185",rx:"4.5",fill:"white"}),(0,a.createElement)("rect",{x:"0.5",y:"0.5",width:"241",height:"185",rx:"4.5",stroke:"#D6EAE5"}),(0,a.createElement)("rect",{x:"25.5",y:"29.5",width:"89",height:"23",fill:"white"}),(0,a.createElement)("rect",{x:"25.5",y:"29.5",width:"89",height:"23",stroke:"#8CD0BE"}),(0,a.createElement)("rect",{x:"39",y:"39",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{x:"127.5",y:"29.5",width:"89",height:"23",fill:"white"}),(0,a.createElement)("rect",{x:"127.5",y:"29.5",width:"89",height:"23",stroke:"#8CD0BE"}),(0,a.createElement)("rect",{x:"141",y:"39",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{x:"25.5",y:"65.5",width:"89",height:"23",fill:"white"}),(0,a.createElement)("rect",{x:"25.5",y:"65.5",width:"89",height:"23",stroke:"#8CD0BE"}),(0,a.createElement)("rect",{x:"39",y:"75",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{x:"127.5",y:"65.5",width:"89",height:"23",fill:"white"}),(0,a.createElement)("rect",{x:"127.5",y:"65.5",width:"89",height:"23",stroke:"#8CD0BE"}),(0,a.createElement)("rect",{x:"141",y:"75",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{x:"25.5",y:"101.5",width:"89",height:"23",fill:"white"}),(0,a.createElement)("rect",{x:"25.5",y:"101.5",width:"89",height:"23",stroke:"#8CD0BE"}),(0,a.createElement)("rect",{x:"39",y:"111",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{x:"127.5",y:"101.5",width:"89",height:"23",fill:"white"}),(0,a.createElement)("rect",{x:"127.5",y:"101.5",width:"89",height:"23",stroke:"#8CD0BE"}),(0,a.createElement)("rect",{x:"141",y:"111",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{width:"64",height:"24",transform:"translate(25 137)",fill:"#8CD0BE"}))}),null),innerBlocks:[["core/columns",{verticalAlignment:"top",align:"full"},[["core/column",{verticalAlignment:"top"},[["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("First name","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Enter your first name","gutena-forms")}]]],["core/column",{verticalAlignment:"top"},[["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Last name","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Enter your last name","gutena-forms")}]]]]],["core/columns",{verticalAlignment:"top",align:"full"},[["core/column",{verticalAlignment:"top"},[["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Subject","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Subject","gutena-forms")}]]],["core/column",{verticalAlignment:"top"},[["gutena/email-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:"Email",fieldType:"email",placeholder:(0,n.__)("example@gmail.com","gutena-forms")}]]]]],["core/columns",{verticalAlignment:"top",align:"full"},[["core/column",{verticalAlignment:"top"},[["gutena/textarea-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Message","gutena-forms"),fieldType:"textarea",textAreaRows:5,placeholder:(0,n.__)("Type here","gutena-forms")}]]]]],["core/columns",{verticalAlignment:"top",align:"full"},[["core/column",{verticalAlignment:"top"},[["core/buttons",{className:"gutena-forms-submit-buttons"},[["core/button",{text:(0,n.__)("Submit","gutena-forms"),className:"gutena-forms-submit-button",placeholder:(0,n.__)("Submit","gutena-forms")}]]]]]]],["gutena/form-confirm-msg",{align:"full"},[["core/group",{style:{spacing:{blockGap:"8px",padding:{bottom:"12px",right:"12px",left:"12px",top:"12px"}},color:{background:"#d8eacc"},border:{radius:"5px"}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"left"}},[["core/image",{id:3811,sizeSlug:"large",linkDestination:"none",className:"form-message-icon",url:m,alt:(0,n.__)("Success","gutena-forms")}],["core/paragraph",{style:{typography:{lineHeight:"1.2",fontStyle:"normal",fontWeight:"500",fontSize:"12px"}},textColor:"black",fontSize:"tiny",content:(0,n.__)("Your form submitted successfully!","gutena-forms")}]]]]],["gutena/form-error-msg",{align:"full"},[["core/group",{style:{spacing:{blockGap:"8px",padding:{bottom:"12px",right:"12px",left:"12px",top:"12px"}},color:{background:"#ffd3d3"},border:{radius:"5px"}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"left"}},[["core/image",{id:3811,sizeSlug:"large",linkDestination:"none",className:"form-message-icon",url:c,alt:(0,n.__)("Error","gutena-forms")}],["core/paragraph",{style:{typography:{lineHeight:"1.2",fontStyle:"normal",fontWeight:"500",fontSize:"12px"}},textColor:"black",className:"gutena-forms-error-text",content:(0,n.__)("Sorry! your form was not submitted properly, Please check the errors above.","gutena-forms")}]]]]]],scope:["block"]}),u.push({name:"two-column-modern",title:(0,n.__)("Two column modern","gutena-forms"),description:(0,n.__)("Two column modern","gutena-forms"),attributes:{inputBottomBorderOnly:!0,style:{spacing:{blockGap:"2rem",padding:{top:"2rem",bottom:"5rem",right:"1.25rem",left:"1.25rem"}}}},icon:(0,a.createElement)(()=>(0,a.createElement)(s.Icon,{icon:()=>(0,a.createElement)("svg",{className:"gutena-forms__variation-icons",width:"242",height:"186",viewBox:"0 0 242 186",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("rect",{x:"0.5",y:"0.5",width:"241",height:"185",rx:"4.5",fill:"white"}),(0,a.createElement)("rect",{x:"0.5",y:"0.5",width:"241",height:"185",rx:"4.5",stroke:"#D6EAE5"}),(0,a.createElement)("mask",{id:"path-2-inside-1_381_1597",fill:"white"},(0,a.createElement)("path",{d:"M25 29H115V53H25V29Z"})),(0,a.createElement)("path",{d:"M25 29H115V53H25V29Z",fill:"white"}),(0,a.createElement)("path",{d:"M115 53V52H25V53V54H115V53Z",fill:"#8CD0BE",mask:"url(#path-2-inside-1_381_1597)"}),(0,a.createElement)("rect",{x:"39",y:"39",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("mask",{id:"path-5-inside-2_381_1597",fill:"white"},(0,a.createElement)("path",{d:"M127 29H217V53H127V29Z"})),(0,a.createElement)("path",{d:"M127 29H217V53H127V29Z",fill:"white"}),(0,a.createElement)("path",{d:"M217 53V52H127V53V54H217V53Z",fill:"#8CD0BE",mask:"url(#path-5-inside-2_381_1597)"}),(0,a.createElement)("rect",{x:"141",y:"39",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("mask",{id:"path-8-inside-3_381_1597",fill:"white"},(0,a.createElement)("path",{d:"M25 65H115V89H25V65Z"})),(0,a.createElement)("path",{d:"M25 65H115V89H25V65Z",fill:"white"}),(0,a.createElement)("path",{d:"M115 89V88H25V89V90H115V89Z",fill:"#8CD0BE",mask:"url(#path-8-inside-3_381_1597)"}),(0,a.createElement)("rect",{x:"39",y:"75",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("mask",{id:"path-11-inside-4_381_1597",fill:"white"},(0,a.createElement)("path",{d:"M127 65H217V89H127V65Z"})),(0,a.createElement)("path",{d:"M127 65H217V89H127V65Z",fill:"white"}),(0,a.createElement)("path",{d:"M217 89V88H127V89V90H217V89Z",fill:"#8CD0BE",mask:"url(#path-11-inside-4_381_1597)"}),(0,a.createElement)("rect",{x:"141",y:"75",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("mask",{id:"path-14-inside-5_381_1597",fill:"white"},(0,a.createElement)("path",{d:"M25 101H115V125H25V101Z"})),(0,a.createElement)("path",{d:"M25 101H115V125H25V101Z",fill:"white"}),(0,a.createElement)("path",{d:"M115 125V124H25V125V126H115V125Z",fill:"#8CD0BE",mask:"url(#path-14-inside-5_381_1597)"}),(0,a.createElement)("rect",{x:"39",y:"111",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("mask",{id:"path-17-inside-6_381_1597",fill:"white"},(0,a.createElement)("path",{d:"M127 101H217V125H127V101Z"})),(0,a.createElement)("path",{d:"M127 101H217V125H127V101Z",fill:"white"}),(0,a.createElement)("path",{d:"M217 125V124H127V125V126H217V125Z",fill:"#8CD0BE",mask:"url(#path-17-inside-6_381_1597)"}),(0,a.createElement)("rect",{x:"141",y:"111",width:"32",height:"4",rx:"2",fill:"#BBE4D9"}),(0,a.createElement)("rect",{width:"64",height:"24",transform:"translate(25 137)",fill:"#8CD0BE"}))}),null),innerBlocks:[["core/columns",{verticalAlignment:"top",align:"full"},[["core/column",{verticalAlignment:"top"},[["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("First name","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Enter your first name","gutena-forms")}]]],["core/column",{verticalAlignment:"top"},[["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Last name","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Enter your last name","gutena-forms")}]]]]],["core/columns",{verticalAlignment:"top",align:"full"},[["core/column",{verticalAlignment:"top"},[["gutena/text-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Subject","gutena-forms"),fieldType:"text",placeholder:(0,n.__)("Subject","gutena-forms")}]]],["core/column",{verticalAlignment:"top"},[["gutena/email-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:"Email",fieldType:"email",placeholder:(0,n.__)("example@gmail.com","gutena-forms")}]]]]],["core/columns",{verticalAlignment:"top",align:"full"},[["core/column",{verticalAlignment:"top"},[["gutena/textarea-field-group",{isRequired:!0,fieldLabel:(0,n.__)("Field label","gutena-forms"),fieldLabelContent:(0,n.__)("Message","gutena-forms"),fieldType:"textarea",textAreaRows:5,placeholder:(0,n.__)("Type here","gutena-forms")}]]]]],["core/columns",{verticalAlignment:"top",align:"full"},[["core/column",{verticalAlignment:"top"},[["core/buttons",{className:"gutena-forms-submit-buttons"},[["core/button",{text:(0,n.__)("Submit","gutena-forms"),className:"gutena-forms-submit-button",placeholder:(0,n.__)("Submit","gutena-forms")}]]]]]]],["gutena/form-confirm-msg",{align:"full"},[["core/group",{style:{spacing:{blockGap:"8px",padding:{bottom:"12px",right:"12px",left:"12px",top:"12px"}},color:{background:"#d8eacc"},border:{radius:"5px"}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"left"}},[["core/image",{id:3811,sizeSlug:"large",linkDestination:"none",className:"form-message-icon",url:m,alt:(0,n.__)("Success","gutena-forms")}],["core/paragraph",{style:{typography:{lineHeight:"1.2",fontStyle:"normal",fontWeight:"500",fontSize:"12px"}},textColor:"black",fontSize:"tiny",content:(0,n.__)("Your form submitted successfully!","gutena-forms")}]]]]],["gutena/form-error-msg",{align:"full"},[["core/group",{style:{spacing:{blockGap:"8px",padding:{bottom:"12px",right:"12px",left:"12px",top:"12px"}},color:{background:"#ffd3d3"},border:{radius:"5px"}},layout:{type:"flex",flexWrap:"nowrap",verticalAlignment:"center",justifyContent:"left"}},[["core/image",{id:3811,sizeSlug:"large",linkDestination:"none",className:"form-message-icon",url:c,alt:(0,n.__)("Error","gutena-forms")}],["core/paragraph",{style:{typography:{lineHeight:"1.2",fontStyle:"normal",fontWeight:"500",fontSize:"12px"}},textColor:"black",className:"gutena-forms-error-text",content:(0,n.__)("Sorry! your form was not submitted properly, Please check the errors above.","gutena-forms")}]]]]]],scope:["block"]}),!gutenaFormsBlock.is_gutena_forms_post_type&&gutenaFormsBlock.forms_available&&u.push({name:"existing-forms",title:"",description:(0,n.__)("Use a form you have already created.","gutena-forms"),attributes:{},icon:(0,a.createElement)(()=>(0,a.createElement)(s.Icon,{icon:()=>(0,a.createElement)("svg",{className:"gutena-forms__variation-icons",width:"250",height:"150",viewBox:"0 0 250 150",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("rect",{width:"250",height:"150",fill:"white"}),(0,a.createElement)("rect",{x:"28.488",y:"58.488",width:"193.78",height:"32.6413",rx:"3.4163",fill:"#4BA18A"}),(0,a.createElement)("rect",{x:"28.488",y:"58.488",width:"193.78",height:"32.6413",rx:"3.4163",stroke:"#4BA18A","stroke-width":"0.976084"}),(0,a.createElement)("path",{d:"M44.1544 72.607C44.1544 70.8579 45.6029 69.6417 47.7073 69.6417C49.7298 69.6417 51.0143 70.7622 51.069 72.566H49.3198C49.2788 71.7051 48.6639 71.1995 47.68 71.1995C46.6004 71.1995 45.9035 71.7188 45.9035 72.5524C45.9035 73.263 46.2861 73.6593 47.1197 73.8506L48.6912 74.1922C50.3994 74.5612 51.2329 75.4357 51.2329 76.9252C51.2329 78.7837 49.7844 79.9862 47.5843 79.9862C45.4526 79.9862 44.0587 78.852 44.0177 77.0619H45.7669C45.7805 77.9091 46.4638 78.4147 47.5843 78.4147C48.7459 78.4147 49.4838 77.9091 49.4838 77.0756C49.4838 76.406 49.1422 76.0097 48.3223 75.832L46.7371 75.4767C45.0426 75.1078 44.1544 74.1375 44.1544 72.607ZM55.5894 79.9862C53.5806 79.9862 52.1731 78.5241 52.1731 76.4333C52.1731 74.3152 53.5532 72.853 55.5347 72.853C57.5571 72.853 58.8417 74.2059 58.8417 76.3103V76.8159L53.7582 76.8296C53.8812 78.0185 54.5098 78.6197 55.6167 78.6197C56.5323 78.6197 57.1335 78.2644 57.3248 77.6222H58.869C58.582 79.098 57.3522 79.9862 55.5894 79.9862ZM55.5484 74.2195C54.5645 74.2195 53.9632 74.7525 53.7992 75.7637H57.1882C57.1882 74.8345 56.5459 74.2195 55.5484 74.2195ZM61.8568 79.8086H60.2033V69.6417H61.8568V79.8086ZM66.6256 79.9862C64.6168 79.9862 63.2093 78.5241 63.2093 76.4333C63.2093 74.3152 64.5895 72.853 66.5709 72.853C68.5934 72.853 69.8779 74.2059 69.8779 76.3103V76.8159L64.7945 76.8296C64.9174 78.0185 65.546 78.6197 66.6529 78.6197C67.5685 78.6197 68.1698 78.2644 68.3611 77.6222H69.9052C69.6183 79.098 68.3884 79.9862 66.6256 79.9862ZM66.5846 74.2195C65.6007 74.2195 64.9994 74.7525 64.8355 75.7637H68.2244C68.2244 74.8345 67.5822 74.2195 66.5846 74.2195ZM70.8159 76.4196C70.8159 74.3289 72.1961 72.853 74.1912 72.853C76.036 72.853 77.2932 73.8779 77.4708 75.5041H75.8037C75.6124 74.7388 75.0521 74.3425 74.2595 74.3425C73.1936 74.3425 72.483 75.1488 72.483 76.4196C72.483 77.6905 73.139 78.4831 74.2049 78.4831C75.0384 78.4831 75.626 78.0731 75.8037 77.3352H77.4845C77.2795 78.9067 75.9677 79.9862 74.2049 79.9862C72.1551 79.9862 70.8159 78.5651 70.8159 76.4196ZM81.0211 79.8086H79.354V74.4518H78.0558V73.058H79.354V70.9536H81.0211V73.058H82.333V74.4518H81.0211V79.8086ZM89.0614 79.9862C87.6265 79.9862 86.7519 79.1527 86.7519 77.8818C86.7519 76.6383 87.6538 75.8594 89.2527 75.7364L91.2751 75.5861V75.4357C91.2751 74.5202 90.7285 74.1512 89.8813 74.1512C88.8974 74.1512 88.3508 74.5612 88.3508 75.2718H86.9296C86.9296 73.8096 88.1321 72.853 89.9633 72.853C91.7807 72.853 92.9013 73.8369 92.9013 75.709V79.8086H91.4391L91.3161 78.811C91.0291 79.508 90.1136 79.9862 89.0614 79.9862ZM89.608 78.729C90.6329 78.729 91.2888 78.1141 91.2888 77.0756V76.7203L89.8813 76.8296C88.8427 76.9252 88.4464 77.2669 88.4464 77.8135C88.4464 78.4284 88.8564 78.729 89.608 78.729ZM96.2062 79.8086H94.5391V73.058H96.0832L96.2199 73.9326C96.6435 73.2493 97.4634 72.853 98.379 72.853C100.073 72.853 100.948 73.9052 100.948 75.6544V79.8086H99.2809V76.0507C99.2809 74.9165 98.7206 74.3699 97.8597 74.3699C96.8348 74.3699 96.2062 75.0804 96.2062 76.1737V79.8086ZM109.289 79.9862C107.28 79.9862 105.873 78.5241 105.873 76.4333C105.873 74.3152 107.253 72.853 109.235 72.853C111.257 72.853 112.542 74.2059 112.542 76.3103V76.8159L107.458 76.8296C107.581 78.0185 108.21 78.6197 109.317 78.6197C110.232 78.6197 110.833 78.2644 111.025 77.6222H112.569C112.282 79.098 111.052 79.9862 109.289 79.9862ZM109.248 74.2195C108.264 74.2195 107.663 74.7525 107.499 75.7637H110.888C110.888 74.8345 110.246 74.2195 109.248 74.2195ZM114.744 79.8086H112.845L115.168 76.5016L112.845 73.058H114.785L116.275 75.3537L117.709 73.058H119.582L117.286 76.4743L119.513 79.8086H117.6L116.165 77.5812L114.744 79.8086ZM121.409 71.7051C120.835 71.7051 120.384 71.2542 120.384 70.6939C120.384 70.1336 120.835 69.6964 121.409 69.6964C121.955 69.6964 122.406 70.1336 122.406 70.6939C122.406 71.2542 121.955 71.7051 121.409 71.7051ZM120.575 79.8086V73.058H122.242V79.8086H120.575ZM123.445 77.7588H125.03C125.044 78.3464 125.481 78.7154 126.247 78.7154C127.026 78.7154 127.449 78.4011 127.449 77.9091C127.449 77.5675 127.272 77.3215 126.67 77.1849L125.454 76.8979C124.238 76.6246 123.65 76.0507 123.65 74.9711C123.65 73.6456 124.771 72.853 126.329 72.853C127.846 72.853 128.87 73.7276 128.884 75.0394H127.299C127.285 74.4655 126.903 74.0965 126.26 74.0965C125.604 74.0965 125.222 74.3972 125.222 74.9028C125.222 75.2854 125.522 75.5314 126.096 75.668L127.313 75.955C128.447 76.2147 129.021 76.7339 129.021 77.7725C129.021 79.139 127.859 79.9862 126.192 79.9862C124.511 79.9862 123.445 79.0843 123.445 77.7588ZM132.586 79.8086H130.919V74.4518H129.62V73.058H130.919V70.9536H132.586V73.058H133.898V74.4518H132.586V79.8086ZM135.768 71.7051C135.194 71.7051 134.743 71.2542 134.743 70.6939C134.743 70.1336 135.194 69.6964 135.768 69.6964C136.314 69.6964 136.765 70.1336 136.765 70.6939C136.765 71.2542 136.314 71.7051 135.768 71.7051ZM134.934 79.8086V73.058H136.601V79.8086H134.934ZM139.991 79.8086H138.324V73.058H139.868L140.005 73.9326C140.428 73.2493 141.248 72.853 142.164 72.853C143.858 72.853 144.733 73.9052 144.733 75.6544V79.8086H143.066V76.0507C143.066 74.9165 142.505 74.3699 141.644 74.3699C140.619 74.3699 139.991 75.0804 139.991 76.1737V79.8086ZM145.988 76.283C145.988 74.3152 147.273 72.8394 149.199 72.8394C150.211 72.8394 151.003 73.263 151.399 73.9872L151.495 73.058H153.039V79.467C153.039 81.7217 151.686 83.1292 149.5 83.1292C147.56 83.1292 146.234 82.0224 146.029 80.2185H147.696C147.806 81.0931 148.475 81.6124 149.5 81.6124C150.648 81.6124 151.386 80.8881 151.386 79.7676V78.6471C150.962 79.2757 150.129 79.6719 149.158 79.6719C147.245 79.6719 145.988 78.2371 145.988 76.283ZM147.669 76.242C147.669 77.3762 148.393 78.2234 149.486 78.2234C150.634 78.2234 151.345 77.4172 151.345 76.242C151.345 75.0941 150.648 74.3015 149.486 74.3015C148.379 74.3015 147.669 75.1351 147.669 76.242ZM157.778 73.058H158.748V72.2381C158.748 70.4069 159.719 69.6417 161.181 69.6417C161.44 69.6417 161.755 69.6554 162.042 69.71V71.1312H161.454C160.607 71.1312 160.402 71.5685 160.402 72.2381V73.058H162.014V74.4518H160.402V79.8086H158.748V74.4518H157.778V73.058ZM162.482 76.4196C162.482 74.3152 163.999 72.8667 166.09 72.8667C168.18 72.8667 169.697 74.3152 169.697 76.4196C169.697 78.5241 168.18 79.9726 166.09 79.9726C163.999 79.9726 162.482 78.5241 162.482 76.4196ZM164.149 76.4196C164.149 77.6495 164.942 78.4831 166.09 78.4831C167.238 78.4831 168.03 77.6495 168.03 76.4196C168.03 75.1898 167.238 74.3562 166.09 74.3562C164.942 74.3562 164.149 75.1898 164.149 76.4196ZM175.255 73.0307V74.5748H174.64C173.437 74.5748 172.686 75.2171 172.686 76.5289V79.8086H171.019V73.0717H172.59L172.686 74.0556C172.973 73.386 173.615 72.935 174.517 72.935C174.749 72.935 174.982 72.9623 175.255 73.0307ZM178.051 79.8086H176.383V73.058H177.914L178.051 73.8506C178.392 73.2903 179.075 72.853 180.046 72.853C181.071 72.853 181.781 73.3586 182.136 74.1375C182.478 73.3586 183.271 72.853 184.296 72.853C185.935 72.853 186.837 73.8369 186.837 75.3947V79.8086H185.184V75.832C185.184 74.8618 184.664 74.3562 183.872 74.3562C183.066 74.3562 182.451 74.8755 182.451 75.9823V79.8086H180.784V75.8184C180.784 74.8755 180.278 74.3699 179.485 74.3699C178.693 74.3699 178.051 74.8891 178.051 75.9823V79.8086Z",fill:"white"}),(0,a.createElement)("path",{d:"M204.998 74.3434C205.119 74.4631 205.187 74.6248 205.187 74.7933C205.187 74.9617 205.119 75.1234 204.998 75.2431L200.659 79.4869C200.6 79.5495 200.528 79.5997 200.448 79.6344C200.368 79.6692 200.282 79.6879 200.195 79.6895C200.107 79.691 200.021 79.6752 199.94 79.6432C199.859 79.6112 199.785 79.5636 199.723 79.5031C199.661 79.4427 199.613 79.3707 199.58 79.2914C199.547 79.2121 199.531 79.1272 199.533 79.0418C199.534 78.9563 199.553 78.872 199.589 78.7939C199.624 78.7158 199.676 78.6455 199.74 78.5873L202.968 75.4298L194.125 75.4298C193.953 75.4298 193.787 75.3628 193.665 75.2434C193.543 75.124 193.474 74.9621 193.474 74.7933C193.474 74.6244 193.543 74.4625 193.665 74.3431C193.787 74.2237 193.953 74.1567 194.125 74.1567L202.968 74.1567L199.74 70.9993C199.625 70.8786 199.562 70.719 199.565 70.5541C199.568 70.3891 199.636 70.2318 199.756 70.1152C199.875 69.9985 200.036 69.9317 200.204 69.9288C200.373 69.9259 200.536 69.9871 200.659 70.0996L204.998 74.3434Z",fill:"white"}))}),null),innerBlocks:[["gutena/existing-forms"]],scope:["block"]});const g=u;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var a in l)({}).hasOwnProperty.call(l,a)&&(e[a]=l[a])}return e},p.apply(null,arguments)}const d=window.lodash,f=e=>null==e||""===e,h=(e,t,l="",a="")=>{let n=[];return e.forEach(e=>{if(t===e.name)(f(l)||f(a)||f(e.attributes[l])||a===e.attributes[l])&&n.push(e);else if(!f(e.innerBlocks)&&0<e.innerBlocks.length){let r=h(e.innerBlocks,t,l,a);n=[...n,...r]}}),n},_=window.wp.blockEditor,y=(window.wp.editor,window.wp.coreData),b=window.wp.data,x=e=>{const{rangeLabel:t,attrValue:l,onChangeFunc:n,rangeMin:r,rangeMax:o,rangeStep:i,attrUnits:m=["px","em","rem","vh","vw"]}=e,c=(0,s.__experimentalUseCustomUnits)({availableUnits:m,defaultValues:{px:0,em:0,rem:0,vh:0,vw:0,"%":0}}),u=(e,t="unit")=>{const[l,a]=(0,s.__experimentalParseQuantityAndUnitFromRawValue)(e);return"unit"===t?null==a?"px":a:l};return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("fieldset",{className:"components-border-radius-control"},(0,a.createElement)("legend",null,f(t)?"":t),(0,a.createElement)("div",{className:"components-border-radius-control__wrapper"},(0,a.createElement)(s.__experimentalUnitControl,{units:c,value:l,onChange:e=>n(e),className:"components-border-radius-control__unit-control",size:"__unstable-large"}),(0,a.createElement)(s.RangeControl,{value:u(l,"Qty"),withInputField:!1,onChange:e=>n(e+u(l)),min:r,max:o[u(l)],step:i,className:"components-border-radius-control__range-control"}))))},C=({clientId:e,name:t,setAttributes:l})=>{const{blockType:o,defaultVariation:i,variations:s}=(0,b.useSelect)(e=>{const{getBlockVariations:l,getBlockType:a,getDefaultBlockVariation:n}=e(r.store);return{blockType:a(t),defaultVariation:n(t,"block"),variations:l(t,"block")}},[t]),{replaceInnerBlocks:m}=(0,b.useDispatch)(_.store),c=(0,_.useBlockProps)();return(0,a.useEffect)(()=>{const e=document.querySelector(".wp-block-gutena-forms .block-editor-block-variation-picker__skip");if(e){const t=Array.from(e.childNodes).find(e=>e.nodeType===Node.TEXT_NODE||e.nodeType===Node.ELEMENT_NODE&&"Skip"===e.textContent?.trim());if(t)t.nodeType===Node.TEXT_NODE?t.textContent=t.textContent.replace("Skip",(0,n.__)("Continue with default","gutena-forms")):t.textContent=(0,n.__)("Continue with default","gutena-forms");else{const t=e.textContent;t.includes("Skip")&&(e.textContent=t.replace("Skip",(0,n.__)("Continue with default","gutena-forms")))}}},[s]),(0,a.createElement)("div",c,(0,a.createElement)(_.__experimentalBlockVariationPicker,{icon:(0,d.get)(o,["icon","src"]),label:(0,d.get)(o,["title"]),variations:s,onSelect:(t=i)=>{t.attributes&&l(t.attributes),t.innerBlocks&&m(e,(0,r.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))},E=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"gutena/forms","version":"1.0.0","title":"Form","category":"gutena","icon":"feedback","description":"Light-weight forms inside the block editor","keywords":["form","block","contact form","form block","forms"],"attributes":{"formID":{"type":"string","default":""},"formName":{"type":"string","default":"Contact Form"},"formClasses":{"type":"string","default":""},"showLabel":{"type":"boolean","default":true},"showLabelHorizontally":{"type":"boolean","default":false},"inputLabelGap":{"type":"string","default":"10px"},"inputBgColor":{"type":"string","default":"transparent"},"inputBorderWidth":{"type":"string","default":"1px"},"inputBorderRadius":{"type":"string","default":"0px"},"inputBorderColor":{"type":"string","default":""},"inputFocusBorderColor":{"type":"string","default":""},"inputBottomBorderOnly":{"type":"boolean","default":false},"labelTypography":{"type":"object","default":{"fontSize":"1rem","lineHeight":"","fontWeight":"400"}},"labelColor":{"type":"string","default":""},"placeholderTypography":{"type":"object","default":{"fontSize":"13px","lineHeight":"","fontWeight":"400"}},"placeholderColor":{"type":"string","default":"#808080"},"afterSubmitAction":{"type":"string","default":"message"},"afterSubmitHide":{"type":"boolean","default":false},"redirectUrl":{"type":"string","default":""},"emailFromName":{"type":"string","default":""},"adminEmails":{"type":"string","default":""},"replyToName":{"type":"string","default":""},"replyToLastName":{"type":"string","default":""},"replyToEmail":{"type":"string","default":""},"adminEmailSubject":{"type":"string","default":""},"emailNotifyAdmin":{"type":"boolean","default":true},"emailNotifyUser":{"type":"boolean","default":false},"userEmailSubject":{"type":"string","default":""},"userEmailTemplate":{"type":"string","default":""},"adminEmailTemplate":{"type":"string","default":""},"messages":{"type":"object","default":{"requiredField":"","incorrectEmail":""}},"description":{"type":"string","default":""},"settings":{"type":"object","default":{}},"formStyle":{"type":"string","default":""},"recaptcha":{"type":"object","default":{"enable":false,"type":"v3","site_key":"","secret_key":"","thresholdScore":"0.50"}},"cloudflareTurnstile":{"type":"object","default":{"enable":false,"site_key":"","secret_key":""}},"honeypot":{"type":"object","default":{"enable":false,"timeCheckValue":4}}},"providesContext":{"gutena-forms/formID":"formID"},"supports":{"__experimentalSettings":true,"align":["wide","full"],"color":{"background":true,"text":true},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":{"color":true,"radius":true,"style":true,"width":true}},"spacing":{"margin":true,"padding":true,"blockGap":true},"html":false,"__experimentalLayout":true},"textdomain":"gutena-forms","editorScript":"file:./index.js","script":"file:./script.js","editorStyle":"file:./index.css","style":"file:./style-index.css"}');(0,r.registerBlockType)(E,{icon:()=>(0,a.createElement)(s.Icon,{icon:()=>(0,a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"#ffffff"},(0,a.createElement)("rect",{x:"2.75",y:"3.75",width:"18.5",height:"16.5",stroke:"#0EA489",strokeWidth:"1.5"}),(0,a.createElement)("rect",{x:"6",y:"7",width:"12",height:"1",fill:"#0EA489"}),(0,a.createElement)("rect",{x:"6",y:"11",width:"12",height:"1",fill:"#0EA489"}),(0,a.createElement)("rect",{x:"6",y:"15",width:"12",height:"1",fill:"#0EA489"}))}),variations:g,edit:function(e){const{className:t,attributes:l,setAttributes:r,isSelected:o,clientId:i}=e,{formID:m,formName:c,formClasses:u,showLabel:d,inputLabelGap:E,inputBgColor:w,inputBorderWidth:k,inputBorderRadius:M,inputBorderColor:v,inputFocusBorderColor:N,inputBottomBorderOnly:T,labelTypography:D,labelColor:B,placeholderTypography:H,placeholderColor:S,afterSubmitAction:V,afterSubmitHide:I,redirectUrl:L,emailFromName:A,adminEmails:F,replyToEmail:j,replyToName:z,replyToLastName:Z,adminEmailSubject:O,emailNotifyAdmin:R,emailNotifyUser:P,messages:W={},formStyle:U,style:q,recaptcha:Q,cloudflareTurnstile:Y,honeypot:G}=l,{getClientIdsOfDescendants:$,getBlock:X}=(0,b.useSelect)(_.store),[K]=(0,_.useSettings)("typography.fontFamilies"),J=(e=>{if(f(e))return[];if(!Array.isArray(e)){const{theme:t,custom:l}=e;e=void 0!==t?t:[],void 0!==l&&(e=[...e,...l])}return f(e)||0==e.length?[]:e})(K),ee=0<J.length,te=()=>{let e=[{label:(0,n.__)("Select","gutena-forms"),value:""}];const t=X(i);if(!f(t)){let l=h(t.innerBlocks,"gutena/form-field","fieldType","email");if(0<l.length)for(let t=0;t<l.length;t++){let a=l[t].attributes;"email"!==a.fieldType||f(a.nameAttr)||e.push({label:a.fieldName,value:a.nameAttr})}}return e},le=()=>{let e=[{label:(0,n.__)("Select","gutena-forms"),value:""}];const t=X(i);if(!f(t)){let l=h(t.innerBlocks,"gutena/form-field","fieldType","text");if(0<l.length)for(let t=0;t<l.length;t++){let a=l[t].attributes;"text"!==a.fieldType||f(a.nameAttr)||e.push({label:a.fieldName,value:a.nameAttr})}}return e};(0,a.useEffect)(()=>{let e=!0;if(e&&f(m)){const e=new Date;let t=Math.random().toString(16).slice(5);t=t.replace(/\W/g,"");let l="gutena_forms_ID_"+t+"_"+e.getDate()+(e.getMonth()+1)+e.getFullYear()+e.getHours()+e.getMinutes()+e.getSeconds();f(Q)||!f(Q.secret_key)||f(gutenaFormsBlock)||f(gutenaFormsBlock.grecaptcha_type)||f(gutenaFormsBlock.grecaptcha_site_key)||f(gutenaFormsBlock.grecaptcha_secret_key)?r({formID:l}):r({recaptcha:{...Q,type:gutenaFormsBlock.grecaptcha_type,site_key:gutenaFormsBlock.grecaptcha_site_key,secret_key:gutenaFormsBlock.grecaptcha_secret_key},formID:l})}if(e&&f(j)&&f(z)){let e=te(),t=le();1<e.length&&!f(e[1].value)&&1<t.length&&!f(t[1].value)&&r({replyToEmail:e[1].value,replyToName:t[1].value})}return()=>{e=!1}},[]);const ae=(0,b.useSelect)(e=>e(_.store).getBlocks(i).length>0,[i]),ne=(0,b.useSelect)(e=>{const t=e(_.store).getBlocks(i);if(f(t)||0===t.length)return!1;const l=h(t,"gutena/existing-forms");return!f(l)&&l.length>0},[i]),re=(0,b.useSelect)(e=>""==F?e(y.store).getUsers({who:"authors"}):[],[]);(0,a.useEffect)(()=>{let e=!0;return e&&""==F&&null!=re&&void 0!==re[0].email&&null!==re[0].email&&r({adminEmails:re[0].email}),()=>{e=!1}},[re]);const oe=f(g)||f(g[0].innerBlocks)?[["gutena/field-group"]]:g[0].innerBlocks;(0,s.__experimentalUseCustomUnits)({availableUnits:["px","em","rem","vh","vw"],defaultValues:{px:0,em:0,rem:0,vh:0,vw:0}}),(0,a.useEffect)(()=>{let e=!0;if(e){let e=` .${ie()} {\n\t\t\t\t${f(B)?"":"--wp--gutena-forms--label-color:"+B+";"}\n\t\t\t\t${f(S)?"":"--wp--gutena-forms--placeholder-color:"+S+";"}\n\t\t\t\t${f(w)?"":"--wp--gutena-forms--input-bg-color:"+w+";"}\n\t\t\t\t${f(v)?"":"--wp--gutena-forms--input-border-color:"+v+";"}\n\t\t\t\t${f(N)?"":"--wp--gutena-forms--input-focus-border-color:"+N+";"}\n\t\t\t\t${f(D?.fontFamily)?"":"--wp--gutena-forms--label-font-family:"+D?.fontFamily+";"}\n\t\t\t\t${f(D)?"":"--wp--gutena-forms--label-font-size:"+D?.fontSize+";"}\n\t\t\t\t${f(D)?"":"--wp--gutena-forms--label-line-height:"+D?.lineHeight+";"}\n\t\t\t\t${f(D)?"":"--wp--gutena-forms--label-font-weight:"+D?.fontWeight+";"}\n\t\t\t\t${f(H?.fontFamily)?"":"--wp--gutena-forms--placeholder-font-family:"+H?.fontFamily+";"}\n\t\t\t\t${f(H)?"":"--wp--gutena-forms--placeholder-font-size:"+H?.fontSize+";"}\n\t\t\t\t${f(H)?"":"--wp--gutena-forms--placeholder-line-height:"+H?.lineHeight+";"}\n\t\t\t\t${f(H)?"":"--wp--gutena-forms--placeholder-font-weight:"+H?.fontWeight+";"}\n\t\t\t\t${f(k)?"":"--wp--gutena-forms--input-border-width:"+k+";"}\n\t\t\t\t${f(M)?"":"--wp--gutena-forms--input-border-radius:"+M+";"}\n\t\t\t\t${f(B)?"":"--wp--gutena-forms--label-color:"+B+";"}\n\t\t\t\t${f(B)?"":"--wp--gutena-forms--label-color:"+B+";"}\n\n\t\t\t\t--wp--style--block-gap:${void 0===q?.spacing?.blockGap?"2em":q?.spacing?.blockGap};\n\t\t\t}\n\n\n\t\t\t${f(q?.spacing?.blockGap)?"":`.editor-styles-wrapper .${ie()} > .block-editor-inner-blocks > .block-editor-block-list__layout > * + * {\n\t\t\t\t\t\tmargin-block-start: ${q?.spacing?.blockGap};\n\t\t\t\t\t\tmargin-block-end: 0;\n\t\t\t\t\t}\n\t\t\t\t\t`}\n\n\n\t\t\t .${ie()} .wp-block-gutena-field-group {--wp--style--block-gap:${void 0===E?"0.5em":E};}\n\t\t\t`;e=e.replaceAll("\n"," ").replaceAll("\t"," "),r({formStyle:e})}return()=>{e=!1}},[c,E,w,k,M,v,N,D,B,H,S,q]);const ie=()=>"gutena-forms-"+(null==c?"contact-form":c.toLowerCase().replace(/ /g,"-"));(0,a.useEffect)(()=>{let e=!0;if(e){let e=ie();e+=" "+m,e+=d?"":" not-show-form-labels",e+=T?" input-box-border-bottom-only":"",e+=I?" hide-form-after-submit":"",e+=V?" after_submit_"+V:"",e+=f(D?.fontFamily)?"":" has-label-font-family",e+=f(H?.fontFamily)?"":" has-placeholder-font-family",r({formClasses:e})}return()=>{e=!1}},[d,T,c,m,I,V,D,H]);const se=(0,_.useBlockProps)({className:u});return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("style",null,U),!ne&&(0,a.createElement)(_.InspectorControls,null,(0,a.createElement)(s.PanelBody,{title:"Form settings",initialOpen:!0},(0,a.createElement)(s.TextControl,{label:(0,n.__)("Form name","gutena-forms"),value:c,onChange:e=>r({formName:e})}),(0,a.createElement)(s.ToggleControl,{label:(0,n.__)("Show label","gutena-forms"),help:d?(0,n.__)("Toggle to hide input label","gutena-forms"):(0,n.__)("Toggle to show input label","gutena-forms"),checked:d,onChange:e=>r({showLabel:e})}),(0,a.createElement)("p",null,(0,a.createElement)("span",{className:"block-editor-block-card__title"},(0,n.__)("Note : ","gutena-forms")),(0,a.createElement)("span",{className:"gf-text-muted"},(0,a.createElement)("span",null,(0,n.__)("To reuse this form, please make it a ","gutena-forms")),(0,a.createElement)("a",{href:"https://gutenaforms.com/reuse-gutena-forms-on-multiple-pages",target:"_blank"},(0,n.__)("Synced Patterns","gutena-forms")),(0,a.createElement)("span",null,(0,n.__)(" ( Reusable Block ). Avoid copying or duplicating this block.","gutena-forms"))))),(0,a.createElement)(s.PanelBody,{title:"Google reCAPTCHA",initialOpen:!1},(0,a.createElement)(s.__experimentalVStack,null,(0,a.createElement)("p",null,(0,a.createElement)("a",{href:"https://gutenaforms.com/how-to-generate-google-recaptcha-site-key-and-secret-key",target:"_blank"},(0,n.__)("reCAPTCHA","gutena-forms"))," ",(0,n.__)(" v3 and v2 help you protect your sites from fraudulent activities, spam, and abuse. By using this integration in your forms, you can block spam form submissions.","gutena-forms")," "),(0,a.createElement)(s.ToggleControl,{label:(0,n.__)("Enable","gutena-forms"),checked:Q?.enable,onChange:e=>r({recaptcha:{...Q,enable:e}})}),!f(Q?.enable)&&Q?.enable&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(s.RadioControl,{className:"gutena-forms-horizontal-radio",label:(0,n.__)("reCAPTCHA Type","gutena-forms"),selected:Q?.type,options:[{label:"v2",value:"v2"},{label:"v3",value:"v3"}],onChange:e=>r({recaptcha:{...Q,type:e}})}),(0,a.createElement)(s.TextControl,{label:(0,n.__)("Site Key","gutena-forms"),value:Q?.site_key,onChange:e=>r({recaptcha:{...Q,site_key:e}})}),(0,a.createElement)(s.TextControl,{label:(0,n.__)("Secret key","gutena-forms"),value:Q?.secret_key,onChange:e=>r({recaptcha:{...Q,secret_key:e}})})))),(0,a.createElement)(s.PanelBody,{title:"Cloudflare Turnstile",initialOpen:!1},(0,a.createElement)(s.__experimentalVStack,null,(0,a.createElement)("p",null,(0,a.createElement)("a",null,"Cloudflare Turnstile")),(0,a.createElement)(s.ToggleControl,{label:"Enable",checked:Y?.enable,onChange:e=>r({cloudflareTurnstile:{...Y,enable:e}})}),!f(Y?.enable)&&Y?.enable&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(s.TextControl,{label:(0,n.__)("Site Key","gutena-forms"),value:Y?.site_key,onChange:e=>r({cloudflareTurnstile:{...Y,site_key:e}})}),(0,a.createElement)(s.TextControl,{label:(0,n.__)("Secret Key","gutena-forms"),value:Y?.secret_key,onChange:e=>r({cloudflareTurnstile:{...Y,secret_key:e}})})))),(0,a.createElement)(s.PanelBody,{title:"Honeypot Field",initialOpen:!1},(0,a.createElement)(s.__experimentalVStack,null,(0,a.createElement)("p",null,"Honeypot field settings"),(0,a.createElement)(s.ToggleControl,{label:"enable",checked:G?.enable,onChange:e=>{r({honeypot:{...G,enable:e}})}}),!f(G?.enable)&&G?.enable&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(s.__experimentalNumberControl,{label:(0,n.__)("Time limit (in seconds)","gutena-forms"),value:G?.timeCheckValue,min:1,onChange:e=>{r({honeypot:{...G,timeCheckValue:e}})},description:"Adds a time-based spam check that detects submissions made too quickly, a common bot behavior. The default threshold is 4 seconds, adjustable as needed. If unsure, leave it off."})))),(0,a.createElement)(_.PanelColorSettings,{title:(0,n.__)("Form colors","gutena-forms"),colorSettings:[{value:B,onChange:e=>r({labelColor:e}),label:(0,n.__)("Label color","gutena-forms"),disableCustomColors:!1},{value:S,onChange:e=>r({placeholderColor:e}),label:(0,n.__)("Placeholder color","gutena-forms"),disableCustomColors:!1},{value:w,onChange:e=>r({inputBgColor:e}),label:(0,n.__)("Input box background color","gutena-forms"),disableCustomColors:!1},{value:v,onChange:e=>r({inputBorderColor:e}),label:(0,n.__)("Input box border color","gutena-forms"),disableCustomColors:!1},{value:N,onChange:e=>r({inputFocusBorderColor:e}),label:(0,n.__)("Input box on focus border color","gutena-forms"),disableCustomColors:!1}],enableAlpha:!0}),d?(0,a.createElement)(s.__experimentalToolsPanel,{label:(0,n.__)("Label typography","gutena-forms"),resetAll:()=>r({labelTypography:{...D,fontSize:void 0,lineHeight:void 0,fontWeight:void 0,fontFamily:void 0}})},(0,a.createElement)(s.__experimentalToolsPanelItem,{hasValue:()=>!!D?.fontFamily,label:(0,n.__)("Font Family"),onDeselect:()=>r({labelTypography:{...D,fontFamily:void 0}})},ee&&(0,a.createElement)(_.__experimentalFontFamilyControl,{fontFamilies:J,value:D?.fontFamily,onChange:e=>r({labelTypography:{...D,fontFamily:e}}),size:"__unstable-large",__nextHasNoMarginBottom:!0})),(0,a.createElement)(s.__experimentalToolsPanelItem,{hasValue:()=>!!D?.fontSize,label:(0,n.__)("Font size"),onDeselect:()=>r({labelTypography:{...D,fontSize:void 0}})},(0,a.createElement)(_.FontSizePicker,{onChange:e=>r({labelTypography:{...D,fontSize:e}}),value:D?.fontSize,withReset:!1,__nextHasNoMarginBottom:!0})),(0,a.createElement)(s.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!D?.lineHeight,label:(0,n.__)("Line height"),onDeselect:()=>r({labelTypography:{...D,lineHeight:void 0}})},(0,a.createElement)(_.LineHeightControl,{__unstableInputWidth:"100%",__nextHasNoMarginBottom:!0,value:D?.lineHeight,onChange:e=>r({labelTypography:{...D,lineHeight:e}})})),(0,a.createElement)(s.__experimentalToolsPanelItem,{hasValue:()=>!!D?.fontWeight,label:(0,n.__)("Font weight"),onDeselect:()=>r({labelTypography:{...D,fontWeight:void 0}})},(0,a.createElement)(s.RangeControl,{label:(0,n.__)("Font weight","gutena-forms"),value:D?.fontWeight,onChange:e=>r({labelTypography:{...D,fontWeight:e}}),min:100,max:900,step:100}))):"",(0,a.createElement)(s.__experimentalToolsPanel,{label:(0,n.__)("Placeholder typography","gutena-forms"),resetAll:()=>r({placeholderTypography:{...H,fontSize:void 0,lineHeight:void 0,fontWeight:void 0,fontFamily:void 0}})},(0,a.createElement)(s.__experimentalToolsPanelItem,{hasValue:()=>!!H?.fontFamily,label:(0,n.__)("Font Family"),onDeselect:()=>r({placeholderTypography:{...H,fontFamily:void 0}})},ee&&(0,a.createElement)(_.__experimentalFontFamilyControl,{fontFamilies:J,value:H?.fontFamily,onChange:e=>r({placeholderTypography:{...H,fontFamily:e}}),size:"__unstable-large",__nextHasNoMarginBottom:!0})),(0,a.createElement)(s.__experimentalToolsPanelItem,{hasValue:()=>!!H?.fontSize,label:(0,n.__)("Font size"),onDeselect:()=>r({placeholderTypography:{...H,fontSize:void 0}})},(0,a.createElement)(_.FontSizePicker,{onChange:e=>r({placeholderTypography:{...H,fontSize:e}}),value:H?.fontSize,withReset:!1,__nextHasNoMarginBottom:!0})),(0,a.createElement)(s.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!H?.lineHeight,label:(0,n.__)("Line height"),onDeselect:()=>r({placeholderTypography:{...H,lineHeight:void 0}})},(0,a.createElement)(_.LineHeightControl,{__unstableInputWidth:"100%",__nextHasNoMarginBottom:!0,value:H?.lineHeight,onChange:e=>r({placeholderTypography:{...H,lineHeight:e}})})),(0,a.createElement)(s.__experimentalToolsPanelItem,{hasValue:()=>!!H?.fontWeight,label:(0,n.__)("Font weight"),onDeselect:()=>r({placeholderTypography:{...H,fontWeight:void 0}})},(0,a.createElement)(s.RangeControl,{label:(0,n.__)("Font weight","gutena-forms"),value:H?.fontWeight,onChange:e=>r({placeholderTypography:{...H,fontWeight:e}}),min:100,max:900,step:100}))),(0,a.createElement)(s.PanelBody,{title:"Input settings",className:"gutena-forms-panel",initialOpen:!1},(0,a.createElement)(x,{rangeLabel:(0,n.__)("Label gap","gutena-forms"),attrValue:E,onChangeFunc:e=>r({inputLabelGap:e}),rangeMin:0,rangeMax:{px:200,em:10,rem:5},rangeStep:1}),(0,a.createElement)(x,{rangeLabel:(0,n.__)("Border width","gutena-forms"),attrValue:k,onChangeFunc:e=>r({inputBorderWidth:e}),rangeMin:1,rangeMax:{px:200,em:10,rem:5},rangeStep:1}),(0,a.createElement)(x,{rangeLabel:(0,n.__)("Border radius","gutena-forms"),attrValue:M,onChangeFunc:e=>r({inputBorderRadius:e}),rangeMin:0,rangeMax:{px:200,em:10,rem:5},rangeStep:1}),(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,n.__)("Bottom border only","gutena-forms"),help:T?(0,n.__)("Toggle to show all side border","gutena-forms"):(0,n.__)("Toggle to show show only bottom border","gutena-forms"),checked:T,onChange:e=>r({inputBottomBorderOnly:e})}))),(0,a.createElement)(s.PanelBody,{title:"Notification",initialOpen:!0},(0,a.createElement)(s.TextControl,{label:(0,n.__)("From Name","gutena-forms"),value:A,onChange:e=>r({emailFromName:e})}),(0,a.createElement)(s.ToggleControl,{label:(0,n.__)("Admin notification","gutena-forms"),help:R?(0,n.__)("Toggle to stop email notification","gutena-forms"):(0,n.__)("Toggle to enable email notification after form submission","gutena-forms"),checked:R,onChange:e=>r({emailNotifyAdmin:e})}),R?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(s.TextControl,{label:(0,n.__)("Email to","gutena-forms"),value:F,onChange:e=>r({adminEmails:e})}),(0,a.createElement)(s.TextControl,{label:(0,n.__)("Email subject","gutena-forms"),value:O,onChange:e=>r({adminEmailSubject:e})}),(0,a.createElement)(s.SelectControl,{label:(0,n.__)("Reply To Email","gutena-forms"),value:j,options:te(),onChange:e=>r({replyToEmail:e}),help:(0,n.__)("Select email field for reply to address","gutena-forms"),__nextHasNoMarginBottom:!0}),(0,a.createElement)(s.SelectControl,{label:(0,n.__)("Reply To Name ( First Name )","gutena-forms"),value:z,options:le(),onChange:e=>r({replyToName:e}),help:(0,n.__)("Select first or full name field for reply to address","gutena-forms"),__nextHasNoMarginBottom:!0}),(0,a.createElement)(s.SelectControl,{label:(0,n.__)("Reply To Name ( Last Name )","gutena-forms"),value:Z,options:le(),onChange:e=>r({replyToLastName:e}),help:(0,n.__)("Select last name field for reply to address","gutena-forms"),__nextHasNoMarginBottom:!0})):""),(0,a.createElement)(s.PanelBody,{title:(0,n.__)("Confirmation","gutena-forms"),initialOpen:!0},(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.SelectControl,{label:"Action",value:V,options:[{label:(0,n.__)("Message","gutena-forms"),value:"message"},{label:(0,n.__)("Send to URL","gutena-forms"),value:"redirect_url"}],onChange:e=>r({afterSubmitAction:e}),help:(0,n.__)("Confirmation and error message are available for edit at the bottom of the form","gutena-forms"),__nextHasNoMarginBottom:!0})),"redirect_url"===V?(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.TextControl,{type:"url",label:(0,n.__)("Send to URL","gutena-forms"),value:L,onChange:e=>r({redirectUrl:e})})):"","message"===V?(0,a.createElement)(s.PanelRow,null,(0,a.createElement)(s.ToggleControl,{label:(0,n.__)("Hide form after submission","gutena-forms"),help:I?(0,n.__)("Toggle to not hide form","gutena-forms"):(0,n.__)("Toggle to hide form","gutena-forms"),checked:I,onChange:e=>r({afterSubmitHide:e})})):""),(0,a.createElement)(s.PanelBody,{title:(0,n.__)("Messages","gutena-forms"),initialOpen:!1},(0,a.createElement)(s.TextControl,{type:"text",label:(0,n.__)("Required Field","gutena-forms"),value:f(W?.required_msg)?"":W?.required_msg,onChange:e=>r({messages:{...W,required_msg:e}}),placeholder:gutenaFormsBlock?.required_msg}),(0,a.createElement)(s.TextControl,{type:"text",label:(0,n.__)("Required Select Field","gutena-forms"),value:f(W?.required_msg_select)?"":W?.required_msg_select,onChange:e=>r({messages:{...W,required_msg_select:e}}),placeholder:gutenaFormsBlock?.required_msg_select}),(0,a.createElement)(s.TextControl,{type:"text",label:(0,n.__)("Required Checkbox or Radio Field","gutena-forms"),value:f(W?.required_msg_check)?"":W?.required_msg_check,onChange:e=>r({messages:{...W,required_msg_check:e}}),placeholder:gutenaFormsBlock?.required_msg_check}),(0,a.createElement)(s.TextControl,{type:"text",label:(0,n.__)("Required Opt-in checkbox","gutena-forms"),value:f(W?.required_msg_optin)?"":W?.required_msg_optin,onChange:e=>r({messages:{...W,required_msg_optin:e}}),help:(0,n.__)("Privacy policy, Terms","gutena-forms"),placeholder:gutenaFormsBlock?.required_msg_optin}),(0,a.createElement)(s.TextControl,{type:"text",label:(0,n.__)("Invalid Email","gutena-forms"),value:f(W?.invalid_email_msg)?"":W?.invalid_email_msg,onChange:e=>r({messages:{...W,invalid_email_msg:e}}),placeholder:gutenaFormsBlock?.invalid_email_msg}),(0,a.createElement)(s.TextControl,{type:"text",label:(0,n.__)("Minimum value","gutena-forms"),value:f(W?.min_value_msg)?"":W?.min_value_msg,onChange:e=>r({messages:{...W,min_value_msg:e}}),placeholder:gutenaFormsBlock?.min_value_msg}),(0,a.createElement)(s.TextControl,{type:"text",label:(0,n.__)("Maximum value","gutena-forms"),value:f(W?.max_value_msg)?"":W?.max_value_msg,onChange:e=>r({messages:{...W,max_value_msg:e}}),placeholder:gutenaFormsBlock?.max_value_msg}))),ae?(0,a.createElement)("form",p({method:"post"},se),(0,a.createElement)("input",{type:"hidden",name:"formid",value:m}),(0,a.createElement)(_.InnerBlocks,{template:oe,allowedBlocks:["core/columns","core/group","core/image","core/paragraph","gutena/field-group","core/buttons"]})):(0,a.createElement)(C,e))},save:function(e){const{attributes:t}=e,{formID:l,formClasses:n}=t,r=_.useBlockProps.save({className:n});return(0,a.createElement)("form",p({method:"post"},r),(0,a.createElement)("input",{type:"hidden",name:"formid",value:l}),(0,a.createElement)(_.InnerBlocks.Content,null))}});const w=()=>(0,a.createElement)(s.Icon,{icon:()=>(0,a.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("g",{clipPath:"url(#clip0_293_90)"},(0,a.createElement)("path",{d:"M19.4393 10L14.6798 10.6803L14 15.44L18.4195 19.8592C18.5097 19.9494 18.6319 20 18.7594 20C18.8869 20 19.0092 19.9494 19.0993 19.8592L23.8592 15.0996C23.9494 15.0094 24 14.8871 24 14.7597C24 14.6322 23.9494 14.5099 23.8592 14.4198L19.4393 10ZM19.0993 11.0202L22.8395 14.7597L18.7594 18.839L15.0198 15.0996L15.5294 11.5298L19.0993 11.0202ZM18.08 14.0798C18.2604 13.8994 18.3617 13.6547 18.3617 13.3996C18.3617 13.2733 18.3368 13.1482 18.2884 13.0315C18.24 12.9148 18.1691 12.8088 18.0798 12.7195C17.9905 12.6302 17.8844 12.5594 17.7677 12.511C17.651 12.4627 17.5259 12.4379 17.3995 12.4379C17.1444 12.4379 16.8998 12.5393 16.7194 12.7197C16.539 12.9002 16.4377 13.1448 16.4378 13.4C16.4378 13.6551 16.5392 13.8997 16.7196 14.0801C16.9001 14.2605 17.1448 14.3618 17.3999 14.3617C17.655 14.3617 17.8997 14.2603 18.08 14.0798Z",fill:"#0EA489",stroke:"#0EA489",strokeWidth:"0.5"}),(0,a.createElement)("rect",{x:"2",y:"4",width:"20",height:"2",fill:"#0EA489"}),(0,a.createElement)("rect",{x:"2",y:"11",width:"9",height:"2",fill:"#0EA489"}),(0,a.createElement)("rect",{x:"2",y:"18",width:"7",height:"2",fill:"#0EA489"})),(0,a.createElement)("defs",null,(0,a.createElement)("clipPath",{id:"clip0_293_90"},(0,a.createElement)("rect",{width:"24",height:"24",fill:"white"}))))});(0,r.registerBlockVariation)("core/heading",{name:"heading-input-label-gutena",title:(0,n.__)("Label","gutena-forms"),description:"Form input label",category:"gutena",keywords:["label","form label","gutena forms label"],attributes:{level:3,placeholder:"Label",className:"heading-input-label-gutena"},icon:w,scope:["block"],isActive:({className:e},t)=>void 0!==e&&null!==typeof e&&0<=e.indexOf(t.className)}),(0,r.registerBlockVariation)("core/buttons",{name:"gutena-forms-submit-buttons",title:(0,n.__)("Form Submit button","gutena-forms"),description:"Gutena forms submit button",category:"gutena",attributes:{className:"gutena-forms-submit-buttons"},icon:w,scope:["block"],innerBlocks:[["core/button",{className:"gutena-forms-submit-button",placeholder:(0,n.__)("Submit","gutena-forms")}]],isActive:({className:e},t)=>void 0!==e&&null!==typeof e&&0<=e.indexOf(t.className)});const k=()=>(0,a.createElement)(s.Icon,{icon:()=>(0,a.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{d:"M8 16C3.5816 16 0 12.4184 0 8C0 3.5816 3.5816 0 8 0C12.4184 0 16 3.5816 16 8C16 12.4184 12.4184 16 8 16ZM8 14.4C9.69739 14.4 11.3253 13.7257 12.5255 12.5255C13.7257 11.3253 14.4 9.69739 14.4 8C14.4 6.30261 13.7257 4.67475 12.5255 3.47452C11.3253 2.27428 9.69739 1.6 8 1.6C6.30261 1.6 4.67475 2.27428 3.47452 3.47452C2.27428 4.67475 1.6 6.30261 1.6 8C1.6 9.69739 2.27428 11.3253 3.47452 12.5255C4.67475 13.7257 6.30261 14.4 8 14.4ZM7.2 10.4H8.8V12H7.2V10.4ZM7.2 4H8.8V8.8H7.2V4Z",fill:"#C51919"}))});(0,r.registerBlockVariation)("core/paragraph",{name:"gutena-forms-field-error-msg",title:(0,n.__)("Field Error message","gutena-forms"),description:"Gutena Forms Field Error message",category:"gutena",attributes:{dropCap:!1,placeholder:"Thanks..",className:"gutena-forms-field-error-msg"},icon:k,scope:["block"],isActive:({className:e},t)=>void 0!==e&&null!==typeof e&&0<=e.indexOf(t.className)}),(0,r.registerBlockVariation)("core/paragraph",{name:"gutena-forms-error-text",title:(0,n.__)("Error text","gutena-forms"),description:(0,n.__)("Gutena forms error text","gutena-forms"),category:"gutena",attributes:{dropCap:!1,className:"gutena-forms-error-text"},icon:k,scope:["block"],isActive:({className:e},t)=>void 0!==e&&null!==typeof e&&0<=e.indexOf(t.className)}),i()(()=>{"undefined"!=typeof wp&&void 0!==wp.data&&wp.data.dispatch("core/edit-post").hideBlockTypes(["gutena/form-field","gutena/field-group","gutena/existing-forms"])}),gutenaFormsBlock.is_pro||setInterval(function(){var e;(e=["editor-block-list-item-gutena-date-field-group","editor-block-list-item-gutena-time-field-group","editor-block-list-item-gutena-phone-field-group","editor-block-list-item-gutena-country-field-group","editor-block-list-item-gutena-state-field-group","editor-block-list-item-gutena-file-upload-field-group","editor-block-list-item-gutena-url-field-group","editor-block-list-item-gutena-hidden-field-group","editor-block-list-item-gutena-password-field-group","editor-block-list-item-gutena-rating-field-group"]).forEach(e=>{let t=document.getElementsByClassName(e);t.length&&t[0]&&(t[0].parentNode.setAttribute("draggable","false"),t[0].setAttribute("aria-disabled","true"),t[0].style.pointerEvents="none",t[0].style.userSelect="none",t[0].style.opacity="0.5",t[0].setAttribute("disabled","true"),t[1]&&(t[1].parentNode.setAttribute("draggable","false"),t[1].setAttribute("aria-disabled","true"),t[1].style.pointerEvents="none",t[1].style.userSelect="none",t[1].style.opacity="0.5",t[1].setAttribute("disabled","true")))});const t=(e,t)=>-1!==e.indexOf(t);if((e=document.getElementsByClassName("block-editor-inserter__panel-title")).length)for(var l=0;l<e.length;l++){var a=e[l];t(a.innerText,"GUTENA FORMS PRO")&&(a.parentNode.style.display="block",a.innerHTML='Gutena Forms Premium Fields\n\t\t\t\t\t\t<br />\n\t\t\t\t\t\t<a target="_blank" href="https://gutenaforms.com/pricing/?utm_source=editor&utm_medium=website&utm_campaign=free_plugin" style="background-color: #2ab399;color: #fff;padding: 10px;font-size: 12px;border: none;border-radius: 4px;cursor: pointer;transition: background-color .3s;margin-top: 16px;max-width: 280px;width: 100%;font-weight: 600;display: block;text-decoration: none;text-align: center;">\n\t\t\t\t\t\t\tUpgrade to Unlock these fields\n\t\t\t\t\t\t</a>')}},100)}],l={};function a(e){var n=l[e];if(void 0!==n)return n.exports;var r=l[e]={exports:{}};return t[e](r,r.exports,a),r.exports}a.m=t,e=[],a.O=(t,l,n,r)=>{if(!l){var o=1/0;for(c=0;c<e.length;c++){for(var[l,n,r]=e[c],i=!0,s=0;s<l.length;s++)(!1&r||o>=r)&&Object.keys(a.O).every(e=>a.O[e](l[s]))?l.splice(s--,1):(i=!1,r<o&&(o=r));if(i){e.splice(c--,1);var m=n();void 0!==m&&(t=m)}}return t}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[l,n,r]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};a.O.j=t=>0===e[t];var t=(t,l)=>{var n,r,[o,i,s]=l,m=0;if(o.some(t=>0!==e[t])){for(n in i)a.o(i,n)&&(a.m[n]=i[n]);if(s)var c=s(a)}for(t&&t(l);m<o.length;m++)r=o[m],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return a.O(c)},l=globalThis.webpackChunkgutena_forms=globalThis.webpackChunkgutena_forms||[];l.forEach(t.bind(null,0)),l.push=t.bind(null,l.push.bind(l))})();var n=a.O(void 0,[350],()=>a(1));n=a.O(n)})();