芝麻web文件管理V1.00
编辑当前文件:/home/ephorei/www/wp-content/plugins/sureforms/assets/build/templatePicker.js
/*! For license information please see templatePicker.js.LICENSE.txt */ (()=>{var e={2703:(e,t,r)=>{"use strict";var i=r(414);function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,a,c){if(c!==i){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:n};return r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function r(i){var n=t[i];if(void 0!==n)return n.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element,t=window.wp.i18n,i={logo:React.createElement("svg",{width:"144",height:"24",viewBox:"0 0 144 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#clip0_15961_16932)"},React.createElement("rect",{width:"24",height:"24",fill:"#D54407"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"}),React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 16.6032L32.9925 15.1445C33.448 15.6702 34.0539 16.1125 34.8101 16.4717C35.5664 16.8309 36.3613 17.0105 37.1949 17.0105C38.1488 17.0105 38.8922 16.8046 39.4249 16.3928C39.9664 15.9811 40.2371 15.4424 40.2371 14.7766C40.2371 14.3561 40.091 14.0013 39.7988 13.7122C39.5066 13.4231 39.1285 13.1997 38.6644 13.042C38.2003 12.8844 37.689 12.7398 37.1305 12.6084C36.5718 12.477 36.009 12.3237 35.4418 12.1485C34.8832 11.9733 34.3719 11.7586 33.9078 11.5046C33.4437 11.2505 33.0656 10.8913 32.7734 10.4271C32.4812 9.95398 32.3352 9.39335 32.3352 8.74508C32.3352 7.67627 32.7562 6.78712 33.5984 6.07753C34.4406 5.35917 35.5965 5 37.066 5C39.0082 5 40.5808 5.63075 41.7839 6.89224L40.8687 8.28518C40.4734 7.79455 39.9406 7.40035 39.2703 7.10249C38.6085 6.79588 37.8738 6.64257 37.066 6.64257C36.2152 6.64257 35.532 6.83968 35.0164 7.2339C34.5008 7.61936 34.2429 8.10552 34.2429 8.69249C34.2429 9.06922 34.389 9.38896 34.6813 9.65179C34.9734 9.90585 35.3472 10.1073 35.8027 10.2562C36.2668 10.3964 36.7781 10.5322 37.3367 10.6636C37.9039 10.7862 38.4667 10.9396 39.0253 11.1235C39.5925 11.3075 40.1038 11.5352 40.5593 11.8068C41.0234 12.0696 41.4015 12.4507 41.6937 12.95C41.9859 13.4494 42.132 14.0407 42.132 14.724C42.132 15.8629 41.6937 16.8046 40.8171 17.5492C39.9492 18.2851 38.7246 18.6531 37.1433 18.6531C35.0035 18.6531 33.2891 17.9698 32 16.6032ZM44.2986 14.5006V5.32852H46.2709V13.883C46.2709 14.9693 46.5158 15.7359 47.0057 16.1826C47.4955 16.6206 48.2088 16.8397 49.1455 16.8397C49.8845 16.8397 50.5978 16.6513 51.2853 16.2746C51.9728 15.8979 52.5099 15.4336 52.8966 14.8817V5.32852H54.8818V18.3246H52.8966V16.498C52.3638 17.1113 51.6978 17.6237 50.8986 18.0355C50.0993 18.4472 49.2529 18.6531 48.3591 18.6531C45.6521 18.6531 44.2986 17.2689 44.2986 14.5006ZM57.7831 18.3246H59.7554V9.12613C60.0476 8.59176 60.5503 8.1143 61.2636 7.69382C61.9769 7.26456 62.6386 7.04993 63.2488 7.04993C63.4464 7.04993 63.7 7.06745 64.0093 7.10249V5.02628C63.1843 5.02628 62.4066 5.24529 61.6761 5.68331C60.9456 6.11257 60.3054 6.68637 59.7554 7.40473V5.32852H57.7831V18.3246ZM64.6935 11.8068C64.6935 10.5628 64.9599 9.424 65.4927 8.3903C66.0342 7.34778 66.7861 6.52431 67.7486 5.91984C68.7111 5.30661 69.7896 5 70.9841 5C72.2388 5 73.3345 5.311 74.2712 5.93298C75.2077 6.55497 75.9127 7.39158 76.3855 8.44282C76.8663 9.4853 77.1071 10.6636 77.1071 11.9776V12.4901H66.8076C66.8849 13.7691 67.3318 14.8379 68.1482 15.6964C68.9732 16.5549 70.0474 16.9842 71.3708 16.9842C72.1185 16.9842 72.8361 16.8397 73.5236 16.5506C74.2196 16.2615 74.8255 15.8498 75.3413 15.3153L76.2821 16.6294C74.9329 17.9785 73.2443 18.6531 71.2161 18.6531C69.3083 18.6531 67.7443 18.0179 66.524 16.7477C65.3036 15.4774 64.6935 13.8305 64.6935 11.8068ZM66.7818 10.979H75.148C75.1394 10.4796 75.0488 9.98463 74.8771 9.49408C74.7138 9.00353 74.4689 8.54355 74.1423 8.1143C73.8158 7.68505 73.3774 7.33902 72.8275 7.07621C72.2775 6.80464 71.6544 6.66885 70.9583 6.66885C70.3052 6.66885 69.7123 6.80026 69.1795 7.06307C68.6466 7.32588 68.2126 7.67195 67.8775 8.1012C67.5509 8.52168 67.2931 8.98158 67.104 9.48091C66.915 9.97154 66.8076 10.4709 66.7818 10.979Z",fill:"#030712"}),React.createElement("path",{d:"M81.8791 18.7626H79.1199V5.56776H88.2914V8.04056H81.8791V10.8101H88.1554V13.2829H81.8791V18.7626Z",fill:"#030712"}),React.createElement("path",{d:"M96.3803 19C92.4553 19 89.5989 16.1513 89.5989 12.1751C89.5989 8.19882 92.4553 5.35016 96.3803 5.35016C100.286 5.35016 103.142 8.19882 103.142 12.1751C103.142 16.1513 100.286 19 96.3803 19ZM96.3803 16.5074C98.7704 16.5074 100.305 14.6281 100.305 12.1751C100.305 9.70228 98.7704 7.84274 96.3803 7.84274C93.9709 7.84274 92.4358 9.70228 92.4358 12.1751C92.4358 14.6281 93.9709 16.5074 96.3803 16.5074Z",fill:"#030712"}),React.createElement("path",{d:"M115.591 18.7626H112.404L109.859 14.0742H107.838V18.7626H105.079V5.56776H111.141C113.842 5.56776 115.513 7.36796 115.513 9.82098C115.513 12.1355 114.056 13.4016 112.657 13.7379L115.591 18.7626ZM110.753 11.6014C111.841 11.6014 112.676 10.9288 112.676 9.80119C112.676 8.71316 111.841 8.04056 110.753 8.04056H107.838V11.6014H110.753Z",fill:"#030712"}),React.createElement("path",{d:"M131.613 18.7626H128.835V9.24729L125.182 18.7626H123.977L120.324 9.24729V18.7626H117.565V5.56776H121.431L124.579 13.817L127.727 5.56776H131.613V18.7626Z",fill:"#030712"}),React.createElement("path",{d:"M138.812 19C136.305 19 134.518 18.1494 133.293 16.9031L134.809 14.7072C135.722 15.6766 137.141 16.5074 138.928 16.5074C140.464 16.5074 141.183 15.815 141.183 15.0435C141.183 12.7488 133.721 14.3511 133.721 9.38576C133.721 7.18992 135.586 5.36994 138.637 5.36994C140.697 5.36994 142.407 6.00298 143.689 7.2097L142.154 9.30664C141.105 8.31752 139.706 7.86252 138.384 7.86252C137.219 7.86252 136.558 8.37686 136.558 9.16816C136.558 11.2453 144 9.84076 144 14.7666C144 17.18 142.29 19 138.812 19Z",fill:"#030712"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_15961_16932"},React.createElement("rect",{width:"144",height:"24",fill:"white"})))),close:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},React.createElement("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#475569",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),scratch:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},React.createElement("path",{d:"M39 28.5V23.25C39 19.5221 35.9779 16.5 32.25 16.5H29.25C28.0074 16.5 27 15.4926 27 14.25V11.25C27 7.52208 23.9779 4.5 20.25 4.5H16.5M24 22.5V34.5M30 28.5H18M21 4.5H11.25C10.0074 4.5 9 5.50736 9 6.75V41.25C9 42.4926 10.0074 43.5 11.25 43.5H36.75C37.9926 43.5 39 42.4926 39 41.25V22.5C39 12.5589 30.9411 4.5 21 4.5Z",stroke:"url(#paint0_linear_4036_26181)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_4036_26181",x1:"24",y1:"4.5",x2:"24",y2:"43.5",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#18C1CC"}),React.createElement("stop",{offset:"1",stopColor:"#135A99"})))),template:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},React.createElement("path",{d:"M12 13.7561V12C12 9.51472 14.0147 7.5 16.5 7.5H31.5C33.9853 7.5 36 9.51472 36 12V13.7561M12 13.7561C12.4692 13.5902 12.974 13.5 13.5 13.5H34.5C35.026 13.5 35.5308 13.5902 36 13.7561M12 13.7561C10.2522 14.3738 9 16.0407 9 18V19.7561M36 13.7561C37.7478 14.3738 39 16.0407 39 18V19.7561M39 19.7561C38.5308 19.5902 38.026 19.5 37.5 19.5H10.5C9.97405 19.5 9.46917 19.5902 9 19.7561M39 19.7561C40.7478 20.3738 42 22.0407 42 24V36C42 38.4853 39.9853 40.5 37.5 40.5H10.5C8.01472 40.5 6 38.4853 6 36V24C6 22.0407 7.25221 20.3738 9 19.7561",stroke:"url(#paint0_linear_4036_26187)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_4036_26187",x1:"24",y1:"7.5",x2:"24",y2:"40.5",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#A8CC18"}),React.createElement("stop",{offset:"1",stopColor:"#139969"})))),ai:React.createElement("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M30 12L36 18M12 42L42 12L36 6L6 36L12 42ZM18 6C18 7.06087 18.4214 8.07828 19.1716 8.82843C19.9217 9.57857 20.9391 10 22 10C20.9391 10 19.9217 10.4214 19.1716 11.1716C18.4214 11.9217 18 12.9391 18 14C18 12.9391 17.5786 11.9217 16.8284 11.1716C16.0783 10.4214 15.0609 10 14 10C15.0609 10 16.0783 9.57857 16.8284 8.82843C17.5786 8.07828 18 7.06087 18 6ZM38 26C38 27.0609 38.4214 28.0783 39.1716 28.8284C39.9217 29.5786 40.9391 30 42 30C40.9391 30 39.9217 30.4214 39.1716 31.1716C38.4214 31.9217 38 32.9391 38 34C38 32.9391 37.5786 31.9217 36.8284 31.1716C36.0783 30.4214 35.0609 30 34 30C35.0609 30 36.0783 29.5786 36.8284 28.8284C37.5786 28.0783 38 27.0609 38 26Z",stroke:"url(#paint0_linear_4036_26204)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),React.createElement("defs",null,React.createElement("linearGradient",{id:"paint0_linear_4036_26204",x1:"24",y1:"6",x2:"24",y2:"42",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{stopColor:"#F437ED"}),React.createElement("stop",{offset:"1",stopColor:"#5E1399"})))),plus:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",className:"srfm-ts-preview-blank-form"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 6.25C20.6904 6.25 21.25 6.80964 21.25 7.5V18.75H32.5C33.1904 18.75 33.75 19.3096 33.75 20C33.75 20.6904 33.1904 21.25 32.5 21.25H21.25V32.5C21.25 33.1904 20.6904 33.75 20 33.75C19.3096 33.75 18.75 33.1904 18.75 32.5V21.25H7.5C6.80964 21.25 6.25 20.6904 6.25 20C6.25 19.3096 6.80964 18.75 7.5 18.75H18.75V7.5C18.75 6.80964 19.3096 6.25 20 6.25Z",fill:"#555D66"})),eye:React.createElement("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M4.04472 11.8528L3.97078 12.0503L4.06071 12.2412C4.81322 13.8378 6.01061 15.1834 7.50911 16.1162C9.00523 17.0476 10.738 17.528 12.5 17.5001C14.262 17.528 15.9948 17.0476 17.4909 16.1162C18.9894 15.1834 20.1868 13.8378 20.9393 12.2412L21.0292 12.0503L20.9553 11.8528C20.8333 11.5267 20.5079 11.0373 20.0674 10.5119C19.6142 9.97137 19.0026 9.34967 18.2654 8.75984C16.7988 7.58644 14.7848 6.5 12.5 6.5C10.2152 6.5 8.20118 7.58644 6.73463 8.75984C5.99743 9.34967 5.38585 9.97137 4.93262 10.5119C4.49207 11.0373 4.16673 11.5267 4.04472 11.8528ZM12.5 15.5C11.8078 15.5 11.1311 15.2947 10.5555 14.9101C9.97993 14.5256 9.53133 13.9789 9.26642 13.3394C9.00151 12.6999 8.9322 11.9961 9.06725 11.3172C9.2023 10.6383 9.53564 10.0146 10.0251 9.52513C10.5146 9.03564 11.1383 8.7023 11.8172 8.56725C12.4961 8.4322 13.1999 8.50151 13.8394 8.76642C14.4789 9.03133 15.0256 9.47993 15.4101 10.0555C15.7947 10.6311 16 11.3078 16 12C16 12.9283 15.6313 13.8185 14.9749 14.4749C14.3185 15.1313 13.4283 15.5 12.5 15.5ZM12.5 9.5C12.0055 9.5 11.5222 9.64662 11.1111 9.92133C10.7 10.196 10.3795 10.5865 10.1903 11.0433C10.0011 11.5001 9.95157 12.0028 10.048 12.4877C10.1445 12.9727 10.3826 13.4181 10.7322 13.7678C11.0819 14.1174 11.5273 14.3555 12.0123 14.452C12.4972 14.5484 12.9999 14.4989 13.4567 14.3097C13.9135 14.1205 14.304 13.8 14.5787 13.3889C14.8534 12.9778 15 12.4945 15 12C15 11.337 14.7366 10.7011 14.2678 10.2322C13.7989 9.76339 13.163 9.5 12.5 9.5ZM12.5 18.5C9.4172 18.5 7.03273 17.2462 5.41524 15.7825C4.60531 15.0496 3.99296 14.2684 3.58607 13.5755C3.16858 12.8645 3 12.3025 3 12C3 11.8937 3.04086 11.7031 3.16504 11.4258C3.28537 11.157 3.46876 10.8402 3.71375 10.4919C4.20345 9.79588 4.91842 9.00404 5.80204 8.25805C7.57719 6.75941 9.96653 5.5 12.5 5.5C15.0335 5.5 17.4228 6.75941 19.198 8.25805C20.0816 9.00404 20.7965 9.79588 21.2862 10.4919C21.5312 10.8402 21.7146 11.157 21.835 11.4258C21.9591 11.7031 22 11.8937 22 12C22 12.3025 21.8314 12.8645 21.4139 13.5755C21.007 14.2684 20.3947 15.0496 19.5848 15.7825C17.9673 17.2462 15.5828 18.5 12.5 18.5Z",fill:"#1F2A37",stroke:"#046BD2"})),message:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},React.createElement("path",{d:"M5.75 6.5C5.75 6.63807 5.63807 6.75 5.5 6.75C5.36193 6.75 5.25 6.63807 5.25 6.5C5.25 6.36193 5.36193 6.25 5.5 6.25C5.63807 6.25 5.75 6.36193 5.75 6.5ZM5.75 6.5H5.5M8.25 6.5C8.25 6.63807 8.13807 6.75 8 6.75C7.86193 6.75 7.75 6.63807 7.75 6.5C7.75 6.36193 7.86193 6.25 8 6.25C8.13807 6.25 8.25 6.36193 8.25 6.5ZM8.25 6.5H8M10.75 6.5C10.75 6.63807 10.6381 6.75 10.5 6.75C10.3619 6.75 10.25 6.63807 10.25 6.5C10.25 6.36193 10.3619 6.25 10.5 6.25C10.6381 6.25 10.75 6.36193 10.75 6.5ZM10.75 6.5H10.5M1.5 8.50623C1.5 9.57362 2.24894 10.5027 3.30497 10.658C4.02905 10.7644 4.761 10.8467 5.5 10.9038V14L8.28899 11.211C8.42681 11.0732 8.61289 10.9948 8.80774 10.99C10.1248 10.9574 11.4221 10.8452 12.695 10.6581C13.751 10.5028 14.5 9.5737 14.5 8.5063V4.4937C14.5 3.42631 13.751 2.49722 12.695 2.34196C11.1627 2.11668 9.59507 2 8.00019 2C6.40517 2 4.83741 2.1167 3.30498 2.34202C2.24894 2.49729 1.5 3.42637 1.5 4.49376V8.50623Z",stroke:"#94A3B8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),back:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},React.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 10C17 10.4142 16.6642 10.75 16.25 10.75L5.61208 10.75L9.76983 14.7094C10.0684 14.9965 10.0777 15.4713 9.79062 15.7698C9.50353 16.0684 9.02875 16.0777 8.73017 15.7906L3.23017 10.5406C3.08311 10.3992 3 10.204 3 10C3 9.79599 3.08311 9.60078 3.23017 9.45938L8.73017 4.20938C9.02875 3.92228 9.50353 3.93159 9.79062 4.23017C10.0777 4.52875 10.0684 5.00353 9.76983 5.29063L5.61208 9.25L16.25 9.25C16.6642 9.25 17 9.58579 17 10Z",fill:"#475569"})),breadcrumb:React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},React.createElement("path",{d:"M5.4375 10.2734L8.70703 7.0039L5.4375 3.73438",stroke:"#4B5563",strokeWidth:"1.08984",strokeLinecap:"round",strokeLinejoin:"round"})),warning:React.createElement("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M10.9983 7.9975V11.7475M1.69506 15.1231C0.829677 16.6231 1.91225 18.4975 3.64398 18.4975H18.3526C20.0844 18.4975 21.1669 16.6231 20.3016 15.1231L12.9472 2.37562C12.0814 0.874792 9.91525 0.874792 9.04939 2.37562L1.69506 15.1231ZM10.9983 14.7475H11.0058V14.755H10.9983V14.7475Z",stroke:"#EF4444",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),exit:React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M9.625 6.5V3.375C9.625 2.33947 8.78553 1.5 7.75 1.5L2.75 1.5C1.71447 1.5 0.875001 2.33947 0.875 3.375L0.875 14.625C0.875 15.6605 1.71447 16.5 2.75 16.5H7.75C8.78553 16.5 9.625 15.6605 9.625 14.625V11.5M12.125 11.5L14.625 9M14.625 9L12.125 6.5M14.625 9L4 9",stroke:"#64748B",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),arrowRight:React.createElement("svg",{width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M7.75 1L12.75 6M12.75 6L7.75 11M12.75 6H0.75",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))},n=window.React;var a,c,o=r.n(n);function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t
=0&&(t.hash=e.substr(r),e=e.substr(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var N;function g(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&"/"!==i?null:e.slice(r)||"/"}function m(e,t,r,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in
and the router will parse it for you.'}function y(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function p(e,t,r,i){let n;void 0===i&&(i=!1),"string"==typeof e?n=j(e):(n=I({},e),s(!n.pathname||!n.pathname.includes("?"),m("?","pathname","search",n)),s(!n.pathname||!n.pathname.includes("#"),m("#","pathname","hash",n)),s(!n.search||!n.search.includes("#"),m("#","search","hash",n)));let a,c=""===e||""===n.pathname,o=c?"/":n.pathname;if(i||null==o)a=r;else{let e=t.length-1;if(o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:i="",hash:n=""}="string"==typeof e?j(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:h(i),hash:z(n)}}(n,a),u=o&&"/"!==o&&o.endsWith("/"),M=(c||"."===o)&&r.endsWith("/");return l.pathname.endsWith("/")||!u&&!M||(l.pathname+="/"),l}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(N||(N={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const f=e=>e.join("/").replace(/\/\/+/g,"/"),h=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class D extends Error{}const x=["post","put","patch","delete"],b=(new Set(x),["get",...x]);function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t
{r.current=!0})),n.useCallback((function(i,n){void 0===n&&(n={}),r.current&&("number"==typeof i?e.navigate(i):e.navigate(i,v({fromRouteId:t},n)))}),[e,t])}():function(){w()||s(!1);let{basename:e,navigator:t}=n.useContext(T),{matches:r}=n.useContext(C),{pathname:i}=R(),a=JSON.stringify(y(r).map((e=>e.pathnameBase))),c=n.useRef(!1);return L((()=>{c.current=!0})),n.useCallback((function(r,n){if(void 0===n&&(n={}),!c.current)return;if("number"==typeof r)return void t.go(r);let o=p(r,JSON.parse(a),i,"path"===n.relative);"/"!==e&&(o.pathname="/"===o.pathname?e:f([e,o.pathname])),(n.replace?t.replace:t.push)(o,n.state,n)}),[e,t,a,i])}()}function k(e,t){let{relative:r}=void 0===t?{}:t,{matches:i}=n.useContext(C),{pathname:a}=R(),c=JSON.stringify(y(i).map((e=>e.pathnameBase)));return n.useMemo((()=>p(e,JSON.parse(c),a,"path"===r)),[e,c,a,r])}class P extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?n.createElement(C.Provider,{value:this.props.routeContext},n.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}var Z,G,O;function Y(e){let{basename:t="/",children:r=null,location:i,navigationType:c=a.Pop,navigator:o,static:I=!1}=e;w()&&s(!1);let l=t.replace(/^\/*/,"/"),u=n.useMemo((()=>({basename:l,navigator:o,static:I})),[l,o,I]);"string"==typeof i&&(i=j(i));let{pathname:M="/",search:d="",hash:N="",state:m=null,key:y="default"}=i,p=n.useMemo((()=>{let e=g(M,l);return null==e?null:{location:{pathname:e,search:d,hash:N,state:m,key:y},navigationType:c}}),[l,M,d,N,m,y,c]);return null==p?null:n.createElement(T.Provider,{value:u},n.createElement(S.Provider,{children:r,value:p}))}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(Z||(Z={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(G||(G={})),function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(O||(O={})),new Promise((()=>{}));class W extends n.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("
caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,i=null,a=O.pending;if(r instanceof Promise)if(this.state.error){O.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_error",{get:()=>e})}else r._tracked?void 0!==i._error?O.error:void 0!==i._data?O.success:O.pending:(O.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),r.then((e=>Object.defineProperty(r,"_data",{get:()=>e})),(e=>Object.defineProperty(r,"_error",{get:()=>e}))));else O.success,Promise.resolve(),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_data",{get:()=>r});if(a===O.error&&i._error instanceof D)throw neverSettledPromise;if(a===O.error&&!t)throw i._error;if(a===O.error)return n.createElement(AwaitContext.Provider,{value:i,children:t});if(a===O.success)return n.createElement(AwaitContext.Provider,{value:i,children:e});throw i}}function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t
{n.removeEventListener(l,y),N=null}},createHref:e=>t(n,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){j=a.Push;let i=M(f.location,e,t);r&&r(i,e),g=m()+1;let I=u(i,g),l=f.createHref(i);try{o.pushState(I,"",l)}catch(e){n.location.assign(l)}c&&N&&N({action:j,location:f.location,delta:1})},replace:function(e,t){j=a.Replace;let i=M(f.location,e,t);r&&r(i,e),g=m();let n=u(i,g),I=f.createHref(i);o.replaceState(n,"",I),c&&N&&N({action:j,location:f.location,delta:0})},go:e=>o.go(e)};return f}((function(e,t){let{pathname:r,search:i,hash:n}=e.location;return M("",{pathname:r,search:i,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:d(t)}),null,o)));let j=c.current,[N,g]=n.useState({action:j.action,location:j.location});return n.useLayoutEffect((()=>j.listen(g)),[j]),n.createElement(Y,{basename:t,children:r,location:N.location,navigationType:N.action,navigator:j})}const H="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,F=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,V=n.forwardRef((function(e,t){let r,{onClick:i,relative:a,reloadDocument:c,replace:o,state:I,target:l,to:u,preventScrollReset:M}=e,j=function(e,t){if(null==e)return{};var r,i,n={},a=Object.keys(e);for(i=0;i
=0||(n[r]=e[r]);return n}(e,Q),{basename:N}=n.useContext(T),m=!1;if("string"==typeof u&&F.test(u)&&(r=u,H))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=g(t.pathname,N);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let y=function(e,t){let{relative:r}=void 0===t?{}:t;w()||s(!1);let{basename:i,navigator:a}=n.useContext(T),{hash:c,pathname:o,search:I}=k(e,{relative:r}),l=o;return"/"!==i&&(l="/"===o?i:f([i,o])),a.createHref({pathname:l,search:I,hash:c})}(u,{relative:a}),p=function(e,t){let{target:r,replace:i,state:a,preventScrollReset:c,relative:o}=void 0===t?{}:t,I=A(),l=R(),s=k(e,{relative:o});return n.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,r)){t.preventDefault();let r=void 0!==i?i:d(l)===d(s);I(e,{replace:r,state:a,preventScrollReset:c,relative:o})}}),[l,I,s,i,a,r,e,c,o])}(u,{replace:o,state:I,target:l,preventScrollReset:M,relative:a});return n.createElement("a",U({},j,{href:r||y,onClick:m||c?i:function(e){i&&i(e),e.defaultPrevented||p(e)},ref:t,target:l}))}));var X,J;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(X||(X={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(J||(J={}));const _=function(){var e=new URLSearchParams(R().search),r=e.get("page"),n=e.get("method");return React.createElement("div",{className:"srfm-header-breadcrumb-container"},React.createElement("div",{className:"srfm-tp-logo",onClick:function(){return window.location.href=srfm_admin.admin_url+"?page=sureforms_menu"}},i.logo),"add-new-form"===r&&React.createElement(V,{className:"srfm-tp-breadcrumb-url",to:{location:"".concat(srfm_admin.site_url,"/wp-admin/admin.php"),search:"?page=add-new-form"}},React.createElement("span",{className:"srfm-header-breadcrumb"},i.breadcrumb,(0,t.__)("Add New Form","sureforms"))),"ai"===n&&React.createElement(V,{className:"srfm-tp-breadcrumb-url",to:{location:"".concat(srfm_admin.site_url,"/wp-admin/admin.php"),search:"?page=add-new-form&method=ai"}},React.createElement("span",{className:"srfm-header-breadcrumb"},i.breadcrumb,(0,t.__)("Describe your Form","sureforms"))))};var K={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},$=o().createContext&&o().createContext(K),q=function(){return q=Object.assign||function(e){for(var t,r=1,i=arguments.length;r
e.length)&&(t=e.length);for(var r=0,i=new Array(t);r
20?20:g;return React.createElement("div",{className:"srfm-tp-header-ctn"},React.createElement("div",{className:"srfm-tp-header"},React.createElement("div",{className:"srfm-tp-header-items"},React.createElement("div",{className:"srfm-tp-main-title"},React.createElement(_,null))),"add-new-form"!==j||"ai"!==N||null!==(I=srfm_admin)&&void 0!==I&&I.is_pro_active&&null!==(l=srfm_admin)&&void 0!==l&&l.is_pro_license_active?React.createElement("div",{className:"srfm-tp-header-close",onClick:function(){window.location.href="/wp-admin/admin.php?page=sureforms_menu"}},React.createElement("div",{className:"srfm-tp-header-close-icon"},i.close)):React.createElement("div",{className:"srfm-tp-header-credits-ctn"},React.createElement(ae.Button,{style:{background:u?"#F3F4F6":"white",width:"225px"},className:"srfm-tp-header-credits",onClick:function(){M(!u)}},React.createElement("span",{className:"srfm-tp-header-credits-left"},wp.i18n.sprintf((0,t.__)("%d AI form generations left","sureforms"),m)),React.createElement("div",{className:"srfm-tp-header-bolt-icon"},React.createElement(ne,null))),u&&React.createElement(ce,{finalFormCreationCountRemaining:m,setShowRevokePopover:M}),React.createElement("div",{className:"srfm-tp-header-close",onClick:function(){window.location.href="/wp-admin/admin.php?page=sureforms_menu"}},React.createElement("div",{className:"srfm-tp-header-close-icon"},i.close)))))},le=function(e){var r=e.icon,i=e.title,n=e.description,a=e.isComingSoon,c=e.isSecondary,o=e.btnText,I=e.btnLink,l=e.isBeta,s=e.onClick;return React.createElement(React.Fragment,null,a&&React.createElement("div",{className:"srfm-tp-cs-badge"},(0,t.__)("Coming Soon…","sureforms")),l&&React.createElement("div",{className:"srfm-tp-cs-badge"},(0,t.__)("Beta","sureforms")),React.createElement("div",{className:"srfm-tp-starting-point-card",onClick:s},r,React.createElement("div",{className:"srfm-tp-sp-text-container"},React.createElement("h4",{className:"srfm-tp-sp-title"},i),React.createElement("p",{className:"srfm-tp-sp-description"},n),React.createElement("div",{className:"srfm-tp-sp-container ".concat(c?"srfm-button-secondary":"srfm-button-primary"," srfm-tp-btn")},React.createElement(V,{className:"srfm-buttons srfm-tp-btn",to:I,reloadDocument:!0},o)))))},se=window.wp.apiFetch;var ue=r.n(se);let Me={data:""},de=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Me,je=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ne=/\/\*[^]*?\*\/| +/g,ge=/\n+/g,me=(e,t)=>{let r="",i="",n="";for(let a in e){let c=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+c+";":i+="f"==a[1]?me(c,a):a+"{"+me(c,"k"==a[1]?"":t)+"}":"object"==typeof c?i+=me(c,t?t.replace(/([^,])+/g,(e=>a.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):a):null!=c&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=me.p?me.p(a,c):a+":"+c+";")}return r+(t&&n?t+"{"+n+"}":n)+i},ye={},pe=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+pe(e[r]);return t}return e},fe=(e,t,r,i,n)=>{let a=pe(e),c=ye[a]||(ye[a]=(e=>{let t=0,r=11;for(;t
>>0;return"go"+r})(a));if(!ye[c]){let t=a!==e?e:(e=>{let t,r,i=[{}];for(;t=je.exec(e.replace(Ne,""));)t[4]?i.shift():t[3]?(r=t[3].replace(ge," ").trim(),i.unshift(i[0][r]=i[0][r]||{})):i[0][t[1]]=t[2].replace(ge," ").trim();return i[0]})(e);ye[c]=me(n?{["@keyframes "+c]:t}:t,r?"":"."+c)}let o=r&&ye.g?ye.g:null;return r&&(ye.g=ye[c]),((e,t,r,i)=>{i?t.data=t.data.replace(i,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(ye[c],t,i,o),c},he=(e,t,r)=>e.reduce(((e,i,n)=>{let a=t[n];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":me(e,""):!1===e?"":e}return e+i+(null==a?"":a)}),"");function ze(e){let t=this||{},r=e.call?e(t.p):e;return fe(r.unshift?r.raw?he(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,de(t.target),t.g,t.o,t.k)}ze.bind({g:1});let De,xe,be,ve=ze.bind({k:1});function Ee(e,t){let r=this||{};return function(){let i=arguments;function n(a,c){let o=Object.assign({},a),I=o.className||n.className;r.p=Object.assign({theme:xe&&xe()},o),r.o=/ *go\d+/.test(I),o.className=ze.apply(r,i)+(I?" "+I:""),t&&(o.ref=c);let l=e;return e[0]&&(l=o.as||e,delete o.as),be&&l[0]&&be(o),De(l,o)}return t?t(n):n}}var Te=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Se=(()=>{let e=0;return()=>(++e).toString()})(),Ce=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),we=new Map,Re=e=>{if(we.has(e))return;let t=setTimeout((()=>{we.delete(e),Pe({type:4,toastId:e})}),1e3);we.set(e,t)},Le=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=we.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return e.toasts.find((e=>e.id===r.id))?Le(e,{type:1,toast:r}):Le(e,{type:0,toast:r});case 3:let{toastId:i}=t;return i?Re(i):e.toasts.forEach((e=>{Re(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===i||void 0===i?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let n=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+n})))}}},Ae=[],ke={toasts:[],pausedAt:void 0},Pe=e=>{ke=Le(ke,e),Ae.forEach((e=>{e(ke)}))},Ze={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Ge=e=>(t,r)=>{let i=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||Se()}))(t,e,r);return Pe({type:2,toast:i}),i.id},Oe=(e,t)=>Ge("blank")(e,t);Oe.error=Ge("error"),Oe.success=Ge("success"),Oe.loading=Ge("loading"),Oe.custom=Ge("custom"),Oe.dismiss=e=>{Pe({type:3,toastId:e})},Oe.remove=e=>Pe({type:4,toastId:e}),Oe.promise=(e,t,r)=>{let i=Oe.loading(t.loading,{...r,...null==r?void 0:r.loading});return e.then((e=>(Oe.success(Te(t.success,e),{id:i,...r,...null==r?void 0:r.success}),e))).catch((e=>{Oe.error(Te(t.error,e),{id:i,...r,...null==r?void 0:r.error})})),e};var Ye=(e,t)=>{Pe({type:1,toast:{id:e,height:t}})},We=()=>{Pe({type:5,time:Date.now()})},Ue=ve` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Qe=ve` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,Be=ve` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,He=Ee("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${Ue} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${Qe} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${Be} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,Fe=ve` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Ve=Ee("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${Fe} 1s linear infinite; `,Xe=ve` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Je=ve` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,_e=Ee("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${Xe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${Je} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Ke=Ee("div")` position: absolute; `,$e=Ee("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,qe=ve` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,et=Ee("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${qe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,tt=({toast:e})=>{let{icon:t,type:r,iconTheme:i}=e;return void 0!==t?"string"==typeof t?n.createElement(et,null,t):t:"blank"===r?null:n.createElement($e,null,n.createElement(Ve,{...i}),"loading"!==r&&n.createElement(Ke,null,"error"===r?n.createElement(He,{...i}):n.createElement(_e,{...i})))},rt=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,it=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,nt=Ee("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,at=Ee("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,ct=n.memo((({toast:e,position:t,style:r,children:i})=>{let a=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[i,n]=Ce()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[rt(r),it(r)];return{animation:t?`${ve(i)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ve(n)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},c=n.createElement(tt,{toast:e}),o=n.createElement(at,{...e.ariaProps},Te(e.message,e));return n.createElement(nt,{className:e.className,style:{...a,...r,...e.style}},"function"==typeof i?i({icon:c,message:o}):n.createElement(n.Fragment,null,c,o))}));!function(e,t,r,i){me.p=void 0,De=e,xe=void 0,be=void 0}(n.createElement);var ot=({id:e,className:t,style:r,onHeightUpdate:i,children:a})=>{let c=n.useCallback((t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;i(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,i]);return n.createElement("div",{ref:c,className:t,style:r},a)},It=ze` z-index: 9999; > * { pointer-events: auto; } `,lt=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:i,children:a,containerStyle:c,containerClassName:o})=>{let{toasts:I,handlers:l}=(e=>{let{toasts:t,pausedAt:r}=((e={})=>{let[t,r]=(0,n.useState)(ke);(0,n.useEffect)((()=>(Ae.push(r),()=>{let e=Ae.indexOf(r);e>-1&&Ae.splice(e,1)})),[t]);let i=t.toasts.map((t=>{var r,i;return{...e,...e[t.type],...t,duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Ze[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}}));return{...t,toasts:i}})(e);(0,n.useEffect)((()=>{if(r)return;let e=Date.now(),i=t.map((t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(r<0))return setTimeout((()=>Oe.dismiss(t.id)),r);t.visible&&Oe.dismiss(t.id)}));return()=>{i.forEach((e=>e&&clearTimeout(e)))}}),[t,r]);let i=(0,n.useCallback)((()=>{r&&Pe({type:6,time:Date.now()})}),[r]),a=(0,n.useCallback)(((e,r)=>{let{reverseOrder:i=!1,gutter:n=8,defaultPosition:a}=r||{},c=t.filter((t=>(t.position||a)===(e.position||a)&&t.height)),o=c.findIndex((t=>t.id===e.id)),I=c.filter(((e,t)=>t
e.visible)).slice(...i?[I+1]:[0,I]).reduce(((e,t)=>e+(t.height||0)+n),0)}),[t]);return{toasts:t,handlers:{updateHeight:Ye,startPause:We,endPause:i,calculateOffset:a}}})(r);return n.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...c},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},I.map((r=>{let c=r.position||t,o=((e,t)=>{let r=e.includes("top"),i=r?{top:0}:{bottom:0},n=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Ce()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...i,...n}})(c,l.calculateOffset(r,{reverseOrder:e,gutter:i,defaultPosition:t}));return n.createElement(ot,{id:r.id,key:r.id,onHeightUpdate:l.updateHeight,className:r.visible?It:"",style:o},"custom"===r.type?Te(r.message,r):a?a(r):n.createElement(ct,{toast:r,position:c}))})))},st=Oe;function ut(e){return ut="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},ut(e)}function Mt(){Mt=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",c=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function I(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{I({},"")}catch(e){I=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var a=t&&t.prototype instanceof M?t:M,c=Object.create(a.prototype),o=new b(n||[]);return i(c,"_invoke",{value:h(e,r,o)}),c}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u={};function M(){}function d(){}function j(){}var N={};I(N,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(v([])));m&&m!==t&&r.call(m,a)&&(N=m);var y=j.prototype=M.prototype=Object.create(N);function p(e){["next","throw","return"].forEach((function(t){I(e,t,(function(e){return this._invoke(t,e)}))}))}function f(e,t){function n(i,a,c,o){var I=s(e[i],e,a);if("throw"!==I.type){var l=I.arg,u=l.value;return u&&"object"==ut(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,c,o)}),(function(e){n("throw",e,c,o)})):t.resolve(u).then((function(e){l.value=e,c(l)}),(function(e){return n("throw",e,c,o)}))}o(I.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function h(e,t,r){var i="suspendedStart";return function(n,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===n)throw a;return{value:void 0,done:!0}}for(r.method=n,r.arg=a;;){var c=r.delegate;if(c){var o=z(c,r);if(o){if(o===u)continue;return o}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var I=s(e,t,r);if("normal"===I.type){if(i=r.done?"completed":"suspendedYield",I.arg===u)continue;return{value:I.arg,done:r.done}}"throw"===I.type&&(i="completed",r.method="throw",r.arg=I.arg)}}}function z(e,t){var r=t.method,i=e.iterator[r];if(void 0===i)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,z(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),u;var n=s(i,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function v(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function t(){for(;++i
=0;--n){var a=this.tryEntries[n],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var o=r.call(a,"catchLoc"),I=r.call(a,"finallyLoc");if(o&&I){if(this.prev
=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev
=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var n=i.arg;x(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:v(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function dt(e,t,r,i,n,a,c){try{var o=e[a](c),I=o.value}catch(e){return void r(e)}o.done?t(I):Promise.resolve(I).then(i,n)}function jt(e){return function(){var t=this,r=arguments;return new Promise((function(i,n){var a=e.apply(t,r);function c(e){dt(a,i,n,c,o,"next",e)}function o(e){dt(a,i,n,c,o,"throw",e)}c(void 0)}))}}var Nt=function(){var e=jt(Mt().mark((function e(t,r,i){var n,a;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"===srfm_admin.capability){e.next=3;break}return console.error("User does not have permission to create posts"),e.abrupt("return");case 3:return e.prev=3,e.next=6,ue()({path:"sureforms/v1/create-new-form",method:"POST",headers:{"Content-Type":"text/html","X-WP-Nonce":srfm_admin.template_picker_nonce},data:{form_data:t,template_name:r,template_metas:i}});case 6:(n=e.sent).id?(a=n.id,window.location.href="".concat(srfm_admin.site_url,"/wp-admin/post.php?post=").concat(a,"&action=edit")):console.error("Error creating sureforms_form:",n.message),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.log(e.t0);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t,r,i){return e.apply(this,arguments)}}(),gt=function(){var e=jt(Mt().mark((function e(){var t;return Mt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ue()({path:"/sureforms/v1/initiate-auth",headers:{"Content-Type":"application/json","X-WP-Nonce":srfm_admin.template_picker_nonce},method:"GET"});case 2:null!=(t=e.sent)&&t.success&&(window.location.href=t.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function mt(e){return re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}]})(e)}function yt(e){return re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"}}]})(e)}function pt(e){return re({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}}]})(e)}var ft=r(5697),ht=r.n(ft);function zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function Dt(e){for(var t=1;t
e.length)&&(t=e.length);for(var r=0,i=new Array(t);r
=.5&&i(t.isIntersecting)}),{root:null,rootMargin:"0px",threshold:.5});return e&&e.current&&t.observe(e.current),function(){t.disconnect()}}),[e]),r}(s);(0,n.useEffect)((function(){var e,t;if(u)if(a)l(r);else{var n=Number(null===(e=s.current)||void 0===e||null===(t=e.dataset)||void 0===t?void 0:t.angel);if(!(r>100||r<0||n===r)){var c,o=1e3/i,I=performance.now();return c=requestAnimationFrame((function e(t){c=requestAnimationFrame(e);var i=t-I;i>=o-.1&&(I=t-i%o,n>r&&l((function(e){return e-1})),n
=0;--n){var a=this.tryEntries[n],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var o=r.call(a,"catchLoc"),I=r.call(a,"finallyLoc");if(o&&I){if(this.prev
=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev
=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var n=i.arg;x(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:v(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Bt(e,t,r,i,n,a,c){try{var o=e[a](c),I=o.value}catch(e){return void r(e)}o.done?t(I):Promise.resolve(I).then(i,n)}function Ht(e){return function(){var t=this,r=arguments;return new Promise((function(i,n){var a=e.apply(t,r);function c(e){Bt(a,i,n,c,o,"next",e)}function o(e){Bt(a,i,n,c,o,"throw",e)}c(void 0)}))}}function Ft(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 i,n,a,c,o=[],I=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;I=!1}else for(;!(I=(i=a.call(r)).done)&&(o.push(i.value),o.length!==t);I=!0);}catch(e){l=!0,n=e}finally{try{if(!I&&null!=r.return&&(c=r.return(),Object(c)!==c))return}finally{if(l)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vt(e,t):void 0}}(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.")}()}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r
Date.now()/1e3?React.createElement(Ot,{paraOne:(0,t.__)("You have reached the FUP limit of AI form generations for the day.","sureforms"),paraTwo:(0,t.sprintf)((0,t.__)("Please try again after %s.","sureforms"),new Date(1e3*p).toLocaleString()),buttonText:(0,t.__)("Try Again","sureforms"),onclick:function(){window.location.href=srfm_admin.site_url+"/wp-admin/admin.php?page=add-new-form&method=ai"}}):"registered"===g&&0===m?React.createElement(Ot,{paraOne:(0,t.__)("You have reached the maximum number of form generations in your Free Plan.","sureforms"),paraTwo:(0,t.__)("Please upgrade your free plan to keep creating more forms with AI.","sureforms"),buttonText:(0,t.__)("Upgrade Plan","sureforms"),onclick:function(){var e;window.open(null===(e=srfm_admin)||void 0===e?void 0:e.pricing_page_url,"_blank")}}):"non-registered"===g&&0===m?React.createElement(Ot,{paraOne:(0,t.__)("You have reached the maximum number of form generations.","sureforms"),paraTwo:(0,t.__)("Please connect your website with SureForms AI to create 20 more forms with AI.","sureforms"),onclick:gt}):React.createElement(Xt,null)}():React.createElement(Jt,null):React.createElement("div",{className:"srfm-tp-sp-container srfm-content-section"},React.createElement(Ie,null),React.createElement("div",{className:"srfm-tp-sp-methods-container"},React.createElement("div",{className:"srfm-tp-sp-methods-inner-wrap"},React.createElement("div",{className:"srfm-tp-sp-heading-container"},React.createElement("h1",{className:"srfm-tp-sp-heading"},(0,t.__)("How would you like to create a new form?","sureforms"))),React.createElement("div",{className:"srfm-tp-sp-methods"},React.createElement("div",{className:"srfm-single-card"},React.createElement(le,{icon:i.scratch,title:(0,t.__)("Build Form From Scratch","sureforms"),description:(0,t.__)("Tailor your form precisely to your unique needs. No coding skills required—just unleash your creativity.","sureforms"),isSecondary:!0,btnText:(0,t.__)("Build From Scratch","sureforms"),btnLink:"".concat(srfm_admin.site_url,"/wp-admin/post-new.php?post_type=sureforms_form")})),React.createElement("div",{className:"srfm-single-card"},React.createElement(le,{icon:i.ai,title:(0,t.__)("Generate Form with AI","sureforms"),description:(0,t.__)("Experience the future of form building with AI-powered forms. Use AI to build your form 10x faster.","sureforms"),btnText:React.createElement(React.Fragment,null,React.createElement("span",null,(0,t.__)("Build With AI","sureforms")),React.createElement("span",{className:"srfm-btn-arrow"},i.arrowRight)),btnLink:"".concat(srfm_admin.site_url,"/wp-admin/admin.php?page=add-new-form&method=ai")}))),React.createElement("div",{className:"srfm-exit-link-container"},React.createElement("div",{className:"srfm-exit-link-content",onClick:function(){window.location.href="/wp-admin/admin.php?page=sureforms_menu"}},i.exit,React.createElement("span",null,(0,t.__)("Exit to Dashboard","sureforms")))))))}return(0,e.useEffect)((function(){document.querySelector("html.wp-toolbar").style.paddingTop=0}),[]),React.createElement(React.Fragment,null,React.createElement(B,null,React.createElement(r,null)))};_t=document.getElementById("srfm-add-new-form-container"),document.addEventListener("DOMContentLoaded",(function(){null!==_t&&(0,e.render)(React.createElement(Kt,null),_t)}))})()})();