| 1 |
(()=>{"use strict";var e,t={561(e,t,r){const o=window.wp.blocks,i=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,s=window.wp.serverSideRender;var a=r.n(s);const u=window.ReactJSXRuntime,d=JSON.parse('{"UU":"wppb/register"}');(0,o.registerBlockType)(d.UU,{icon:{src:(0,u.jsx)("svg",{children:(0,u.jsx)("g",{children:(0,u.jsx)("g",{children:(0,u.jsx)("path",{d:"m 6.060947,9.5388969 c -0.049,-0.058 -0.1159,-0.093 -0.1778,-0.1361 0,0 -0.2921,-0.215 -0.2921,-0.215 -0.271,-0.2089 -0.5275,-0.4398 -0.7608,-0.6903 -0.6133,-0.6582 -1.0671,-1.5116 -1.2277,-2.4003 -0.043,-0.2401 -0.081,-0.5187 -0.082,-0.762 0,0 -0.013,-0.2794 -0.013,-0.2794 0,0 0.012,-0.127 0.012,-0.127 0,0 0,-0.1651 0,-0.1651 0,0 0.012,-0.127 0.012,-0.127 0,0 0.049,-0.4318 0.049,-0.4318 0.1148,-0.7792 0.4319,-1.5308 0.9068,-2.159 0.5129,-0.6785 1.2601,-1.27849998 2.043,-1.61639998 0.5894,-0.2544 1.2241,-0.4081 1.8669,-0.4156 0,0 0.1651,-0.0130000022 0.1651,-0.0130000022 0,0 0.127,0.0120000021 0.127,0.0120000021 0,0 0.1651,0 0.1651,0 0,0 0.127,0.012 0.127,0.012 0.3658,0.025 0.729,0.096 1.0795,0.2041 1.3113,0.4033 2.4651,1.33699998 3.0701,2.57829998 0.6277,1.2874 0.7121,2.7812 0.1735,4.1148 -0.2399,0.5938 -0.5806,1.1109 -1.0063,1.5875 -0.2369,0.2653 -0.499,0.5094 -0.7768,0.7316 -0.089,0.072 -0.2831,0.2336 -0.381,0.2717 0,0 0,0.025 0,0.025 0,0 0.7112,0.2940999 0.7112,0.2940999 0.6331,0.2717002 1.0023,0.4378002 1.5621,0.8586002 0,0 0.3173,0.185 0.3173,0.185 0.213,0.1813 -0.071,0.4368 -0.203,0.5673 -0.041,0.041 -0.066,0.065 -0.1143,0.097 -0.05,0.034 -0.093,0.051 -0.1524,0.062 -0.1604,0.029 -0.3036,-0.053 -0.4318,-0.138 0,0 -0.381,-0.2499 -0.381,-0.2499 -0.5649,-0.3397 -1.0933,-0.5842 -1.7272,-0.7693 -0.7370002,-0.2153 -1.5072,-0.3063 -2.2733,-0.2975 0,0 -0.127,0.012 -0.127,0.012 0,0 -0.127,0 -0.127,0 0,0 -0.127,0.012 -0.127,0.012 0,0 -0.7366,0.087 -0.7366,0.087 -0.907,0.1512 -1.7832,0.4743 -2.5781,0.9356 -1.6257,0.9436 -2.9202,2.547 -3.4635,4.3507 -0.1191,0.3957 -0.1818,0.6592 -0.2501,1.0668 0,0 -0.0710001,0.6223 -0.0710001,0.6223 0,0.1503 0.042,0.3048 0.16490005,0.4015 0.1042,0.082 0.2529,0.1012 0.381,0.1071 0,0 0.254,0.012 0.254,0.012 0,0 0.2159,-0.013 0.2159,-0.013 0,0 5.4737,0 5.4737,0 0,0 2.4891998,0 2.4891998,0 0,0 0.1905002,-0.013 0.1905002,-0.013 0,0 0.9906,0 0.9906,0 0,0 0.1905,-0.013 0.1905,-0.013 0,0 0.5969,0 0.5969,0 0,0 0.1905,-0.013 0.1905,-0.013 0.2018,-2e-4 0.3568,0 0.5588,0.031 0.4647,0.078 0.8372,0.3136 1.2065,0.5931 0.096,0.073 0.3827,0.2873 0.4445,0.3666 0,0 -10.9728,0 -10.9728,0 0,0 -1.9431,0 -1.9431,0 0,0 -0.1524,-0.012 -0.1524,-0.012 -0.38190005,-0.027 -0.82500005,-0.1105 -1.05950005,-0.4457 -0.206,-0.2942 -0.189,-0.6494 -0.1851,-0.9906 0,0 0.071,-0.5842 0.071,-0.5842 0,0 0.1974,-0.9525 0.1974,-0.9525 0.3729,-1.4916 1.08010005,-2.8205 2.15750005,-3.9243 0,0 0.1776,-0.1656 0.1776,-0.1656 0.4393,-0.4201 0.9205,-0.7823 1.4351,-1.105 0.437,-0.2741 0.9107,-0.5223002 1.3843,-0.7268002 0.1284,-0.055 0.5215,-0.2298999 0.635,-0.2504999 z m 2.2987,-8.57070002 c 0,0 -0.2667,0.027 -0.2667,0.027 -0.2706,0.036 -0.5407,0.092 -0.8001,0.17870002 -1.0421,0.3475 -1.9575,1.1324 -2.4285,2.1291 -0.2717,0.5754 -0.4109,1.2057 -0.4036,1.8415 0,0 0.012,0.1397 0.012,0.1397 0.053,1.2058 0.6753,2.3521 1.6388,3.0748 0.3587,0.269 0.7435,0.4708 1.1684,0.6124 0.3321,0.1108 0.6673,0.1762 1.016,0.2002 0,0 0.127,0.012 0.127,0.012 0,0 0.2794,0 0.2794,0 0,0 0.1524,-0.012 0.1524,-0.012 0.5485,-0.038 1.0816998,-0.1768 1.5748,-0.4234 0.4468,-0.2234 0.8984,-0.5618 1.2284,-0.9367 0.3764,-0.4277 0.6455,-0.8846 0.833,-1.4224 0.1068,-0.3064 0.2114,-0.8199 0.2119,-1.143 0,0 0,-0.3683 0,-0.3683 0,-0.2176 -0.062,-0.561 -0.1159,-0.7747 -0.223,-0.8925 -0.7155,-1.6606 -1.4335,-2.2377 -0.3838,-0.3085 -0.8161,-0.5404 -1.2827002,-0.696 -0.3125998,-0.1042 -0.6365998,-0.1686 -0.9651998,-0.19160002 0,0 -0.1524,-0.01 -0.1524,-0.01 0,0 -0.3937,0 -0.3937,0 z m 7.4295,13.09190012 c 0,0 0,-2.8194 0,-2.8194 0,0 0,-0.7112 0,-0.7112 0,-0.1319 0.062,-0.1395 0.1778,-0.1397 0,0 0.635,0 0.635,0 0.123,0 0.1518,0.049 0.1524,0.1651 0,0 0,0.6858 0,0.6858 0,0 0,2.8194 0,2.8194 0,0 2.8194,0 2.8194,0 0,0 0.6985,0 0.6985,0 0.1339,0 0.1522,0.058 0.1524,0.1778 0,0 0,0.6477 0,0.6477 0,0.129 -0.05,0.1396 -0.1651,0.1397 0,0 -3.5052,0 -3.5052,0 0,0 0,2.8194 0,2.8194 0,0 0,0.7112 0,0.7112 0,0.129 -0.05,0.1396 -0.1651,0.1397 0,0 -0.6604,0 -0.6604,0 -0.1227,-8e-4 -0.1394,-0.037 -0.1397,-0.1524 0,0 0,-3.5179 0,-3.5179 0,0 -2.8194,0 -2.8194,0 0,0 -0.7112,0 -0.7112,0 -0.1299,-8e-4 -0.1395,-0.048 -0.1397,-0.1651 0,0 0,-0.6604 0,-0.6604 0,-0.113 0.043,-0.1381 0.1524,-0.1397 0,0 0.6985,0 0.6985,0 0,0 2.8194,0 2.8194,0 z"})})})})},attributes:{form_name:{type:"string",default:""},role:{type:"string",default:""},automatic_login:{type:"boolean",default:!1},redirect_url:{type:"string",default:""},logout_redirect_url:{type:"string",default:""},is_preview:{type:"boolean",default:!1},is_editor:{type:"boolean",default:!0},ajax:{type:"boolean",default:!1}},edit:function(e){console.log("Hello World! (from profile-builder-profile-builder register block)"),console.log(window.wppbRegisterBlockConfig);const t=(0,l.useBlockProps)();return(0,u.jsxs)("div",{...t,children:[(0,u.jsxs)(l.InspectorControls,{children:[(0,u.jsxs)(n.PanelBody,{title:(0,i.__)("Form Settings","profile-builder"),icon:"more",initialOpen:!0,children:[(0,u.jsx)(n.SelectControl,{label:(0,i.__)("Form","profile-builder"),help:(0,i.__)("Select the desired Registration form","profile-builder"),value:e.attributes.form_name,options:window.wppbRegisterBlockConfig.registration_form_options,onChange:t=>{e.setAttributes({form_name:t})}}),""===e.attributes.form_name?(0,u.jsx)(n.SelectControl,{label:(0,i.__)("Assigned Role","profile-builder"),help:(0,i.__)("Select a Role to be assigned to users that register via this form","profile-builder"),value:e.attributes.role,options:window.wppbRegisterBlockConfig.role_options,onChange:t=>{e.setAttributes({role:t})}}):"",""===e.attributes.form_name?(0,u.jsx)(n.ToggleControl,{label:(0,i.__)("Automatic Login","profile-builder"),help:(0,i.__)("Automatically log in users after they register","profile-builder"),checked:e.attributes.automatic_login,onChange:t=>{e.setAttributes({automatic_login:t})}}):"",window.wppbRegisterBlockConfig.wppb_paid&&""===e.attributes.form_name?(0,u.jsx)(n.ToggleControl,{label:(0,i.__)("AJAX Validation","profile-builder"),help:(0,i.__)("Use AJAX to Validate the Registration Form","profile-builder"),checked:e.attributes.ajax,onChange:t=>{e.setAttributes({ajax:t})}}):"",""!==e.attributes.form_name?(0,u.jsxs)(n.__experimentalText,{children:[(0,i.__)("Edit the Settings for this form ","profile-builder"),(0,u.jsx)(n.Button,{variant:"link",target:"_blank",href:window.wppbRegisterBlockConfig.button,children:(0,i.__)("here","profile-builder")})]}):""]}),(0,u.jsxs)(n.PanelBody,{title:(0,i.__)("Redirects","profile-builder"),icon:"more",initialOpen:!0,children:[(0,u.jsx)(n.SelectControl,{label:(0,i.__)("After Registration","profile-builder"),help:(0,i.__)("Select a page for an After Registration Redirect","profile-builder"),value:e.attributes.redirect_url,options:window.wppbRegisterBlockConfig.url_options,onChange:t=>{e.setAttributes({redirect_url:t})}}),(0,u.jsx)(n.SelectControl,{label:(0,i.__)("After Logout","profile-builder"),help:(0,i.__)("Select a page for an After Logout Redirect","profile-builder"),value:e.attributes.logout_redirect_url,options:window.wppbRegisterBlockConfig.url_options,onChange:t=>{e.setAttributes({logout_redirect_url:t})}})]})]}),(0,u.jsxs)(l.InspectorAdvancedControls,{children:[(0,u.jsx)(n.TextControl,{label:(0,i.__)("After Registration","profile-builder"),help:(0,i.__)("Manually type in an After Registration Redirect URL","profile-builder"),value:e.attributes.redirect_url,onChange:t=>{e.setAttributes({redirect_url:t})}}),(0,u.jsx)(n.TextControl,{label:(0,i.__)("After Logout","profile-builder"),help:(0,i.__)("Manually type in an After Logout Redirect URL","profile-builder"),value:e.attributes.logout_redirect_url,onChange:t=>{e.setAttributes({logout_redirect_url:t})}})]}),(0,u.jsx)(a(),{block:"wppb/register",attributes:e.attributes})]})}})}},r={};function o(e){var i=r[e];if(void 0!==i)return i.exports;var l=r[e]={exports:{}};return t[e](l,l.exports,o),l.exports}o.m=t,e=[],o.O=(t,r,i,l)=>{if(!r){var n=1/0;for(d=0;d<e.length;d++){for(var[r,i,l]=e[d],s=!0,a=0;a<r.length;a++)(!1&l||n>=l)&&Object.keys(o.O).every(e=>o.O[e](r[a]))?r.splice(a--,1):(s=!1,l<n&&(n=l));if(s){e.splice(d--,1);var u=i();void 0!==u&&(t=u)}}return t}l=l||0;for(var d=e.length;d>0&&e[d-1][2]>l;d--)e[d]=e[d-1];e[d]=[r,i,l]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={585:0,741:0};o.O.j=t=>0===e[t];var t=(t,r)=>{var i,l,[n,s,a]=r,u=0;if(n.some(t=>0!==e[t])){for(i in s)o.o(s,i)&&(o.m[i]=s[i]);if(a)var d=a(o)}for(t&&t(r);u<n.length;u++)l=n[u],o.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return o.O(d)},r=globalThis.webpackChunkprofile_builder=globalThis.webpackChunkprofile_builder||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var i=o.O(void 0,[741],()=>o(561));i=o.O(i)})(); |