HEX
Server: LiteSpeed
System: Linux premium148.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User: burhbrzf (1357)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/burhbrzf/system360.co/wp-content/plugins/metform/build/add-new-form-modal.js
!function(){"use strict";var e,t={64:function(){var e=window.wp.element;function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function r(e,r){if(e){if("string"==typeof e)return t(e,r);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,a,m,l=[],i=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(o=a.call(r)).done)&&(l.push(o.value),l.length!==t);i=!0);}catch(e){c=!0,n=e}finally{try{if(!i&&null!=r["return"]&&(m=r["return"](),Object(m)!==m))return}finally{if(c)throw n}}return l}}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=window.wp.components,m=window.wp.i18n,l=function(){var l=n((0,e.useState)(!1),2),i=l[0],c=l[1],s=n((0,e.useState)(""),2),f=(s[0],s[1]),u=n((0,e.useState)("general"),2),p=u[0],d=u[1],h=n((0,e.useState)("0"),2),v=h[0],w=h[1],E=n((0,e.useState)([]),2),g=E[0],_=E[1],k=n((0,e.useState)([]),2),y=k[0],b=k[1],C=n((0,e.useState)("all-templates"),2),N=C[0],L=C[1],q=n((0,e.useState)(""),2),S=q[0],x=q[1],M=n((0,e.useState)(""),2),F=M[0],j=M[1],A=n((0,e.useState)(null),2),z=A[0],V=A[1],O=n((0,e.useState)(""),2),I=O[0],W=O[1],H=n((0,e.useState)(!1),2),T=H[0],B=H[1],P=n((0,e.useState)("elementor"),2),D=P[0],U=P[1];(0,e.useEffect)(function(){"show-metform-form-creation-modal"===(window.location.hash?window.location.hash.substring(1):"")&&c(!0);var e=[];void 0!==window.metformData&&window.metformData.templates&&(e=window.metformData.templates,_(e));var t=[{value:"general",label:(0,m.__)("General","metform")}];e.some(function(e){return"quiz-form"===e.form_type})&&t.push({value:"quiz",label:(0,m.__)("Quiz","metform")}),b(t)},[]),(0,e.useEffect)(function(){var e=function(e){e.target.classList.contains("page-title-action")&&document.body.classList.contains("post-type-metform-form")&&(e.preventDefault(),e.stopPropagation(),setTimeout(function(){c(!0)},100))};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}},[]);var Z=function(e){w(e)},R=function(e){j(e.title),V(e),W(""),B(!1),U("elementor")},G=function(){var e;if(F.trim()){W(""),B(!0);var t=(null===(e=document.querySelector("[data-nonce]"))||void 0===e?void 0:e.getAttribute("data-nonce"))||("undefined"!=typeof wp&&wp.ajax?wp.ajax.settings.nonce:""),r=void 0!==window.metform_api?window.metform_api.resturl:window.location.origin+"/wp-json/",n="quiz"===p?"quiz-form":"general-form",a="".concat(r,"metform/v1/forms/builder_form_id/").concat(z.id,"?title=").concat(encodeURIComponent(F.trim()),"&form_type=").concat(n);fetch(a,{method:"GET",headers:{"X-WP-Nonce":t,"Content-Type":"application/json"},credentials:"same-origin"}).then(function(e){return e.text().then(function(t){if(!e.ok){var r="HTTP ".concat(e.status,": ").concat(e.statusText);try{var o=JSON.parse(t);o.message?r=o.message:o.code&&(r="Error code: ".concat(o.code))}catch(e){t&&t.length<200&&(r=t)}throw new Error(r)}if(""===t.trim())throw new Error("Empty response from server");try{return JSON.parse(t)}catch(e){var n=parseInt(t.trim());if(!isNaN(n)&&n>0)return n;throw new Error("Invalid response: "+t.substring(0,100))}})}).then(function(e){var t;if(!(t="object"===o(e)&&e.post_id?parseInt(e.post_id):"number"==typeof e?e:parseInt(e))||isNaN(t)||t<=0)throw new Error((0,m.__)("Invalid form ID returned from server.","metform"));J(),setTimeout(function(){var e=void 0!==window.metform_api?window.metform_api.admin_url:"/wp-admin/";window.location.href="".concat(e,"post.php?post=").concat(t,"&action=elementor")},300)})["catch"](function(e){console.error("Error importing template:",e),B(!1),W(e.message||(0,m.__)("Unknown error occurred","metform"))})}else W((0,m.__)("Please enter a form name","metform"))},J=function(){c(!1),f(""),w("0"),d("general"),L("all-templates"),x("")},Q=function(){var e={};g.filter(function(e){return"quiz"===p?"quiz-form"===e.form_type:"quiz-form"!==e.form_type}).forEach(function(t){t.category&&(e[t.category]=(e[t.category]||0)+1)});var t={"contact-form":(0,m.__)("Contact Form","metform"),"conditional-logic-form":(0,m.__)("Conditional Logic Form","metform"),"quiz-form":(0,m.__)("Quiz Form","metform"),"feedback-form":(0,m.__)("Feedback Form","metform"),"calculation-form":(0,m.__)("Calculation Form","metform"),"multi-step-form":(0,m.__)("Multi-step Form","metform"),"booking-form":(0,m.__)("Booking Form","metform"),"product-order-form":(0,m.__)("Product Order Form","metform"),"loan-application-form":(0,m.__)("Loan Application Form","metform"),"job-application-form":(0,m.__)("Job Application Form","metform"),"admission-form":(0,m.__)("Admission Form","metform"),"support-form":(0,m.__)("Support Form","metform"),"newsletter-form":(0,m.__)("Newsletter Form","metform"),"medical-form":(0,m.__)("Medical Form","metform"),"other-form":(0,m.__)("Other Forms","metform")},r=[{value:"all-templates",label:"quiz"===p?(0,m.__)("All Quiz","metform"):(0,m.__)("All General","metform")}];return["contact-form","conditional-logic-form","feedback-form","calculation-form","multi-step-form","booking-form","product-order-form","loan-application-form","job-application-form","admission-form","support-form","newsletter-form","medical-form","other-form"].forEach(function(o){e[o]&&t[o]&&r.push({value:o,label:t[o]})}),r}(),K=function(){var e,o=function(e){if(Array.isArray(e))return t(e)}(e=g)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();if(o="quiz"===p?o.filter(function(e){return"quiz-form"===e.form_type}):o.filter(function(e){return"quiz-form"!==e.form_type}),"all-templates"!==N&&(o=o.filter(function(e){return e.category===N})),S.trim()){var n=S.toLowerCase();o=o.filter(function(e){return e.title.toLowerCase().includes(n)||e.description&&e.description.toLowerCase().includes(n)})}return o}();return i?(0,e.createElement)(a.Modal,{title:(0,m.__)("Ready-Made Form Templates","metform"),onRequestClose:J,className:"metform-add-new-form-modal ".concat(null!==z?" sub-modal-active":""),shouldCloseOnClickOutside:!0},(0,e.createElement)("div",{className:"metform-modal-wrapper"},(0,e.createElement)("div",{className:"metform-modal-header"},(0,e.createElement)("p",{className:"metform-modal-subtitle"},(0,m.__)("Choose from pre-designed templates and get started fast","metform"))),(0,e.createElement)("div",{className:"metform-modal-content"},(0,e.createElement)("div",{className:"metform-modal-sidebar"},y.length>1&&(0,e.createElement)("div",{className:"metform-form-type-selector"},(0,e.createElement)("h3",null,(0,m.__)("Form Type","metform")),(0,e.createElement)("div",{className:"metform-form-type-options"},y.map(function(t){return(0,e.createElement)("label",{key:t.value,className:"metform-form-type-option"},(0,e.createElement)("input",{type:"radio",name:"form-type",value:t.value,checked:p===t.value,onChange:function(){return e=t.value,d(e),L("all-templates"),void x("");var e}}),(0,e.createElement)("span",{className:"metform-form-type-label"},t.label))}))),(0,e.createElement)("ul",{className:"metform-categories-list"},Q.map(function(t){return(0,e.createElement)("li",{key:t.value,className:N===t.value?"active":""},(0,e.createElement)("button",{onClick:function(){return L(t.value)},className:"metform-category-button"},t.label))}))),(0,e.createElement)("div",{className:"metform-modal-main"},(0,e.createElement)("div",{className:"metform-search-bar"},(0,e.createElement)(a.TextControl,{value:S,onChange:x,placeholder:(0,m.__)("Search a form template","metform"),className:"metform-search-input"}),(0,e.createElement)("span",{className:"metform-search-icon"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},(0,e.createElement)("path",{d:"M11.6387 11.6387L14.7498 14.7498",stroke:"#9D9EA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M13.1944 6.97222C13.1944 3.53578 10.4087 0.75 6.97222 0.75C3.53578 0.75 0.75 3.53578 0.75 6.97222C0.75 10.4087 3.53578 13.1944 6.97222 13.1944C10.4087 13.1944 13.1944 10.4087 13.1944 6.97222Z",stroke:"#9D9EA1",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"metform-templates-grid"},0!==K.length&&("quiz"!==p||window.metformData&&window.metformData.hasPro)&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"metform-template-card ".concat("0"===v?"selected":""),onClick:function(){return Z("0")}},(0,e.createElement)("div",{className:"metform-template-preview blank-preview",onClick:function(e){e.stopPropagation(),R({id:"0",title:(0,m.__)("Blank Form","metform")})}},(0,e.createElement)("div",{className:"metform-blank-template-icon"},(0,e.createElement)("span",{className:"metform-blank-template-icon-plus"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},(0,e.createElement)("path",{d:"M15.999 10V22M21.999 16H9.99902",stroke:"#A4A5A8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M16 31C24.2843 31 31 24.2843 31 16C31 7.71573 24.2843 1 16 1C7.71573 1 1 7.71573 1 16C1 24.2843 7.71573 31 16 31Z",stroke:"#A4A5A8",strokeWidth:"2",strokeLinejoin:"round"}))),(0,e.createElement)("span",{className:"metform-blank-template-icon-text"},(0,m.__)("Create from Scratch","metform")))),(0,e.createElement)("div",{className:"metform-template-footer"},(0,e.createElement)("h4",null,(0,m.__)("Blank Template","metform"))))),K.map(function(t){return(0,e.createElement)("div",{key:t.id,className:"metform-template-card ".concat(v===t.id?"selected":""),onClick:function(){return Z(t.id)}},"pro"==t["package"]&&(0,e.createElement)("span",{className:"metform-template-badge"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.48643 0.284501C8.3876 0.108762 8.20163 0 7.99996 0C7.79836 0 7.61239 0.108762 7.51356 0.284501L4.47221 5.69131L0.886454 3.08349C0.69511 2.94432 0.436812 2.94093 0.241873 3.07501C0.0469347 3.20909 -0.0422853 3.45151 0.0192289 3.67997L2.62387 13.3544C2.68947 13.598 2.91044 13.7674 3.16281 13.7674H12.8371C13.0896 13.7674 13.3105 13.598 13.3762 13.3544L15.9808 3.67997C16.0423 3.45151 15.953 3.20909 15.7581 3.07501C15.5632 2.94093 15.3049 2.94432 15.1135 3.08349L11.5278 5.69131L8.48643 0.284501ZM7.99996 9.11625C7.38348 9.11625 6.88369 9.61604 6.88369 10.2325C6.88369 10.849 7.38348 11.3488 7.99996 11.3488H8.0074C8.62388 11.3488 9.12368 10.849 9.12368 10.2325C9.12368 9.61604 8.62388 9.11625 8.0074 9.11625H7.99996Z",fill:"url(#paint0_linear_2094_243)"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.79053 15.5118C2.79053 15.1007 3.12371 14.7676 3.53471 14.7676H12.4649C12.8759 14.7676 13.2091 15.1007 13.2091 15.5118C13.2091 15.9228 12.8759 16.2559 12.4649 16.2559H3.53471C3.12371 16.2559 2.79053 15.9228 2.79053 15.5118Z",fill:"url(#paint1_linear_2094_243)"}),(0,e.createElement)("defs",null,(0,e.createElement)("linearGradient",{id:"paint0_linear_2094_243",x1:"8",y1:"0",x2:"8",y2:"13.7674",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#F84175"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#A0052F"})),(0,e.createElement)("linearGradient",{id:"paint1_linear_2094_243",x1:"7.9998",y1:"14.7676",x2:"7.9998",y2:"16.2559",gradientUnits:"userSpaceOnUse"},(0,e.createElement)("stop",{stopColor:"#F84175"}),(0,e.createElement)("stop",{offset:"1",stopColor:"#A0052F"}))))),(0,e.createElement)("div",{className:"metform-template-preview"},(0,e.createElement)("img",{src:t.thumbnail,alt:t.title}),(0,e.createElement)("div",{className:"metform-template-overlay"},"pro"!==t["package"]||t.isProActive?(0,e.createElement)("button",{onClick:function(e){e.stopPropagation(),R({id:String(t.id),title:t.title})},className:"overlay-button overlay-button-import"},(0,e.createElement)("span",{className:"overlay-button-import-icon"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},(0,e.createElement)("path",{d:"M10.9496 3.07006L11.6096 2.41007C12.1564 1.86331 13.0429 1.86331 13.5896 2.41007C14.1363 2.95683 14.1363 3.84329 13.5896 4.39005L12.9296 5.05004M10.9496 3.07006L6.51006 7.5096C6.17172 7.848 5.9317 8.27187 5.81565 8.73607L5.33301 10.6667L7.26361 10.184C7.72781 10.068 8.15167 9.82793 8.49007 9.4896L12.9296 5.05004M10.9496 3.07006L12.9296 5.05004",stroke:"white",strokeWidth:"1.5",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M12.6666 9.00016C12.6666 11.1918 12.6666 12.2876 12.0613 13.0252C11.9505 13.1602 11.8267 13.284 11.6917 13.3948C10.9541 14.0002 9.85827 14.0002 7.6666 14.0002H7.33333C4.81917 14.0002 3.56211 14.0002 2.78106 13.2191C2.00002 12.4381 2 11.181 2 8.66683V8.3335C2 6.14184 2 5.04602 2.60529 4.30846C2.71611 4.17343 2.83993 4.04961 2.97496 3.93879C3.71253 3.3335 4.80835 3.3335 7 3.3335",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,m.__)("Import Form","metform")):(0,e.createElement)("a",{className:"overlay-button overlay-button-get-pro",href:"https://wpmet.com/plugin/metform/pricing/",target:"_blank",rel:"noopener noreferrer",onClick:function(e){return e.stopPropagation()}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"14",viewBox:"0 0 13 14",fill:"none"},(0,e.createElement)("path",{d:"M10.35 6.1499H1.95C1.28726 6.1499 0.75 6.68716 0.75 7.3499V11.5499C0.75 12.2126 1.28726 12.7499 1.95 12.7499H10.35C11.0127 12.7499 11.55 12.2126 11.55 11.5499V7.3499C11.55 6.68716 11.0127 6.1499 10.35 6.1499Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M3.15039 6.15V3.75C3.15039 2.95435 3.46646 2.19129 4.02907 1.62868C4.59168 1.06607 5.35474 0.75 6.15039 0.75C6.94604 0.75 7.7091 1.06607 8.27171 1.62868C8.83432 2.19129 9.15039 2.95435 9.15039 3.75V6.15",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))," Pro Upgrade"),t.demoUrl&&(0,e.createElement)("a",{href:t.demoUrl,target:"_blank",rel:"noopener noreferrer",className:"overlay-button overlay-button-preview",onClick:function(e){return e.stopPropagation()}},(0,m.__)("Live Preview","metform")))),(0,e.createElement)("div",{className:"metform-template-footer"},(0,e.createElement)("h4",null,t.title),t.description&&(0,e.createElement)("p",null,t.description)))})),0===K.length&&(0,e.createElement)("div",{className:"metform-no-templates"},(0,e.createElement)("p",null,(0,m.__)("No templates found matching your criteria.","metform"))),null!==z&&(0,e.createElement)("div",{className:"mf-fp-name-dialog-overlay",onClick:function(e){T||e.target!==e.currentTarget||V(null)}},(0,e.createElement)("div",{className:"mf-fp-name-dialog",role:"dialog","aria-modal":"true"},(0,e.createElement)("div",{className:"mf-fp-name-dialog__header"},(0,e.createElement)("h3",{className:"mf-fp-name-dialog__title"},(0,m.__)("Create Your Form","metform")),(0,e.createElement)("button",{className:"mf-fp-close",onClick:function(){T||V(null)},"aria-label":(0,m.__)("Close","metform")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fill:"none",d:"M18 6 6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})))),(0,e.createElement)("div",{className:"mf-fp-name-dialog__body"},(0,e.createElement)("label",{className:"mf-fp-name-dialog__label"},(0,m.__)("Enter your form name?","metform"),(0,e.createElement)(a.Tooltip,{position:"top center",style:{whiteSpace:"pre-line"},text:(0,m.__)("Enter the form name or leave it\nblank to use the default name.","metform")},(0,e.createElement)("span",{className:"mf-fp-info-icon"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},(0,e.createElement)("path",{d:"M9 17C13.4183 17 17 13.4183 17 9C17 4.58172 13.4183 1 9 1C4.58172 1 1 4.58172 1 9C1 13.4183 4.58172 17 9 17Z",stroke:"#54565C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M9 12.2V9",stroke:"#54565C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M9 5.7998H9.008",stroke:"#54565C",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,e.createElement)("input",{type:"text",className:"mf-fp-name-input",placeholder:(0,m.__)("Enter your form name...","metform"),value:F,onChange:function(e){return j(e.target.value)},onKeyDown:function(e){"Enter"!==e.key||T||G()},disabled:T,autoFocus:!0}),I&&(0,e.createElement)("p",{className:"mf-fp-error"},I)),(0,e.createElement)("div",{className:"mf-fp-name-dialog__footer"},(0,e.createElement)("label",{className:"mf-fp-builder-option"},(0,e.createElement)("input",{type:"radio",name:"mf-builder-type",value:"elementor",checked:"elementor"===D,onChange:function(){return U("elementor")},disabled:T}),(0,e.createElement)("span",null,(0,m.__)("Elementor","metform"))),(0,e.createElement)("label",{className:"mf-fp-builder-option"},(0,e.createElement)("input",{type:"radio",name:"mf-builder-type",value:"metform",checked:"metform"===D,onChange:function(){return U("metform")},disabled:!0}),(0,e.createElement)("span",null,(0,m.__)("MetForm Builder","metform")),(0,e.createElement)("div",{className:"mf-fp-builder-options-badge"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"69",height:"20",fill:"none",viewBox:"0 0 69 20"},(0,e.createElement)("path",{fill:"#a0052f",d:"M65 0a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4v-2.151L0 10l4-3.85V4a4 4 0 0 1 4-4z"}),(0,e.createElement)("path",{fill:"#fff",d:"M14.56 6.39h1.46v4.698q0 .82-.351 1.382a2.17 2.17 0 0 1-.962.845q-.61.283-1.406.283t-1.416-.284a2.2 2.2 0 0 1-.967-.844q-.347-.562-.347-1.382V6.39h1.465v4.697q0 .479.152.781.15.303.434.444.288.142.679.142.4 0 .678-.142a.93.93 0 0 0 .43-.444q.151-.303.151-.781zm5.535 4.576h-1.811V9.823h1.811q.42 0 .684-.136a.88.88 0 0 0 .386-.391 1.26 1.26 0 0 0 .122-.562q0-.317-.122-.59a1 1 0 0 0-.386-.44q-.264-.166-.684-.166h-1.304V13.5h-1.464V6.39h2.768q.836 0 1.43.303.601.298.919.826.317.526.317 1.206 0 .688-.317 1.191a2.06 2.06 0 0 1-.918.776q-.596.274-1.43.274m7.898.176h1.46q-.044.717-.396 1.274-.346.556-.971.87-.621.311-1.494.312a3.1 3.1 0 0 1-1.226-.235 2.6 2.6 0 0 1-.928-.683 3.05 3.05 0 0 1-.58-1.075 4.7 4.7 0 0 1-.201-1.41V9.7q0-.78.205-1.411.21-.635.596-1.08.39-.443.932-.683.543-.24 1.211-.239.89 0 1.5.322.615.322.951.889.342.566.41 1.29h-1.464a1.9 1.9 0 0 0-.171-.728.97.97 0 0 0-.444-.455q-.294-.156-.782-.156-.366 0-.64.137-.273.137-.458.415a2 2 0 0 0-.279.703q-.087.42-.087.986v.503q0 .552.082.972.084.415.254.703.176.283.45.43.277.141.669.141.459 0 .756-.146.298-.147.454-.435.162-.287.191-.717m8.362-1.363v.337q0 .81-.22 1.455t-.62 1.099q-.4.45-.957.688a3.05 3.05 0 0 1-1.226.24q-.669 0-1.225-.24a2.75 2.75 0 0 1-.957-.688 3.2 3.2 0 0 1-.63-1.099 4.5 4.5 0 0 1-.22-1.455V9.78q0-.815.22-1.455a3.2 3.2 0 0 1 .62-1.098q.405-.454.957-.694.557-.24 1.225-.239.675 0 1.226.24.556.239.957.693.406.454.625 1.098.225.64.225 1.455m-1.48.337V9.77q0-.567-.102-.997a2.2 2.2 0 0 0-.303-.722 1.3 1.3 0 0 0-.488-.44 1.4 1.4 0 0 0-.66-.151q-.37 0-.659.151-.283.146-.483.44-.196.293-.298.722a4.3 4.3 0 0 0-.103.997v.346q0 .563.103.996.103.43.303.728.2.293.488.444t.66.151q.37 0 .658-.15.29-.153.484-.445.195-.298.298-.728.102-.434.102-.996m3.303-3.725h1.24l1.827 5.22 1.826-5.22h1.24L41.743 13.5h-.996zm-.669 0h1.236l.224 5.088V13.5h-1.46zm6.236 0h1.24V13.5H43.52v-2.021zm4.182 0V13.5h-1.46V6.39zm7.258 0V13.5H53.72l-2.856-4.766V13.5h-1.465V6.39h1.465l2.861 4.771v-4.77zm7.01 3.393v2.818q-.166.2-.514.434a3.4 3.4 0 0 1-.893.396q-.547.165-1.323.166-.69 0-1.255-.225a2.7 2.7 0 0 1-.977-.669 3 3 0 0 1-.625-1.074 4.5 4.5 0 0 1-.22-1.46v-.444q0-.82.21-1.46.216-.64.61-1.08.397-.438.943-.668.547-.23 1.216-.23.928 0 1.523.303.596.297.909.83.316.527.39 1.21h-1.42a1.8 1.8 0 0 0-.206-.629 1.06 1.06 0 0 0-.434-.42q-.279-.15-.723-.151-.366 0-.654.151a1.3 1.3 0 0 0-.479.435q-.196.288-.298.712a4.2 4.2 0 0 0-.102.987v.454q0 .557.107.986.108.426.318.718.215.288.527.435.312.146.727.146.348 0 .577-.059.234-.058.376-.141.146-.088.224-.166v-1.26h-1.338V9.784z"})))),(0,e.createElement)("button",{className:"mf-fp-btn mf-fp-btn--confirm",onClick:G,disabled:T},T?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"mf-fp-spinner"}),(0,m.__)("Importing...","metform")):(0,e.createElement)(e.Fragment,null,(0,m.__)("Import","metform"),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},(0,e.createElement)("path",{d:"M8.75 16.75C13.1682 16.75 16.75 13.1682 16.75 8.75C16.75 4.33172 13.1682 0.75 8.75 0.75C4.33172 0.75 0.75 4.33172 0.75 8.75C0.75 13.1682 4.33172 16.75 8.75 16.75Z",stroke:"white",strokeWidth:"1.5"}),(0,e.createElement)("path",{d:"M8.75039 4.75V9.15M7.15039 7.95L8.18471 8.98432C8.45135 9.25096 8.58471 9.38432 8.75039 9.38432C8.91607 9.38432 9.04943 9.25096 9.31607 8.98432L10.3504 7.95",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M6.3418 11.9502H11.1418",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))))))))):null};document.addEventListener("DOMContentLoaded",function(){var t=document.getElementById("metform-react-modal-root");t&&(0,e.render)((0,e.createElement)(l,null),t)})}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=function(t,r,n,a){if(!r){var m=1/0;for(s=0;s<e.length;s++){r=e[s][0],n=e[s][1],a=e[s][2];for(var l=!0,i=0;i<r.length;i++)(!1&a||m>=a)&&Object.keys(o.O).every(function(e){return o.O[e](r[i])})?r.splice(i--,1):(l=!1,a<m&&(m=a));if(l){e.splice(s--,1);var c=n();void 0!==c&&(t=c)}}return t}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[r,n,a]},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={420:0,729:0};o.O.j=function(t){return 0===e[t]};var t=function(t,r){var n,a,m=r[0],l=r[1],i=r[2],c=0;if(m.some(function(t){return 0!==e[t]})){for(n in l)o.o(l,n)&&(o.m[n]=l[n]);if(i)var s=i(o)}for(t&&t(r);c<m.length;c++)a=m[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(s)},r=self.webpackChunkmetform=self.webpackChunkmetform||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var n=o.O(void 0,[729],function(){return o(64)});n=o.O(n)}();