File manager - Edit - /home/palg2351/public_html/wp-content/plugins/jetformbuilder/modules/captcha/assets/build/editor.js
Back
(()=>{"use strict";var e={d:(t,l)=>{for(var a in l)e.o(l,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:l[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{metadata:()=>u,name:()=>E,settings:()=>B});const l=window.React,a=(0,l.createElement)("svg",{width:"298",height:"144",viewBox:"0 0 298 144",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("rect",{width:"298",height:"144",rx:"4",fill:"#E2E8F0"}),(0,l.createElement)("rect",{x:"15",y:"26",width:"268",height:"92",rx:"5",fill:"#E2E8F0"}),(0,l.createElement)("rect",{x:"19",y:"44",width:"56",height:"56",rx:"4",fill:"white"}),(0,l.createElement)("path",{d:"M65.1937 71.5167C65.1928 71.25 65.1867 70.9848 65.1747 70.7208V55.67L61.0138 59.8309C57.6083 55.6624 52.4277 53 46.625 53C40.5862 53 35.2214 55.8824 31.8301 60.3463L38.6503 67.2383C39.3187 66.0022 40.2682 64.9404 41.4131 64.1386C42.6038 63.2094 44.2909 62.4496 46.6247 62.4496C46.9067 62.4496 47.1243 62.4826 47.2842 62.5446C50.1758 62.7729 52.6822 64.3687 54.158 66.6848L49.3303 71.5126C55.4452 71.4886 62.3531 71.4745 65.1932 71.5157",fill:"#1C3AA9"}),(0,l.createElement)("path",{d:"M46.5167 53.0007C46.25 53.0016 45.9848 53.0078 45.7208 53.0197H30.67L34.8309 57.1807C30.6624 60.5861 28 65.7668 28 71.5695C28 77.6082 30.8825 82.973 35.3463 86.3644L42.2383 79.5441C41.0022 78.8757 39.9404 77.9262 39.1386 76.7813C38.2094 75.5906 37.4496 73.9035 37.4496 71.5697C37.4496 71.2878 37.4826 71.0702 37.5446 70.9103C37.7729 68.0187 39.3687 65.5122 41.6848 64.0364L46.5126 68.8641C46.4886 62.7492 46.4744 55.8413 46.5157 53.0013",fill:"#4285F4"}),(0,l.createElement)("path",{d:"M28 71.5693C28.0009 71.836 28.007 72.1013 28.019 72.3653V87.4161L32.1799 83.2552C35.5854 87.4236 40.766 90.0861 46.5688 90.0861C52.6075 90.0861 57.9723 87.2036 61.3636 82.7398L54.5434 75.8478C53.875 77.0839 52.9255 78.1456 51.7806 78.9475C50.5899 79.8767 48.9028 80.6364 46.569 80.6364C46.287 80.6364 46.0694 80.6035 45.9095 80.5414C43.018 80.3132 40.5115 78.7174 39.0357 76.4012L43.8634 71.5735C37.7485 71.5975 30.8406 71.6116 28.0005 71.5704",fill:"#ABABAB"}),(0,l.createElement)("rect",{x:"87",y:"44",width:"56",height:"56",rx:"4",fill:"white"}),(0,l.createElement)("path",{opacity:"0.5",d:"M119.596 86.4341H124.515V91.353H119.596V86.4341Z",fill:"#0074BF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M114.677 86.4341H119.596V91.353H114.677V86.4341ZM109.758 86.4341H114.677V91.353H109.758V86.4341Z",fill:"#0074BF"}),(0,l.createElement)("path",{opacity:"0.5",d:"M104.838 86.4341H109.757V91.353H104.838V86.4341Z",fill:"#0074BF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M124.514 81.5151H129.433V86.4341H124.514V81.5151Z",fill:"#0082BF"}),(0,l.createElement)("path",{opacity:"0.8",d:"M119.594 81.5151H124.513V86.4341H119.594V81.5151Z",fill:"#0082BF"}),(0,l.createElement)("path",{d:"M114.675 81.5151H119.594V86.4341H114.675V81.5151ZM109.756 81.5151H114.675V86.4341H109.756V81.5151Z",fill:"#0082BF"}),(0,l.createElement)("path",{opacity:"0.8",d:"M104.838 81.5151H109.757V86.4341H104.838V81.5151Z",fill:"#0082BF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M99.918 81.5152H104.837V86.4341H99.918V81.5152Z",fill:"#0082BF"}),(0,l.createElement)("path",{opacity:"0.5",d:"M129.434 76.5952H134.353V81.5141H129.434V76.5952Z",fill:"#008FBF"}),(0,l.createElement)("path",{opacity:"0.8",d:"M124.516 76.5952H129.435V81.5141H124.516V76.5952Z",fill:"#008FBF"}),(0,l.createElement)("path",{d:"M119.595 76.5952H124.514V81.5141H119.595V76.5952ZM114.676 76.5952H119.595V81.5141H114.676V76.5952ZM109.757 76.5952H114.676V81.5141H109.757V76.5952ZM104.838 76.5952H109.757V81.5141H104.838V76.5952Z",fill:"#008FBF"}),(0,l.createElement)("path",{opacity:"0.8",d:"M99.918 76.5952H104.837V81.5141H99.918V76.5952Z",fill:"#008FBF"}),(0,l.createElement)("path",{opacity:"0.5",d:"M95 76.5954H99.9189V81.5143H95V76.5954Z",fill:"#008FBF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M129.434 71.6763H134.353V76.5952H129.434V71.6763Z",fill:"#009DBF"}),(0,l.createElement)("path",{d:"M124.514 71.6763H129.433V76.5952H124.514V71.6763ZM119.594 71.6763H124.513V76.5952H119.594V71.6763ZM114.676 71.6763H119.594V76.5952H114.676V71.6763ZM109.757 71.6763H114.676V76.5952H109.757V71.6763ZM104.838 71.6763H109.757V76.5952H104.838V71.6763ZM99.918 71.6763H104.837V76.5952H99.918V71.6763Z",fill:"#009DBF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M95 71.6765H99.9189V76.5954H95V71.6765Z",fill:"#009DBF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M129.434 66.7573H134.353V71.6763H129.434V66.7573Z",fill:"#00ABBF"}),(0,l.createElement)("path",{d:"M124.514 66.7573H129.433V71.6763H124.514V66.7573ZM119.594 66.7573H124.513V71.6763H119.594V66.7573ZM114.676 66.7573H119.594V71.6763H114.676V66.7573ZM109.757 66.7573H114.676V71.6763H109.757V66.7573ZM104.838 66.7573H109.757V71.6763H104.838V66.7573ZM99.918 66.7573H104.837V71.6763H99.918V66.7573Z",fill:"#00ABBF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M95 66.7576H99.9189V71.6765H95V66.7576Z",fill:"#00ABBF"}),(0,l.createElement)("path",{opacity:"0.5",d:"M129.434 61.8389H134.353V66.7578H129.434V61.8389Z",fill:"#00B9BF"}),(0,l.createElement)("path",{opacity:"0.8",d:"M124.516 61.8389H129.435V66.7578H124.516V61.8389Z",fill:"#00B9BF"}),(0,l.createElement)("path",{d:"M119.595 61.8389H124.514V66.7578H119.595V61.8389ZM114.676 61.8389H119.595V66.7578H114.676V61.8389ZM109.757 61.8389H114.676V66.7578H109.757V61.8389ZM104.838 61.8389H109.757V66.7578H104.838V61.8389Z",fill:"#00B9BF"}),(0,l.createElement)("path",{opacity:"0.8",d:"M99.918 61.8389H104.837V66.7578H99.918V61.8389Z",fill:"#00B9BF"}),(0,l.createElement)("path",{opacity:"0.5",d:"M95 61.8386H99.9189V66.7576H95V61.8386Z",fill:"#00B9BF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M124.516 56.9189H129.435V61.8379H124.516V56.9189Z",fill:"#00C6BF"}),(0,l.createElement)("path",{opacity:"0.8",d:"M119.596 56.9189H124.515V61.8379H119.596V56.9189Z",fill:"#00C6BF"}),(0,l.createElement)("path",{d:"M114.677 56.9189H119.596V61.8378H114.677V56.9189ZM109.758 56.9189H114.677V61.8378H109.758V56.9189Z",fill:"#00C6BF"}),(0,l.createElement)("path",{opacity:"0.8",d:"M104.838 56.9189H109.757V61.8379H104.838V56.9189Z",fill:"#00C6BF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M99.918 56.9189H104.837V61.8379H99.918V56.9189Z",fill:"#00C6BF"}),(0,l.createElement)("path",{opacity:"0.5",d:"M119.596 52H124.515V56.9189H119.596V52Z",fill:"#00D4BF"}),(0,l.createElement)("path",{opacity:"0.7",d:"M114.677 52H119.596V56.9189H114.677V52ZM109.758 52H114.677V56.9189H109.758V52Z",fill:"#00D4BF"}),(0,l.createElement)("path",{opacity:"0.5",d:"M104.838 52H109.757V56.9189H104.838V52Z",fill:"#00D4BF"}),(0,l.createElement)("path",{d:"M107.952 70.1248L109.323 67.0571C109.822 66.2706 109.756 65.307 109.209 64.7604C109.137 64.6876 109.056 64.623 108.969 64.5678C108.781 64.4528 108.571 64.3799 108.352 64.3544C108.134 64.3289 107.912 64.3514 107.703 64.4202C107.229 64.5678 106.823 64.8815 106.561 65.3038C106.561 65.3038 104.685 69.6818 103.986 71.6497C103.288 73.6176 103.567 77.2262 106.259 79.9243C109.115 82.7799 113.25 83.4326 115.887 81.4532C115.997 81.3978 116.101 81.3302 116.196 81.2517L124.322 74.4661C124.717 74.1397 125.301 73.4674 124.776 72.7005C124.265 71.9523 123.296 72.4615 122.9 72.7144L118.223 76.115C118.201 76.133 118.176 76.1465 118.149 76.1546C118.122 76.1626 118.093 76.1651 118.065 76.1618C118.037 76.1585 118.009 76.1496 117.985 76.1355C117.96 76.1214 117.939 76.1025 117.921 76.0799C117.802 75.9338 117.781 75.5471 117.968 75.3937L125.137 69.3097C125.756 68.7517 125.843 67.9407 125.341 67.3851C124.851 66.8409 124.074 66.8572 123.449 67.4201L116.995 72.4663C116.964 72.491 116.929 72.5092 116.892 72.5199C116.854 72.5305 116.815 72.5334 116.777 72.5284C116.738 72.5233 116.701 72.5105 116.667 72.4905C116.634 72.4706 116.605 72.4441 116.582 72.4125C116.454 72.2697 116.405 72.0258 116.549 71.883L123.859 64.7889C124.136 64.5306 124.299 64.173 124.313 63.7945C124.326 63.4161 124.189 63.0478 123.931 62.7705C123.803 62.6358 123.649 62.5286 123.479 62.4555C123.308 62.3824 123.124 62.345 122.938 62.3454C122.556 62.3412 122.187 62.4878 121.912 62.7533L114.442 69.7699C114.264 69.9485 113.914 69.7699 113.871 69.561C113.864 69.5236 113.865 69.4849 113.877 69.4484C113.888 69.412 113.908 69.3788 113.935 69.3521L119.653 62.8423C119.791 62.7134 119.902 62.558 119.979 62.3854C120.056 62.2128 120.097 62.0265 120.1 61.8375C120.104 61.6486 120.069 61.4609 119.999 61.2856C119.928 61.1103 119.823 60.951 119.69 60.8172C119.556 60.6833 119.397 60.5777 119.222 60.5065C119.047 60.4354 118.86 60.4002 118.671 60.403C118.482 60.4058 118.295 60.4466 118.122 60.523C117.949 60.5993 117.794 60.7097 117.664 60.8474L108.994 70.4332C108.683 70.744 108.225 70.7595 108.008 70.5792C107.941 70.5259 107.897 70.4484 107.887 70.3634C107.876 70.2783 107.9 70.1927 107.952 70.1248Z",fill:"white"}),(0,l.createElement)("rect",{x:"155",y:"44",width:"56",height:"56",rx:"4",fill:"white"}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M200.849 57.1507C196.911 53.2125 191.57 51 186 51C174.41 51 165 60.4098 165 72C165 83.5902 174.41 93 186 93C191.57 93 196.911 90.7875 200.849 86.8493L196.394 82.3945C193.638 85.1513 189.899 86.7 186 86.7C177.887 86.7 171.3 80.1131 171.3 72C171.3 63.8869 177.887 57.3 186 57.3C189.899 57.3 193.638 58.8487 196.394 61.6055L200.849 57.1507Z",fill:"#FFAB00"}),(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M171.15 86.8494C175.089 90.7877 180.43 93.0002 186 93.0002C191.569 93.0002 196.911 90.7877 200.849 86.8494L196.394 82.3947C193.637 85.1514 189.898 86.7002 186 86.7002C182.101 86.7002 178.362 85.1514 175.605 82.3947L171.15 86.8494Z",fill:"#FFC400"}),(0,l.createElement)("path",{d:"M179.699 75.1501C181.438 75.1501 182.849 73.7398 182.849 72.0001C182.849 70.2604 181.438 68.8501 179.699 68.8501C177.959 68.8501 176.549 70.2604 176.549 72.0001C176.549 73.7398 177.959 75.1501 179.699 75.1501Z",fill:"#FFAB00"}),(0,l.createElement)("path",{d:"M192.3 75.1501C194.04 75.1501 195.45 73.7398 195.45 72.0001C195.45 70.2604 194.04 68.8501 192.3 68.8501C190.561 68.8501 189.15 70.2604 189.15 72.0001C189.15 73.7398 190.561 75.1501 192.3 75.1501Z",fill:"#FFAB00"}),(0,l.createElement)("rect",{x:"223",y:"44",width:"56",height:"56",rx:"4",fill:"white"}),(0,l.createElement)("path",{d:"M269.335 73.8259L263.803 70.6535L262.849 70.2408L240.217 70.3956V81.8857H269.335V73.8259Z",fill:"white"}),(0,l.createElement)("path",{d:"M259.266 80.8279C259.537 79.8994 259.434 79.0483 258.983 78.4164C258.57 77.8361 257.874 77.5008 257.035 77.4621L241.161 77.2558C241.058 77.2558 240.967 77.2042 240.916 77.1268C240.864 77.0495 240.851 76.9463 240.877 76.8431C240.929 76.6884 241.083 76.5723 241.251 76.5594L257.267 76.3531C259.163 76.2628 261.226 74.7282 261.949 72.8454L262.864 70.4597C262.903 70.3566 262.916 70.2534 262.89 70.1502C261.858 65.482 257.693 62.0001 252.715 62.0001C248.124 62.0001 244.23 64.9661 242.837 69.0799C241.934 68.4093 240.787 68.0482 239.549 68.1643C237.344 68.3835 235.577 70.1502 235.358 72.3554C235.306 72.9228 235.345 73.4773 235.474 73.9932C231.876 74.0963 229 77.0366 229 80.6603C229 80.9827 229.026 81.3051 229.064 81.6274C229.09 81.7822 229.219 81.8983 229.374 81.8983H258.673C258.841 81.8983 258.996 81.7822 259.047 81.6146L259.266 80.8279Z",fill:"#F38020"}),(0,l.createElement)("path",{d:"M264.321 70.6276C264.179 70.6276 264.024 70.6276 263.882 70.6405C263.779 70.6405 263.689 70.7178 263.65 70.821L263.031 72.9746C262.76 73.9031 262.863 74.7542 263.315 75.3861C263.727 75.9664 264.424 76.3017 265.262 76.3404L268.641 76.5467C268.744 76.5467 268.834 76.5983 268.886 76.6757C268.937 76.753 268.95 76.8691 268.924 76.9594C268.873 77.1141 268.718 77.2302 268.55 77.2431L265.03 77.4494C263.121 77.5397 261.071 79.0743 260.349 80.9571L260.091 81.6147C260.039 81.7437 260.13 81.8727 260.271 81.8727H272.368C272.509 81.8727 272.638 81.7824 272.677 81.6405C272.883 80.8926 272.999 80.1059 272.999 79.2935C272.999 74.5221 269.105 70.6276 264.321 70.6276Z",fill:"#FAAE40"})),{CaptchaBlockEdit:i,SelectVariations:r,ToggleGroupVariations:c}=JetFBComponents,{useMetaState:n}=JetFBHooks,{__:o}=wp.i18n,{InspectorControls:p,useBlockProps:C}=wp.blockEditor,{useSelect:d}=wp.data,{useEffect:h,useState:V}=wp.element;let{__experimentalBlockVariationPicker:s,BlockVariationPicker:H,BlockControls:f}=wp.blockEditor;function m(e){const{setAttributes:t,attributes:i}=e,r=C(),{blockType:c,variations:n}=d((e=>{const{getBlockVariations:t,getBlockType:l}=e("core/blocks");return{blockType:l(E),variations:t(E,"block")}}),[]);return i.isPreview?(0,l.createElement)("div",{style:{width:"100%",display:"flex",justifyContent:"center"}},a):(0,l.createElement)("div",{...r},(0,l.createElement)(H,{label:c?.title,instructions:o("Select captcha provider","jet-form-builder"),variations:n,onSelect:e=>{t(e.attributes)}}))}H=H||s;const u=JSON.parse('{"apiVersion":2,"name":"jet-forms/captcha-container","category":"jet-form-builder-fields","keywords":["jetformbuilder","captcha","recaptcha","hcaptcha","spam","protection"],"textdomain":"jet-form-builder","supports":{"html":false,"multiple":false},"title":"Captcha Container","description":"","icon":"<svg width=\\"64\\" height=\\"64\\" viewBox=\\"0 0 64 64\\" fill=\\"none\\" xmlns=\\"http://www.w3.org/2000/svg\\">\\n<path d=\\"M47.27 44.0925L39.005 52.3575L33.8575 47.1738L35.4525 45.5788L39.1138 49.24L45.7475 42.6063L47.27 44.0925Z\\" fill=\\"currentColor\\"/>\\n<path fill-rule=\\"evenodd\\" clip-rule=\\"evenodd\\" d=\\"M49.0141 56H55C57.2091 56 59 54.2091 59 52V6C59 3.79086 57.2091 2 55 2H9C6.79086 2 5 3.79086 5 6V52C5 54.2091 6.79086 56 9 56H32.1858C32.2112 56.0365 32.2368 56.073 32.2625 56.1094C34.4375 59.1906 37.1167 61.1542 40.5 62C43.8833 61.1542 46.7625 59.1906 48.9375 56.1094C48.9632 56.073 48.9887 56.0365 49.0141 56ZM55 4H9C7.89543 4 7 4.89543 7 6V52C7 53.1046 7.89543 54 9 54H30.9676C29.6559 51.5044 29 49 29 45.9775V38.0409C29 37.6251 29.2573 37.2527 29.6462 37.1056L40.1401 33.1361C40.3718 33.0485 40.6277 33.05 40.8583 33.1402L51.3644 37.2513C51.7477 37.4013 52 37.7709 52 38.1825V46C52 49 51.4652 51.5113 50.2083 54H55C56.1046 54 57 53.1046 57 52V6C57 4.89543 56.1046 4 55 4ZM47.3969 54.5506C45.6448 57.1002 43.2792 59.0817 40.5 60C37.7208 59.0817 35.5552 57.1002 33.8031 54.5506C32.051 52.001 31 49.1658 31 46V39L40.5 35L50.025 39V45.9775C50.025 49.1433 49.149 52.001 47.3969 54.5506Z\\" fill=\\"currentColor\\"/>\\n</svg>","attributes":{"provider":{"type":"string","default":""},"isPreview":{"type":"boolean","default":false}}}'),{name:E,icon:M}=u,{__:Z}=wp.i18n,B={icon:(0,l.createElement)("span",{dangerouslySetInnerHTML:{__html:M}}),description:Z("Insert the captcha for your form. Determine its location yourself using the block, as is added before the submit button by default.","jet-form-builder"),edit:function(e){const{attributes:t,setAttributes:a}=e,[o,C]=n("_jf_recaptcha"),[d,s]=V((()=>t.provider));return h((()=>{t.isPreview||s((e=>t.provider!==e?t.provider:e))}),[t.provider]),h((()=>{t.isPreview||s((e=>o.captcha!==e?o.captcha:e))}),[o.captcha]),h((()=>{t.isPreview||C((e=>d!==e.captcha?(o.captcha=d,{...e,captcha:d}):e))}),[d]),h((()=>{t.isPreview||d!==t.provider&&a({provider:d})}),[d]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(p,null,(0,l.createElement)("div",{style:{padding:"0 20px 20px 20px"}},(0,l.createElement)(r,{value:t.provider}))),(0,l.createElement)(f,null,(0,l.createElement)(c,{value:t.provider})),t.provider?(0,l.createElement)(i.Slot,{fillProps:e}):(0,l.createElement)(m,{...e}))},example:{attributes:{isPreview:!0}}},{__:F}=wp.i18n,{Tools:y,getCaptchaProviders:w}=JetFBActions,{globalTab:b}=JetFBActions,g=(b({slug:"captcha-tab"}),y.withPlaceholder(w(),F("Without protection","jet-form-builder"))),{__:v}=wp.i18n,{useMetaState:L}=JetFBHooks,{CaptchaOptions:_}=JetFBComponents,{SelectControl:j}=wp.components,k=function(){const[e,t]=L("_jf_recaptcha");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(j,{label:v("Captcha Provider","jet-form-builder"),value:e.captcha,options:g,onChange:e=>{t((t=>({...t,captcha:e})))}}),Boolean(e.captcha)&&(0,l.createElement)(_.Slot,{fillProps:{args:e,setArgs:t}}))},{__:x}=wp.i18n,{useEffect:P}=wp.element,{useMetaState:S}=JetFBHooks,A={render:function(){const[e,t]=S("_jf_recaptcha");return P((()=>{e.enabled&&!e.hasOwnProperty("captcha")&&t((e=>(delete e.enabled,{captcha:"google",google:{use_global:e.use_global,key:e.key,secret:e.secret,threshold:e.threshold}})))}),[]),(0,l.createElement)(k,null)},icon:"filter"},T={base:{name:"jf-captcha-panel",title:x("Captcha Settings","jet-form-builder")},settings:A},{addFilter:J}=wp.hooks;J("jet.fb.register.fields","jet-form-builder/captcha",(function(e){return e.push(t),e})),J("jet.fb.register.plugin.jf-validation-panel.after","jet-form-builder/captcha",(function(e){return e.push(T),e}))})();
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings