| 1 |
(()=>{"use strict";var e,r={42(e,r,i){const t=window.wp.blocks,o=window.wp.i18n,l=window.wp.blockEditor,n=window.wp.components,d=window.wp.serverSideRender;var a=i.n(d);const s=window.ReactJSXRuntime,p=JSON.parse('{"UU":"wppb/edit-profile"}');(0,t.registerBlockType)(p.UU,{icon:{src:(0,s.jsx)("svg",{children:(0,s.jsx)("g",{children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"m 6.0748388,9.5111184 c -0.099,-0.038 -0.3519,-0.2294 -0.4445,-0.3021 -0.2808,-0.2202 -0.5499,-0.4486 -0.7896,-0.7139 -0.3274,-0.3624 -0.6189,-0.7523 -0.8327,-1.1938 -0.2727,-0.563 -0.4316,-1.1673 -0.4744,-1.7907 0,0 -0.011,-0.1397 -0.011,-0.1397 0,0 0,-0.5715 0,-0.5715 0,0 0.011,-0.127 0.011,-0.127 0.041,-0.5995 0.1724,-1.1913 0.4242,-1.7399 0.5843,-1.2728 1.7588,-2.28950004 3.0949,-2.70480004 0.5504,-0.1709 1.0894,-0.2356 1.6637,-0.2289 0,0 0.1397,0.012 0.1397,0.012 1.1751002,0.051 2.3266002,0.5475 3.1877002,1.34560004 0,0 0.2027,0.1916 0.2027,0.1916 0.5567,0.5821 0.9719,1.2857 1.2034,2.0574 0.089,0.2952 0.1506,0.5954 0.1834,0.9017 0,0 0.023,0.2413 0.023,0.2413 0,0 0.013,0.2667 0.013,0.2667 0,0 -0.013,0.3683 -0.013,0.3683 0,0.2138 -0.075,0.6249 -0.1255,0.8382 -0.3294,1.3871 -1.2433,2.4909 -2.3891,3.302 0.6849,0.2905 1.494,0.5944996 2.0955,1.0250996 0,0 0.2413,0.177 0.2413,0.177 0.1102,0.065 0.3181,0.1248 0.3358,0.2711 0.014,0.1159 -0.085,0.2251 -0.1545,0.3048 -0.1628,0.1872 -0.3068,0.3483 -0.575,0.2835 -0.051,-0.012 -0.093,-0.034 -0.1397,-0.058 0,0 -0.5588,-0.3592 -0.5588,-0.3592 -0.3912,-0.2347 -0.8643,-0.4613 -1.2954,-0.611 -2.1439002,-0.7439996 -4.5605002,-0.4705 -6.4897002,0.7249 -1.6213,1.0045 -2.8241,2.5675 -3.3528,4.401501 0,0 -0.097,0.3683 -0.097,0.3683 -0.063,0.2544 -0.1152,0.5525 -0.1463,0.8128 0,0 -0.034,0.3683 -0.034,0.3683 0.01,0.1204 0.027,0.2455 0.10599999,0.3424 0.1026,0.1269 0.3208,0.1654 0.4759,0.1656 0,0 4.9911,0 4.9911,0 0,0 2.7686,0 2.7686,0 0,0 0.1905,-0.013 0.1905,-0.013 0,0 1.3208002,0 1.3208002,0 0,0 0.1905,-0.013 0.1905,-0.013 0,0 0.6477,0 0.6477,0 0,0 0.2159,-0.013 0.2159,-0.013 0.2658,-3e-4 0.552,-0.016 0.8128,0.031 0.4383,0.079 0.8052,0.3029 1.1557,0.5678 0,0 0.3175,0.2498 0.3175,0.2498 0.053,0.042 0.119,0.083 0.1524,0.1422 0,0 -10.9855002,0 -10.9855002,0 0,0 -1.8669,0 -1.8669,0 0,0 -0.1397,-0.012 -0.1397,-0.012 -0.40049999,-0.027 -0.86169999,-0.085 -1.12069999,-0.433 -0.2141002,-0.2879 -0.20410019896,-0.6506 -0.2001002,-0.9906 0,-0.1616 0.055,-0.4918 0.084,-0.6604 0.06,-0.3549 0.1319,-0.7072 0.2284,-1.0541 0.1803,-0.6484 0.4123,-1.286301 0.73319999,-1.879601 0.5931,-1.0966 1.3661,-1.9912 2.371,-2.732 0.4948,-0.3647 1.1427,-0.7539 1.7018,-1.0104996 0,0 0.635,-0.278 0.635,-0.278 0,0 0.3175,-0.1324 0.3175,-0.1324 z m 2.2225,-8.54580004 c 0,0 -0.2413,0.028 -0.2413,0.028 -0.3083,0.042 -0.6099,0.11870004 -0.9017,0.22570004 -0.9628,0.353 -1.7756,1.0837 -2.2446,1.9932 -0.2473,0.4795 -0.4289,1.1231 -0.4351,1.6637 0,0 -0.013,0.2032 -0.013,0.2032 0,0 0.013,0.2286 0.013,0.2286 0,0.1545 0.04,0.3921 0.071,0.5461 0.095,0.4748 0.2701,0.9329 0.5234,1.3462 0.3003,0.4903 0.678,0.8906 1.1454,1.2246 0.3045,0.2177 0.6732,0.4094 1.0287,0.528 0.3581,0.1195 0.6406,0.1781 1.016,0.2154 0,0 0.127,0 0.127,0 0,0 0.127,0.013 0.127,0.013 0,0 0.3429,-0.013 0.3429,-0.013 0.1312,0 0.3877,-0.042 0.5207,-0.068 0.3128,-0.062 0.6662002,-0.1686 0.9525002,-0.3094 0,0 0.4191,-0.2243 0.4191,-0.2243 0.8838,-0.5502 1.5388,-1.4014 1.8142,-2.4077 0.066,-0.2429 0.1412,-0.6399 0.1416,-0.889 0,0 0,-0.4191 0,-0.4191 0,0 -0.012,-0.127 -0.012,-0.127 -0.016,-0.2261 -0.056,-0.4407 -0.1107,-0.6604 -0.3201,-1.2801 -1.3029,-2.3887 -2.5447,-2.8441 -0.3424002,-0.1255 -0.8554002,-0.25420004 -1.2192002,-0.25340004 0,0 -0.4572,0 -0.4572,0 0,0 -0.063,0 -0.063,0 z M 21.124339,6.8514184 c 0.13,-0.023 0.169,0.047 0.254,0.1324 0,0 0.3937,0.3937 0.3937,0.3937 0,0 1.7653,1.7653 1.7653,1.7653 0,0 0.4826,0.4826 0.4826,0.4826 0.065,0.065 0.1575,0.1366 0.1176,0.2413 -0.02,0.053 -0.1364,0.1584996 -0.1811,0.2031996 0,0 -0.3175,0.317 -0.3175,0.317 0,0 -0.127,0.115 -0.127,0.115 0,0 -1.5113,1.5111 -1.5113,1.5111 0,0 -2.3241,2.3241 -2.3241,2.3241 0,0 -0.4313,0.431801 -0.4313,0.431801 0,0 -0.2926,0.3048 -0.2926,0.3048 -0.095,0.095 -0.2788,0.2909 -0.381,0.3564 -0.089,0.057 -0.1807,0.081 -0.2794,0.1135 0,0 -0.4191,0.1397 -0.4191,0.1397 0,0 -1.3462,0.453 -1.3462,0.453 0,0 -0.8382,0.2794 -0.8382,0.2794 -0.3029,0.101 -0.5243,0.1858 -0.8509,0.182 -0.1179,0 -0.2656,-0.06 -0.381,-0.094 -0.057,-0.017 -0.1162,-0.032 -0.1343,-0.097 -0.022,-0.078 0.03,-0.1904 0.053,-0.2665 0,0 0.2001,-0.6477 0.2001,-0.6477 0,0 0.6986,-2.260601 0.6986,-2.260601 0,0 0.1777,-0.5715 0.1777,-0.5715 0.019,-0.057 0.056,-0.1991 0.083,-0.2413 0.026,-0.041 0.1157,-0.1263 0.1545,-0.1651 0,0 0.3048,-0.3048 0.3048,-0.3048 0,0 0.9525,-0.9525 0.9525,-0.9525 0,0 2.5781,-2.5780996 2.5781,-2.5780996 0,0 1.1049,-1.1049 1.1049,-1.1049 0,0 0.3048,-0.3048 0.3048,-0.3048 0.058,-0.058 0.1125,-0.1273 0.1905,-0.1578 z m 1.6891,2.9518 c 0,0 -1.2192,-1.2192 -1.2192,-1.2192 0,0 -0.3048,-0.3048 -0.3048,-0.3048 -0.027,-0.026 -0.089,-0.099 -0.127,-0.099 -0.032,0 -0.068,0.04 -0.089,0.061 0,0 -0.1905,0.1905 -0.1905,0.1905 0,0 -0.7747,0.7747 -0.7747,0.7747 0,0 -2.1463,2.1462996 -2.1463,2.1462996 0,0 -0.6858,0.6858 -0.6858,0.6858 -0.086,0.086 -0.3089,0.298 -0.3683,0.381 0,0 1.2192,1.2192 1.2192,1.2192 0,0 0.3048,0.3048 0.3048,0.3048 0.026,0.027 0.089,0.099 0.127,0.099 0.032,0 0.068,-0.04 0.089,-0.061 0,0 0.1905,-0.1905 0.1905,-0.1905 0,0 0.7747,-0.7747 0.7747,-0.7747 0,0 2.1463,-2.1463 2.1463,-2.1463 0,0 0.6858,-0.6858 0.6858,-0.6858 0.086,-0.086 0.3088,-0.2978996 0.3683,-0.3809996 z m -6.4897,3.3908996 c -0.051,0.059 -0.061,0.1437 -0.085,0.2159 0,0 -0.1493,0.4826 -0.1493,0.4826 0,0 -0.334,1.079501 -0.334,1.079501 0,0 -0.1305,0.4318 -0.1305,0.4318 0,0 0.381,-0.1228 0.381,-0.1228 0,0 0.6858,-0.2286 0.6858,-0.2286 0,0 0.7112,-0.237 0.7112,-0.237 0,0 0.3937,-0.135501 0.3937,-0.135501 0,0 -0.4953,-0.508 -0.4953,-0.508 0,0 -0.9779,-0.9779 -0.9779,-0.9779 z"})})})})},attributes:{form_name:{type:"string",default:""},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 edit profile block)"),console.log(window.wppbEditProfileBlockConfig);const r=(0,l.useBlockProps)();return(0,s.jsxs)("div",{...r,children:[(0,s.jsxs)(l.InspectorControls,{children:[(0,s.jsxs)(n.PanelBody,{title:(0,o.__)("Form Settings","profile-builder"),icon:"more",initialOpen:!0,children:[(0,s.jsx)(n.SelectControl,{label:(0,o.__)("Form","profile-builder"),help:(0,o.__)("Select the desired Edit Profile form","profile-builder"),value:e.attributes.form_name,options:window.wppbEditProfileBlockConfig.edit_profile_form_options,onChange:r=>{e.setAttributes({form_name:r})}}),window.wppbEditProfileBlockConfig.wppb_paid&&""===e.attributes.form_name?(0,s.jsx)(n.ToggleControl,{label:(0,o.__)("AJAX Validation","profile-builder"),help:(0,o.__)("Use AJAX to Validate the Registration Form","profile-builder"),checked:e.attributes.ajax,onChange:r=>{e.setAttributes({ajax:r})}}):"",""!==e.attributes.form_name?(0,s.jsxs)(n.__experimentalText,{children:[(0,o.__)("Edit the Settings for this form ","profile-builder"),(0,s.jsx)(n.Button,{variant:"link",target:"_blank",href:window.wppbEditProfileBlockConfig.button,children:(0,o.__)("here","profile-builder")})]}):""]}),""===e.attributes.form_name?(0,s.jsx)(n.PanelBody,{title:(0,o.__)("Redirect","profile-builder"),icon:"more",initialOpen:!0,children:(0,s.jsx)(n.SelectControl,{label:(0,o.__)("After Edit Profile","profile-builder"),help:(0,o.__)("Select a page for an After Edit Profile Redirect","profile-builder"),value:e.attributes.redirect_url,options:window.wppbEditProfileBlockConfig.url_options,onChange:r=>{e.setAttributes({redirect_url:r})}})}):""]}),(0,s.jsx)(l.InspectorAdvancedControls,{children:""===e.attributes.form_name?(0,s.jsx)(n.TextControl,{label:(0,o.__)("After Edit Profile","profile-builder"),help:(0,o.__)("Manually type in an After Edit Profile Redirect URL","profile-builder"),value:e.attributes.redirect_url,onChange:r=>{e.setAttributes({redirect_url:r})}}):""}),(0,s.jsx)(a(),{block:"wppb/edit-profile",attributes:e.attributes})]})}})}},i={};function t(e){var o=i[e];if(void 0!==o)return o.exports;var l=i[e]={exports:{}};return r[e](l,l.exports,t),l.exports}t.m=r,e=[],t.O=(r,i,o,l)=>{if(!i){var n=1/0;for(p=0;p<e.length;p++){for(var[i,o,l]=e[p],d=!0,a=0;a<i.length;a++)(!1&l||n>=l)&&Object.keys(t.O).every(e=>t.O[e](i[a]))?i.splice(a--,1):(d=!1,l<n&&(n=l));if(d){e.splice(p--,1);var s=o();void 0!==s&&(r=s)}}return r}l=l||0;for(var p=e.length;p>0&&e[p-1][2]>l;p--)e[p]=e[p-1];e[p]=[i,o,l]},t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var i in r)t.o(r,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:r[i]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={746:0,390:0};t.O.j=r=>0===e[r];var r=(r,i)=>{var o,l,[n,d,a]=i,s=0;if(n.some(r=>0!==e[r])){for(o in d)t.o(d,o)&&(t.m[o]=d[o]);if(a)var p=a(t)}for(r&&r(i);s<n.length;s++)l=n[s],t.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return t.O(p)},i=globalThis.webpackChunkprofile_builder=globalThis.webpackChunkprofile_builder||[];i.forEach(r.bind(null,0)),i.push=r.bind(null,i.push.bind(i))})();var o=t.O(void 0,[390],()=>t(42));o=t.O(o)})(); |